text stringlengths 10 2.72M |
|---|
/*자바의 모든 컴포넌트는 스스로 그림의 주체이자 즉 화자이자, 그림의 대상 즉 도화지가 된다*/
package app0512.graphic;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import javax.swing.JFrame;
public class LineTest extends JFrame{
//자바의 모든 컴포넌트는 부모 GUI객체로부터, paint메서드를 물려받아,
//자기 자신에게 알맞는 그림을 스스로 그린거다! 특히 그림 그리는 메서드인 p... |
package com.fullsail.e_davila_advancedviews;
public class IOUtils {
}
|
package com.repository;
import org.openqa.selenium.By;
public interface signInRepos {
By phone=By.className("/html/body/div[2]/div/div/div/div/div[2]/div/form/div[1]/input");
By passwordnumber=By.xpath("/html/body/div[2]/div/div/div/div/div[2]/div/form/div[2]/input");
By login=By.xpath("/html/body/div[2]/div/div/... |
package tw3b;
import java.util.Scanner;
class Rectangle{
int length, breadth, area;
Rectangle()
{
}
Rectangle(int l, int b)
{
length = l;
breadth = b;
}
void computeArea(int length, int breadth)
{
area = length * breadth;
Sys... |
package com.techlab.frame;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class WelcomeFrame extends JFrame {
public WelcomeFrame() {
this.setVisible(true);
this.setTitle("sonam");
this.setSize(500, 500);
this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
JPanel panel = new JPanel();
pan... |
package it.univaq.rtv.Model.FactoryMappa;
import it.univaq.rtv.Model.*;
import it.univaq.rtv.Utility.CittaDTO;
import it.univaq.rtv.Model.FactoryCitta.ICitta;
import com.lynden.gmapsfx.javascript.object.LatLong;
import it.univaq.rtv.Model.FactoryMezzo.Vagone;
import it.univaq.rtv.Utility.Utility;
import java.util.Arra... |
package shangguigu;
/**
* 线程死锁:即一个方法调用过程中,需要另一个资源的锁,而另一个资源锁需要本资源的锁,这样就造成双方
* 僵持不下的局面.
*/
public class Thread8 {
private Object o1= new Object();
private Object o2= new Object();
public void m1(){
synchronized (o1){
System.out.println("m1.....");
try {
... |
package com.mx.profuturo.bolsa.model.service.candidates.dto;
import java.util.LinkedList;
public class SetScoreCandidateInDTO {
private Integer id;
private Integer calificacion;
private Integer idCandidato;
private int idCalificacion;
private LinkedList<Integer> subCalificacion;
public Integer getIdCandidato()... |
package lombok_test;
import lombok.AllArgsConstructor;
import lombok.Value;
/**
* Description:
*
* @author Baltan
* @date 2019-12-01 18:13
*/
@Value
@AllArgsConstructor
public class Computer {
private String brand;
private String model;
private float price;
}
|
import java.util.*;
import java.io.*;
public class UserInterface {
private static UserInterface userInterface;
private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
private static Warehouse warehouse;
enum Actions {
EXIT,
ADD_CLIENT,
EDIT_CLIENT,
ADD_SUPPLIER,
... |
package com.challenges.algo.leetcode;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
public class IntToRoman {
public String intToRoman(int num) {
Map<Integer, String> mapSet=new LinkedHashMap<>();
mapSet.put(1000, "M");
mapSet.put(900, "CM");
... |
package de.telekom.sea4.webserver.model;
import java.util.List;
import java.util.ArrayList;
public class Personen {
private List<Person> personen = new ArrayList<Person>();
// standard constructor
public Personen() { }
// constructor mit ArrayList
public Personen(List<Person> all) {
this.personen = all;
... |
package ru.kappers.model.catalog;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import ru.kappers.model.mapping.TeamBridge;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List... |
package com.paidaki.Greeklish;
public class Letters {
private Letters() {
}
public static final Letter ALPHA = new Letter("α", "a", "4", "@");
public static final Letter BETA = new Letter("β", "b", "v", "8");
public static final Letter GAMMA = new Letter("γ", "g");
public static final Letter ... |
/*
* #%L
* Janus
* %%
* Copyright (C) 2014 KIXEYE, Inc
* %%
* 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... |
/*
* 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 persistencia;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.loggin... |
package offer;
import java.util.Arrays;
/**
* @author kangkang lou
*/
public class LastRemaining {
public static int LastRemaining_Solution(int n, int m) {
boolean[] flag = new boolean[n];
int i = n - 1;
int start = 0;
int index = (start + m - 1) % n;
while (i > 0) {
... |
package string.StringSub;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author kouguangyuan
* @date 2018/8/3 8:39
*/
public class Test1 {
public static void main(String[] args) {
String str = "abc<icon>def</icon>deftfh<icon>a</icon>";
String str1 = "(CERTIFICATION_TIME<... |
package geeksforgeeks.mustdo.Sorting;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by joetomjob on 6/7/19.
*/
public class DutchNationalFlag {
public static int[] sort012(int[] s, int n){
int l=0, m = 0, h =n-1, temp = -1;
while ( m <... |
import java.lang.reflect.Method;
import java.util.Date;
import models.Camp;
import models.Event;
import models.Staff;
import com.avaje.ebean.Ebean;
import play.Application;
import play.GlobalSettings;
import play.mvc.Action;
import play.mvc.Http.Request;
public class Global extends GlobalSettings {
public static ... |
package codewars;
import java.util.Arrays;
/**
* Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you must multiply the digits in num until you reach a single digit.
*
* For example:
*
* persistence(39) == 3 // because... |
package com.salesianos.HerenciasManuel.services;
import com.salesianos.HerenciasManuel.model.Empleado;
import com.salesianos.HerenciasManuel.repositories.EmpleadoRepository;
import com.salesianos.HerenciasManuel.services.base.BaseService;
import org.springframework.stereotype.Service;
@Service
public class EmpleadoSe... |
package com.codependent.mutualauth.web;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Destination implements Serializable {
private static final long serialVersionUID = 3505573878335711861L;
@JsonProperty("isdCou... |
package id.ac.ub.ptiik.papps.interfaces;
import id.ac.ub.ptiik.papps.base.User;
public interface LoginDialogFinishInterface {
public void onLoginFinished(User user);
}
|
/*
* 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 streaming.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Con... |
/**
*
*/
package com.goodhealth.design.demo.DecorativePattern;
/**
* @author 24663
* @date 2018年10月27日
* @Description
*/
public class HatDecorator extends Decorator {
/**
* @param store
*/
public HatDecorator(IStore store) {
super(store);
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
... |
package com.qtplaf;
import com.qtplaf.library.app.Session;
import com.qtplaf.library.swing.OptionDialog;
import com.qtplaf.library.swing.core.JOptionDialog;
public class TestOptionFrame {
public static void main(String[] args) {
OptionDialog dlg = new OptionDialog(Session.UK);
dlg.addOption("Close");
... |
package com.bowlong.third.redis;
import java.io.Serializable;
import java.util.Map;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.Pipeline;
import com.bowlong.Toolkit;
import com.bowlong.lang.StrEx;
import com.bowlong.sq... |
package kr.ac.sogang.gtasubway.search;
import java.util.ArrayList;
import kr.ac.sogang.gtasubway.R;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget.Filterable;
import android.... |
import java.util.Stack;
/**
* 20. Valid Parentheses
* easy
* 可以写的更简短
*/
class Solution {
public int getVal(char c) {
switch (c) {
case '(':
return -1;
case '[':
return -2;
case '{':
return -3;
case ')':
... |
package pl.cwanix.opensun.authserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
public class AuthServerApplication {
public static void main(fi... |
package capstone.abang.com.Car_Renter.Home;
import android.app.DownloadManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.net.Uri;
import and... |
package com.tt.miniapp.component.nativeview.game;
import android.content.Context;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.tt.miniapp.thread.ThreadUtil;
import com.tt.miniapphost.util.UIUtils;
import java.util.concu... |
/*
* 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 employeemgmt;
/**
* Create, Read, Update, Delete
* @author Benjamin Bowen
*
* This file was copy-pasted. Adding the getEm... |
package site.xulian.learning.utils;
public class Constant {
public final static Integer CODE_SUCCESS = 0;//成功
public final static Integer CODE_ERROR = 1;//失败
public static final String CACHE_KEY_30 = "cache_key_30";
public static final Integer PAGE_SIZE = 10;//一页显示10条
public static final Integer PAGE_NUM = 1;//从第... |
package org.campustalk.sql;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import org.campustalk.entity.CampusTalkBranch;
public class dbBranch extends DatabaseManager
{
public CampusTalkBranch getBranchById(int branchI... |
//https://www.youtube.com/watch?v=GeltTz3Z1rw
//(inIndex - inStart) is the size of root's left subtree.
class Solution {
public TreeNode buildTree(int[] preorder, int[] inorder) {
return helper(0, 0, inorder.length - 1, preorder, inorder);
}
private TreeNode helper(int preStart, int inStart, in... |
package com.example.testimage;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.media.AudioManager;
import android.media.SoundPool;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
public class BackUI exten... |
package com.gk.service.api;
import com.gk.dao.api.DaoCenter;
public interface ServiceCenter {
public void setInitData(Object data, DaoCenter daoCenter);
public void init();
public <T extends BaseService> T getService(Class<T> clazz);
}
|
package com.emse.spring.faircorp.api;
import com.emse.spring.faircorp.model.Building;
public class BuildingDto {
private Long id;
private Double outsideTemp;
public BuildingDto(){
}
public BuildingDto(Building building){
this.id = building.getId();
this.outsideTemp = building.ge... |
package tsubulko.entity;
import lombok.*;
import java.util.Date;
import java.util.LinkedList;
@Data
@EqualsAndHashCode
@ToString
public class Manager extends Employee {
private double bonus;
//private LinkedList<Project> projects;
public Manager(int id,Birth dateOfBirth, String name, String surname, Sex... |
package com.andy.springbootcasclient.mapper;
import com.andy.springbootcasclient.domain.Student;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
/**
* User: andy
* Date: 2019/7/31
* Time: 15:08
*/
@Repository
public interface StudentMapper {
@Select("select * fr... |
import java.io.IOException;
import java.util.ArrayList;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class SearchResult {
private String searchText = "菜單 ";
private ArrayList<URLobj> legalURL = new ArrayList<>();
private String ... |
import java.util.Scanner;
public class passengers {
public static void main(String [] args) {
loop();
}
//This function allows the user to input a string a then it will return that string.
public static String inputString(String text) {
Scanner scanner = new Scanner(System.in);
String textInput;
Syst... |
package com.tanmengen.en.tanmengenqi;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.wid... |
package com.graylin.csnews;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import android.os.Bundle;
import android.os.Environment;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import andr... |
package net.liuzd.spring.boot.v2.entity.enums;
import net.liuzd.spring.boot.v2.common.Enumerable;
@SuppressWarnings("rawtypes")
public enum UserStatusEnum implements Enumerable {
BAN(0, "禁止"), NORMAL(1, "正常"),;
UserStatusEnum(int value, String key) {
this.value = value;
this.key =... |
package com.cajr.demo.web;
import org.springframework.stereotype.Controller;
@Controller
public class ProductController {
}
|
package com.debugg3r.android.d3rworkout.view;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import ... |
package org.elasticsearch.index.analysis;
import java.io.Reader;
import org.apache.lucene.analysis.Tokenizer;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.inject.assistedinject.Assisted;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
impo... |
package com.espendwise.manta.web.validator;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.log4j.Logger;
import com.espendwise.manta.util.Constants;
import com.espendwise.manta.util.FiscalCalendarUtility;
import com.espendwi... |
package com.UmidJavaUdemy;
// Create a class and demonstate proper encapsulation techniques
// the class will be called Printer
// It will simulate a real Computer Printer
// It should have fields for the toner Level, number of pages printed, and
// also whether its a duplex printer (capable of printing on both sides o... |
package com.tencent.mm.plugin.sns.ui;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import com.tencent.mm.plugin.sns.g.b;
import com.tencent.mm.ui.base.MultiTouchImageView;
import com.tencent.mm.ui.tools.MMGestureGallery;
class SnsInfoFlip$4 imp... |
package net.drs.myapp.resource;
import net.drs.myapp.config.UserPrincipal;
import net.drs.myapp.constants.ApplicationConstants;
import net.drs.myapp.model.User;
import java.util.TreeMap;
import javax.servlet.http.HttpSession;
import org.springframework.security.core.context.SecurityContextHolder;
impor... |
import java.io.*;
class test
{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String str;String str1="";
String[] words;
public test()
{
try{
str = buf.readLine();
words = str.split(" ");
for(String s : words)
{
str1 = str1+s;
}
System.out.print(st... |
package com.quizcore.quizapp.model.entity;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.UUID;
@Entity
public class Opti... |
package com.smartwerkz.bytecode;
import static org.junit.Assert.assertEquals;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.CtNewMethod;
import org.junit.Test;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opc... |
package chapter11.Exercise11_02;
public class Student extends Person {
private String status;
public final static int FRESHMAN = 1;
public final static int SOPHOMORE = 2;
public final static int JUNIOR = 3;
public final static int SENIOR = 4;
public Student(String name, String adress, String phoneNumbe... |
package am.main.spi;
import java.text.MessageFormat;
/**
* Created by ahmed.motair on 1/21/2018.
*/
public abstract class JMSQueues {
private static final String Q_FORMAT = "{0}_{1}_Q";
private static final String QCF_FORMAT = "{0}_{1}_QCF";
private String PREFIX;
private final String que... |
package listandqueue;
/**
* @Author: ZhiHao
* @Date: 2021/1/6
* @Version: 1.0
*/
public class Demo3 {
public static void main(String[] args) {
ArrayAroundQueue aroundQueue = new ArrayAroundQueue(5);
aroundQueue.addNum(1);
aroundQueue.addNum(2);
aroundQueue.addNum(3);
ar... |
package Jdbc;
import java.sql.*;
public class DButil {
private static Connection conn=null;
private static PreparedStatement ps;
private static ResultSet rs=null;
public static void close()
{
try {
if(rs!=null)
{
rs.close();
}
... |
class Solution {
public int distanceBetweenBusStops(int[] distance, int start, int destination) {
int simplePath = 0;
int roundPath = 0;
int len = distance.length;
int i = start;
while(i != destination)
{
simplePath += distance[i];
i =... |
import dao.Dao;
import sourses.DaoDbConnectionSource;
import dao.DaoFactory;
import dao.DaoType;
import sourses.DaoJsonConnectionSource;
public class AccountDaoFactory implements DaoFactory<Account> {
@Override
public Dao<Account> getDao(DaoType type) {
Dao<Account> dao;
switch (type) {
... |
package uy.edu.um.db;
import java.sql.SQLException;
import java.text.ParseException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class SpringJDBCExampleMain {
public static void main(String[] args) throws ClassNotFo... |
package com.dahua.design.structural.flyweight;
public class FlyweightTest {
public static void main(String[] args) {
// 张三找服务员
AbstractWaitress waitress = ZuLiao.getWaitress("");
waitress.service();
System.out.println(waitress);
// 李四找服务员
AbstractWaitress waitress1 ... |
package com.flute.atp.resource.impl;
import com.flute.atp.application.ReportingApplicationService;
import com.flute.atp.domain.model.report.Reporting;
import com.flute.atp.resource.ReportingResource;
import com.flute.atp.share.req.CatReportReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.... |
package company;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
... |
package com.company;
import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;
public class OperatiiLogice {
public int checkHighestNumber(int first, int second) { //if-else if verifica2 conditii chiar daca nu exista si va da eroare, atunci pune un else general sau un return statement
i... |
package SpritesheetRender;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Spritesheet {
private BufferedImage spritesheet;
public Spritesheet(String path) {
//try / catch gerado automaticamente
try {
/*ImageIO é uma classe nativa do ja... |
package com.example.readdata.Fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import an... |
package com.yida.design.factory.main;
import com.yida.design.factory.AbstractHumanFactory;
import com.yida.design.factory.extend.HumanFactory;
import com.yida.design.factory.extend.StaticHumanFactory;
import com.yida.design.factory.impl.BlackHuman;
import com.yida.design.factory.impl.WhiteHuman;
import com.yida... |
package ch.springcloud.lite.core.connector;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
@Data
public class LoadServerListeners {
public LoadServerListeners() {
super();
this.listeners = new ArrayList<>();
}
List<LoadServerListener> listeners;
public void addList... |
/*
* 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 steganoapp.core;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOE... |
package com.facebook.react.util;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableType;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class JSStackTrace {
private static final Pattern mJsModuleIdP... |
package com.squidtech.nodechan;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
*
* This class represents a single peer to which the client may send and receive
* posts and other data.
*
*/
public class Peer {
/** This peer's address information **/
private InetAddress addr;
/** The... |
/*
* [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... |
package com.z3pipe.z3location.util;
import java.io.FileOutputStream;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class GpsFileUtil {
private static ExecutorService executor;
private static ExecutorService getExecutor() {
if (executor == null) {
... |
package plp.functional3.declaration;
import java.util.ArrayList;
import java.util.List;
import plp.expressions1.util.Tipo;
import plp.expressions2.expression.Id;
import plp.expressions2.memory.AmbienteCompilacao;
import plp.expressions2.memory.VariavelJaDeclaradaException;
import plp.expressions2.memory.VariavelNaoDe... |
/*
* JFrameTest1.java
*
* Created on 2016年3月26日, 下午9:38
*/
package com.local.view;
import com.local.util.UIUtil;
/**
*
* @author xubo
*/
public class JFrameTest1 extends javax.swing.JFrame {
/** Creates new form JFrameTest1 */
public JFrameTest1() {
initComponents();
UIUtil.setCe... |
package LightProcessing.common.tile;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import LightProcessing.common.block.*;
import LightProcessing.common.lib.*;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStac... |
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import net.miginfocom.swt.MigLayout;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEv... |
package com.jx.sleep_dg.Bean;
import java.util.List;
/**
* Created by dingt on 2018/7/30.
*/
public class EveXinlvBean {
String type;
List<HeartRateBean> heartRateBeans;
public EveXinlvBean(String type, List<HeartRateBean> heartRateBeans) {
this.type = type;
this.heartRat... |
package com.anibal.educational.rest_service.comps.util;
import java.io.IOException;
import java.io.InputStream;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.odhoman.api.utilities.db.DatabaseConnection;
public class DbUtil {
public final static String MASCAR... |
package com.tencent.mm.pluginsdk.ui.websearch;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class WebSearchVoiceInputLayoutImpl$2 implements OnTouchListener {
final /* syn... |
package algorithms;
import java.io.*;
import java.util.*;
//очередь с приоритетами
class PriorQueue<T extends Comparable> {
//на основе обычного ссылочного массива
ArrayList<T> arr = new ArrayList<T>();
//добавляем в конец = O(1)
public void add(T obj) {
arr.add(obj);
}// add
//извлекаем наименьший элемен... |
package fr.lteconsulting;
public class Personne
{
private String nom;
private int secu;
public Personne( String nom, int secu )
{
this.nom = nom;
this.secu = secu;
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((nom == null) ? 0 : nom.hashCode()... |
package com.invitation.api.request;
import lombok.Getter;
import lombok.Setter;
@Setter @Getter
public class PersonRequest {
private String name;
private String lastName;
private String phone;
}
|
package com.yingying.distributed.hw2;
import java.util.stream.IntStream;
public class Producer {
public static IntStream getData(int start, int end) {
return IntStream.rangeClosed(start, end)
.flatMap(n -> IntStream.generate(() -> n)
.parallel().limit(Config.repeat)... |
package com.ehootu.user.service.impl;
import com.ehootu.core.feature.orm.mybatis.Page;
import com.ehootu.core.generic.GenericDao;
import com.ehootu.core.generic.GenericServiceImpl;
import com.ehootu.user.dao.PoliceMapper;
import com.ehootu.user.dao.UserMapper;
import com.ehootu.user.model.Police;
import com.ehootu.use... |
/*
* 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... |
package com.Collections_HashSet;
public class HashSetToTreeSet {
}
|
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.q;
import com.tencent.mm.modelsfs.FileOp;
import com.tencent.mm.plugin.sns.g.d;
import com.tencent.mm.plugin.sns.g.e;
import com.tencent.mm.plugin.sns.g.f;
import com.tencent.mm.protocal.c.boh;
import com.tencent.mm.pr... |
package com.redbean;
import org.neo4j.ogm.session.SessionFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
... |
package prService;
import java.util.ArrayList;
import pr.pojos.Dog;
import pr.pojos.Owner;
import pr.pojos.Pairing;
import pr.pojos.Runner;
public class Database {
public static int dogId = 0;
public static int pairingId = 0;
public ArrayList <Owner> owners = new ArrayList<>();
public Ar... |
package com.mcf.base.common.enums;
/**
* Title. <br>
* Description.
* <p>
* Copyright: Copyright (c) 2016年12月17日 下午2:24:18
* <p>
* Author: 10003/sunaiqiang saq691@126.com
* <p>
* Version: 1.0
* <p>
*/
public enum CooperateType {
COMPANY(0, "企业"), UNITY(1, "个体");
private final Integer index... |
/*
* created 29.08.2005 by sell
*
* $Id: DDLGeneratorExtension.java 678 2008-02-17 22:52:09Z cse $
*/
package com.byterefinery.rmbench.extension;
import org.eclipse.jface.wizard.IWizardPage;
import com.byterefinery.rmbench.external.IDDLFormatter;
import com.byterefinery.rmbench.external.IDDLGenerator;
... |
package com.espendwise.manta.util.trace;
import com.espendwise.manta.util.arguments.TypedArgument;
public class ApplicationIllegalAccessException extends ApplicationRuntimeException {
public ApplicationIllegalAccessException(ExceptionReason.SystemReason excReason, TypedArgument... args) {
super(new Appl... |
package application;
import static database.DB.bandlessMusicians;
import static database.DB.bands;
import band.Band;
import band.Musician;
import java.util.Collections;
import java.util.Locale;
import java.util.Scanner;
public class Commands {
private static Musician removedMember;
private Commands() {
}
... |
package com.variado.pegue.textitlater;
import android.app.DialogFragment;
import android.app.Fragment;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.... |
package com.example.springboothibernate.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Iso... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.