text stringlengths 10 2.72M |
|---|
/**
*
*/
package com.wonders.task.todoItem.model.vo;
/**
* @ClassName: UserIndo
* @Description: TODO(这里用一句话描述这个类的作用)
* @author zhoushun
* @date 2013-1-22 下午02:15:01
*
*/
public class UserInfo {
private String userId;
private String loginName;
private String userName;
private String deptId;
pub... |
/* */ package com.ketonix.ketonixpro;
/* */
/* */ import java.io.PrintStream;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class CalibrationThread
/* */ implements Runnable
/* */ {
/* */ KSync ksync;
/* */ CalibrateDialog gui;
/* */ ... |
package ch14.ex14_03;
public class Test implements Runnable {
private Main obj;
Test(Main obj) {
this.obj = obj;
}
public void run() {
try {
for (;;) {
obj.add(5);
Thread.sleep(10);
}
} catch (InterruptedException e) {
return;
}
}
}
|
package exhaustiveSearch;
import java.util.ArrayList;
import java.util.Arrays;
public class PermutaionsII2 {
public static ArrayList<ArrayList<Integer>> permuteUnique2list(int[] nums) {
ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();
if (nums == null || nums.length == 0) {
return... |
package com.frankinz.disablewheel;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraftforge.client.event.MouseEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import... |
/*
* Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory
* CODE-743439.
* All rights reserved.
* This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool.
*
* Licensed under the Apache License, Version 2.0 (the “Licensee... |
package test.main;
/*
* 1. 산술 연산자 테스트
*
* +, -, *, /, %
*/
public class MainClass01 {
public static void main(String[] args) {
int num1=5;
int num2=2;
// + 연산하기
int sum=10+1;
int sum2=num1+num2;
int sum3=10+num2;
//정수끼리 연산하면 결과는 정수만 나온다.
int result1=5/3;
int result2=num1/num2;
//연산의 결과로 실수 ... |
package rhtn_homework;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.PriorityQueue;
import java.util.StringTokenizer;
public class PROG_더맵게 {
private static StringBuilder sb = new StringBuilder();
public static void main(Stri... |
/**
* Fragment and UI related classes.
*/
package eu.tivian.musico.ui; |
package com.jim.multipos.ui.start_configuration.payment_type;
import android.support.v4.app.Fragment;
import com.jim.multipos.config.scope.PerFragment;
import dagger.Binds;
import dagger.Module;
@Module(includes = PaymentTypePresenterModule.class)
public abstract class PaymentTypeFragmentModule {
@Binds
@Pe... |
package Index.Action;
import Base.Date.DateBase;
import Index.Date.*;
import Index.Model.*;
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.catalina.connector.Request;
import org.apache.catalina.deploy.LoginConfig;
import com.sun.crypto.provi... |
package model;
public final class TC {
public static final String TABLE="user1.tc";
public static final String AYEAR="Ayear";
public static final String SEMESTER="Semester";
public static final String T_ID="T_id";
public static final String C_ID="C_id";
public static final String RATING="Rating";
}
|
/*
* 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 builder;
import bridge.AlgoritamDodavanjaEmisija1;
import bridge.AlgoritamDodavanjaEmisija2;
import bridge.AlgoritamDodavanjaE... |
package la.opi.verificacionciudadana.tabs;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.List;
import la.opi.verificacionciudadana.R;
public class HomePagerAdapter extends FragmentPagerAdapter {
privat... |
package be.spring.app.service;
import be.spring.app.model.Season;
import java.util.List;
/**
* Created by u0090265 on 5/11/14.
*/
public interface SeasonService {
List<Season> getSeasons();
Season getLatestSeason();
}
|
package zuoshen.DP;
import java.util.HashSet;
public class 打印一个字符串的非重复排列 {
public void print_all(char[]chars,int index){
if(index==chars.length){
String res=String.valueOf(chars);
System.out.println(res);
return;
}
HashSet<Character>hashSet=new H... |
package game;
import game.net.Framework;
import game.util.Spring;
public class GameClient {
public static void main(String[] args) {
// Thread t = new Thread(new Runnable(){
// @Override
// public void run() {
// Framework framework = new Framework();
// try {
// framework.connect(8081, "127.0.0... |
package com.tencent.map.lib;
import android.graphics.Rect;
import com.tencent.map.lib.basemap.data.GeoPoint;
import com.tencent.map.lib.gl.JNICallback$c;
import com.tencent.map.lib.gl.JNICallback.b;
import com.tencent.map.lib.gl.JNICallback.d;
import com.tencent.map.lib.gl.JNICallback.e;
import com.tencent.map.lib.gl.... |
package InterfaceDemo;
/**
* "One Interface multiple implementations". Interfaces cannot be used to create
* objects. All methods, variables static, and final (constant) by default. All
* methods in interface usually have empty methods. The subclass should
* implement all methods from the interface, but each subcl... |
package com.tencent.mm.plugin.freewifi.ui;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class FreeWifiPcUI$1 implements OnMenuItemClickListener {
final /* synthetic */ FreeWifiPcUI jnS;
FreeWifiPcUI$1(FreeWifiPcUI freeWifiPcUI) {
this.jnS = freeWifiPcUI;
}
... |
package com.dao.operateRecord.Impl;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.dao.operateRecord.OperateRecordDao;
import com.dao.operateRecord.mapper.OperateRecordMapper;
import com.dao.proxy.mapper.ProxyMapper;
import com.pojo.OperateRecord;
import com.... |
package com.takshine.wxcrm.domain;
import java.util.List;
public class CalendarRss {
private String openid;
private String rssObjectId;
private String rssObjectName;
private String type;
private String rssObjectHeadImage;
private String currDate;
public String getCurrDate() {
return currDate;
}
public ... |
package com.kodilla.testing2.facebook;
import com.kodilla.testing2.config.WebDriverConfig;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
public class FacebookTestingApp {
public static final String XPATH_F... |
package com.tencent.mm.g.a;
import com.tencent.mm.sdk.b.b;
public final class py extends b {
public a caE;
public py() {
this((byte) 0);
}
private py(byte b) {
this.caE = new a();
this.sFm = false;
this.bJX = null;
}
}
|
package com.kunsoftware.bean;
import java.util.HashMap;
@SuppressWarnings({ "serial", "rawtypes","unchecked" })
public class JsonBean extends HashMap {
private String success = "1";
private String message;
public String getSuccess() {
return success;
}
public void setSuccess(String success) {
put("succes... |
package com.xiaoxiao.tiny.frontline.mapper;
import com.xiaoxiao.pojo.XiaoxiaoLeaveMessage;
import com.xiaoxiao.pojo.vo.XiaoxiaoLeaveMessageVo;
import com.xiaoxiao.tiny.frontline.provider.XiaoxiaoLeaveMessageProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
impor... |
package com.pgssoft.httpclient.internal.action;
import com.pgssoft.httpclient.Action;
import com.pgssoft.httpclient.MockedServerResponse;
public final class SetHeaderAction implements Action {
private final String key, value;
public SetHeaderAction(String key, String value) {
this.key = key;
... |
package com.spring.querybuilder;
public class CassandraTest {/*
public static void main(String[] args) {
Cluster cluster = Cluster.builder().addContactPoint("localhost").build();
Session session = cluster.connect("shopping");
MappingManager mappingManager = new MappingManager(session);
ResultSet resul... |
package fr.lteconsulting.commandes;
import java.util.Random;
import java.util.UUID;
import fr.lteconsulting.ApplicationContext;
import fr.lteconsulting.Chanson;
import fr.lteconsulting.Disque;
import fr.lteconsulting.DisqueDejaPresentException;
import fr.lteconsulting.Mots;
import fr.lteconsulting.Saisie;
public cla... |
/**
* Javassonne
* http://code.google.com/p/javassonne/
*
* @author Ben Gotow
* @date Jan 28, 2009
*
* Copyright 2009 Javassonne Team
* 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 Lice... |
package OOD1;
public class ParkingLot {
private final Level[] levels;
public ParkingLot(int numLevels, int numSpotsPerLevel) {
levels = new Level[numLevels];
for (int i = 0; i < numLevels; i++) {
levels[i] = new Level(numSpotsPerLevel);
}
}
public boolean hasSpots(Vehicle v) {
for (Level l: levels) {
... |
package com.example.project_redbus;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class My_BookingL extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceS... |
package com.epam.restaurant.controller.command.impl;
import com.epam.restaurant.controller.command.Command;
import com.epam.restaurant.controller.command.exception.CommandException;
import com.epam.restaurant.controller.name.JspPageName;
import com.epam.restaurant.entity.News;
import com.epam.restaurant.service.NewsSe... |
package com.tt.miniapp;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v4.f.a;
import android.webkit.WebView;
import com.storage.async.Action;
import com.storage.async.Scheduler;
import com.tt... |
package controller;
import model.*;
import x4fit.Utilities;
import java.io.IOException;
import javax.mail.MessagingException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpS... |
package com.lcz.register.web;
/**
* 激活邮件
*/
import java.io.IOException;
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 com.lcz.register.entit... |
package com.jikexueyuan.getphonenum;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.database.Cursor;
import android.provider.ContactsContract.CommonDataKinds.Phone;
public class MyNumber {
public static List<PhoneInfo> lists = new ArrayList<PhoneInfo>();
publi... |
package com.beiyelin.common.document;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.io.IOException;
/**
* Created by xinsh on 2017/9/11.
*/
@RunWith(SpringJUnit4ClassRunner.class)
//@SpringBootTest(classes = DocumentAppli... |
package com.jim.multipos.utils;
import android.app.Dialog;
import android.content.Context;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.text.InputType;
import android.view.View;
import android.view.Window;
import android.widget.FrameLayout;
import android.widget.TextView;
impor... |
package com.jscherrer.personal.deployment;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import java.io.IOException;
import java.util.regex.Pattern;
public class StartUpScriptTest {
@Test
public void defaultScriptHasAllPropertiesReplaced() throws IOException {
String def... |
package javalab3;
import java.util.Scanner;
public class Sumofrows_19BDS0127 {
public static void main(String[] args) {
System.out.println(" Solved by Reg No. : 19BDS0127");
System.out.println(" ---------");
int i,j;
Scanner test=new Scanner(System.in);
System.out.p... |
package net.sf.ardengine.rpg.multiplayer.udplib;
import com.gmail.lepeska.martin.udplib.files.IFileShareListener;
import net.sf.ardengine.rpg.multiplayer.network.INetworkFileListener;
import java.io.File;
/**
* Layer between ArdEngine INetworkFileListener and UDPLib IFileShareListener implementation.
*/
class UDPL... |
package bricks;
public class MediumBrick extends BaseBrick {
private int lives = 3;
public MediumBrick(int x, int y) {
super(x, y);
super.setLives(lives);
super.setBrickType(lives);
}
}
|
package shapes.polygon;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Polygon extends base.ClosedShape {
private int nPoints;
private int[] xPoints;
private int[] yPoints;
protected static final int MIN_LENGTH = 4;
public Polygon() {... |
package ksichenko.oop_task;
public class FixedSalaryEmploy extends Employ {
public FixedSalaryEmploy(String name, String sex, String salary, int id) {
super(name, sex, salary, id);
}
void calculateSalary() {
int salary = 10000;
System.out.println("Employ salary amount: " + salary... |
/*
* Copyright 2015 Michal Harish, michal.harish@gmail.com
*
* 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 ... |
/*
* EntityUtil.java
* This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin.
* $Id$
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
*/
package ru.otus.models;
import javax.json.bind.Jsonb;
import javax.jso... |
package edu.kis.powp.command;
import java.util.List;
public class ComplexCommand implements DriverCommand{
public List<DriverCommand> list;
public ComplexCommand(List<DriverCommand> list){
this.list = list;
}
@Override public void execute() {
for (DriverCommand command:list){
... |
package com.dubbo.dubbo_service.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo_common.dubbo_common.service.UserService;
import org.springframework.stereotype.Component;
@Service(interfaceClass = UserService.class,weight = 100)
@Component
public class UserServiceImpl implements User... |
package testFunction;
public class Tower {
public static void main(String[] args)
{
int nDisks = 3;
doTowers(nDisks,'A','B','C');
}
public static void doTowers(int topN, char from, char inter, char to)
{
if(topN == 1){
System.out.println("Disk 1 from " + from + " to " + to);
} else {
doTowers(topN -... |
package utiles;
import java.rmi.Naming;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event... |
package com.yunhe.billmanagement.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunhe.billmanagement.entity.RunningAccounts;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import... |
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.anno... |
package com.pxene;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.*;
/**
* Created by young on 2014/12/29.
*/
public class Constant {
public static final Logger logger = LogMa... |
package com.sdk4.boot.service;
import com.sdk4.boot.common.BaseResponse;
import com.sdk4.boot.domain.AdminUser;
/**
* 管理用户接口
*
* @author sh
*/
public interface AdminUserService {
/**
* 登录
*
* @param mobile
* @param password
* @return
*/
BaseResponse<AdminUser> loginByMobile(... |
package leti.asd.db;
import leti.asd.db.db_list.DBrecord;
import leti.asd.db.db_list.ListDB;
import java.io.*;
import java.nio.file.Files;
import java.util.List;
/**
* Project transportDB
* Created by nikolaikobyzev on 07.11.16.
*/
class FileController {
public static void saveToFile(ListDB listDB) throws IO... |
package baekjoon.greedy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Test_13305 {
public static void main(String[] args) throws IOException {
//나름 아이디어도 잘 떠올라서 쉽게 풀 수 있겠다고 생각했는데 틀렸다고 떴다.
//나는 먼저 현재 가격보다... |
package com.fleet.graphql.resolver;
import com.coxautodev.graphql.tools.GraphQLMutationResolver;
import com.fleet.graphql.entity.Author;
import com.fleet.graphql.entity.AuthorInput;
import com.fleet.graphql.entity.Book;
import com.fleet.graphql.entity.BookInput;
import org.springframework.stereotype.Component;
/**
*... |
package gov.samhsa.c2s.pcm.service.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class ConsentExportException extends RuntimeException {
/**
* Instantiates a new DocumentSegmentat... |
package inheritance4.service;
public class Employee {
String name;
String address;
int age;
String gender;
public Employee(String name, String address, int age, String gender) {
super();
this.name = name;
this.address = address;
this.age = age;
this.gender = gender;
}
... |
package com.yinghai.a24divine_user.module.divine.index;
import android.content.Context;
import android.view.View;
import com.example.fansonlib.base.BaseDataAdapter;
import com.example.fansonlib.base.BaseHolder;
import com.yinghai.a24divine_user.R;
import com.yinghai.a24divine_user.bean.BusinessBean;
import com.yingha... |
package sevenkyu.paintletterboxes;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
class PaintLetterBoxesTest {
PaintLetterBoxes paintLetterBoxes;
@BeforeEach
public void init() {
paintLetterBoxes ... |
package pl.cwanix.opensun.model.character;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class InventoryModel {
private int id;
private int money;
private int inventoryLock;
private byte[] inventoryItem;
private byte[] tmpInventoryItem;
private byte[] equipItem;
}
|
package Kata4final;
import Kata4final.Histogram;
import Kata4final.HistogramDisplay;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
public class Kata4 {
public static void main(String[] args) throws FileNotFoundException, IOException {
String path... |
package org.leandropadua.knockknock.controllers;
import org.leandropadua.knockknock.models.StringReverser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public c... |
package com.jdk11.ssl.jdk11Client;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.*;
public class Jdk11LoadTest {
//client is share to test connection reuse
Jdk11Client httpClient = new Jdk11Client();
public static String url = "https://localh... |
package com.tencent.mm.plugin.qqmail.ui;
import android.view.View;
import android.view.View.OnFocusChangeListener;
class MailAddrsViewControl$7 implements OnFocusChangeListener {
final /* synthetic */ MailAddrsViewControl mhb;
MailAddrsViewControl$7(MailAddrsViewControl mailAddrsViewControl) {
this.m... |
/*
* 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 ... |
/*
* [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 ... |
package com.example.interface_alfatest;
import android.app.Activity;
public class ActivityInfo extends Activity {
}
|
/**
* Rate.java
*
* Skarpetis Dimitris 2016, all rights reserved.
*/
package dskarpetis.elibrary.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
imp... |
package se.jaitco.queueticketapi.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.*;
import org.redisson.api.RAtomicLong;
import org.redisson.api.RDeque;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.springframework.messaging.simp.... |
package net.liuzd.spring.boot.v2.domain;
import java.io.Serializable;
public class City implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private String name;
private String state;
private String ... |
package com.ssm.wechatpro.service.impl;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.ssm.wechatpro.dao.WechatAppMapper;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.object.OutputObject;
import com.ssm.w... |
public class BoolTest {
public static void main(String args[]) {
boolean y;
y = false;
System.out.println("y is" + y);
y = true;
if (y) {
System.out.println("y is true");
}
System.out.println("10>9?" + (10 > 9));
}
}
|
package com.tencent.mm.plugin.exdevice.ui;
import com.tencent.mm.plugin.exdevice.ui.ExdeviceProfileUI.1;
class ExdeviceProfileUI$1$3 implements Runnable {
final /* synthetic */ 1 iEz;
ExdeviceProfileUI$1$3(1 1) {
this.iEz = 1;
}
public final void run() {
ExdeviceProfileUI.k(this.iEz.... |
package Exceptions;
public class PhoneFormatException extends NameFormatException {
private static final String message = "Неверный формат телефона - ";
String additionalMessage;
public PhoneFormatException(String additionalMessage) {
super(message);
this.additionalMessage = additionalMes... |
package ADD;
import Domain.Order;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import java.util.HashMap;
public class ADD
{
public static final int TIMES = 0;
public static final int SUM = 1;
public static final int MAX = 2;
public static final int MINUS = 3;
public static final int C... |
/* */ package datechooser.autorun;
/* */
/* */ import datechooser.beans.DateChooserCombo;
/* */ import datechooser.beans.DateChooserComboCustomizer;
/* */ import java.awt.FlowLayout;
/* */ import java.awt.GridLayout;
/* */ import java.beans.IntrospectionException;
/* */ import javax.swing.Borde... |
package fr.tenebrae.MMOCore.Utils.Serializers;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import org.bukkit.inventory.ItemStack;
import org.bukkit.util.io.BukkitObjectInputStream;
import org.bukkit.util.io.BukkitObjectOutputStream;
import org.yaml.snakeyaml.external.biz.base64C... |
package org.fhcrc.honeycomb.metapop.fitness;
/**
* Returns the value it was initialized with regardless of the resource.
*
* Created on 24 Apr, 2013
* @author Adam Waite
* @version $Id: SpecifiedCalculator.java 2028 2013-05-09 03:03:14Z ajwaite $
*/
public class SpecifiedCalculator extends FitnessCalculator {
... |
package src;
import src.Enums.ECharacterType;
import src.Enums.EGameKey;
import src.Enums.EWatchMode;
import src.Frame.KeyConstants;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.u... |
/* Написать "сервер", который умеет многопоточно выполнять задачи:
а) Считывать информацию с консоли.
Он считывает строку и номер клиента.
После считывания, строка отправляется на соответствующий клиент
b) Умеет "ждать" подключения нового клиента, при новом подключении клиента,
сокет соединения помещается в н... |
package com.zdzimi.blog.exception;
public class ArticleException extends RuntimeException {
public ArticleException(String title) {
super("Not found: " + title);
}
}
|
package config;
/**
* 一个spring配置类
* 它的作用相当于bean.xml文件
*/
//@ComponentScan("com.gzh" )
public class SpringConfiguration {
}
|
package com.spiderio;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
/**
* @author Pin HU
*
* 21 Oct 2011, 13:39:10
*/
public cla... |
/*
* 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 Forms;
import Clases.Cl_Conectar;
import Clases.Cl_Varios;
import Vistas.frm_ver_ventas;
import java.awt.event.KeyEvent;
impor... |
package com.expedia.beans;
/**
* Represents offers. For now, only hotel offers are supported
*
* @author Alaa Fandi waked75@gmail.com
* @since 2018/02/21
*/
public class Offers {
private Hotel[] hotels;
public Hotel[] getHotels() {
return hotels;
}
public void setHotels(Hotel[] hotels) {... |
package de.adesso.gitstalker.core.requests;
import de.adesso.gitstalker.core.enums.RequestType;
import de.adesso.gitstalker.core.objects.Query;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
public class RequestManagerTest {
@Test
pu... |
package com.example.shared.constants;
public class Constant {
Constant() {
throw new IllegalStateException("Constant class");
}
//HTTP header values
public static final String X_VSOLV_KEY = "x-vsolv-key";
public static final String CONTENT_TYPE = "application/json;charset=UTF-8";
}
|
package java_code.server.handlers;
import com.google.gson.JsonObject;
import com.pubnub.api.PubNub;
import com.pubnub.api.PubNubException;
import java_code.database.DBManager;
import java_code.server.MessageHandler;
import java_code.server.Server;
public class UpdateWaitPerPatronHandler implements MessageHandler {
... |
package sokrisztian.todo.admin.logic.converter;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import sokrisztian.todo.admin.api.model.TodoView;
import sokrisztian.todo.admin.persistance.domain.TodoEntity;
@Component
public class TodoEntityToTodoViewConve... |
package com.jbgames.sandsim.particles;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.math.Vector2;
public class Sand extends Powder{
public Sand(String type, Vector2 pos, float temperature, Vector2 velocity, float density, boolean solid) {
super(type, pos, temperature, v... |
package com.easyArch.client.manager;
import com.cxl.rpc.util.ProxyPush;
import com.cxl.rpc.util.Push;
import com.easeArch.common.entry.User;
public class Friend implements Push {
@Override
public void exec(Object o) {
Object response = ProxyPush.getInstance().getResponse();
if (null!=response&... |
package lista4;
import java.util.Scanner;
public class Exe15 {
public static void main(String[] args) {
// Declaração de variáveis
Scanner entrada = new Scanner(System.in);
int idade = 1;
char sexo = '\u0000';
char exp = '\u0000';
int contM = 0;
int contMs = 0;
int contF = 0;
double idadeMedia = 0;... |
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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:... |
package Questao01;
import java.util.Random;
/**
* 17/03/2020
* @author thais
*/
public class Main {
public static void main(String[] args) {
Random gerador = new Random(); // Criando gerador de inteiro
// ############### Criando threads ###############
// Thread 01
... |
/*
* Filename: SearchResults.java
*
* Programmer: Ekta Dosad
* Date: 11/19/2015
*/
package automationFramework;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
imp... |
package com.example.demo.api.transaction;
import com.example.demo.api.transaction.request.TransactionDetailRequest;
import com.example.demo.api.transaction.request.TransactionListRequest;
import com.example.demo.api.transaction.result.TransactionDetailResult;
import com.example.demo.api.transaction.result.TransactionL... |
package esir.dom11.nsoc.model;
import java.util.Date;
public class AgendaEvent {
private final Date start;
private final Date end;
public AgendaEvent() {
start = new Date();
end = new Date();
}
public AgendaEvent(Date start, Date end) {
this.start = start;
this.e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.