text stringlengths 10 2.72M |
|---|
package com.cngl.bilet.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import ... |
package model.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.Nami... |
package com.javaex.practice3;
import java.util.Scanner;
public class Ex16 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
/* 5의 배수가 아닌 % -> 0 인 코드. WRONG
System.out.print("숫자를 입력하세요: ");
int num = input.nextInt();
int factor = 1;
int a = 0;
int sum =... |
package com.rui.cn.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSu... |
package 배열사용;
public class 배열복습 {
public static void main(String[] args) {
// 배열을 마나들 때 값을 처음부터 알고 있는 경우
int[] num = {100, 200, 300};
num[1] = 500;
for (int i = 0; i < num.length; i++) {
System.out.println(num[i]);
}
for (int x : num) {
System.out.println(x);
}
// 값을 처음에 모르고 있다가 나중에 넣는 경우
... |
package capitulo08;
public class ComplexTest {
public static void main(String[] args) {
float i = -1;
Complex c1 = new Complex (12.066f,14.006f);
Complex c2 = new Complex (6.333f,2.004f);
displayEquation("Equacao 1: ", c1);
displayEquation("Equacao 2: ", c2);
sumReal(i, c1, c2);
}
private sta... |
package oop.ex6.classification;
import oop.ex6.fileanalyzer.BadLineFormatException;
/**
* bad condition exception
*/
public class BadConditionException extends BadLineFormatException {
/** prevents annoying warning */
private static final long serialVersionUID = 1L;
}
|
package com.simplilearn.set;
import java.util.HashSet;
import java.util.Set;
class User{
public String name;
public String gender;
User(){}
User(String name,String gender){
this.name = name;
this.gender = gender;
}
}
public class ExUserHashset {
public static void main(String[] args) {
Set<User> user... |
package com.bridgeit.batchprocessing;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
public class BatchStatement {
static Scanner scanner=new Scanner(System.in);
public static void main(String[] args) {
batchProcessin... |
package com.tencent.mm.plugin.fav.ui.detail;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import com.tencent.mm.a.e;
import com.tencent.mm.g.a.cb;
import com.tencent.mm.plugin.fav.a.b;
import com.tencent.mm.plugin.fav.a.h;
import com.tencent.mm.plugin.fav.ui.detail.FavoriteImg... |
package com.allianz.ExpenseTracker.Reports;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
import org.apache... |
package edu.bu.met622.threadtest;
public class SecondThread implements Runnable{
@Override
public void run() {
for (int j =0; j<100 ; j++) {
System.out.println("-from SecondThread: ===> j:"+j);
}
}
}
|
package com.tencent.mm.plugin.shake.c.a;
public final class e {
public String cad = "";
public String dxh = "";
public int end_time;
public String huU = "";
public String huW = "";
public String huX = "";
public String huY = "";
public int hwF = 0;
public String hwh = "";
public... |
/*
* [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 te... |
package com.leetcode.easy.array;
/**
* Created by saml on 9/25/2017.
* <p>
* Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.
* <p>
* You may assume the integer do not contain any leading zero, except the number 0 itself.
* <p>
* The digits are stored such that t... |
package com.ntxdev.zuptecnico;
/**
* Created by igorlira on 4/27/14.
*/
public interface SearchBarListener {
public void onSearchTextChanged(String text);
}
|
package ch.gelion.searchcolumn;
import java.sql.SQLException;
import java.text.ParseException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author gP
*/
public class Main {
private Logger log;
private SearchColumn searchcolumn;
private final String sSearch;
publi... |
import javax.print.DocFlavor;
/**
* Created by djawed on 22/06/17.
*/
abstract class animal {
protected String couleur;
protected int poid;
protected void manger() {
System.out.print("je suis");
}
protected void boire() {
System.out.print("je bois de leau ");
}
abstrac... |
package com.suntiago.network.network.rsp;
/**
* Created by 潮雪野 on 2017/10/28.
*/
public class FileUploadResponse extends BaseResponse {
public String extra;
}
|
package com.example.passin.domain.password;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class SavePasswordDto {
private String hostName;
private String email;
private String password;
private String originalPassword;
private long userId;
}
|
package com.kunsoftware.service;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.t... |
package com.qa.accessmods;
public class BankRunner {
public static void main(String[] args) {
BankAccount hsbc = new BankAccount();
hsbc.setName("randName");
}
}
|
/*
* Copyright (C) 2022-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
package material.events;
import material.components.*;
public abstract class Event
{
public _InteractiveComponent source;
protected Event(_InteractiveComponent source) {
this.source = source;
}
} |
/**
* @Title: OfficeServiceImpl.java
* @package com.rofour.baseball.service.officemanage.impl
* @Project: baseball-yeah
* @author WJ
* ──────────────────────────────────
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.service.officemanage.impl;
import com.fasterxml.jackson.core.type.TypeReference;
i... |
package com.a1tSign.techBoom.data.dto.user;
import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@EqualsAndHashCode
@ToString
public class UserStatisticDTO {
String username;
double xCoordinate;
double yCoordinate;
}
|
package LC0_200.LC150_200;
import java.util.Arrays;
public class LC164_Maximum_Gap {
public int maximumGap(int[] nums) {
if (nums.length < 2) return 0;
Arrays.sort(nums);
int max = 0;
for (int i = 0; i < nums.length - 1; ++i) {
int gap = nums[i + 1] - nums[i];
... |
package boj1011;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main1 {
// 문제가 잘못된 듯 함
public static void main(String[] args) throws NumberFormatException, I... |
package com.zhouyi.business.core.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 账号流水
*
*
*/
public class PersonExchangeDetail implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private String accNo;
priva... |
import java.io.*;
import java.net.*;
public class mst1
{
public static void main(String args[]) throws IOException
{
InetAddress g=null;
MulticastSocket s=null;
int port=0;
String msg;
try
{
g=InetAddress.getByName("239.1.2.4");
port=3457;
msg="Hey there we are threaded!";
DatagramPacket p... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.agfa.dach.support.internal.atms.dao;
import com.agfa.dach.support.internal.atms.entity.User;
import javax.enterprise.injec... |
package naruter.com.outsourcing.vo;
import org.apache.ibatis.type.Alias;
import org.springframework.stereotype.Component;
@Alias("ci")
public class ClientInfo {
private Integer membernum;
private String companyname; /*회사이름*/
private String companynumber; /*사업자번호*/
private String companyaddress; /*회사 주소*/
privat... |
package com.itheima.dao;
import com.itheima.pojo.OrderSetting;
import java.util.Date;
import java.util.List;
import java.util.Map; /**
* 预约设置接口
*/
public interface OrderSettingDao {
/**
* 根据预约日期查询是否已经设置预约
* @param orderDate
* @return
*/
int findCountByOrderDate(Date orderDate);
/**
... |
package in.dailyhunt.internship.userprofile.endpoints;
import in.dailyhunt.internship.userprofile.client_model.request.NewsComponentsRequest;
import in.dailyhunt.internship.userprofile.client_model.request.SourceRequest;
import in.dailyhunt.internship.userprofile.client_model.response.*;
import in.dailyhunt.internship... |
package com.jim.multipos.ui.signing.sign_up.view;
import com.jim.multipos.core.BaseView;
/**
* Created by DEV on 31.07.2017.
*/
public interface RegistrationConfirmView extends BaseView {
}
|
package com.tencent.mm.ak.a.a;
import com.tencent.mm.ak.a.c.h;
import com.tencent.mm.sdk.platformtools.x;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Conditi... |
package com.example.raktseva;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
import androidx.recycl... |
//
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.3.0
// Vedere <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generat... |
package com.example.ocenika.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import com.example.ocenika.R;
im... |
package leecode.Array;
import java.util.ArrayList;
import java.util.List;
public class 寻找旋转排序树组的最小值_153 {
public static int findMin(int[] nums) {
int start=0;
int end=nums.length-1;
while (start<=end){
if(nums[start]<=nums[end]){//数组没有旋转
return nums[start];
... |
package springbook.user.service;
import java.util.List;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.DefaultTransactionDefinition;
import springbook.user.domain.User;
public class... |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
/*
* 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.
*/
/**
*
* @author Muzyk
*/
public class FlightServic... |
package cn.wycclub.service;
import cn.wycclub.dto.CartBean;
import cn.wycclub.dto.CartInfo;
import java.util.List;
/**
* 购物车业务逻辑层接口
*
* @author WuYuchen
* @create 2018-02-14 23:59
**/
public interface BusinessCartService {
boolean insertCart(CartInfo cartInfo) throws Exception;
bool... |
public class Task {
private int id;
private static int i =1;
private TaskType taskType;
private TaskStatus taskStatus;
private User user;
public void setTaskStatus(TaskStatus taskStatus,User user) {
if(this.user.getId()== user.getId())
this.taskStatus = taskStatus;
else
System.out.println("You cann... |
package com.fitpolo.support.entity.req;
/**
* @Date 2017/5/14 0014
* @Author wenzheng.liu
* @Description 久坐提醒
* @ClassPath com.fitpolo.support.entity.req.SitLongTimeAlert
*/
public class SitLongTimeAlert {
public int alertSwitch; // 久坐提醒开关,1:开;0:关;
public String startTime;// 开始时间,格式:HH:mm;
public Stri... |
/**
*
*/
package game.menubar;
import game.help.HelpWindow;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.ImageIcon;
/**
* @author Jan
*
*/
public class OpenHelpAction extends AbstractAction {
/**
*
*/
private static final long serialVer... |
package khmil;
public class BinarySearch {
public static void modifiedBinarySearch(int key, int[] arr) {
int first = 0;
int last = arr.length - 1;
int target = -1;
while (first <= last) {
int mid = (last + first) / 2;
if (arr[mid] == key) {
t... |
package cs3500.animator.model.featurestate;
import cs3500.animator.view.DrawingStrategy;
import java.awt.Color;
/**
* This abstract class AbstractFeatureState implements all operations specified by the FeatureState
* interface. An instance of this class represents the instantaneous state of a shape at a given
* ti... |
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Player implements Runnable {
// Methode die den Player bewegt
private int highscore;
static int xkoordinate, ykoordinate, max_xkoordinate, max_ykoordinate;
// private byte herzen;
//... |
package beanfactory;
import annotation.Autowire;
import annotation.Component;
import reader.BeanDefinitionReader;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/***
*
*@Author Chen... |
package Selinium;
public class Q5Arrylist {
public static void main(String[] args) {
int a[] = {12,1,32,3};
int b[] = {0,12,2,23};
int c []=new int[a.length+b.length];
int location =0;
for(int i=1;i<a.length;i=i+2) {
c[i]=a[i];
location++;
}
for(int i=0; i<b.length;i=i+2) {
c[i]=b[i];... |
package com.tencent.mm.ui;
import com.tencent.mm.ui.ae.d;
public class ae$c {
int bGz = 0;
boolean tpO = false;
boolean tpP = false;
d tpQ;
public ae$c(d dVar) {
this.tpQ = dVar;
}
}
|
//package falconrobotics.scoutingprogram;
//
//import android.bluetooth.BluetoothAdapter;
//import android.bluetooth.BluetoothServerSocket;
//import android.bluetooth.BluetoothSocket;
//import android.content.Intent;
//import android.util.Log;
//
//import java.io.IOException;
//import java.io.InputStream;
//import java... |
package org.sqlflow.parser;
import java.util.ArrayList;
import org.apache.calcite.sql.SqlKind;
import org.apache.calcite.sql.SqlNode;
import org.apache.calcite.sql.parser.SqlParseException;
import org.apache.calcite.sql.parser.SqlParser;
public class CalciteParserAdaptor {
public CalciteParserAdaptor() {}
// Pa... |
package com.claycorp.nexstore.api.entity;
public class ShipmentItems {
private String shipmentId;
private OrderItem orderItem;
public ShipmentItems() {
}
public String getShipmentId() {
return shipmentId;
}
public ShipmentItems setShipmentId(String shipmentId) {
this.shipmentId = shipmentId;
return th... |
/*
Мастям игральных карт присвоены порядковые номера: 1 — пики, 2 — трефы, 3 — бубны, 4 — червы. Достоинству карт, старших десятки, присвоены номера: 11 — валет, 12 — дама, 13 — король, 14 — туз. Даны два целых числа: N — достоинство (6 ≤ N ≤ 14) и M — масть карты (1 ≤ M ≤ 4). Вывести название соответствующей карты ви... |
package com.vilio.wct.glob;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.xml.parsers.DocumentBuilder;
import ... |
package edu.illinois.finalproject;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import edu.illinois.finalproject.PlayerGuides.PlayerGuides;
import edu.illinois.finalproj... |
/* */ package datechooser.autorun;
/* */
/* */ import datechooser.beans.DateChooserBean;
/* */ import datechooser.beans.locale.LocaleUtils;
/* */ import datechooser.events.SelectionChangedEvent;
/* */ import java.awt.Dimension;
/* */ import java.awt.Toolkit;
/* */ import java.awt.event.... |
package com.edgedx.covid.util;
public class Constants {
public static final String IMAGES_FOLDER_PATH = "/home/ubuntu/images/";
}
|
package cs213.photoAlbum.simpleview;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.List;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.D... |
package com.hew.data_pre_process.controller;
import com.hew.data_pre_process.service.DataInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
import ... |
package com.dayuanit.shop.serviceImpl;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayuanit.shop.except... |
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.11
// Visite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema d... |
public class EmployeeManager {
}
|
package com.bank.service.ui.userlogin;
import android.content.Context;
import com.bank.service.ui.statements.domain.model.StatementList;
import com.bank.service.ui.statements.domain.model.Statements;
import java.util.ArrayList;
import java.util.List;
public class UserLoginPresenter implements ILogin.Presenter {
... |
package com.appg.remote_control_part;
import android.app.Application;
/*
UserClass
유저 정보 및 차량 정보, 상태 등을 저장하고 있는 클래스입니다.
*/
public class UserClass extends Application {
private static String userName; //이름
private static String userID; //유저의 로그인 ID
private static String userEmail; //유저의 이메일
private ... |
package com.example.crud;
import org.bson.Document;
import com.mongodb.BasicDBObject;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
public class MongoUpdate {
public static void main(String[] args) {
//获取连接
MongoClient client = new MongoClien... |
package com.example.lianxi2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.example.lianxi2.base.BaseActivity;
import com.example.... |
package com.ibeiliao.trade.api.dto.request;
import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import com.ibeiliao.trade.api.enums.TradeStatus;
/**... |
package com.mantouland.atool.callback.impl;
import com.mantouland.atool.callback.UniCallBack;
/**
* Created by asparaw on 2019/3/29.
*/
public abstract class JsonCallBack extends UniCallBack {
public abstract void onSuccess(Object jsonBean);
}
|
package edu.bupt.cbh.testing.entity;
/**
* Created by scarlett on 2017/8/6.
*/
public class TestingOutputResult {
private String key;
private String expectedOutput;
private String output;
private Boolean result;
public Boolean getResult() {
return result;
}
public void setResult... |
package com.kush.lib.expressions.clauses;
import com.kush.lib.expressions.commons.BinomialExpression;
public interface AndExpression extends BinomialExpression {
}
|
package com.ssgl.util;
import java.text.SimpleDateFormat;
import java.util.*;
public class Util {
/**
*
* @功能:生成主键id
* @return
*/
public static String makeId(){
long t1 = System.currentTimeMillis();
return t1+makeRandom();
}
/**
*
* @功能:生成随机数
* @return
*/
public static String makeRandom(){
... |
package com.dev.lungyu.find_rip;
import android.annotation.TargetApi;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support... |
package com.rofour.baseball.service.crowdsource;
import com.rofour.baseball.controller.model.DataGrid;
import com.rofour.baseball.dao.crowdsource.bean.CollegePieBean;
import com.rofour.baseball.dao.crowdsource.bean.CrowdsourceBean;
import com.rofour.baseball.dao.order.bean.PacketOrderBean;
import javax.servlet.http.H... |
/*
* [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... |
public class BankISFraudTrue extends Bank {
@Override
public synchronized boolean isFraud(String fromAccountNum, String toAccountNum, long amount) throws InterruptedException {
return true;
}
}
|
/*
The MIT License
Copyright (c) 2010-2016 Paul R. Holser, Jr.
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, mod... |
package com.sixmac.service;
import com.sixmac.entity.HostRace;
import com.sixmac.entity.WatchingRace;
import com.sixmac.service.common.ICommonService;
import org.springframework.data.domain.Page;
import java.util.List;
/**
* Created by Administrator on 2016/5/23 0023 上午 11:21.
*/
public interface HostRaceService e... |
package ru.innopolis.mputilov.expression;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
/**
* Created by mputilov on 04.09.16.
*/
public class Logical extends Expression {
private OpCode opCode;
private Expression left;
private Expression right;
public Logical(... |
package com.hcp.objective.jpa.bean;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "FORM")
public class Form implements Serializable {
/**
* Generated seri... |
/*
* 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 sigu.controller;
import aplikasisigu.Home;
import java.io.IOException;
import java.sql.SQLException;
import java.text.DateForm... |
import java.util.HashMap;
public class Vliegtuig {
protected int vluchtnummer;
protected String vertrekpunt;
protected String bestemming;
protected HashMap<Passagier, String> passergierlijst;
protected Piloot piloot;
public Vliegtuig(int vluchtnummer, String vertrekpunt, String bestemming, Ha... |
package thread;
import java.util.concurrent.ThreadLocalRandom;
public class Messenger extends Thread{
private MessageQueue mq = null;
public Messenger(MessageQueue mq){
this.mq = mq;
}
public void run(){
for (int i = 0; i < 20; i++){
String message = "Message #"+(i+1);
mq.addMessage(message);
Util.pr... |
package com.leetcode.oj;
public class ReverseLinkedListII_92 {
// Definition for singly-linked list.
public static class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
}
}
public ListNode reverseBetween(ListNode head, int m, int n) {
ListNode p = head;
int lengt... |
package Chapter4;
import java.util.*;
public class Execise4_14 {
//숫자맞추기 게임
public static void main(String args[]) {
//1~100 사이의 임의의 값을 얻어 answer에 저장
int answer = (int)(Math.random()*100)+1;
int input = 0; //사용자 입력을 저장할 공간
int count = 0; //시도 횟수
Scanner s = new Scanner(System.in);
do {
count++;... |
package pe.gob.trabajo.web.rest;
import com.codahale.metrics.annotation.Timed;
import pe.gob.trabajo.domain.Docpresate;
import pe.gob.trabajo.repository.DocpresateRepository;
import pe.gob.trabajo.repository.search.DocpresateSearchRepository;
import pe.gob.trabajo.web.rest.util.HeaderUtil;
import io.github.jhipster.w... |
package cn.edu.hebtu.software.sharemate.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import an... |
package com.moon.config;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class MoonConfig {
private static Properties towerConfig=null;
static{
towerConfig = loadProperties();
}
public synchronized static String getConfig(String key){
return towerConfig.getPro... |
package thsst.calvis.configuration.model.engine;
import bsh.EvalError;
import bsh.Interpreter;
import thsst.calvis.configuration.model.exceptions.MemoryRestrictedAccessException;
/**
* Created by Goodwin Chua on 1/27/2016.
*/
public class MemoryAddressCalculator {
public static String extend(String value, int ... |
/*
Дано 3 числа. Написать функцию, которая вычисляет сумму квадратов двух больших из этих трех чисел.
*/
import java.util.*;
public class Ex_52 {
public static int sqSumOfTwo(int[] array){
int sqSum = 0;
int smallest = searchOfSmallest(array);
for(int i = 0; i < array.length; i++){
if(array[i] != smalles... |
package no.ntnu.apotychia.event;
import no.ntnu.apotychia.Application;
import no.ntnu.apotychia.model.Event;
import no.ntnu.apotychia.model.Participant;
import no.ntnu.apotychia.model.User;
import no.ntnu.apotychia.service.EventService;
import no.ntnu.apotychia.service.UserService;
import org.junit.Before;
import org.... |
package Database;
import java.util.LinkedList;
import java.util.List;
public class Database {
private List<User> users;
public Database(){
users = new LinkedList<User>();
try{
this.users.add(new User("Bai Ivan", "123456"));
this.users.add(new User("Bai I... |
package Concrete;
import Abstract.AuthenticationService;
import Abstract.PersonVerificationService;
import Entities.User;
public class AuthenticationManager implements AuthenticationService
{
PersonVerificationService personVerificationService;
public AuthenticationManager(PersonVerificationService personVerificat... |
package fr.antoinelaunay.resultsanalysis.endpoint;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiNamespace;
import fr.antoinelaunay.resultsanalysis.bean.Athlete;
/**
* Created by herve on 17/08/14.
*/
@Api(name = "athleteapi",
version = "v1",
scopes = {Cons... |
package com.bb.bahaudin.myapplication;
import android.content.Intent;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.net.Uri;
import android.widget.MediaController;
import android.widget.VideoView;
import static android.provider.MediaStore.... |
package com.tencent.mm.plugin.brandservice.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import com.tencent.mm.kernel.g;
class SearchOrRecommendBizUI$6 implements OnCancelListener {
final /* synthetic */ SearchOrRecommendBizUI hpX;
SearchOrRecommendBizUI... |
package Threads;
import controller.PrincipalController;
import javafx.application.Platform;
public class ThreadTimeRematch extends Thread {
private boolean iniciaHilo = true;
private boolean corriendo = false;
private int seconds = 0;
private int minutes = 0;
private PrincipalController principalCon;
public... |
/*
* 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 klm4.ScreenControllers;
import java.net.URL;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Resour... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.