text stringlengths 10 2.72M |
|---|
/*
* Copyright (C) 2015 Adrien Guille <adrien.guille@univ-lyon2.fr>
*
* 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, either version 3 of the License, or
* (at your option) any later vers... |
package com.tdr.registrationv3.bean;
/**
* 按钮跳转对象
*
*/
public class ItemModel {
private String rolePower;//权限编号
private String itemName;//该Item的名字
private int itemBitResc;//本地图片资源
private int size;//指令条数
public String getRolePower() {
return rolePower;
}
public void setRolePowe... |
package com.example.dolly0920.item5;
public interface Car {
public void start();
public void accelerate();
public void slowdown();
public void stop();
}
|
public class name {
public static void main(String[] args ){
String text = "Hello World!";
System.out.println(text);
double doubleNum = 7000000000.;
float floautNum = 213020f;
boolean boolOne = true;
boolean boolTwo = false;
int apple = 1;
if (apple... |
package myGame;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
public class DeathScreen extends JPanel{
/**
*
*/
private static final long serialVersion... |
package com.anderson.pontointeligente.api.entities;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
... |
package com.test;
import java.util.ArrayDeque;
import java.util.HashMap;
import java.util.HashSet;
import com.test.base.Solution;
/**
* 构建一个图,超时
*
* @author YLine
*
* 2019年10月15日 下午9:11:53
*/
public class SolutionA implements Solution
{
@Override
public int numBusesToDestination(int[][] routes, int S,... |
package br.com.branquinho.jpa.venda.web.controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import br.com.branqu... |
package com.example.gpssample;
import java.util.LinkedList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.location.GpsSatellite;
import android.location.GpsStatus;
import android.location.Location;
import android.location.LocationListener;
import android.location.L... |
package GUIVentti;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class Pelaaja {
private Korttipakka pelaajanKasi;
private String pelaajanNimi;
private int pelaajanPisteet;
private boolean onTalo, onVentti;
public Pelaaja(String nimi, boolean onkoTalo) {
... |
package com.zeal.common.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by zeal on 2017/4/7.
*/
public class DateUtils {
public static String getWeek(long date) {
SimpleDateFormat sdf = new SimpleDateFormat("u... |
package com.utils;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
*
* @作者 张剑
* @版本 1.1
* @日期 2014年8... |
package Arrays;
public class Merge2SortedArr {
public static void main(String[] args) {
ArrayOperation ao = ArrayOperation.getInstance();
int[] a=ao.readElement();
System.out.println("Entered first sorted array elements are: ");
ao.dispArr(a);
int[] b=ao.readElement();
System.out.println("Entered second ... |
package test;
import java.util.HashMap;
import br.ufrgs.MASBench.Entity;
import br.ufrgs.MASBench.NodeID;
import br.ufrgs.MASBench.TickDampedCommunicationAdapter;
import br.ufrgs.MASBench.BinaryMaxSum.Factor.SelectorFactor;
import br.ufrgs.MASBench.BinaryMaxSum.Factor.WeightingFactor;
import br.ufrgs.MASBench.Solver.... |
package com.capstone.kidinvest.models;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;
@Entity
@Table(name = "stocks")
public class Stock {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(nullable = false)
private String name;
@... |
package com.example.chordnote.di.module;
import android.content.Context;
import androidx.appcompat.app.AppCompatActivity;
import com.example.chordnote.data.DataManager;
import com.example.chordnote.di.ActivityContext;
import com.example.chordnote.ui.booklist.BookListPresenter;
import com.example.chordnote.ui.bookli... |
/*******************************************************************************
* Copyright 2014 See AUTHORS file.
* <p>
* 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
* <p>
* http://w... |
package br.com.webscraping.b3;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
publ... |
package com.example.customer.entity;
public enum RoleName {
ROLE_ADMINISTRATOR, ROLE_USER
} |
package Graph.Utilities;
import Graph.Structure.Node;
/**
* Created by Jok3r on 13.01.2017.
*/
public class Constants {
public static final int SIZE_MULTIPLIKATOR = 7;
public static final int FRAME_SIZE_X = 155 * SIZE_MULTIPLIKATOR;
public static final int FRAME_SIZE_Y = 100 * SIZE_MULTIPLIKATOR;
... |
package com.energytrade.app.dto;
import java.util.Date;
import java.util.List;
import com.energytrade.app.model.EventSetEventDto;
public class AllEventSetDto extends AbstractBaseDto {
private int eventSetId;
private String eventSetName;
private String eventSetStatus;
private int userId;
private String userName... |
package com.ledongtech.test.druid;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;
import com.alibaba.druid.pool.DruidDataSource;
public class MySQLPool
{
private static MySQLPool instance; //????????
private static String jdbcUrl; //mysql????... |
/*
Copyright 2006 thor.jini.org Project
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 ... |
package ru.job4j.utils;
import org.bouncycastle.crypto.generators.OpenBSDBCrypt;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
* Реализует кодировщик паролей с использованием алгоритма BCrypt.
* @version 2019-08-01
* @since 2019-07-30
*/
public class CustomBCryptPasswordEncode... |
package kr.co.lifesolution.repository.mapper;
import java.util.List;
import kr.co.lifesolution.repository.domain.Staff;
public interface StaffMapper {
List<Staff> selectStaff();
}
|
/*
* (C) Copyright 2011 Marvell International Ltd.
* All Rights Reserved
*
* MARVELL CONFIDENTIAL
* Copyright 2011 ~ 2014 Marvell International Ltd All Rights Reserved.
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell International L... |
/*
* (C) Copyright IBM Corp. 2020.
*
* 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 w... |
package pl.edu.uj.fais.amsi.bio;
import pl.edu.uj.fais.amsi.main.Game;
/**
*
* @author Michał Szura
*/
public class Bacteria extends MapObject {
//Very Empty Class
public Bacteria(int objectPosition) {
super(Game.rules.getBacteriaStartingWeight(), objectPosition);
}
}
|
import com.sun.xml.internal.fastinfoset.util.ValueArray;
/**
* Created with IntelliJ IDEA.
* User: dexctor
* Date: 12-12-21
* Time: 上午10:44
* To change this template use File | Settings | File Templates.
*/
public class MyLinkedSeparateChainingHashST<Key, Value> {
private int M;
private int N;... |
package com.esum.comp.ebms.outbound;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.apache.cxf... |
package chapter_two.linked_lists;
/**
* Date 06/06/20.
*
* Implement an algorithm to find the kt to last element of a singly linked list.
* A more optimal, but less straightforward, solution is to implement this iteratively.
* We can use two pointers, p1 and p2. We place them k nodes apart in the linked list by p... |
import javax.swing.*;
public class MyButton extends JButton {
int x;
int y;
MyButton(int x, int y){
super();
this.x=x;
this.y=y;
}
}
|
package com.egreat.adlauncher.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import o... |
package com.hp.app;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@RequestMapping("/hello")
public String hi() {
return "My First SpringBoot App";
}
}
|
package tn.esprit.spring.service;
import java.util.List;
import tn.esprit.spring.entity.Mission;
public interface IMissionService {
long ajouterMission(Mission mission);
void deleteMission(int id);
List<Mission> getMissions();
long getMissionNumber();
Mission MissionUpadate(Mission Miss);
}
|
package de.mneifercons.webdriver;
/*
* Copyright (c) 2020 Markus Neifer
* Licensed under the MIT License.
* See file LICENSE in parent directory of project root.
*/
public class App
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
|
package com.gaoshin.fbobuilder.client.editor;
public class CircleEditor extends ShapeEditor {
}
|
/*
* 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 copyingfile;
import java.io.*;
/**
*
* @author Rami Dannah
*/
public class Ex extends Reader{
@Override
public int ... |
package com.array;
import java.util.Stack;
public class Test {
@org.junit.Test
public void test1() {
MyArray<Integer> arr = new MyArray<>();
for(int i=0;i<10;i++) {
arr.addLast(i);
}
System.out.println(arr);
arr.add(5, 100);
//arr.removeElement(5);
System.out.println(arr);
/*arr.addFirst(-1);
... |
package com.company;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Main {
public static... |
package comp5134.model;
public class FlavorDecorator extends IceCreamDecorator{
public FlavorDecorator(IceCream iceCream, int price) {
super(iceCream);
// TODO Auto-generated constructor stub
myPrice = price;
totalPrice = iceCream.totalPrice;
for (int i=0;i<iceCream.getObserverList().size... |
/*
* (C) Mississippi State University 2009
*
* The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is
* a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries
* and wapplets are ... |
/*
* (C) Mississippi State University 2009
*
* The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is
* a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries
* and wapplets are ... |
/*
* 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 com.innovaciones.reporte.dao;
import com.innovaciones.reporte.model.DetalleEgresoInventario;
import java.util.List;
/**
*
*... |
package com.example.yui.games;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Toast;
public class SettingTime1 e... |
package com.trump.auction.cust.api.impl;
import com.cf.common.utils.ServiceResult;
import com.trump.auction.cust.CustApplication;
import com.trump.auction.cust.domain.UserShippingAddress;
import com.trump.auction.cust.service.UserShippingAddressService;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... |
package com.base.utils;
import java.util.Map;
import java.util.Set;
import com.base.host.HostApplication;
import com.heihei.model.msg.due.DueMessageUtils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;... |
package telas;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JTextPane;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.event.ActionEvent;
import... |
/*
* 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 ... |
package org.example.codingtest.z_quiz.array_string;
import com.google.common.collect.Lists;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
* input 으로 txt 와 pat 문자열이 주어질 때, txt 문자열 내에 순서와 상관없이 pat 문자열이 포함되어 있는 인덱스의 위치를 리턴하라.
*
* EX)
* txt = "BACDGABCDA"
* pat = "ABCD"
*
... |
/*
* 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 com.neo.heladeria.entities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
import j... |
package io.nuls.consensus.model.dto.output;
import io.nuls.consensus.model.bo.tx.txdata.Agent;
import io.nuls.base.basic.AddressTool;
import io.nuls.core.crypto.HexUtil;
import io.nuls.core.model.BigIntegerUtils;
import io.nuls.core.rpc.model.ApiModel;
import io.nuls.core.rpc.model.ApiModelProperty;
/**
* 节点基础信息类
*... |
/*
* MIT License
*
* Copyright (c) 2023 Glare
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... |
package com.example.snapup_android.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TrainSerial {
private int serial;
private Date date;
private String run_code;
... |
/* Ara - capture species and specimen data
*
* Copyright (C) 2009 INBio ( Instituto Nacional de Biodiversidad )
*
* 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, either version 3 of the L... |
package com.zhiyou.service;
import java.util.List;
import com.zhiyou.model.Course;
import com.zhiyou.model.Speaker;
import com.zhiyou.model.Subject;
import com.zhiyou.model.Video;
import com.zhiyou.model.Videos;
public interface SubjectService {
public List<Subject> selectAll();
public Subject select... |
package com.javarush.task.task26.task2601;
import java.util.*;
import java.util.stream.Collector;
/*
Почитать в инете про медиану выборки
*/
public class Solution {
public static void main(String[] args) {
/* Integer[] array = {13, 8, 15, 14, 5, 17};
System.out.println(Arrays.toString(sort(array))... |
import java.io.*;
import java.util.Scanner;
public class OrphanBook
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int su=0;
int[]arr=new int[100];
for(int i=0;i<n;i++)
{
arr[i]=sc.nextInt();
su=su+arr[i];
}
... |
package api.nivelensennanza;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping({"nivelensennanza"})
public class RestControladorNivelEnsennanza {
... |
package classes;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Iterator;
import org.apache.log4j.Logger;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.xssf.usermodel.X... |
package com.firedata.qtacker.service;
import com.firedata.qtacker.service.dto.CompanyExternDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
/**
* Service Interface for managing {@link com.firedata.qtacker.domain.CompanyExtern}.
*/
public... |
class A {
public char x = 'A';
public void getX() {
System.out.println("getX() from A. Value of x = " + x);
}
}
class B extends A {
//public char x = 'B';
public void getX() {
System.out.println("getX() from B. Value of x = " + x);
}
}
public class C extends B {
public char x = 'C';
public... |
import java.util.*;
class Q9
{
public static void main(String[] args) throws InputMismatchException
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println("1. Display odd divisors");
System.out.println("2. Display even divisors");
int ch = sc.nextInt();
System.ou... |
package AcademyHaru.HaruE2EProject;
import java.io.IOException;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import pageObjects.LandingPage;
import pageObjects.LoginPage;
import resources.Base;
public class HomePageTest extends Base {
//Need to call methods written in Base class, ... |
package com.sshfortress.dao.asset.mapper;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.sshfortress.common.entity.AssetDst;
import com.sshfortress.common.model.DstListByAssetId;
import com.sshfortress.common.model.ListByDst;
... |
package com.android.wendler.wendlerandroid.main.model;
import android.annotation.SuppressLint;
import android.content.SharedPreferences;
import com.android.wendler.wendlerandroid.utils.SharedPrefUtils;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import o... |
package com.kkb.imugraph;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class GraphView extends V... |
package br.mp.mpac.atendimento.api;
import br.mpac.entidade.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.*;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
@Path("/")
@Consumes("application/json")
@Produces("application/json")
public class Resources {
@P... |
import java.io.*;
import java.util.ArrayList;
import shapes.*;
/* your tasks:
* create a class called ShapeException
* createShape should throw a ShapeException
* in main(), you should catch the ShapeException
*
*/
public class ReadShapeFile {
public static GeometricObject createShape(String shapeName) throws... |
//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.2/xslt/JavaClass.xsl
package com.aof.webapp.form.helpdesk;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;... |
package bouns;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class JDBCByProperties {
public static void main(String[] args) {
// 只需要将不同的驱动放在配置文件中,就可以实现连接不同的数据库
try {
... |
@javax.xml.bind.annotation.XmlSchema(namespace = "http://xml.apache.org/xml-soap")
package org.apache.xml.xml_soap;
|
package it.polito.tdp.extflightdelays.model;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.jgrapht.Graphs;
import org.jgrapht.event.ConnectedComponentTraversalEvent;
import org.jgrapht.event.EdgeTraversalEvent;
import org.jgrapht.e... |
package gg.bayes.challenge.service.impl;
import gg.bayes.challenge.persistance.model.SpellPO;
import gg.bayes.challenge.persistance.repositories.SpellRepository;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Se... |
package org.valdi.entities.management.channel;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.logging.Level;
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.valdi.entities.iDisguise;
import org.valdi.entities.manage... |
public class Woman extends Person{
@Override
public void setHair(String hair) {
super.setHair(hair);
}
@Override
public void setTeeth(int teeth) {
super.setTeeth(teeth);
}
}
|
package com.xwj.entity;
/**
* @Description TODO
* @Author yuki
* @Date 2018/8/6 10:01
* @Version 1.0
**/
public class ColorSet {
private Color color;
public Color getColor() {
return color;
}
public void setColor(Color color) {
this.color = color;
}
@Override
public ... |
package ch11;
import java.util.*;
public class TreeSetLotto {
public static void main(String[] args) {
Set set = new TreeSet(); // 범위 검색, 정렬, 정렬할 필요 없음
// Set set = new HashSet<>(); // 정렬 필요
for(int i=0; set.size()<6; i++) {
int num = (int)(Math.random()*45)+1;
set.add(num); //set.add(new Integer(n... |
package ru.sdevteam.videostreamer;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
public class Connectio... |
package chapter_one.arrays_and_strings;
/**
* Date 16/05/20.
* @Author Simona Oancea
*
* 1.4 Write a method to replace all spaces in a string with "%20".
* You may assume that the string has sufficient space at the end
* of the string to hold the additional characters, and that you are
* given the "true" length... |
/*
* 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 com.ut.healthelink.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Generated... |
package com.example.fisso.morpiontest.view;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import com.example.fisso.morpiontest.R;
public class Regles extends AppCompatActivity {
ImageView pointGauche;
Im... |
package edu.inheritance.newbold.griffin;
import edu.jenks.dist.inheritance.*;
public class Item implements Buyable{
public boolean bulk;
public double weight;
public double price;
public double totalTax;
public double totalScaleWeight;
public double pricePerPound;
public Item(boolean bulk){
this... |
package com.game;
/**
* Interface définissant les constantes de traitement liées aux étapes du jeu.
* @author pierrot
*/
public interface InterfaceLOTR {
public final static int SERVEUR_RECEPTION_JOUEURS = 3;
public final static int SERVEUR_ENVOI_JOUEURS = 2;
public final static int CREATION_JOUEURS = 1;
publ... |
package commands.client.game;
import java.util.List;
import commands.client.game.sync.SyncGameClientCommand;
import core.client.ClientFrame;
import core.client.GamePanelOriginal;
import core.player.PlayerInfo;
import net.client.ClientConnection;
public class EnterOriginalGameRoomGameClientCommand implements SyncGame... |
package com.easytoolsoft.commons.lang.pair;
/**
* @author zhiwei.deng
* @date 2017-03-25
**/
public class KeyValuePair {
private String key;
private String name;
public KeyValuePair() {
}
public KeyValuePair(final String key, final String name) {
this.key = key;
this.name = nam... |
package Problem_1269;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
static int Aidx, Bidx;
public static void main(String[] args) throws IOException {
BufferedReader br = new Bu... |
package Java;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Created by User on 16-07-2017.
*/
public class OnlineTest1 {
public static String test(String s) {
Map<String, Integer> map = new HashMap<>();
Set<String> set = new HashSet<>();
... |
package com.windtalker.model;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.iid.FirebaseInstanceId;
import com.windtalker.dto.DTOMessage;
import com.windtalker.tools.ToolsFirebase;
import jav... |
package com.openfeint.game.message;
public interface Message {
/**
* @return sender id
*/
String getFrom();
/**
* @return recipient id. A null value means a broadcast message
*/
String getTo();
}
|
package com.myou.appback.modules.base;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.lang.StringUt... |
package com.birivarmi.birivarmiapp.model;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="BV_CURRENCY")
@DiscriminatorValue("BV_CURRENCY")
public class Currency extends BirivarmiItem{
@Column(name="CO... |
package kr.ac.kopo.day02.homework;
import java.util.Scanner;
public class HomeworkMain04 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("첫번째 정수 입력: ");
int first = sc.nextInt();
System.out.print("두번째 정수 입력: ");
int second = sc.nextInt();
sc.close();
... |
package Agents;
import Classes.InformStationState;
import jade.core.AID;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;
import jade.core.behaviours.OneShotBehaviour;
import jade.core.behaviours.TickerBehaviour;
import jade.domain.DFService;
import jade.domain.FIPAAgentManagement.DFAgentDescriptio... |
import java.util.*;
public class Anagrams {
public static List<Integer> allAnagrams(String s, String l) {
// Write your solution here.
List<Integer> result = new ArrayList<>();
if (s == null || s.length() == 0 || l == null || l.length() == 0) return result;
HashMap<Character, Integer> eleM... |
package com.sozolab.clientserver;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.ArrayList;
public class UDPListAdapter extends BaseAdapter {
private ... |
package com.mcode.nescompiler.program.directives;
import java.util.ArrayList;
import java.util.List;
import com.mcode.nescompiler.program.AddressTable;
import com.mcode.nescompiler.program.Parameter;
public class AdjustAddressDirective implements Directive {
private List<Parameter> params = new ArrayList<Parameter>... |
package de.varylab.discreteconformal.unwrapper;
import static de.varylab.discreteconformal.util.CuttingUtility.cutManifoldToDisk;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import no.uib.cipr.matrix.DenseVector;
import no.uib.cipr.matrix.Matrix;
import de.jtem.halfedgetools.adapter.Adap... |
package my.finder.console.service;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
public class NoReasultSearchPerDay implements Job {
public void execute(JobExecutionContext context)
throws JobExecutionException {
java.util.Calendar cal... |
package generating;
import java.util.Calendar;
import java.util.Random;
public class InterestRateColumnGenerator implements ColumnGenerator{
public String generateColumnValue(Calendar[] benchTime, String[] tradeDate,
boolean[] tradeDateGenerateflag,boolean[] tradeIdExistence,int rowsNumber){
String fd =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.