text stringlengths 10 2.72M |
|---|
package br.com.sysprojsp.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import br.com.sysprojsp.classes.model.Bandeira;
import br.com.sysprojsp.classes.model.ProdutoCsv;
import br.com.sysprojsp.connection.Sing... |
package LC200_400.LC300_350;
public class LC309_Best_Time_To_Buy_And_Sell_Stock_With_Cooldown {
public int maxProfit(int[] prices) {
if(prices.length == 1 || prices.length == 0) return 0;
int[] dp = new int[prices.length];
int temp = prices[0]; int flag = 0;
for(int j = 1; j < pric... |
package com.tencent.mm.plugin.appbrand.widget.input.c;
public enum g {
LEFT,
RIGHT,
CENTER;
public static g wl(String str) {
Enum h = d.h(str, g.class);
g gVar = LEFT;
if (h != null) {
Enum gVar2 = h;
}
return gVar2;
}
}
|
package com.tencent.mm.ui.chatting;
import android.content.Intent;
import com.tencent.mm.R;
import com.tencent.mm.pluginsdk.model.app.g;
class u$5 implements Runnable {
final /* synthetic */ Intent miG;
final /* synthetic */ u tKV;
u$5(u uVar, Intent intent) {
this.tKV = uVar;
this.miG = ... |
package com.cookiesncrumbs.msalvio.cpe50_ay1718_1stsem_android;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
... |
package com.sdk4.boot.service;
/**
* @author sh
*/
public interface SequenceService {
/**
* 通用序号生成
*
* @param type
*/
Long nextVal(String type);
}
|
import java.util.*;
class lifeline2
{
static KBC obj = new KBC();
public static void main()
{
if (obj.cl == 2)
{
if(obj.l2==0)
{
obj.l2=1;
System.out.println("Audiance voted option "+obj.correct+ " - 90%");
}
else
... |
package gti310.tp3;
import gti310.tp3.parser.*;
import gti310.tp3.solver.*;
import gti310.tp3.writer.*;
/**
* The Application class defines a template method to call the elements to
* solve the problem Unreal-Networks is façing.
*
* @author François Caron <francois.caron.7@ens.etsmtl.ca>
*/
public class... |
package cn.no7player.controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
@RestCon... |
/*
* 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 bean;
import DTOs.CustomerDTO;
import DTOs.OrderDTO;
import entity.Customer;
import java.sql.Date;
import javax.persistence.*;... |
package evm.dmc.api.model;
public enum FunctionType {
CLUSTERIZATION,
NORAMLIZATION,
PCA,
STANDARDIZATION,
CSV_DATASOURCE,
CSV_DATADESTINATION,
OTHER;
}
|
/*
* Copyright 2010 Kim A. Betti, Alexey Zhokhov
*
* 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 applicable... |
import java.util.Arrays;
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
int m = scanner.nextInt();
int[][] count = new int[m][2];int[] max = new int[m+1];
for(int i=0;i<m;i++)
{
... |
package com.vijay.fragmetn;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Butto... |
package com.aslansari.rxjavastatemng.ui;
public class SubmitAction {
public String name;
public SubmitAction(String name){
this.name = name;
}
}
|
package com.eazy.firda.eazy.adapter;
import android.app.Activity;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAda... |
package kr.hs.emirim.sookhee.redonorpets;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.res.ResourcesCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView... |
/**
* @ExServ.java (Lab 4 - CSC583B)
*@Using the ExecutorService Interface
*
* @Geoffrey Paulsen
* @2011/9/28
*/
import java.io.*;
import java.security.*;
import java.util.*;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
public class ExServ
{
private File d;
//construct... |
package com.kgitbank.spring.domain.model.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.kgitbank.spring.domain.model.MemberVO;
public interface MemberMapper {
public List<MemberVO> selectAll();
public void insertMember(MemberVO member);
}
|
package crundle.qralarmclock;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
public class Alarm implements Comparable, Serializable {
private String alarmTime; //string of the alarmTime in 24 hour format
private bo... |
package nl.jtosti.hermes.location;
import nl.jtosti.hermes.company.Company;
import java.util.List;
public interface LocationServiceInterface {
Location getLocationById(Long id);
List<Location> getAllLocations();
boolean exists(Long id);
Location save(Location location);
List<Location> getLoca... |
package com.fleet.sqlite.service;
import com.fleet.sqlite.entity.User;
import java.util.List;
public interface UserService {
int insert(User user);
int delete(Long id);
int update(User user);
User get(Long id);
List<User> list();
}
|
package com.tencent.mm.plugin.appbrand.config;
import com.tencent.mm.ab.v;
import com.tencent.mm.plugin.appbrand.app.e;
import com.tencent.mm.protocal.c.byl;
import com.tencent.mm.protocal.c.zc;
import com.tencent.mm.protocal.c.zd;
import com.tencent.mm.protocal.c.ze;
import com.tencent.mm.sdk.platformtools.bi;
import... |
package com.ssgl.util;
/*
* 功能:
* User: jiajunkang
* email:jiajunkang@outlook.com
* Date: 2018/1/5 0005
* Time: 20:14
*/
import java.util.ArrayList;
import java.util.List;
public class StringUtils {
/**
* 字符串转换为list
* @param string
* @return
*/
public static List<String> stringConver... |
package com.cy.pj.sys.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import com.cy.pj.common.vo.SysUserDeptVo;
import com.cy.pj.sys.entity.SysUser;
@Mapper
public interface SysUserDao {
/*
* 说明:
1>当DAO... |
package orcsoft.todo.fixupappv2.Activities;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import... |
//William Suter
//The purpose of this project is to create a program that will store and display loved ones wish lists and special dates.
//The program will also display this information requested by the user
import java.io.File;
import java.io.IOException;
public class GroupGProject
{
public static void mai... |
package com.niloy.dxball_new;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends AppCompatActivity {
@Override
... |
package co.th.aten.football.ui.report;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import javax.imageio.ImageIO;
import javax.swing.Bo... |
package com.redhat.examples.iot.sensor;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.redhat.examples.iot.model.Measure;
@Component(SensorType.GPS)
@Sc... |
/*
* Ada Sonar Plugin
* Copyright (C) 2010 Akram Ben Aissi
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or... |
package br.com.univag.dao;
import br.com.univag.exception.DaoException;
import br.com.univag.fabricaConexao.Conexao;
import br.com.univag.model.VeiculoVo;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import... |
package com.beebox.blood.shewalfare;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
i... |
package com.tencent.mm.plugin.recharge.ui;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.ui.base.h.a;
import java.util.List;
class PhoneRechargeUI$13 implements a {
final /* synthetic */ PhoneRechargeUI mqa;
final /* synthetic */ List mqe;
final /* synthetic */ String mqf;
PhoneRec... |
package com.ht.springboot_shiro.domain;
/**
* @company 宏图
* @User Kodak
* @create 2019-06-03 -10:26
* @Email:2270301642@qq.com
*/
public class User {
private Integer id;
private String name;
private String pwd;
private String perms;
public Integer getId() {
return id;
... |
package com.li.xiaomi.xiaomi_core.net;
import android.content.Context;
import com.li.xiaomi.xiaomi_core.net.callback.IError;
import com.li.xiaomi.xiaomi_core.net.callback.IFailure;
import com.li.xiaomi.xiaomi_core.net.callback.IRequest;
import com.li.xiaomi.xiaomi_core.net.callback.ISuccess;
import com.li.xiaomi.xia... |
/**
*
*/
package com.cnk.travelogix.mdmbackoffice.workflow;
import de.hybris.platform.core.model.ItemModel;
import de.hybris.platform.servicelayer.model.ModelService;
import de.hybris.platform.servicelayer.user.UserService;
import de.hybris.platform.workflow.WorkflowProcessingService;
import de.hybris.platform.workf... |
package generated.main;
import de.fhg.iais.roberta.runtime.*;
import de.fhg.iais.roberta.runtime.ev3.*;
import de.fhg.iais.roberta.mode.general.*;
import de.fhg.iais.roberta.mode.action.*;
import de.fhg.iais.roberta.mode.sensor.*;
import de.fhg.iais.roberta.mode.action.ev3.*;
import de.fhg.iais.roberta.mode.sensor.ev... |
/**
* Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved.
*
* 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 requi... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
import java.math.BigDecimal;
import java.util.Date;
/**
* TvParttaskPrjId generated by hbm2java
*/
public class TvParttaskPrjId implements java.io.Serializable {
private String taskuid;
private String model;
private String b... |
package rs.jug.rx.resultset.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.ResultSetExtractor;
im... |
package smart.config;
import smart.storage.LocalStorage;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.CacheControl;
import org.springframework.lang.NonNull;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web... |
package com.bowlong.sql.jdbc;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.... |
package com.dazhi.naming.utils;
public class UtilAndComs {
// public static final String VERSION = "Nacos-Java-Client:v" + VersionUtils.VERSION;
public static String WEB_CONTEXT = "/nacos";
public static String NACOS_URL_BASE = WEB_CONTEXT + "/v1/ns";
public static String NACOS_URL_INSTANCE = NACOS_U... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the l... |
package pso.coco;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.Arrays;
import java.util.Properties;
public class PropertiesBBOBExperimentConfigurator implements BBOBExperimentConfigurator {
... |
/**
* Copyright 2007 Jens Dietrich 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 applicable law or agreed to in writin... |
package chap03.sec04.exam01_arithmetic;
public class AccuracyExample2 {
public static void main(String[] args) {
/*
int apple = 1;
int number = 7;
int totalPieces = apple * 10;
int temp = totalPieces - number;
double result = temp / 10.0;
System.out.println(result);
*/
// 10씩 곱해진 값을 대신 사용한다... |
package com.pangpang6.books.offer.chapter2;
import com.google.common.collect.Maps;
import com.pangpang6.books.offer.structure.BinaryTreeNode;
import java.util.Map;
/**
* 根据前序和中序序列(不含有重复的数字),构建一棵二叉树
* <p>
*/
public class b06_重建二叉树 {
public static BinaryTreeNode constructBinaryTree(int[] pre, int[] in) {
... |
package com.example.demo.services;
import org.springframework.stereotype.*;
@Service
public class VisitorsServices {
public static final Integer LOGIN_STATUS_ACVTIVE=1;
public static final Integer LOGIN_STATUS_BLOCKED=2;
}
|
package swexpert;
import java.util.Scanner;
public class SWEA_2068_D1_최대수_구하기 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int TC = s.nextInt();
for (int i = 1; i <= TC; i++) {
sb.append("... |
package com.literature.service.impl;
import com.literature.common.JsonApi;
import com.literature.entity.*;
import com.literature.repository.*;
import com.literature.service.IBookService;
import com.literature.vo.CommentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereo... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package com.yida.design.model.impl;
import com.yida.design.model.HummerModel;
/**
*********************
* @author yangke
* @version 1.0
* @created 2018年4月20日 下午5:37:02
***********************
*/
public class HummerH1Model extends HummerModel {
@Override
public void start() {
System.out.print... |
package br.ita.sem2dia1.AprofundandoClassesJava.escola;
public class Aluno {
public int bim1;
public int bim2;
public int bim3;
public int bim4;
public char[] media() {
// TODO Auto-generated method stub
return null;
}
public char[] passouDeAno() {
// TODO Auto-generated method stub
r... |
package kr.ko.nexmain.server.MissingU.msgbox.dao;
import java.util.List;
import java.util.Map;
import kr.ko.nexmain.server.MissingU.common.model.CommReqVO;
import kr.ko.nexmain.server.MissingU.msgbox.model.LnkMsgboxMsgVO;
import kr.ko.nexmain.server.MissingU.msgbox.model.MsgBoxConversSendVO;
import kr.ko.nexmain.serv... |
package me.jessepayne.pad4j.visualizer.swing.theme;
import me.jessepayne.pad4j.visualizer.swing.VirtualUIManager;
import java.util.Timer;
public class ThemeManager {
private VirtualUIManager uiManager;
private LPTheme theme = LPTheme.AQUA;
private Timer fadeTimer = new Timer();
private boolean fade... |
/* import java.applet.Applet;
import java.awt.Button;
import java.awt.Graphics;
import java.awt.Label;
import java.awt.TextFeild;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/*
* <applet code="AppletLoan" width=280 height=200> </applet>
public class AppletLoan extends Applet implements... |
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.ArrayList;
import java.util.Arrays;
import javax.swing.JButton;
import j... |
package se.gareth.swm;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
public class WorldIcon extends Button {
private static Sprite mIconSprite;
private static ... |
package geg;
public class World{
private long oxygenLevel = 0;
private long generation = 0;
public World(){
}
// GETTERS AND SETTERS
public void setOxygenLevel(long ogyxenLevel){
if(byte < 0 || byte > 100){
throw new IllegalArgumentException("invalid range, 0 - 100 inclusive");
}
this.oxygen = perc... |
package fr.bodysplash.bwish.server;
import java.io.IOException;
import javax.jdo.PersistenceManager;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
impo... |
package Commons;
public class Validate {
}
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package csci152;
public class Student {
private String firstName;
private String lastName;
private int id;
private int year;
public Student(String firstName, String lastName, int id) {
this.firstName = firstName;
this.lastName = lastName;
this.id = id;
this.year = 1... |
package com.tencent.mm.plugin.sns.ui;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
class SnsMsgUI$17 implements OnTouchListener {
final /* synthetic */ SnsMsgUI nYl;
SnsMsgUI$17(SnsMsgUI snsMsgUI) {
this.nYl = snsMsgUI;
}
public final b... |
package com.chuxin.family.parse.been;
import com.chuxin.family.parse.been.data.CxMateProfileDataField;
/**
* 用户结对的对方的资料获取类
* @author shichao.wang
*
*/
public class CxMateProfile extends CxParseBasic{
private CxMateProfileDataField data;
public CxMateProfileDataField getData() {
return data;
}
public void ... |
package com.tencent.mm.plugin.music.model.c;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.g.b;
import com.google.android.exoplayer2.h.k;
import com.google.android.exoplayer2.metadata.Metadata;
impor... |
package marche.traitement.Acteurs;
import marche.traitement.Acteurs.ChoixAcheteur.StrategyChoixAcheteur;
import marche.traitement.Initialisation.Initialisation;
import marche.traitement.Marche.LivreDuMarche;
import marche.traitement.Marche.Offre;
import marche.traitement.Produit.Produit;
import java.util.ArrayList;
i... |
import java.util.Scanner;
public class Example {
public static void main(String[] args) {
//System.out.println("Hello World");
// a=a^b;
// b=a^b;
// a=a^b;
// a=a+b;
// b=a-b;
// a=a-b;
// System.out.println("a="+a+" b="+b+" after swap ");
// int ... |
package com.gustavoaz7.flappybird;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.... |
package com.facebook.react.uimanager.events;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.uimanager.PixelUtil;
public class ContentSizeChangeEvent extends Event<ContentSizeChangeEvent> {
private final int mHeight;
private final int... |
package com.dkwig0.yeybook.jpa.repositories;
import com.dkwig0.yeybook.jpa.entities.ChatRoom;
import com.dkwig0.yeybook.jpa.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Set;
@Repository
public in... |
package com.ai.slp.order.api.notice.interfaces;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.ai.opt.base.exception.BusinessException;
import com.ai.opt.base.exception.SystemException;
import com.ai.o... |
package kyle.game.besiege.panels;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import kyle.game.besiege.Assets;
import kyle.game.besiege.party.Soldier;
import kyle.game.besiege.party.Squad;
/**
* A soldier table... |
public class WildCardSquare extends Square{
public WildCardSquare(String name, int position) {
super(name, position);
}
@Override
public boolean isOwned() {
return false;
}
public void execute(Player player) {
System.out.println(StdIO.printSquareLandedOn(player, this.getName()));
WildCard wildCardDraw... |
package test.mart;
public class Cpu {
}
|
package bean.item.name;
public class ItemNameDTO {
private int num;
private String name;
private String url;
private String maintag;
private String subtag;
private String imgurl;
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public String getName() {
return name... |
package lesson35.controller;
import lesson35.model.Hotel;
import lesson35.repository.UserDAO;
import lesson35.service.HotelService;
import java.nio.file.AccessDeniedException;
public class HotelController {
private HotelService hotelService = new HotelService();
/*
only for administrators
*/
pu... |
/**
* Copyright 2013 Cloudera Inc.
*
* 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 applicable law or agreed to i... |
package model;
import java.io.Serializable;
import model.obstacle.Obstacle;
import model.obstacle.ObstacleType;
import model.obstacle.Unit;
import model.terrain.Terrain;
import model.terrain.TerrainType;
/**
* A grid of Cells<br>
*
* <hr>
* Date created: Jun 6, 2010<br>
* Date last modified: Jun 6, 2010<br>
* ... |
package com.tencent.mm.plugin.bottle.ui;
import android.os.Message;
import com.tencent.mm.R;
import com.tencent.mm.sdk.platformtools.ag;
class ThrowBottleAnimUI$4 extends ag {
final /* synthetic */ ThrowBottleAnimUI hnb;
ThrowBottleAnimUI$4(ThrowBottleAnimUI throwBottleAnimUI) {
this.hnb = throwBottl... |
import java.util.Scanner;
class input {
public static void main(String[] args){
Scanner scrobj = new Scanner(System.in);
System.out.println("enter your first name :");
String firstname = scrobj.next();
System.out.println("enter your last name :");
String lastname = scrobj.... |
package com.solidbeans.courses.java8.future;
import com.solidbeans.courses.java8.client.FuturesClient;
import org.junit.Before;
import org.junit.Test;
import java.time.Duration;
import java.time.Instant;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.concurrent.E... |
package com.tencent.mm.plugin.fts.b;
import com.tencent.mm.ab.e;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.fts.a.a.a;
import com.tencent.mm.plugin.fts.a.a.i;
import com.tencent.mm.plugin.fts.a.b;
import com.tencent.mm.plugin.fts.a.m;
import com.tencent.mm.plugin.fts.a.n;
import com.tencent.mm.sdk.b.... |
package piefarmer.immunology.block;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import piefarmer.immunology.lib.Ids;
import piefarmer.immunology.lib.Names;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class Blocks {
... |
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class Model {
private int frameHeight;
private int frameWidth;
private int imgHeight;
private int imgWidth;
private int xloc, yloc;
private int xVector, yVector;
private int direction;
private int health;
//update... |
package com.xiaoxiao;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* @project_name:bz_parent
* @date:2... |
package com.CoreJava;
import static org.junit.Assert.*;
import org.junit.Test;
import junit.framework.TestCase;
public class CalculatorTest extends TestCase
{
public CalculatorTest(String name)
{
super(name);
}
public void testAddCalculator()
{
Calculator m1=new Calculator();
as... |
/**
* <pre>
*
* Author:
* Brandon Mota
*
*
* Description:
* This class is the child class to Geom.
* It provides the necessary methods for
* a rectangle object.
*
*
*
* </pre>
*/
public class Rectangle extends Geom
{
private double base, height;
/**
* <pre... |
package entidades.abstractas;
import java.util.Random;
import javax.swing.Icon;
import GUI.Gui;
import entidades.concretas.PremioBomba;
import entidades.concretas.PremioOro;
import entidades.concretas.PremioProteccion;
import entidades.concretas.PremioRestaurar;
import entidades.concretas.PremioVelocidad;
import jue... |
package com.training.day11.loops;
public class TwelvePrime {
public static void main(String[] args) {
int num = 9;
// if (args != null && args.length > 0) {
// num = Integer.parseInt(args[0]);
// }
boolean isPrime = true;
int temp;
for (int i = 2; i <= num/2 ; i++) {
temp = num%i;
if (te... |
package br.com.home.servlets;
import br.com.home.dao.ContatoDao;
import br.com.home.domain.Contato;
import br.com.home.domain.builder.ContatoBuilder;
import br.com.home.infra.ConnectionDatabaseFactory;
import br.com.home.util.ApplicationUtil;
import javax.servlet.AsyncContext;
import javax.servlet.AsyncEvent;
import ... |
package com.yc.biz.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.ann... |
package com.mobcrush.internship;
/**
*
* @author Ushang-PC
*/
public class Purchase {
private long customerId;
private long productId;
/**
*
* @return the id of the customer who made the purchase
*/
public long getCustomerId() {
return customerId;
}
/**
* ... |
package com.ibeiliao.statement.impl.enums;
/**
*
* 提现对账类型
* Created by jingyesi on 16/8/15.
*/
public enum WithdrawStatType {
APPLY((short)1, "申请"),
REJECT((short)2, "拒绝"),
FINISH((short)3, "完成");
private WithdrawStatType(short type, String name){
this.type = type;
this.name = nam... |
package Assigment2;
import java.util.ArrayList;
//class Employee {
//
// int salary = 10000;
// int totalSal;
//
// public int getSalary(int salary) {
// return this.salary;
// }
//
// public int totalEmployeesSalary(ArrayList<Integer> employeeSalaries) {
//
// for (int i : employeeSalaries) {
// totalSal += i;
/... |
package ru.otus.l151.db;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import ru.otus.l151.app.MessageSystemContext;
import ru.otus.l151.dataset.UserDataSet;
import ru.otus.l151.messageSystem.Address;
import ru.otus.l151.messageSystem.MessageSystem;
public class DBSe... |
package ua.kiev.doctorvera;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ExecutionException;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.a... |
package com.tencent.mm.ui.chatting.b;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class ac$4 implements OnClickListener {
final /* synthetic */ ac tRo;
ac$4(ac acVar) {
this.tRo = acVar;
}
public final void onClick(DialogInterface dialogInt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.