text stringlengths 10 2.72M |
|---|
package org.celllife.stock.domain.alert;
import java.io.Serializable;
import java.util.Date;
import org.celllife.stock.domain.drug.DrugDto;
import org.celllife.stock.domain.user.UserDto;
public class AlertDto implements Serializable {
private static final long serialVersionUID = 7075188646105441127L;
private Lon... |
package msip.go.kr.board.service.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Repositor... |
package artronics.gsdwn.log;
import org.apache.log4j.Logger;
public interface Log
{
Logger SDWN = Logger.getLogger("sdwn");
Logger PACKET = Logger.getLogger("packet");
Logger FILE = Logger.getLogger("file");
}
|
package com.cm.transaction.declarative.annotation;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdb... |
package com.microservice.counthvip.services;
import java.util.Map;
import com.microservice.counthvip.model.ClientPerson;
import com.microservice.counthvip.model.CountHvip;
import com.microservice.counthvip.model.Firmante;
import com.microservice.counthvip.model.Movement;
import com.microservice.counthvip.model.Titul... |
package com.example.contactList;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.util.Log;
import android.view.View;
import android.widget.Button;
impo... |
package test;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.junit.Test;
import... |
package com.fanfte.designPattern.decorator;
public class PacketHTMLHeaderCreator extends PacketDecorator{
public PacketHTMLHeaderCreator(IPackeetCreator component) {
super(component);
}
@Override
public String handleContent() {
StringBuffer sb = new StringBuffer();
sb.append("... |
public class B3main {
public static void main(String[] args)
{
B3view ins=new B3view();
}
}
|
package com.mediafire.sdk.api.responses;
import com.mediafire.sdk.api.responses.data_models.FileInfo;
import com.mediafire.sdk.api.responses.data_models.FileInfos;
import java.util.List;
public class FileGetInfoResponse extends ApiResponse {
private FileInfo file_info;
private List<FileInfos> file_infos;
... |
package com.junkstoreapp.services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
/**
* @author David VanDusen.
*/
@Service
@Profile("!production")
public class LoggingEmailService implements EmailService... |
package com.programapprentice.app;
import com.programapprentice.util.TreeNode;
/**
* User: program-apprentice
* Date: 8/9/15
* Time: 12:13 PM
*/
public class SameTree_100 {
public boolean isSameTree(TreeNode p, TreeNode q) {
if(p == null && q == null) {
return true;
}
if(p ... |
/*
* 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 PRESTACIONES;
import Clases.CalculosPrestaciones.Indemnizacion;
import Clases.CalculosPrestaciones.classIndemnizacion;
import ... |
package app.android.com.gitrepostriesApp.constant;
public class AppConstant {
/**
* get a api key from https://newsapi.org/
* just register an account and request for an api key
* when you will get an api key please replace with YOUR_API_KEY
*/
public static final String BASE_URL = "https:... |
package com.zxt.compplatform.formengine.entity.view;
import com.zxt.framework.common.entity.BasicEntity;
/**
* Title: CacheInterface
* Description: 界面提示信息
* Create DateTime: 2010-9-27
*
* @author xxl
* @since v1.0
*
*/
public class Note extends BasicEntity {
/**
* 主键
*/
private String id;
/**
* 提... |
/*
* Written by Erhan Sezerer
* Contact <erhansezerer@iyte.edu.tr> for comments and bug reports
*
* Copyright (C) 2014 Erhan Sezerer
*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ... |
package com.wrathOfLoD.Models.Skill;
/**
* Created by luluding on 4/7/16.
*/
public class Skill {
private int skillLevel;
public Skill(int skillLevel){
this.skillLevel = skillLevel;
}
public int getSkillLevel(){
return skillLevel;
}
public void updateSkillLevel(int skillPoi... |
package views.elements.drawers;
import com.badlogic.gdx.graphics.g2d.Animation.PlayMode;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.sc... |
package com.lenovohit.hcp.material.manager;
import com.lenovohit.hcp.base.model.HcpUser;
import com.lenovohit.hcp.material.model.MatInfo;
public interface MatInfoRestManager {
/**
* 子医院保存物资基本信息
* @param matInfo
* @param user
* @return
*/
public MatInfo createMatInfo(MatInfo matInfo, HcpUser user);
/**
... |
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
/**
* Created by efetoros on 4/15/17.
*/
public class Quadtree {
Node root;
static class Node implements Comparable<Node> {
String filename;
Node topLeft;
Node topRight;
Node bottomLeft;
... |
package cn.seu.edu.hanbab.hanbabRedis.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.HttpHeaders;
import org.springframewo... |
package blazeplus;
import net.minecraft.src.Block;
import net.minecraft.src.Entity;
import net.minecraft.src.EntityBlaze;
import net.minecraft.src.EntityGiantZombie;
import net.minecraft.src.EntitySnowman;
import net.minecraft.src.Material;
import net.minecraft.src.World;
public class BlazeBlock extends Block{
publi... |
/*
* Copyright 2002-2016 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 com.t11e.discovery.datatool;
import java.util.Map;
final class CountingChangesetListener
implements IItemChangesetListener
{
private int setItemCount;
private int removeItemCount;
@Override
public void onStartChangeset()
{
}
@Override
public void onSetItem(final String id, final... |
package clienta;
import java.io.*;
import java.net.Socket;
import java.util.Scanner;
/**
* Portfolio Question 4
* This program sets up the Client side for the server to connect
*/
public class ClientA {
private static DataOutputStream outputStream;
private static DataInputStream inputStream;
... |
package com._520it.service;
import java.sql.SQLException;
import java.util.List;
import com._520it.dao.AdminProductDao;
import com._520it.domain.Category;
import com._520it.domain.Product;
import com._520it.vo.Select;
public class AdminProductService {
/**
* 查询所有商品的方法
* @return 所有的商品集合
*/
public List<Produc... |
package crushstudio.crush_studio.config.mapper;
import org.springframework.stereotype.Component;
import org.modelmapper.ModelMapper;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
@Component
public class Mapper {
private static ModelMapper modelMapper;
pub... |
package com.example.apping.Events;
public class Search {
String title;
String postImage;
String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Search(String ... |
public class GlobalTimer implements Runnable{
/**
* This class contains the global timer which keeps track of time in the main game.
*/
//Properties
int intGlobalTimer;
int intPieceMaxTimer;
int intDecrementValue;
public void run(){
intGlobalTimer = 5400;
intPieceMaxTimer = 300;
... |
package com.zantong.mobilecttx.api;
import java.util.Map;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
/**
* Created by RG on 2016/4/3.
*/
public interface FileUploadApi {
@Multipart
... |
package ru.alexside.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import ru.alexside.model.PoType;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Alex on 25.03.2018.
*/
@Data
@JsonInclude(JsonInclude.... |
package org.spider.core.parse;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.spider.core.HtmlDefinition;
import org.spider.core.WebClientHolder;
import org.spider.core.task.SpiderLocation;
/**
* @author liuxin
* @version Id: JsoupHtmlDefinitionParser.java, v 0.1 2018/7/26 下午5:43
*/
public cla... |
package com.generic.core.validation.functions;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.generic.core.utilities.Util;
import com.generic.core.utilities.UtilConstants;
import com.generic.core.utilities.Validation;
import com.generic.rest.constants.Constants;
import com.generic.rest.dto... |
package com.example.demo.repository;
import com.example.demo.entity.Character;
import java.util.List;
public interface CharacterRepository {
Character save(Character character); //Insert Update
List<Character> findAll(); //Select * from
Character findByName(String name); // select where from
void de... |
package mx.redts.ob3.model;
// Generated 03-jun-2014 0:22:34 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColu... |
package ltd.getman.testjobproject.domain.models.mechanizm;
import java.util.List;
import lombok.Getter;
import lombok.experimental.Builder;
/**
* Created by Artem Getman on 18.05.17.
* a.e.getman@gmail.com
*/
@Builder public class Data {
@Getter private List<Car> cars;
@Getter private List<Plane> planes;
@Ge... |
package org.hibernate.benchmarks.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Target;
@Inherited
@Target( ElementType.METHOD )
public @interface BenchmarkQueryMethod {
String value();
}
|
package Servlet;
import JavaBean.BookDao;
import JavaBean.Hon;
import JavaBean.User;
import JavaBean.UserDao;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
@WebServlet... |
package packages;
import java.util.Scanner;
public class bt2 {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
double a;
double b;
double c;
double x;
double x1;
double x2;
double d;
System.out.println("Nhập a: ");
a = s.nextInt();
System.out.println("Nhập b: ");
b... |
package testfxml;
import java.util.ArrayList;
import java.util.List;
public class Story2 implements ICrossingStrategy{
@Override
public boolean isValid(List<ICrosser> rightBankCrossers, List<ICrosser> leftBankCrossers, List<ICrosser> boatRiders) {
if(boatRiders.size() == 1 && !boatRiders.get(0).canSail() || boa... |
public class PohamHandle {
int quantity;
public PohamHandle() {
quantity = 0;
}
public String speedUp(int quantity) {
this.quantity = quantity;
return "¸®إد";
}
}
|
package be.darkshark.parkshark.api.controller;
import be.darkshark.parkshark.service.AllocationService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mo... |
package com.thomasdedinsky.fydp.fydpweb.controllers;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.spr... |
package com.xzh.shiro.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
@ApiModelProperty(value = "ID", hidden = true)
private Long id;
@ApiModelP... |
package com.example.randomlocks.listup.Fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android... |
package com.jgermaine.fyp.android_client.activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ViewFlipper;
import com.googl... |
public class ArrayListOfStrings implements ListOfStrings {
/**
* Implémentation par un tableau qui l'on redimensionnera à chaque ajout.
*/
private String[] array;
public ArrayListOfStrings() {
array = new String[0];
}
@Override
public void add(String s) {
String[] tmp = new String[array.length + 1];
... |
package com.algorithm.array;
public class MissingNumber {
public int missingNumber(int[] nums) {
for (int i = 0; i < nums.length; i++) {
if ((nums[i + 1] - nums[i]) == 2) {
return nums[i] + 1;
}
}
return 0;
}
}
|
package com.chapter7.test;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
/**
* Created by sheldonshen on 2017/3/21.
*/
public class GenericTypeUtils {
//获的一个泛型类的实际泛型类型
public static <T> Class<T> getGenericClassType(Class clz){
Type type = clz.getGenericSuperclass();
... |
/*
* 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 proof;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import jav... |
package util;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
/**
* 解析配置文件并连接数据库
* @author MG
*
*/
public class Jdbc {
static private String driver;
static private String url;
static private String uname;
static ... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
package four_target_for_interface_reference_example;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;
@Aspect
@Component
@EnableAspectJAutoProxy
public class Logg... |
package com.mygdx.game;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class Field {
final static int COL_COUNT = 15;
final static int ROW_COUNT = 23;
private Texture texture;
public Field() {
texture = Storage.getTexture("field_cell.bmp");... |
package com.lambdas;
import java.util.Arrays;
import java.util.List;
public class FuncInterfaceLambdasApp {
public static void main(String[] args) {
List<Car> cars = Arrays.asList(new Car("honda", 25000, "blue"), new Car("hundayi", 35000, "red"),
new Car("suzuki", 95000, "green"), new Car("benz", 80000, "blu... |
package com.exam.zzz_other_menu;
// 소그룹 정보입력
public class Select_mart_Model{
private String group;
private String MartName;
private int BookMarker;
private long id;
public String getMartName()
{
return MartName;
}
public void setMartName(String MartName)
{
this.MartName = MartName;
}
public int ge... |
package com.youthlin.demo.antlr.calc;
/**
* 创建: youthlin.chen
* 时间: 2018-05-08 10:47
*/
public class DirectiveListener extends CalcBaseListener {
@Override
public void exitPrintExpr(CalcParser.PrintExprContext ctx) {
System.out.println("RET\n");
}
@Override
public void exitAssign(CalcPa... |
package io.nuls.cmd.client.processor.farm;
import io.nuls.base.api.provider.Result;
import io.nuls.base.api.provider.ServiceManager;
import io.nuls.base.api.provider.farm.FarmProvider;
import io.nuls.base.api.provider.farm.facade.FarmStakeReq;
import io.nuls.cmd.client.CommandBuilder;
import io.nuls.cmd.client.Command... |
package com.kh.jd.work;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.kh.jd.lec... |
/**
* Created by Chroon on 2016-11-12.
*/
package View;
import Interface.OptionChoisi;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.image.ImageView;
import... |
package com.skp.test.linkedlist;
public class LinkedList {
private Node head;
public void setHead(Node head) {
this.head = head;
}
public LinkedList() {
}
public Node getHead() {
return head;
}
public void add(Node node) {
if (head == null) {
head = node;
return;
}
... |
public class SavingAccountNegativeException extends Exception {
public SavingAccountNegativeException(String msg) {
super(msg);
}
}
|
package com.atguigu.java;
public class SingletonTest {
public static void main(String[] args) {
Bank instance = Bank.getInstance();
System.out.println(instance);
}
}
/*
*
* 使用代码块去实现单例
*/
class Bank{
//1.私有化构造器
private Bank(){}
//2.提供该类对象的声明
private static Bank bank = null;
static{ //只能使用静态代码块。... |
package spriet2000.state.variant1.impl;
import spriet2000.state.variant1.ProductContext;
import spriet2000.state.variant1.ProductState;
import java.util.Arrays;
import java.util.List;
public class CancelledState extends ProductState {
public void handle(ProductContext context) {
// logic
Syste... |
package edu.usf.cse.physmotive;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.location.Location;
import android.location.Locati... |
package com.guard.myguard.services.interfaces;
import java.io.Serializable;
public interface ParsingService {
/**
* Method is responsible for serializing object to json
*
* @param object is object to serialize
* @return json representation of serialized object
*/
String serialize(Ser... |
package com.nosae.game.objects;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import com.nosae.game.popo.GameParams;
import com.nosae.game.popo.R;
import com.nosae.game.settings.DebugConfig;
/**
* Created by eason on 2015/10/23.
*/
public class Score extends... |
package com.codingKnowledge.entity;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
public class Client implements Initializi... |
package com.minoon.disco;
import android.animation.ValueAnimator;
import android.view.View;
import com.minoon.disco.choreography.Choreography;
import com.minoon.disco.choreography.ScrollChoreography;
import com.minoon.disco.choreography.ViewChaseChoreography;
import java.util.ArrayList;
import java.util.HashMap;
imp... |
package com.example.myprog.java;
import com.example.myprog.java.garage.Car;
import com.example.myprog.java.garage.parking.ParkingSpot;
import com.example.myprog.kotlin.garage.CarKt;
import com.example.myprog.kotlin.garage.parking.ParkingSpotKt;
public class MyProg {
public static int multiply(int a, int b) {
... |
package com.example.karam.transportation;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
public class Driver_signup extends AppCompatActiv... |
package com.ifeng.recom.mixrecall.core.channel.impl;
import com.ifeng.recom.mixrecall.common.constant.GyConstant;
import com.ifeng.recom.mixrecall.common.model.RecallResult;
import com.ifeng.recom.mixrecall.common.model.RecordInfo;
import com.ifeng.recom.mixrecall.common.model.UserModel;
import com.ifeng.recom.m... |
package com.atomix.jsonparse;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSON... |
package lab11;
import java.io.File;
import java.util.Scanner;
/**
* Created by ran on 4/1/16.
*
* bubble sort, insertion sort & selection sort
*
*/
public class Lab {
public static void main(String[] args) throws Exception{
//prepare file
String file = "src/lab10/students.dat";
Scanne... |
package pairSumDivBySixty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
public class pairDivisibleBySixty {
int comb(int x){
return x*(x-1)/2;
}
public static void main(String args[]) {
pairDivisibleBySix... |
package com.example.practice.service;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.practice.model.Author;
import com.example.practice.repository.AuthorRepository;
public class AuthorServiceImple implements AuthorService {
}
|
package kr.or.ddit.task.service;
import java.util.List;
import java.util.Map;
import kr.or.ddit.successboard.dao.ISuccessBoardDao;
import kr.or.ddit.task.dao.ITaskDao;
import kr.or.ddit.vo.JoinVO;
import kr.or.ddit.vo.ProjectVO;
import kr.or.ddit.vo.SuccessBoardCommentVO;
import kr.or.ddit.vo.SuccessBoardVO;
import ... |
package com.esum.comp.kftp;
import com.esum.common.exception.XTrusException;
public class KFtpException extends XTrusException {
public KFtpException(String code, String location, String message, Throwable cause) {
super(code, location, message, cause);
}
public KFtpException(String location, Stri... |
package com.aaa.house.service;
import com.aaa.house.dao.DMaintainMapping;
import com.aaa.house.entity.Maintain;
import com.aaa.house.utils.CusUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
* @ClassN... |
package patterns.behavioral.mediator;
/**
* 中介者模式:集中相关对象之间复杂的沟通和控制方式。
*/
public class Client
{
public static void main(String[] args)
{
AlarmColleague alarmColleague = new AlarmColleague();
CoffeePotColleague coffeePotColleague = new CoffeePotColleague();
Mediator mediator = ... |
package aplicattion;
import java.util.Locale;
import java.util.Scanner;
import entities.Carro;
public class Program {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner sc = new Scanner(System.in);
Carro carro = new Carro();
System.out.println("Digite os dados do carro");
Sy... |
package cuc.edu.cn.hynnsapp02.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import ja... |
package com.example.thang.moviehype;
import android.content.Context;
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;
i... |
package com.moran.proj.shared;
import javax.servlet.ServletContextEvent;
import org.springframework.web.context.ContextLoaderListener;
public class ApplicationListener extends ContextLoaderListener
{
public void contextInitialized(ServletContextEvent sce)
{
System.out.println("/==========================Web容器已开启==... |
package Utilities;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import pojos.Item;
public class ProductsSiglington {
private static Map<Item, String> list = new... |
package com.java.practice.pattern;
import java.util.Stack;
public class StringOccurance {
public static void main(String[] args) {
System.out.println(countOccurence("aBBccccaaAAAddeeEE"));
}
private static String countOccurence(String target) {
if (target == null) {
return nu... |
package com.everysports.domain;
import lombok.Data;
@Data
public class SearchTeacherVO {
private Long teacher_ID;
private String teacher_Name;
private Long class_SumNum;
private String uploadPath;
private String fileName;
}
|
//Encapsulation
package java_learning;
class Student1
{
int RollNo;
String name;
//Getters and Setters
public void setRollNo(int r)
{
RollNo=r;
}
public int getRollNo()
{
return RollNo;
}
public void setname(String n)
{
name=n;
}
public String getname()
{
return name;
... |
package ethan.mobilecount;
import java.util.Date;
/**
* @since 2013-11-2
* @author ethan
*/
public class OrderStrategyHolder<T> {
//有效的套餐
private T strategy ;
//订购的日期
private Date effectDate; //3==>4
public T order(Date orderedDate,T newStrategy){
T oldStrategy = null;
if(effectDate != null && eff... |
package com.gxtc.huchuan.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.ShapeDrawable;
import android.g... |
package ua.siemens.dbtool.serializers.Job;
import com.google.gson.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import ua.siemens.dbtool.model.auxilary.JobType;
import ua.siemens.dbtool.service.JobService;
import java.lang.reflect.Type;
/**
* The ... |
/**
*
*/
package fr.isae.mae.ss.sockets.treasures;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* MyClientSocket class
* @author Cedric Mayer, 2018
*/
public class Manual... |
package server.sport.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import server.sport.model.Sport;
import server.sport.service.SportService;
import java.util.List;
@CrossOrigin
@RestControl... |
package com.example.derrick.p03_classjournal;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.w... |
package com.njit.card.servlet;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.... |
package com.vk.mp3sinc;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Map;
import org.apache.log4j.Logger;
import org.jsoup.Jsoup;
/**
*
* @author picaro
*
*/
public class VkMp3Parser implements IVkMp3Parser{
//private Logger log = new Logger(this.ge... |
package com.gsccs.sme.plat.rtable.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.sprin... |
/**
* MongoDB database migrations using MongoBee.
*/
package com.trails.uaa.config.dbmigrations;
|
package com.design.creational.prototype;
import java.util.ArrayList;
public class PrototypeTest {
public static void main(String[] args) {
Employees emp = new Employees(new ArrayList<String>());
emp.loadData();
System.out.println(emp.getEmpList());
Employees emp1 = (Employees) emp.clone();
emp1... |
import java.util.ArrayList;
import java.util.function.Predicate;
import java.util.function.Supplier;
interface Job {
int doJob (int a, int b);
}
class Op {
public static int add(int a, int b) {
return a + b;
}
public int mult(int a, int b) {
return a * b;
}
}
public class Test {
privat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.