text stringlengths 10 2.72M |
|---|
package com.example.yamil.test.Models;
import com.parse.ParseClassName;
import com.parse.ParseFile;
import com.parse.ParseObject;
@ParseClassName("Hotel")
public class Hotel extends ParseObject {
private String objectId;
private String name;
private String description;
private Number score;
privat... |
package com.seleniumpom.tests.framework;
import org.apache.log4j.Logger;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import static org.testng.Assert.assertNotNull;
public class TestConfiguration {
protected Logger logger = Logger.getLogger(getClass());
private Properties... |
package ir.ceit.search.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Vector;
public class Dictionary {
private Node root;
private int size;
private Vector<HashMap<Node, Integer>> docList;
private int docSize;
private ArrayList<DocHeapElement> docHeap;
public ... |
import net.webservicex.GeoIP;
import net.webservicex.GeoIPService;
import net.webservicex.GeoIPServiceSoap;
/*
* 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 nguyen... |
package mydomain.needit;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* Created by Michal on 08/03/2016.
*/
public class InMemoryDB {
static List<UserLocation> userLocations = new LinkedList<>();
static List<Request> requests = new LinkedList<>();
... |
package com.flowedu.dto;
import lombok.Data;
@Data
public class PagingDto {
private int start;
private int end;
public PagingDto() {}
public PagingDto(int start, int end) {
this.start = start;
this.end = end;
}
}
|
package com.evan.graphics;
public interface CommandExcuteHandler {
public void onSuccess(String filePath);
public void onError(int code, String message);
}
|
package com.pointinside.android.app.util;
import android.os.AsyncTask;
import android.util.Log;
public abstract class DetachableAsyncTask<Params, Progress, Result>
extends AsyncTask<Params, Progress, Result>
{
private static final String TAG = DetachableAsyncTask.class.getSimpleName();
private TaskCall... |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package io.spring.bookstore.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
@ControllerAdvice
public class GlobalException {
@Ex... |
/*
* Copyright 2017 Rundeck, Inc. (http://rundeck.com)
*
* 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 appli... |
package ru.mcfr.oxygen.framework.operations;
import ro.sync.ecss.extensions.api.*;
import ro.sync.ecss.extensions.api.node.AuthorDocumentFragment;
import ro.sync.ecss.extensions.api.node.AuthorElement;
import ro.sync.ecss.extensions.api.node.AuthorNode;
import ro.sync.util.URLUtil;
import javax.swing.*;
import javax.... |
package com.petpet.c3po.adaptor.rules;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Test;
import org.mockito.Mockito;
import com.petpet.c3po.adaptor.AbstractAdaptor;
import com.petpet.c3po.datamodel.Element;
public class PostProcessingPrio... |
package com.trump.auction.trade.service.impl.bid;
public class bidFinishHandle {
}
|
package com.gaoshin.cloud.web.job.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob... |
package com.robin.springbootlearn.common.controller;
/**
* 公共控制器
*
* @author robin
* @version v0.0.1
* @since 2020-04-06 17:29
*/
public class SuperController {
} |
/**
* Copyright (C) 2008 Atlassian
*
* 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 agree... |
package me.devcom.pdrill;
public class Fuel {
public Integer block_id;
public Integer drillAirSpeed;
public Integer drillBlockSpeed;
public Integer fuelConsumptionBlockCount;
public Integer fuelConsumptionFuelCount;
public String configName;
public Fuel(Integer bid, Integer das, Integer dbs, Integer bc, Integ... |
package hotelManagement;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.Scanner;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import fileio.Student;
public class ReadRoom extends Frame implements ActionListener... |
import java.util.*;
public class testabel {
public double y(double x) {
double hasil = (x*x*x) - (2*(x*x) - x + 1);
return hasil;
}
public static void main(String[] args) {
testabel uji = new testabel();
Scanner input = new Scanner(System.in);
System.out.print("masu... |
package example1.employee;
public class JsonExporter implements Employee.Exporter {
private String name;
@Override
public void storeName(String name) {
this.name = name;
}
@Override
public String toString() {
//json representation (low level details)
return "{\"name\":... |
package net.davoleo.javagui.forms.controls;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
/*************************************************
* Author: Davoleo
* Date / Hour: 04/01/2019 / 15:18
* Class: JComboboxGui
* Project: JavaGUI
* Copyright - ©... |
package blackjack;
public class Card {
private int val;
private int face;
private final int SPADES = 1;
private final int CLUBS = 4;
private final int HEARTS = 2;
private final int DIAMONDS = 3;
private final int ACE = 1;
private final int KING = 13;
private final int JACK = 11;
private final int QUEEN = 1... |
/*
* Copyright (C) 2021 Tenisheva N.I.
*/
package com.entrepreneurship.rest.webservices.restfulwebservices.model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.Date;
import java.util.Objects;
/*
* {@ code Funds receipt} class represents properties and behaviours of funds... |
public class Solution{
public static int conversion(int A,int B){
int num = A ^ B;
int count = 0;
while(num!=0){
num = num & (num-1);//this clears the rightmost 1 in bits.
count++;
}
return count;
}
} |
package com.nfet.icare.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nfet.icare.dao.ParseExcelMapper;
import com.nfet.icare.pojo.DeviceInfo;
@Service
public class ParseExcelServiceImpl implements ParseExcelSer... |
package aiClass;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import deck.Card;
import deck.CardValue;
import deck.Suit;
/**
* Class that figures out what the ai-players cards are.
* @auth... |
package sign.com.web.userGroup;
import java.util.List;
import java.util.Set;
/**
* create by luolong on 2018/5/16
*/
public class UserGroupFrom {
private Integer idGroup;
private String groupName;
private Integer createdBy;
private List<Integer> labelMember;
private List<Int... |
package com.handpay.obm.common.utils.csv;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.util.Collectio... |
package jp.co.okato;
import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class HelloServlet extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletRe... |
/*
* 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 tokomainankita;
/**
*
* @author windows10
*/
public class Owner {
private int id_user;
private String nama_lengkap;... |
package org.blogdemo.homeloan.processor;
import java.util.Map;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.Processor;
public class MessageProcessor implements Processor{
@Override
public void process(Exchange exchange) throws Exception {
Map<String,Object> headers... |
package worker;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.TreeMap;
public class MatchingInstance {
public static Topic computeTopicAverage(List<Worker> workerList, Integer topicId) {
int successfulCalls ... |
/*
* 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 weixin;
/**
*
* @author jerry
*/
public class Main {
/**
* @param args the command line arguments
*/
pub... |
package cn.xuetang.common.config;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Wizzer on 14-3-31.
*/
public class Dict {
//行政区划
public static final String DIVSION = "0008";
//接口类型
public static final String APP_TYPE = "0002";
//表单类型
public static final String FORM_TYPE = ... |
package io.core9.plugin.widgets.datahandler;
import java.util.List;
import io.core9.plugin.widgets.Core9HiddenField;
import io.core9.plugin.widgets.datahandler.factories.CustomVariable;
public class DataHandlerDefaultConfig implements DataHandlerFactoryConfig {
@Core9HiddenField
private String componentName;
... |
package org.digdata.swustoj.aop;
import java.io.IOException;
import java.sql.SQLException;
import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.a... |
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.io.FileNotFoundException;
import javax.swing.JPanel;
public class Malowanko extends JPanel {
public void paintComponent(Graphics g) {
super.paintComponent(g);
try {
if (Zmie... |
package com.jit.lembda10;
/*local variable referenced from lambda expression must be final or effectively final*/
public class Test {
int x = 10;
public void m2()
{
int y = 20;
Interf i = () -> {
x =888;
//y =999;
};
i.m1();
}
public static void main(String[] args) {
Test t = new Test();
t.m2... |
package com.xue.trainingclass.event;
public class ChangePageEvent {
public int page;
public ChangePageEvent(int page) {
this.page = page;
}
}
|
/*
* Copyright 2002-2012 Drew Noakes
*
* 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... |
package testcases;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import pages.LoginPage;
import wdMethods.ProjectMethods;
public class TC005_DeleteLead extends ProjectMethods{
@BeforeTest
public void setData() {
testCaseName="TC005_DeleteLead";
testDescription="Del... |
/*
* Licensed to DuraSpace under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* DuraSpace licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file excep... |
package controller;
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;
import javax.servlet.http.H... |
package jire.network;
import java.util.Set;
import jire.packet.PacketService;
import jire.packet.translate.PacketTranslator;
public interface Server {
int getPort();
Set<Client> getClients();
boolean start();
boolean stop();
PacketService getPacketService();
PacketTranslator getPacketTranslator();
Serv... |
package dev.liambloom.softwareEngineering.chapter17.rightWrong;
/**
* * Mr. Marques
*
* Tree_Building_RIGHT_WRONG_CLIENT: This program will build a tree w/ the values in
* 'nums'. When completed, the Tree will look like:
*
* 8
/ \
/ \
/ \
... |
/*
* @(#) IEbmsContainerLogDAO.java
* Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved.
*/
package com.esum.wp.ebms.ebmscontainerlog.dao;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.esum.appframework.dao.IBaseDAO;
import com.esum.appframework.exception.Application... |
package com.oxymore.practice.controller;
public class ControllerInitException extends Exception {
public ControllerInitException(String controller, String message) {
super(String.format("Initialization of controller '%s' failed with error '%s'", controller, message));
}
public ControllerInitExcept... |
/**
* Sencha GXT 3.0.1 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* licensing@sencha.com
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.examples.resources.shared;
import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.... |
package com.stackflow.testCases;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.testng.AssertJUnit;
import org.testng.annotations.Test;
import com.stackflow.pageObjects.GmailLogin;
import com.stackflow.pageObjects.StackFlowEmailSentPage;
import com.stackflow.pageObj... |
package de.doridian.yiffbukkit.chatcomponent;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.mojang.api.profiles.HttpProfileRepository;
import com.mojang.api.profiles.Profile;
import java.util.UUID;
import java.util.concurrent.... |
/**
*
*/
package com.application.ui.activity;
import java.util.List;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import and... |
package com.jl.extract;
import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.List;
import org.dom4j.Attribute;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.XPath;
import org.dom4j.io.OutputForm... |
package ch.so.agi.cadastre.webservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CadastreWebServiceApplication {
public static void main(String[] args) {
SpringApplication.run(CadastreWebServiceApplic... |
package com.example.hdxy.baseproject.Http.subscriber;
import android.util.Log;
import com.example.hdxy.baseproject.Base.BaseImpl;
import com.example.hdxy.baseproject.Http.exception.ApiException;
import com.example.hdxy.baseproject.Util.StringUtil;
import com.google.gson.stream.MalformedJsonException;
import java.ne... |
public interface Heuristic {
double calculate(Pair fromPos, Pair endPos);
}
|
package com.marcos.inicio;
import com.marcos.biblioteca.negocio.beans.AutorBean;
import com.marcos.biblioteca.negocio.beans.EjemplarBean;
import com.marcos.biblioteca.negocio.beans.LibroBean;
import com.marcos.biblioteca.negocio.beans.PrestamoBean;
import com.marcos.biblioteca.negocio.beans.UsuarioBean;
import ... |
package test_private;
import io.IO;
import io.ImageReader;
import java.awt.image.BufferedImage;
import java.io.FileNotFoundException;
import java.io.IOException;
import logic.huffman.HuffmanCode;
import logic.huffman.HuffmanTree;
import org.junit.Before;
import org.junit.Test;
import datamodel.huffman.tree.Tree;
... |
package antworld.client;
/**
* Created by Dominic on 12/9/2016.
*/
import java.awt.*;
import antworld.common.Util;
import antworld.common.AntAction;
import antworld.common.AntAction.AntActionType;
import antworld.common.AntData;
import antworld.common.CommData;
import antworld.common.Direction;
import antworld.comm... |
import java.util.Scanner;
public class Determinant{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] eh = sc.nextLine().split(" ");
int[] ar = new int[eh.length];
for(int i = 0; i < eh.length; i++) {
ar[i] = Integer.parseInt(e... |
package com.test.base;
import java.util.Arrays;
import java.util.List;
import com.test.SolutionA;
import junit.framework.TestCase;
public class Example extends TestCase
{
private Solution solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
}
... |
package com.springlearn.spring.springcore.propertyplaceholder;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Test {
public static void main(String[] args) {
ApplicationContext context=new ClassPathXmlApplicationC... |
package com.karya.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="stkrepageing001mb")
public class ... |
package ru.avokin.uidiff.common.view.actions;
import java.util.List;
/**
* User: Andrey Vokin
* Date: 14.09.2010
*/
public interface ActionManager {
public void registerAction(BaseAction action);
public BaseAction getAction(String actionName);
public List<BaseAction> getAllActions();
}
|
package com.project.daicuongbachkhoa.teacher.algebrateacher;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.google.firebase.auth.FirebaseAuth;
import com.project.daicuongbachkhoa.MainActivi... |
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Socket client;
DataOut... |
package algorithms.strings.tries.practice;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.google.common.collect.Sets;
import org.apache.commons.lang3.StringUtils;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by... |
package vo.WebPromotionVO;
import java.util.Vector;
/**
* Created by Qin Liu on 2016/12/8.
*/
/**
* circle 0商圈
* discount 1折扣
* @author Qin Liu
*/
public class CircleVO extends Vector<String> {
public CircleVO(String circle, double discount) {
this.add(circle);
this.add(String.valueO... |
/**
* Copyright (C), 1995-2018, XXX有限公司
* FileName: MyException
* Author: wens.
* Date: 2018/6/4 下午7:16
* Description: 我的通用异常类
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.phantom.exception;
import org.springfr... |
package service;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import model.Emp;
import model.MemberDataBean;
import mybatis.MybatisConnector;
@S... |
package global.coda.hospitalmanagement.exceptionMapper;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import global.coda.hospitalmanagement.exception.BusinessException;
// TODO: Auto-generated... |
package graphics_control.event_handling.game;
import graphics_control.drawables.GameCell;
import javafx.event.EventHandler;
import javafx.scene.paint.Color;
public class MouseExitsAvailableMove implements EventHandler<javafx.scene.input.MouseEvent> {
private GameCell gameCell;
public MouseExitsAvailableMove(... |
package Vistas;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.util.List;
import java.util.Vector;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import Controlador.AreaAdminist... |
/**
*
*/
package selection_Sort;
/**
* @author Aloy
*
*/
public class selection {
/**
* @param args
* @return args
*
*/
private static Integer excel_sort(Integer args) {
// TODO Auto-generated method stub
int i,j,small,tmp,pos;
for (i = 0; i< args.length; i++) {
smal... |
package com.notabilia.mycards.models.entities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.time.LocalDate;
@Entity
public class Card implements EntityMod... |
package org.example.openweatherapi;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.web.client.RestTemplate;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class OpenWeather {
@JsonProperty("name")
private Stri... |
package examples;
public class MaximumTest {
public static void main(String[] args) {
System.out.printf("Maximum of %d, %d and %d is %d%n", 3, 4, 5, maximum(3, 4, 5));
System.out.printf("Maximum of %.2f, %.2f, and %.2f is %.2f", 6.6, 8.8, 7.7, maximum(6.6, 8.8, 7.7));
//the output expects a type integer and d... |
package DataStructures.arrays;
/**
* Given a m * n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
* 1 1 1 0
* 1 1 1 0
* 1 1 0 0
* 1 0 0 0
*/
public class MatrixZeros {
public static void setZeroes(int[][] A) {
if (A == null) return;
int ro... |
/**
* Created by Владислав on 23.09.2016.
*/
import JUnitTest1.Calculate;
import junit.framework.TestCase;
import ru.yandex.qatools.allure.annotations.Features;
import ru.yandex.qatools.allure.annotations.Stories;
import static junit.framework.Assert.*;
public class CalculateTest extends TestC... |
package exchange_match_engine;
public class CancelElement implements RequestElement{
int transactionID;
public CancelElement(int transactionID){
this.transactionID = transactionID;
}
}
|
package ir.ceit.search.nlp.stemming.global.utils;
import global.utils.PatriciaTrie.KeyAnalyzer;
/**
*
* @author htaghizadeh
*/
public class IntegerKeyCreator implements KeyAnalyzer<Integer> {
public static int[] createIntBitMask(final int bitCount) {
int[] bits = new int[bitCount];
for (int i ... |
package com.hcl.neo.eloader.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "business_group_master")
public class BusinessGroupMaster {
@Id
public String id;
public String name;
public String displayName;
public Stri... |
package com.lenovohit.ssm.treat.model;
public class AssayItem {
private String id; //检查项目ID
private int index; // 0,
private String item; //检查项目 "游离三碘甲状腺氨酸",
private String result; //检查结果 "1.53",
private String state; //状态指标 "3",
private String range; //参考范围 "1.80 - 4.10",
private String unit; //单位 "pg/ml"
... |
package crushstudio.crush_studio.entity;
import crushstudio.crush_studio.config.anototion.CrushAnotation;
import javax.persistence.*;
import java.time.LocalDate;
@Entity
@Table(name = "user")
public class User extends BaseEntity {
@CrushAnotation
@Column(name = "fullname")
private String full... |
package peter8icestone.concurrency.chapter5;
public class ThreadJoin4 {
public static void main(String[] args) {
long startTimeStamp = System.currentTimeMillis();
Thread t1 = new Thread(new CaptureRunnable("M1", 10_000L));
Thread t2 = new Thread(new CaptureRunnable("M2", 5_000L));
... |
package com.spring.service.domain;
import java.util.*;
import java.io.*;
public class WordLadder {
private static Set<String> dict;//�ֵ�
private static Set<String> record;//��¼�滻����µ��ʣ������������ѭ��
private static Stack<String> result; //WordLadder�Ľ��
private static Queue<Stack<String>> ladder... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.*;
import java.net.*;
import javax.swing.*;
import java.util.*;
import java.text.*;
/**
*
* @author Cham
*/
class ServerThread extends Thread {
String message, whisperTo, invalid;
int i, j, k;
MyCon... |
package io.jrevolt.sysmon.client.ui.model;
import io.jrevolt.sysmon.model.NetworkInfo;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleSt... |
package org.juxtasoftware.diff.util;
import java.io.IOException;
import java.net.URI;
import java.util.List;
import java.util.Set;
import org.juxtasoftware.diff.Token;
import org.juxtasoftware.diff.TokenSource;
import org.juxtasoftware.diff.impl.SimpleToken;
import com.google.common.base.Preconditions;
import com.go... |
package src.modulo4.complementos;
/**
*
* @author uel
*/
public class Face {
int nVerts;
VertexID[] vert;
public Face() {
nVerts = 0;
vert = null;
}
public Face(int nVerts, VertexID[] vert) {
this.nVerts = nVerts;
this.vert = new VertexID[nVerts];
}
... |
package utility;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class ReadFile {
private String path;
private boolean res;
public ReadFile(String filePath, boolean res) {
this.path = filePath;
this.res = res;
}
publ... |
package com.Servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... |
package com.chinasoft.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.chinasoft.dao.CkDao;
import com.chinasoft.domain.Ck;
import com.chinasoft.service.CkServi... |
package com.paces.game.others;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.VertexAttributes;
import com.badlogic.gdx.graphics.g3d.Material;
import com.badlogic.gdx.graphics.g3d.Model;
import com.badlogic.gdx.graphics.g3d.ModelInstance;
import com.badl... |
package negocio.apresentacao;
import java.util.Date;
import negocio.basica.Computador;
import negocio.basica.Hardware;
import negocio.controlador.ControladorHardware;
public class ApresentacaoHardware {
public static void main (String [] args){
ControladorHardware contHard = new ControladorHardware();
... |
package elainpeli;
/*
* 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 Minna
*/
import java.util.Random;
import java.util.Scanner;
import java.util.Arra... |
import java.util.ArrayList;
public class Registro {
private ArrayList<Socio> listado;
private int cupo;
private boolean descuento;
public ArrayList<Socio> getListado() {
return listado;
}
public void setListado(ArrayList<Socio> listado) {
if(listado.size()<=cupo){
this.listado = listado;
Syst... |
package com.tpg.brks.ms.expenses.integration.web;
import org.apache.http.HttpStatus;
public interface HttpResponseFixture {
default int isOk() {
return HttpStatus.SC_OK;
}
}
|
package com._520it._01_preparedstatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import org.junit.Test;
import com._520it.util.JdbcUtil;
public class PreparedStatementTest {
@Test
public void testName() throws Exception {
//¼ÖçöÓûÖ´ÊÂ
String sql="INSERT INTO t_student(name,age) VALUE... |
package com.yc.education.model.account;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
@Table(name = "account_payable_info")
public class AccountPayableInfo {
/**
* 应付账款冲账--收款方式详情
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.