text stringlengths 10 2.72M |
|---|
package com.amodtech.meshdisplaycontroller;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
public class AboutMeshControllerActivity extends Activity {
/*
* This class is provides user help for the application
*/
... |
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package org.example.Week7.dao.impl;
public class OrderDaoImpl {
}
|
package book;
/**
* TextBook class
* Book child class
*/
public class TextBook extends Book{
private String field;
private double discount;
private double actualPrice;
/**
* constructor
*
* @param title
* @param price
* @param field
* @param discount
*/
public TextBook(String title, double price, St... |
package com.blockgame.crash.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistenc... |
package api.provincia;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping({"provincia"})
public class RestControladorProvincia {
@Autowired
pri... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tot.gather;
import tot.bean.DataField;
import tot.dao.DaoFactory;
import tot.util.UrlUtil;
import tot.util.StringUtils;
import tot.util.HtmlParse;
import java.io.IOException;
import org.apache.commons.logging.Lo... |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 17. 电话号码的字母组合
* 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。答案可以按 任意顺序 返回。
* 给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。
*
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number
*
*... |
package com.culturaloffers.maps.services;
import com.culturaloffers.maps.model.GeoLocation;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.domain.PageRequ... |
package controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.DaoException;
i... |
package easyinvest.com.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.NumberPicker;
import android.widget.TextV... |
package br.com.fiap.bean;
import java.util.Calendar;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.persistence.Entity... |
package server.sport.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.http.Htt... |
package com.example.kazi.testapplication.model;
/**
* Created by Kazi on 5/12/2017.
*/
public interface AdapterRefresher {
void refresh();
}
|
package view;
import controller.ImageProcessingController;
import controller.ProcessingController;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
import javax.sw... |
package com.proxiad.games.extranet.utils;
import java.io.File;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import lombok.Getter;
public class PeopleReferentialGenerator {
private static final String SURNAME_FILE = "bdd_noms.txt";
private static fin... |
package cn.edu.nju.software.timemachine.test.service;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import cn.edu.nju.software.timemachine.entity.*;
import cn.edu.nju.software.timemachine.service.*;
public class Init {
public static void initDatabase(... |
package com.example.idp4;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
... |
package juniorandkarlson;
public class Play implements Group {
private final Human[] notfamily1 = new Human[10];
private final Human[] family1 = new Human[10];
private int notfamily = 0;
private int countfamily1 = 0;
private int love = 0;
public void addnotfamily(Human var1){
... |
package com.zaozuo.zmall.order.controller;
import com.zaozuo.zmall.api.IUserController;
import com.zaozuo.zmall.common.entity.Order;
import com.zaozuo.zmall.common.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springf... |
package org.isokissa.sananmuunnos;
import java.util.List;
public class SananmuunnosService {
public static String muunna(String inputWords) {
List<String> tokens = Splitter.splitToTokens(inputWords);
if (tokens.size() < 2) {
return inputWords;
}
StringBuilder result =... |
/*
* CombineGenotypeTable
*/
package net.maizegenetics.dna.snp;
import net.maizegenetics.dna.snp.bit.BitStorage;
import net.maizegenetics.dna.snp.depth.AlleleDepth;
import net.maizegenetics.dna.snp.genotypecall.GenotypeCallTable;
import net.maizegenetics.dna.map.Chromosome;
import net.maizegenetics.dna.map.... |
package com.bear.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* This is a web page redirect Controller
*
* Created by nick on 2017/5/26.
*/
@Controller
public class WebPageController {
@RequestMapping(path = "/in... |
package day07;
public class Rectangle01 extends Shape01{
@Override
void draw() {
// TODO Auto-generated method stub
System.out.println("Draw rectangle is called");
}
}
|
package com.stk123.task.strategy;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import com.stk123.model.Index;
import com.stk123.model.K;
public class Strategy19 extends Strategy {
public Strategy19(){
this(null,null,false,true);
}
public Strategy19(String dataSourceName, Li... |
package com.rharo.jpastreamer.model;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import lombok.Getter... |
package com.zareca.decorator;
/**
* @Auther: ly
* @Date: 2020/10/19 22:27
* @Description:
*/
public class SausageDecorator extends BattercakeDecorator {
@Override
public void doSomething() {
}
public SausageDecorator(Battercake battercake) {
super(battercake);
}
@Override
pro... |
package xtrus.ex.mci.test;
import java.net.InetSocketAddress;
import java.util.concurrent.Executors;
import org.jboss.netty.bootstrap.ClientBootstrap;
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelConfig;
import org.jboss.netty.channel.... |
package org.maia.mvc.gerenciadorOfertas.services.impl;
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.maia.mvc.gerenciadorOfertas.domain.SocialMetaTag;
import org.maia.mvc.gerenciadorOfertas.services.SocialMetaTagServices;
import org.slf4j.Logger;
import org.slf4j.Logg... |
package ro.microservices.checkout.entities;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity
public class OrderItem {
@Id
@GeneratedV... |
package org.isc.certanalysis.web.error;
public class X509ExistsException extends RuntimeException {
public X509ExistsException(String msg) {
super(msg);
}
}
|
package com.cit360projectmark4.controller;
import com.cit360projectmark4.service.BaseService;
import com.cit360projectmark4.service.BaseServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse... |
package com.kodilla.good.patterns.flights;
import java.time.LocalDateTime;
import java.time.Month;
import java.util.HashMap;
import java.util.Map;
public class FlightDatabase {
public Map<Flight, Integer> createFlightDatabase() {
Flight flightGdnWro = new Flight("Gdansk","Wroclaw", LocalDateTime.of(2018, ... |
package com.heihei.adapter;
import java.util.List;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.heihei.cell.ListCell;
import com.heihei.model.User;
import com.wmlives.heihei.R;
public class UserAdapter extends BaseAdapter<User>{
public UserAdapter(Lis... |
package it.unical.dimes.processmining.core;
import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedList;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xm... |
package br.com.saltypub.web.beer.hue;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class BeerHue {
@Id
private Long id;
private String srmOrLovibond;
private String color;
private String colorHex;
private String example;
private Integer ebc;
public BeerHue() { }
public Be... |
package org.vanilladb.comm.protocols.zabelection;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.vanilladb.comm.process.ProcessList;
import org.vanilladb.comm.process.ProcessState;
import org.vanilladb.comm.protocols.events.ProcessListInit;
import org.vanilladb.comm.protocols.tcpfd.Failur... |
package com.trump.auction.reactor.bid;
import java.util.concurrent.TimeUnit;
import org.springframework.stereotype.Component;
import com.trump.auction.reactor.api.exception.BidException;
import com.trump.auction.reactor.api.model.AuctionContext;
import com.trump.auction.reactor.api.model.Bid;
import com.trump.auctio... |
package pl.basistam.zad1.books;
import pl.basistam.AbstractBooksInput;
public class Main {
public static void main(String[] args) {
AbstractBooksInput input = new BooksInput(new XmlBuilderImpl());
input.add();
}
}
|
package fr.ucbl.disp.vfos.util.file;
public enum EIOFileType {
WRITE,
READ
}
|
package com.framgia.fsalon.screen.homestylist;
/**
* Listens to user actions from the UI ({@link HomeStylistActivity}), retrieves the data and updates
* the UI as required.
*/
public class HomeStylistPresenter implements HomeStylistContract.Presenter {
private static final String TAG = HomeStylistPresenter.clas... |
package com.example.van.baotuan.VP.user.login;
import com.example.van.baotuan.model.user.UserBiz;
import com.example.van.baotuan.util.stringUtil.MD5Util;
/**
* 登录的Presenter
* Created by Van on 2016/11/06.
*/
public class LoginPresenter implements LoginContract.Presenter {
private final LoginContract.View mLo... |
package com.example.oodlesdemoproject.model.repo;
import com.example.oodlesdemoproject.model.countrydetails.CountryDetailsResponse;
import java.io.Serializable;
import java.util.ArrayList;
public class CountryListResponse implements Serializable {
private ArrayList<CountryDetailsResponse> countryLists;
publ... |
package com.vkoval.addressbook.entity.address;
import com.vkoval.addressbook.entity.category.Category;
import lombok.Data;
import javax.persistence.*;
@Data
@Entity
public class AddressData {
@Id
@GeneratedValue
private Long id;
@Column
private String name;
@Column
private String secondNa... |
import java.time.LocalDateTime;
public class QuoteTimer implements ITime, Runnable {
private QuoteObserver observer;
private boolean run;
private LocalDateTime time;
public QuoteTimer(QuoteObserver obs, boolean runNow)
{
observer = obs;
run = runNow;
}
public void run()
{
try {
... |
package com.ipincloud.iotbj.srv.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Date;
import java.sql.Timestamp;
import com.alibaba.fastjson.annotation.JSONField;
//(SyncVehicle)
//generate by redcloud,2020-07-24 19:59:20
public class SyncVehicle implements Seri... |
package com.example.lorand.assr.model;
class Injury {
private int id;
private String cause;
private String injuredUntil;
private String injuredFrom; // date + game
}
|
package com.noveogroup.marchenko.device;
/**
* This interface represents a Device for sorting algorithms.
*/
public interface Device extends Comparable<Device> {
int getPrice();
}
|
package Problem_16496;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
public class Main {
static class data implements Comparable<data>{
String str;
data(String str) {
this.str = str;
}
... |
/*
* Copyright © 2020-2022 ForgeRock AS (obst@forgerock.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
package com.soa.soap;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for bowType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="bowType">
* <restri... |
package com.codegym.repository;
import com.codegym.model.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ICustomerRepository extends JpaR... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package agh.musicapplication.mappdao.interfaces;
import agh.musicapplication.mappdao.Crudable;
import agh.musicapplication.mappmodel.M... |
package pl.kkowalewski.activeflap;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.content.Co... |
package com.paragon.utils.logger;
import android.util.Log;
/**
* Created by Rupesh Saxena
*/
public class Logger {
private static final boolean ENABLED = true;
private static final boolean DISABLED = false;
private static final boolean LOG_STATUS = ENABLED;
private static final String LOG_PREFIX = ... |
package dev.nowalk.repositories;
import java.util.List;
import dev.nowalk.models.Award;
public interface AwardRepo {
public void addAward(Award a);
public List<Award> getAllAwards();
public Award getAward(int id);
public Award updateAward(Award change);
public Award deleteAward(Award a);
}
|
package com.letscrawl.base.bean.job;
import java.io.Serializable;
import org.bson.types.ObjectId;
import com.letscrawl.base.bean.Document;
public class ExtractJob implements Serializable {
private static final long serialVersionUID = 1L;
private ObjectId id;
private ObjectId crawlerId;
private D... |
package lab.nnverify.platform.verifyplatform.models;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseEntity {
private int status;
private String msg;
pr... |
package pm9.trackingserver.constants;
import pm9.trackingserver.rest.response.GenericResponse;
/**
* Enum of common responses returned by the API.
*/
public enum EnumResponse {
WORKING(100l, "Working"),
SUCCESS(200l, "Success"),
WRONG_API_KEY(500l, "Wrong API KEY"),
DEVICE_REGISTER_FAILURE(510l, "De... |
/*
* Copyright (c) 2004 Steve Northover and Mike Wilson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, ... |
package com.lzx.xiuxian.Adapter;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.lzx.xiuxian.R;
import com... |
package com.csc.capturetool.myapplication;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import com.uuzuche.lib_zxing.activity.ZXingLibrary;
/**
* Created by SirdarYangK on 2018/11/2
* des:
*/
public class CscApplication extends Application {
privat... |
package FactoryMethodPattern02.example.factory.concreteFactory;
import FactoryMethodPattern02.example.factory.LoggerFactory;
import FactoryMethodPattern02.example.product.concreteProduct.FileLogger;
import FactoryMethodPattern02.example.product.Logger;
public class FileLoggerFactory extends LoggerFactory {
@Overr... |
package com.beike.service.impl.common;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.spri... |
package com.postpc.Sheed.makeMatches;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.ap... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package scheduledexecutor;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author blaszczyk
*/
pub... |
import java.util.Date;
public class MyThread extends Thread {
// public boolean isStart = true;
public void run() {
int i = 0;
while (!isInterrupted()){
try {
Thread.sleep(1000);
} catch (InterruptedException e){
System.out.println("Разбудили, суки!");
return;
};
System.out.p... |
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import java.util.Base64;
public class test {
public static void main(String[] args) throws Exception {
encrypt("edwin","password");
decrypt("2Jj3Bt0nCnsBaRDFkwGz76AlyeNLSmlmGxqCskX7UY0=");
}
private static void encrypt(S... |
package com.pooyaco.gazelle.entity;
import com.pooyaco.gazelle.entity.interceptor.AuditableEntityListener;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
/**
* Created by s.taefi on 2015/03/04.
*/
@MappedSuperclass
@EntityListeners(AuditableEntityListener.class)
pu... |
package com.google.firebase.codelab.mlkit;
import android.support.v4.content.FileProvider;
/**
* Created by Abin.Thomas on 24-05-2018.
*/
public class GenericFileProvider extends FileProvider {
}
|
package guillaumeagis.perk4you.cards;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import guillaumeagis.perk4you.R;
/**
*
* Chat c... |
import proxy.ServiceProxyCglib;
import proxy.ServiceProxyJdk;
import service.IHelloService;
import service.impl.HelloServiceImpl;
public class Main {
public static void main(String[] args) {
ServiceProxyJdk serviceProxyJdk = new ServiceProxyJdk();
IHelloService proxyJdk = (IHelloService) servicePr... |
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.io.*;
import java.util.*;
public class WordCountMapper extends Mapper<LongWritable, Text, Text, IntWritable> {
public void map(LongWritable key, Text value, Context context) throws IOExceptio... |
package com.meetingapp.android.ui;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.v7.widget.AppCompatEditText;
import android.util.AttributeSet;
import android.util.Log;
import com.meetingapp.android.R;
import com.meetingapp.android.util.TextUtils;
import com.meetingapp.... |
package com.gy.service;
import com.gy.util.ResultObject;
import org.springframework.stereotype.Service;
/**
* @Author: liumin
* @Description:
* @Date: Created in 2018/4/9 9:47
*/
@Service
public interface WorkOrderService {
public ResultObject workOrder(String id,String installPlace,String carNo,String proble... |
package es.codeurjc.gameweb;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class GamewebApplicationTests {
//esto es un push de prueba
@Test
void contextLoads() {
}
}
|
package Lec_03_ConditionalStatements;
import java.util.Scanner;
public class Lab_03_04_Number_1_9ToText {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведи цяло число от 1 до 9 вкл: ");
int inputNum = Integer.parseInt(scanner.nex... |
package org.apidesign.gate.timing;
import java.util.Timer;
import java.util.TimerTask;
import net.java.html.json.Model;
import net.java.html.json.ModelOperation;
import net.java.html.json.Property;
@Model(className="Current", instance = true, properties = {
@Property(name = "millis", type = long.class)
})
final c... |
package hadoop.sort.secondary;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;
public class YearGroupComparator extends WritableComparator {
public YearGroupComparator() {
super(Combinekey.class,true);
}
@Override
public int compare(WritableCom... |
package lv.qaguru.qa2.core;
import org.apache.log4j.Logger;
/**
* Created by user on 2017.05.21..
*/
public class MainPage {
BaseFunctions baseFunctions;
private static final Logger LOGGER = Logger.getLogger(MainPage.class);
public static final String URL = "http://qaguru.lv:8080/qa2/";
public Mai... |
package decemberChallenge2017;
import java.util.Scanner;
public class ChefAndHisCake {
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
int t=scan.nextInt();
for(int i=0;i<t;i++)
{
int n=scan.nextInt();
int m=scan.nextInt();
scan.nextLine();
char a[][]= n... |
/**
* Kenny Akers
* Mr. Paige
* Homework #22
* 4/20/18
*/
public class GraphProperties {
private final SymbolGraph graph; // The graph
private int diameter; // Definition: Maximum eccentricity of a graph
private int radius; // Definition: Minimum eccentricity of a graph
private int wienerIndex; /... |
package de.hdm.softwarepraktikum.shared.bo;
/*
* Neben get und set Name/Unit wurden keine weiteren Methoden deklariert, da die Articleklasse von ihrer
* Superklasse BusinessObject erbt, in der die nötigen Methoden bereits implementiert sind.
*/
public class Item extends BusinessObject {
private static final lon... |
package com.restcode.restcode.resource;
import com.restcode.restcode.domain.model.User;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;... |
package de.tu_darmstadt.elc.olw.api.constant;
public class ProductName {
private static class MP4_Lecturer_360p {
private static final String id = "1";
private static final String extension = "mp4";
}
/**
* mp4 848x480 16:9
*
* @author hungtu
*
*/
private static class MP4_Lecturer_480p {
priva... |
package sample.model;
// Generated May 21, 2012 11:05:32 PM by Hibernate Tools 3.2.1.GA
/**
* Information generated by hbm2java
*/
public class Information implements java.io.Serializable {
private Integer id;
private String name;
private String slogan;
private String aboutWhoW... |
package com.cuisine.survey;
import java.io.IOException;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Enume... |
/**
Java Programming lab 6
File I/O, practice with reading input files and writing to output files
Throw exceptions when needed
Process for program:
1. Take in input file from Hotel Expenses, display error if input file is not found
2. Read file line by line, keeping a total for each kind of service provided
3. ... |
package br.com.softplan.services;
import java.util.HashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security... |
package project1;
public class SquareMethod {
public static int square(int a) {
int b=a*a;
return b;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=9;
double result=square(a);
System.out.println(result);
}
}
|
package kr.ac.kopo.test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
public class JdbcTest {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
Class.for... |
package restaurant;
public class Table {
int numberOfTable;
boolean isOccupied;
Order order;
public Table() {}
public Table(int numberOfTable, boolean isOccupied, Order order) {
super();
this.numberOfTable = numberOfTable;
this.isOccupied = isOccupied;
this.order = order;
}
public int getNumberOfTa... |
package com.jgw.supercodeplatform.trace.dto.template.query;
import com.jgw.supercodeplatform.trace.common.model.page.DaoSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 溯源功能-查询追溯模板
*/
@ApiModel(value = "溯源功能-查询追溯模板")
public class TraceFunTemplateconfigListParam e... |
package services;
import java.util.ArrayList;
import java.util.Collection;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import org.springframework.validation.BindingResult... |
package org.team16.team16week5;
import static org.junit.Assert.*;
import org.junit.Test;
public class PrintExpectedBillTest {
private PrintExpectedBill printExpectedBill;
private DetailedCost detailedCost;
private User user;
private Gold gold = new Gold();
private Silver silver = new Silver();
@Test
public vo... |
package com.easyclean.easyclean;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CheckBox;
import android.widget.Ra... |
/**
*
*/
package gaydadsProject1;
/**
* @author David Gayda
* Instructor: Prof. Bachman
* CSE 283, Section B
*
* This BattleshipBoard contains methods to create and maintain
* a simple battleship game. This is to be used with the server
* and client class of the Project 1 Program.
*
* MAX_GUESSES can be ... |
package decisao;
import javax.swing.JOptionPane;
public class DecisaoEncadeada {
public static void main(String[] args) {
// TODO Auto-generated method stub
String materia = JOptionPane.showInputDialog("Materia");
float faltas = Float.parseFloat(JOptionPane.showInputDialog("faltas"));
if (faltas >= 20 )... |
package nl.tue.win.dbt.data;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
public class LabeledVertex<V, L> implements Serializable {
private final V data;
private final Set<L> labels;
public LabeledVertex(V data, Collection<? extends L> labels)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.