text stringlengths 10 2.72M |
|---|
/*
* 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 model;
import java.sql.Timestamp;
/**
*
* @author bynan
*/
public class AppointmentModel {
private int id;
privat... |
package tw.org.iii;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet... |
package com.huawei.esdk.tp.professional.local.impl.autogen;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.b... |
package top.zeroyiq.master_help_me.fragments;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
impor... |
package edu.neu.coe.info6205.symbolTable;
import java.util.Random;
public class Main {
public static void main(String[] args){
System.out.println("--------------------------- Tree with 100 nodes----------------------");
BSTSimple<Integer, Integer> bst = new BSTSimple<Integer, I... |
package com.magit.logic.system.objects;
import com.magit.logic.exceptions.IllegalPathException;
import com.magit.logic.utils.digest.Sha1;
import com.magit.logic.utils.file.FileHandler;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.InvalidPathExc... |
package com.twitter.challenge;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.twitter.challeng... |
package com.ibeiliao.pay.account.api.dto.response;
import com.ibeiliao.pay.account.api.dto.BankAccountVO;
import com.ibeiliao.pay.api.ApiResultBase;
/**
*
* 获取银行账号信息返回响应类型
* Created by jingyesi on 16/7/18.
*/
public class GetAccountResponse extends ApiResultBase{
/**
*
*/
private static final long seri... |
package 笔试代码.实战;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
//https://m.isolves.com/it/cxkf/cxy/2020-08-06/27248.html
//阿里面试代码题目 实现有向无环图dag的 deep copy
public class 实现dag的深拷贝 {
static class Node{
private int val;
private Collection<Node>... |
package Networking;
public interface MyServer extends java.rmi.Remote {
Point movePoint(Point aPoint) throws java.rmi.RemoteException;
int getX() throws java.rmi.RemoteException;
int getY() throws java.rmi.RemoteException;
} |
/*
* 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 connecttodb;
/**
*
* @author Dmitry
*/
public class Run {
public static void main(String[] args) {
... |
package events;
public abstract class Scrollable {
public abstract void actionOnScoll(double direction);
}
|
package com.app.arrays;
import java.util.Arrays;
public class SecondLargest {
public static int getLarestNumber(int a[], int total)
{
Arrays.sort(a);
return a[total-2];
//return a[total-3] third largest
}
public static void main(String[] args) {
int a[] = {54,75,85,62,25,98};
System.out.println("Secon... |
package com.service;
import java.util.List;
import java.util.Map;
import com.model.Room;
public interface RoomService {
List<Room> selectVirtualRoom(Map<String,Object> map);
List<Room> selectAllRoom(Room room);
List<String> selectAllId();
Room selectScreenByRoom(Room room);
int insertSelective(Room room... |
package net.sourceforge.vrapper.keymap;
import static net.sourceforge.vrapper.keymap.StateUtils.transitionUnion;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class HashMapState<T> implements State<T> {
protected Map<KeyStroke... |
package search.core;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.Random;
public class Histogram<T> implements Iterable<T> {
private HashMap<T,Double> counts = new HashMap<>();
private Random rand = new Random();
public Histogram() {}
public Histogram(Histogr... |
package cs.zju.config;
import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.builder.fluent.Configurations;
import org.apache.commons.configuration2.ex.ConfigurationException;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
p... |
/**
Copyright 2013 Osnir F CUNHA
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 writing, software... |
/*
* 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 ma... |
package com.smxknife.java2.generics;
/**
* @author smxknife
* 2019-04-19
*/
public class Animal {
}
|
package com.study.collura.objectboxstudy.mvp.base;
public abstract class BaseModel < T > {
protected T presenter;
public BaseModel (T presenter) {
this.presenter = presenter;
}
} |
package cbde.labs.hbase_mapreduce;
import java.io.IOException;
import java.util.ArrayList;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.had... |
package com.test.server;
import com.test.dao.ProDao;
import com.test.dao.ProDaoTmpl;
import com.test.pojo.Product;
import com.test.utils.FileAction;
import com.test.utils.Proutil;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServl... |
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.g.a.nu;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.x;
import java.util.ArrayList;
class af$35 extends c<nu> {
final /* synthetic */ af nqT;
af$... |
package com.smxknife.java2._volatile;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
/**
* @author smxknife
* 2021/5/6
*/
public class _01_NoVolatile {
private boolean enable = true;
public static void main(String[] args) throws IOException {
final _01_NoVolatile noVolatile = new _01_NoVol... |
package projet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author MAIA MARNAT MOUTRILLE STINDEL
*
*/
public class Deco ext... |
package com.yhy.dataservices.dao;
import com.yhy.dataservices.dto.ChangeRoleDTO;
import com.yhy.dataservices.dto.UserAccessDTO;
import com.yhy.dataservices.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface Ac... |
package firstPg.services;
;
import firstPg.model.Books;
import firstPg.model.ReaderView;
import firstPg.model.User;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import javax.swing.*;
public class AddBook... |
/*
* 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 Controller;
import Modelos.Conexion;
import java.util.List;
import org.springframework.jdbc.core.JdbcTemplate;
import org.spri... |
package com.jinshu.xuzhi.feeling;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Bit... |
package com.tencent.mm.plugin.wxcredit.ui;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.wallet_core.ui.WalletCardSelectUI;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.wallet_core.a;
class WalletBindDepositUI$1 implemen... |
package android.support.design.widget;
import android.support.design.widget.j.a;
class j$b extends a {
final /* synthetic */ j fB;
private j$b(j jVar) {
this.fB = jVar;
super(jVar, (byte) 0);
}
/* synthetic */ j$b(j jVar, byte b) {
this(jVar);
}
protected final float... |
package com.takshine.wxcrm.domain;
import com.takshine.wxcrm.model.AccessLogsModel;
/**
* 访问日志
* @author liulin
*
*/
public class AccessLogs extends AccessLogsModel{
private String startDate = null;
private String endDate = null;
private Integer currpages = 1;
private Integer pagecounts = 10;
private Integ... |
package com.duanxr.yith.easy;
/**
* @author Duanran 2019/2/22 0022
*/
public class ExcelSheetColumnTitle {
/**
* Given a positive integer, return its corresponding column title as appear in an Excel sheet.
*
* For example:
*
* 1 -> A
*
* 2 -> B
*
* 3 -> C
*
* ...
*
* 26 -> Z... |
package com.cmpickle.volumize.data.db.platform;
import android.app.Application;
import com.raizlabs.android.dbflow.config.DatabaseConfig;
import com.raizlabs.android.dbflow.config.FlowConfig;
import com.raizlabs.android.dbflow.config.FlowManager;
import javax.inject.Inject;
import javax.inject.Singleton;
... |
package jdbchomework.dao.hibernate;
import jdbchomework.dao.model.CompaniesDao;
import jdbchomework.entity.Company;
import jdbchomework.entity.Developer;
import jdbchomework.exceptions.DbConnectionException;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
imp... |
package root.resource;
import root.entity.BacklogItem;
import root.entity.BacklogItemStatus;
import root.entity.Sprint;
import root.exception.ChangeItemStatusException;
import root.exception.SprintStartException;
import root.exception.UpdateBacklogException;
import root.service.BacklogItemService;
import root.service.... |
/**
* Paintroid: An image manipulation application for Android.
* Copyright (C) 2010-2013 The Catrobat Team
* (<http://developer.catrobat.org/credits>)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publishe... |
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.File;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Collect... |
package com.noname.setalarm.view;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import androidx.lifecycle.ViewModelProviders;
import androidx.databinding.DataBindingUtil;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Inten... |
package com.model;
public class ImageData {
String id;
String imagePath;
String imageName;
public ImageData(String id, String imagePath,String imageName) {
super();
this.id = id;
this.imagePath = imagePath;
this.imageName=imageName;
}
public String getImageName() {
return imageName;
}
public voi... |
package TrabalhoFinal;
public class Endereco {
private String nomeRua;
private int numero;
private String bairro;
private String nomeCidade;
private String estado;
public void setNomeRua(String nomeRua){
this.nomeRua=nomeRua;
}
public void setNumero(int numero){
this.numero=numero;
}
... |
package switch2019.project.infrastructure.jpa;
import org.springframework.data.jpa.repository.JpaRepository;
import switch2019.project.dataModel.entities.CategoryIdJpa;
import switch2019.project.dataModel.entities.CategoryJpa;
import java.util.List;
import java.util.Optional;
public interface CategoryJpaRepository e... |
package tests;
import clients.SetupClient;
import org.junit.*;
import static org.junit.Assert.*;
import server.QuizServer;
import service.QuizService;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.rmi.RemoteException;
/**
* Created by Sophie on 02/02/15.
* Test the setup client
*/
publi... |
package com.zb666.item;
import com.chad.library.adapter.base.entity.MultiItemEntity;
public class EntityB implements MultiItemEntity {
private int b;
public int getB() {
return b;
}
public void setB(int b) {
this.b = b;
}
@Override
public int getItemType() {
ret... |
package com.ittr.data.Product;
import java.util.ArrayList;
public class ProductData {
public ArrayList<Product> results;
}
|
import javax.swing.JOptionPane;
/**
* Este arquivo ficará responsável de forma primária para funcionar como interface da aplicação
* durante o desenvolvimento. Não ficará responsável por nenhuma regra de négocio.
*/
public class MySuperMarket {
public static void main(final String[] args){
JOptionPane... |
package org.team3128.compbot.calibration;
import org.team3128.compbot.subsystems.Constants;
import org.team3128.compbot.subsystems.Shooter;
import edu.wpi.first.wpilibj.command.Command;
import org.team3128.common.utility.Log;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.RobotController;
public... |
package it.unirc.pwm.eureca.utils;
public class Costant {
//public static String URL_GAZZETTA = "http://xml2.temporeale.gazzettaobjects.it/optatrsport/";
public static Integer SIZE_LIST =10;
public static int PUNTI_VIAGGI =50;
public static String OGGETTO_EMAIL = "Registrazione Associazione E.U.Re.Ca.";
publi... |
package fel_1;
import java.util.Random;
import static fel_1.Main.arrayWritten;
public class AddToArray extends Thread {
private final String[] array;
public AddToArray(String[] array) {
this.array = array;
}
@Override
public void run() {
Random random = new Random();
whi... |
//package com.sprmvc.web.ch5.services;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.remo... |
package eat_more_pizza;
abstract class PizzaPieD {
RemAV remFn = new RemAV();
RemFishV rfFn = new RemFishV();
RemIntV riFn = new RemIntV();
RemV roFn = new RemV();
SubstFishV sfFn = new SubstFishV();
SubstV soFn = new SubstV();
abstract PizzaPieD remA();
abstract PizzaPieD remFish(FishD f);
abstr... |
package com.projectn.app.entities;
import javax.persistence.Column;
import javax.persistence.Id;
import org.hibernate.annotations.Entity;
@Entity
public class Citizen {
@Id
private String id;
@Column
private String firstName;
@Column
private String lastName;
@Column
private String alias;
@Column
private ... |
package com.qunchuang.carmall.domain.privilege;
import cn.wzvtcsoft.bosdomain.Entry;
import cn.wzvtcsoft.bosdomain.annotations.Bostype;
import com.qunchuang.carmall.graphql.annotation.SchemaDocumentation;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;... |
// Virginia Tech Honor Code Pledge:
//
// As a Hokie, I will conduct myself with honor and integrity at all times.
// I will not lie, cheat, or steal, nor will I accept the actions of those
// who do.
// -- Musaab Elsheikh (melsheikh)
import sofia.micro.*;
import sofia.graphics.Color;
//------------------------------... |
package com.meridal.examples.mvc;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... |
public class InventoryItems
{
private static String manufacturer, name, category;
private static int UPC, price;
//constructors
public InventoryItems(String man, String n)
{
manufacturer = man;
name = n;
UPC = (int)(Math.random()*1000000000)+100000000;
}
public InventoryItems(String man, String n, String... |
package com.hb.rssai.presenter;
import android.text.TextUtils;
import com.hb.rssai.constants.Constant;
import com.hb.rssai.contract.ForgetContract;
import com.hb.rssai.util.StringUtil;
import java.util.HashMap;
import java.util.Map;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
/... |
package com.jake.ffmpegandroid.record;
import android.text.TextUtils;
import com.jake.ffmpegandroid.common.VLog;
import com.jake.ffmpegandroid.record.videocodec.VideoCodec;
import com.jake.ffmpegandroid.record.videocodec.VideoCodecFactory;
import com.jake.ffmpegandroid.record.videocodec.VideoCodecParameters;
import ... |
package org.fuserleer;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
im... |
package com.mengdo.gameframework.net;
import java.util.Queue;
/**
* @ClassName: MessageQueue
* @Description: 消息队列
* @author chenpeng
* @date 2012-8-9 下午02:15:33
*
*/
public class MessageQueue {
private Queue<GameRequest> requestQueue;
private boolean running = false;
private boolean g... |
package singleton.step1;
public class AClass {
private int intVar; //1번
private static AClass INSTANCE; //2번 변수가 null이냐 아니야. 변수의 타입은 '클래스명'과 동일 // 최소null
public static AClass getInstance(){ //3.main에서 access해야하기에 public static+ 변수타입
if(INSTANCE==null) {
INSTANCE = new AClass(); //객체를 만들자. instace최초만들면 new. 그 ... |
package hello;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
public class HelloWorldTagHandler extends SimpleTagSupport {
public void doTag() throws JspException, IOException {
getJspContext().getOut().write("Hello world!");
}
} |
package org.overlord.rtgov.activity.store.elasticsearch;
/*
* 2012-4 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
*
* htt... |
package com.zp.dao;
import com.zp.pojo.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ResumeDao extends JpaRepository<Resume, Long> {
}
|
package ir.aligorji.automapper.example.mapper;
import android.support.annotation.NonNull;
import ir.aligorji.automapper.example.holder.ParentHolder;
import ir.aligorji.automapper.example.holder.UserHolder;
import ir.aligorji.automapper.AutoMapper;
import ir.aligorji.automapper.example.model.ParentModel;
import ir.ali... |
package com.cloud.ribbon.consumer.ribbon_consumer.service;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
@Service
public class Hell... |
package com.frank.servicelmpl;
import com.frank.bean.Fan;
import com.frank.bean.Subscribe;
import com.frank.dao.Subs_fanMapper;
import com.frank.service.Subs_fanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**... |
package go.nvhieucs.notins.model.follow;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.cassandra.core.CassandraTemplate;
import org.springframework.data.cassandra.core.mapping.CassandraPersistentEntity;
import org.spring... |
package com.hb.rssai.view.service;
import android.annotation.TargetApi;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
i... |
package com.tencent.mm.g.a;
import android.os.Bundle;
public final class np$b {
public boolean bYJ;
public Bundle extras;
}
|
package com.myself.email.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* @Author:UncleCatMySelf
* @Email:zhupeijie_java@126.com
* @QQ:1341933031
* @Date:Created in 21:33 2018\9\10 0010
*/
@D... |
package kodlamaio.hrms.entities.concreates;
import java.time.LocalDate;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import ja... |
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.protocal.c.ate;
final class ay {
String bKW;
ate caK;
int dQm;
int dQo;
int dTR;
String elz;
String nsF;
ay() {
}
public final String toString() {
return "cdnMediaId " + this.elz + " isPlayMode " + this.dQ... |
package com.faisal.evaly.repositories;
import com.faisal.evaly.models.Category;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CategoryRepository extends CrudRepository<Category, Long> {
}
|
package org.linqs.psl.LTR_Rec.modelSettings;
import org.linqs.psl.LTR_Rec.modelSettings.ModelSetting;
import org.linqs.psl.model.term.ConstantType;
import java.util.HashMap;
public class YelpSetting extends ModelSetting {
@Override
public String[] getSettingRules() {
String[] rules = new String[21];... |
package com.zhuzhixu.adminproject.dao;
import com.zhuzhixu.adminproject.entity.ProductEntity;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.Date;
import java.util.List;
public interface ProductMapper {
@Select("select * from t_product")
List<Produ... |
/*
* The programm will show you the reverse of your number
*/
package Lab06C;
/**
*
* @author Aliaksiej Protas
*/
public class Lab06C {
public static void main(String[] args) {
View.print("The programm will show you the "
+ " reverse of your number ");
while (true){
... |
package com.tencent.mm.plugin.webview.ui.tools.widget;
import com.tencent.mm.ui.widget.MMWebView;
import com.tencent.xweb.WebView;
public final class h extends g {
private final b qkG;
public h(MMWebView mMWebView, b bVar) {
super((MMWebViewWithJsApi) mMWebView);
this.qkG = bVar;
}
p... |
package com.sudheer;
import java.util.Date;
import org.hibernate.Session;
import com.sudheer.stock.Stock;
import com.sudheer.stock.StockDetail;
import com.sudheer.util.HibernateUtil;
public class App {
public static void main(String[] args) {
System.out.println("Hibernate one to one (Annotation)");
Session ses... |
package uk.co.samwho.modopticon;
public class Main {
public static void main(String... args) throws Exception {
Modopticon modopticon = DaggerModopticon.builder().build();
modopticon.inits().forEach(Runnable::run);
modopticon.jda().awaitReady();
modopticon.backfiller().run();
... |
import java.util.ArrayList;
/**
* Created by diegobaldassare on 4/12/16.
*/
public class Game {
private ArrayList<Piece> pieces;
private Board board;
private HumanPlayer user = new HumanPlayer(this);
private ComputerPlayer computer = new ComputerPlayer(this);
private UIGame uiGame;
private b... |
package com.example.android.dreamdestinations.Model;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by joycelin12 on 9/21/18.
*/
public class Agents implements Parcelable {
String Id;
String Name;
String ImageUrl;
String Status;
String OptimisedForMobile;
String Type... |
/*
* 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 ... |
int main() {
if (true) {
} else {
}
return 0;
}
|
/*
*实现客户端向服务端发送短信,写什么发送什么(只能发一次),直至客户端写“exit”结束通信
*/
package day17;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Scanner;
import org.junit.Test;
publi... |
package com.countout.portal.servlet;
import org.springframework.data.redis.connection.MessageListener;
/**
* 监听redis过期key
* @author Mr.tang
*/
public interface ExpiredMessageListener extends MessageListener {
}
|
package com.igitras.codegen.common.next;
import com.igitras.codegen.common.next.annotations.NotNull;
import com.igitras.codegen.common.next.exceptions.IncorrectOperationException;
/**
* Created by mason on 1/5/15.
*/
public interface CgClassOwner extends CgFile {
/**
* @return classes owned by this element... |
package fadhel.iac.tn.eventtracker.utils;
import android.app.AlarmManager;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.SystemClock;
import android.s... |
package matth.dungeon.Utility;
import android.app.Activity;
import android.content.Context;
import android.support.constraint.ConstraintLayout;
import android.support.constraint.ConstraintSet;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
public class MainUtility {
public st... |
package com.jim.multipos.ui.reports.hourly_sales;
import android.os.Bundle;
import android.view.Gravity;
import com.github.angads25.filepicker.model.DialogConfigs;
import com.github.angads25.filepicker.model.DialogProperties;
import com.github.angads25.filepicker.view.FilePickerDialog;
import com.github.mjdev.libaums... |
public class ConcreteImplementor2 implements Implementor {
@Override
public void doSomething() {
System.out.println("ConcreteImplementor2 do something...");
}
@Override
public void doAnything() {
System.out.println("ConcreteImplementor2 do anything...");
}
}
|
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
package sellwin.db;
// SellWin http://sourceforge.net/projects/sellwincrm
//Contact support@open-app.com for commercial help with SellWin
//This software is provided "AS IS", without a warranty of any kind.
/**
* This class is a general application level exception that is thrown
* in the database code to indicate t... |
/**********************************************************************************************
* Distributed computing spring 2014 group 4 //Alex Ryder//Nick Champagne//Hue Moua//
* //Daniel Gedge//Corey Jones//
* Project 2 Peer2Peer client/server
*******************... |
package de.zarncke.lib.lang.gen;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import de.zarncke.lib.io.IOTools;
import de.zarncke.lib.lang.ClassTools;
/**... |
package my.Project;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
* 自定义异常类
* @author cyg
* @version 1.0
*/
class NumberOutOfBoundsException extends Exception {
private static final long serialVersionUID = 1L;
NumberOutOfBoundsException() {
super("数字范围错误");
}
}
/**
* 抛出异常测试
* @auth... |
package banyuan.day04.morning.practice01.P05;
public class Test {
public static void main(String[] args) {
Teacher teacher = new Teacher();
teacher.setName("陈浩");
teacher.setHeight(1.7);
teacher.setAge(34);
teacher.setSex('男');
teacher.setId(1123);
System.out... |
package ru.kappers.exceptions;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class MoneyTransferException extends RuntimeException {
protected static final String DEFAULT_MESSAGE = "Money transfer Exception";
public MoneyTransferException(Exception e) {
super(DEFAULT_MESSAGE, e);
log.error... |
package wx.realware.grp.pt.pb.respority.service;
public interface JobService {
public void start();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.