text stringlengths 10 2.72M |
|---|
package com.lehvolk.xodus.web.exceptions;
import javax.ws.rs.InternalServerErrorException;
/**
* Exception Xodus database
* @author Alexey Volkov
* @since 16.11.2015
*/
public class XodusRestException extends InternalServerErrorException {
private static final long serialVersionUID = 317880648307744850L;
... |
package io.quarkus.bootstrap.devmode;
import io.quarkus.bootstrap.model.ApplicationModel;
import io.quarkus.maven.dependency.GACTV;
import io.quarkus.maven.dependency.ResolvedDependency;
import java.util.ArrayList;
import java.util.List;
import org.jboss.logging.Logger;
public class DependenciesFilter {
private ... |
package net.lantrack.project.search.service.impl;
import java.io.ByteArrayOutputStream;
import java.util.Arrays;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.s... |
/*
* Copyright 2002-2023 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.mss.entity;
import com.mss.annotations.RequiredString;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
im... |
import java.util.Scanner;
public class micro01
{
public static void main(String[] args)
{
Scanner s = new Scanner(System.in);
float cel , far ;
System.out.println(" Tabela de conversao: Celsius -> Fahrenheit");
System.out.print("Digite a temperatura em Celsius: ");
cel = s.nextFloat();
far = (9*cel+160)... |
package net.datacrow.console.components;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.PlainDocument;
import net.datacrow.util.Utilities;
public class DcFilePatternTextField extends DcShortTextField {
public DcFilePa... |
package com.bookstore;
import java.util.List;
/**
* Created by blakerollins on 10/30/14.
*/
public interface BookRepository {
Book lookupById(String id);
void addBook(String title, String description, String price, String pubDate);
void updateBook(String id, String title, String description, String p... |
public class Cone extends Shape {
public Cone (double radius, double height)
{
super(radius, height);
}
public double getVolume()
{
return (Math.PI * (Math.pow(radius, 2)) * (height/3));
}
public double getSurfaceArea()
{
return (Math.PI * radius) * (radius + (Math.sqrt((Math.pow(hei... |
package uno.iut.fr.uno.modele.carte;
import android.media.Image;
import uno.iut.fr.uno.modele.Color;
import uno.iut.fr.uno.modele.ConstValue;
import uno.iut.fr.uno.modele.IStrategyCarte;
import uno.iut.fr.uno.modele.carte.Carte;
/**
* Created by Max on 04/03/2015.
*/
public class CarteEvent extends Carte {
pri... |
package com.sky.design.observer;
public class StockObserver extends Observer {
public StockObserver(String name, Subject sub) {
super(name, sub);
}
@Override
void Update() {
System.out.println(sub.getSubjectState()+name+"关闭股票详情,继续工作!");
}
}
|
package com.arduino.bluetooth;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.hardware.Sensor;
import android.hardware.Sensor... |
package com.soa.ws.category.response;
import com.soa.domain.categories.Cave;
import com.soa.domain.hero.Dragon;
import com.soa.ws.hero.response.WSDragonResponse;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.stream... |
package com.tp.basicproject;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.View;
import andro... |
package net.gupt.ebuy.service;
import net.gupt.ebuy.pojo.Customer;
/**
* 查询用户密码业务接口
* @author glf
*
*/
public interface ForgetPassService {
/**
* 根据用户名称查找用户信息
* @param name 用户名称
* @return
*/
public Customer initPass(String name);
}
|
/*
* Copyright 2018 YiZheng Huang
*
* 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... |
package view.interfaces;
public interface ServerStatusInter {
public void setIP(String ip);
public void setPort(String port);
public void setNoConnexion(String no);
public void displayError(String mess);
}
|
/**
* Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
* Copyright (c) 2006-2018, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ============================================... |
package com.fiume.billingmechine.activity;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.suppor... |
package num.grapecity.lab5;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@TargetApi(Build.VERSION_CODES.LOLLIPO... |
package com.liuyufei.bmc_android.admin;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.TextView;
import com.liuyufei.bmc_and... |
package slimeknights.tconstruct.library.client;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.client.resources.IResourceManager;
import net.minecraft.client.settings.GameSettings;
import net.minecra... |
package ru.atc.wordsTrainer.controllers;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.... |
package StudentInformatiomSystem;
public class Student extends MedicalReport implements College{
public void studentBio() {
System.out.println ("Student Name : Alex Karmokar");
}
public void studentGrade() {
System.out.println ("A");
}
public void studentMedical() {
System.out.println ("")... |
package com.mad.cityassignment;
import android.database.Cursor;
import android.database.CursorWrapper;
import com.mad.cityassignment.SettingsSchema.SettingsTable;
public class SettingsCursor extends CursorWrapper {
public SettingsCursor(Cursor cursor) {
super(cursor);
}
public Settings getSettin... |
package com.uchain;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import com.uchain.cryptohash.PrivateKey;
import com.uchain.cryptohash.PublicKey;
import org.junit.Test;
import com.uc... |
package mx.redts.ob3.model;
// Generated 03-jun-2014 0:22:34 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColu... |
package projetZoo;
public class Lion extends Felin {
public Lion(String n, int age) {
super(n, age);
// TODO Auto-generated constructor stub
}
}
|
package za.ac.cput.views.curriculum.scheduledClass;
/**
* Dinelle Kotze
* 219089302
* ScheduledClassMainGUI.java
* This is the Main Scheduled Class GUI for the Scheduled Class entity.
*/
import za.ac.cput.views.MainGUI;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.... |
/*
* Copyright 2002-2020 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package lesson13;
public class Main1 {
public static void main(String[] args) {
Table table1 = new Table(12, 4, 67);
Table table3 = table1;
Table table2 = new Table(12, 4, 67);
boolean res = table1.equals(table2);
System.out.println(res);
System.out.println(table1... |
package com.atguigu.proxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* 购买电脑的人
*
* @author qmwh
* @create 2019-05-31 16:41
*/
public class Customer {
public static void main(String[] args) {
final Producer pro = new Producer();
... |
import java.util.ArrayList;
import java.util.List;
/**
* Created by andrefedorenko on 09.07.17.
*/
public class Manager {
private List<Person> listPerson;
private List<LV> listLV;
private List<Student> studentList;
public void initPerson(){
listPerson = new ArrayList<>();
for(int i... |
package cn.kgc.service;
import cn.kgc.domain.Member;
import cn.kgc.domain.User;
import java.util.List;
public interface VEditService {
public boolean editphone(String phone);
public List balanceedit(float balance, String username);
public boolean insertV(Member member);
List<Member> findAll();
... |
package io.chark.food.domain.thread;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.chark.food.domain.BaseEntity;
import io.chark.food.domain.authentication.account.Account;
import io.chark.food.domain.comment.Comment;
import io.chark.food.domain.thread.category.ThreadCategory;
import javax.pers... |
package main.api.util.date;
import java.sql.SQLOutput;
import java.util.Date;
public class Test01 {
public static void main(String[] args) {
// java.util.Data
// - 생성자 Deprecated가 많다 : Y2K 때문
Date a = new Date();
System.out.println(a);
// 연월일을 설정하는 생성자 (Depreciate)
... |
package com.example.ecoleenligne.model;
public class Subscription {
private int id;
private String price;
private Subject subject;
private Level level;
public Subscription(int id, Subject subject) {
this.id = id;
this.subject = subject;
}
public Subscription(int id, Subject subject, String price, L... |
class Fancy {
void print(String str) {
str = str.replace(" ", " 🎇 ");
str = "🎇 " + str + " 🎇";
System.out.println(str);
}
}
public class Main {
public static void main(String[] args) {
Fancy fancy = new Fancy();
String str = "This is a fancy project.";
fancy.print(str);
}
}
|
package com.teamdev.persistence.repository;
import com.teamdev.persistence.UserRepository;
import com.teamdev.persistence.dom.User;
import org.springframework.stereotype.Repository;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;
... |
package net.mv.aop;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestDoSomething {
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationcontext.xml");
DoS... |
package de.cm.osm2po.snapp;
public interface AppListener {
void onGpsSignal(double lat, double lon, float bearing);
void onPathPositionChanged(double lat, double lon, float bearing);
void onModeChanged();
void onRouteChanged();
void onRouteLost();
}
|
package com.sunny.concurrent.concurrenttool;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
/**
* <Description> CountDownLatch的构造函数接收一个int类型的参数作为计数器,如果你想等待N个点完成,
* 这里就传入N。当我们调用CountDownLatch的countDown方法时,N就会减1,CountDownLatch的await方法会阻塞当前线程,
* 直到N变成零。由于countDown方法可以用在任何地方,... |
package za.ac.cput.chapter5assignment.factorymethod;
/**
* Created by student on 2015/03/12.
*/
public class Dog implements Animal{
@Override
public String sound() {
return "woof";
}
}
|
//package com.grandsea.ticketvendingapplication.activity;
//
//import android.app.Instrumentation;
//import android.app.PendingIntent;
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//import android.content.IntentFilter;
//import android.hardware.u... |
package com.esum.comp.dbm.table;
import java.io.File;
import java.util.Hashtable;
import java.util.Map;
import java.util.Properties;
import org.apache.commons.lang.StringUtils;
import com.esum.comp.dbm.DBCode;
import com.esum.comp.dbm.DBConfig;
import com.esum.comp.dbm.DBMException;
import com.esum.framework.common.... |
package com.mq.starter.mq.starter.resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annot... |
package com.hfjy.framework.message;
import java.io.Serializable;
public class MessageData implements Cloneable, Serializable {
private static final long serialVersionUID = 1L;
String name;
byte[] data;
public MessageData(String name, byte[] data) {
this.name = name;
this.data = data;
}
publi... |
package ru.steagle.views;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import ru.steagle.R;
import ru.steagle.config.Keys;
import ru.steagle.service.SteagleService;
/**
* ... |
package com.lesports.albatross.fragment.learning;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.format.DateUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterVie... |
package com.sohu.live56.view.login;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.sohu.live56.R;
import com.sohu.live56.view.BaseTitleActivity;
/**
* 联合登录。
*/
public class UnitLogin extends BaseTitleActivity implements View.OnClickListener {
private EditT... |
package mmt.core;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import mmt.core.NewParser;
import java.util.Collection;
import java.util.ArrayList;
import ... |
package com.redhat.service.bridge.infra.models.actions;
import java.util.HashMap;
import java.util.Map;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(J... |
/*
* AlleleDepthBuilder
*/
package net.maizegenetics.dna.snp.depth;
import ch.systemsx.cisd.hdf5.HDF5IntStorageFeatures;
import ch.systemsx.cisd.hdf5.IHDF5Reader;
import ch.systemsx.cisd.hdf5.IHDF5Writer;
import net.maizegenetics.dna.snp.NucleotideAlignmentConstants;
import net.maizegenetics.taxa.Taxon;
import net.... |
package org.db.ddbserver;
public class GDD {
String[] publisher = {"publisher.id", "publisher.name", "publisher.nation"};
String[] book = {"book.id", "book.title", "book.authors", "book.publisher_id", "book.copies"};
String[] customer = {"customer.id", "customer.name", "customer.rank"};
String[] customer_ran... |
package com.auro.scholr.home.presentation.view.adapter;
import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.RecyclerView;
import com... |
/*
* 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 sem_prototype;
/**
*
* @author robotica
*/
public class Fantasma extends Inimigo {
public Fantasma() {
tipo = ... |
package com.moh.departments.activiteis;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ExpandableListView;
i... |
package com.Hellel.PSoloid.dao.factory.postgres;
import com.Hellel.PSoloid.dao.factory.AccountDao;
import com.Hellel.PSoloid.dao.factory.CustomerDao;
import com.Hellel.PSoloid.dao.factory.DaoFactory;
/**
* Created by VSulevskiy on 14.09.2015.
*/
public class DbDaoFactory extends DaoFactory {
@Override
publ... |
package calculate;
import methods.*;
public class Play {
public static void main(String[] args) {
test_poly_range1();
test_poly_range2();
test_poly_range3();
test_Hyperbolic_range1();
}
final static double start_position_1 = 0.01;
final static double start_position_2 = 1.5;
final static int [] range... |
package com.uog.miller.s1707031_ct6039.servlets.childclass;
import com.uog.miller.s1707031_ct6039.beans.ClassBean;
import com.uog.miller.s1707031_ct6039.beans.HomeworkBean;
import com.uog.miller.s1707031_ct6039.beans.SubmissionBean;
import com.uog.miller.s1707031_ct6039.oracle.ClassConnections;
import com.uog.miller.s... |
/*
* Copyright (c) 2017 SAbort
*
* 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... |
package com.oa.asset.controller;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.Stack;
import java.util.Vector;
public class ProductController {
public static void main(String[]args){
List<String> list = new Array... |
package com.proyecto.ui.utils;
import java.util.Stack;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.Session;
import org.zkoss.zk.ui.Sessions;
import org.zkoss.zk.ui.event.EventQueue;
import org.zkoss.zk.ui.event.EventQueues;
/**
* Session managed redirection class. Do not access the redirect... |
package com.bruce.composite.jdkdemo;
import java.util.HashMap;
import java.util.Map;
public class Composite {
public static void main(String[] args) {
//todo more logics
Map<Integer, String> hashMap=new HashMap<Integer, String>();
hashMap.put(0, "ÀÏ»¢");
Map<Integer, String> map=new HashMap<Integer, String>();
m... |
/*
* 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 serverPrgms;
/**
*
* @author Shivam
*/
public interface TicTaeToeConstants
{
public static int PLAYER1 ... |
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
public class BruteCollinearPointsTest extends CollinearTest {
@Test(expected = NullPointerException.class)
public void constructorThrowsNPE() {
new BruteCollinearPoints(null);
}
@Test(expected = NullPointerException.... |
/**
*
*/
package com.fixit.core.data.mongo;
import java.util.Arrays;
import org.bson.types.ObjectId;
import com.fixit.core.data.DataMapping;
/**
* @author Kostyantin
* @createdAt 2016/12/16 20:22:35 GMT+2
*/
public class SearchTag implements MongoModelObject {
private ObjectId _id;
private String tag;
... |
package ApiTest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.DynamicTest.stream;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.time.LocalDate;
import java.util.Calendar;
import... |
/*
* Fazer um algoritmo que leia os dois lados A e B de um triângulo retângulo e
* calcula a hipotenusa do triângulo. Para esse caso, considere que hipotenusa =
* √A²+B². Dica: nesse programa, você deve usar a função matemática Math.sqrt().
* Por exemplo, a raiz de 121 ficaria Math.sqrt(121) .
*/
package a... |
/*
打印如下图形
----*
---* *
--* * *
-* * * *
* * * * *
i j k
0 4 1 j = 4-i; k = i+1;
1 3 2
2 2 3
3 1 4
4 0 5
* * * *
* * *
* *
*
*/
class TestExer1
{
public static void main(String[] args)
{
for(int i = 0;i < 5;i++){
//输出“-”
for(int j = 0;j < 4-i;j++){
System.out.print(... |
package parameters;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
//import java.util.Random;
//
//import com.google.common.base.Function;
//import com.google.common.base.Predicate;
//import com.google.common.base.Predicates;
//import com.google.common.collect.Iterables;
//import com.g... |
package com.user.auth.server.dao;
import com.user.auth.server.model.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserDao extends CrudRepository<User, Long> {
User findByUsername(String username);
}
|
package json;
/**
* Created by RENT on 2017-03-22.
*/
public class Person {
String firstName;
String lastName;
int birthYear;
String idNumber;
Person(){
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstN... |
package sb.hackathon.controller;
import lombok.extern.slf4j.Slf4j;
import net.glxn.qrgen.core.image.ImageType;
import net.glxn.qrgen.javase.QRCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org... |
/*
* 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 lk.vcnet.storemodule.client.user_interfaces;
import java.awt.Dimension;
import lk.vcnet.storemodule.client.main.ClientMain;
/... |
package panel;
import javax.swing.*;
import java.awt.*;
/*
* This disabled version of the upload Panel removes the Template Statements and Contact List from address book.
* This also, as the name implies, disables all fields inside so they are non editable and display as such.
* This is utilised anytime an... |
package com.example.sypark9646.item01;
public abstract class ShapeFactory {
abstract Shape createShape(String name);
}
|
package algorithms.graph.process;
import algorithms.graph.Graph;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
/**
* Created by Chen Li on 2018/5/6.
*/
@Getter
@Setter
@Slf4j
public class DegreesOfSeparation {
private SymbolGraph symbolGraph;
private String sourceVertex;
priv... |
package jgame;
public class Endurance {
private static int energy, speed;
static {
energy = 100;
speed = 1;
}
public static int getEnergy() {
return energy;
}
public static int getSpeed() {
System.out.println(speed);
return 32 % speed != 0 ? speed - 1 : speed;
}
public static v... |
class Parent
{
public void m1()//consider as overriden
// public static void m1()//hidding
{
System.out.println("overriden");
}
}
class Child extends Parent
{
public void m1()//consider as overriding
// public static void m1()//method hidding
{
System.out.println("overridin... |
package SinglePattern04.exercise.IoDH;
import java.util.stream.Stream;
/**
* IoDH:Initialization Demand Holder结合了懒汉和饿汉模式的优点,克服了它们的缺点.
* 使用内部类和类加载来使得jvm保证了实例化时的线程安全性.
*/
public class Client {
public void f(){
System.out.println(IoDHLoadBalancer.getInstance());
}
p... |
package com.example.sys.entity;
import lombok.Data;
import java.util.Date;
@Data
public class User {
/**
* 用户id
*/
private Integer id;
/**
* 用户名称
*/
private String username;
/**
* 用户密码
*/
private String password;
... |
package com.employee.management.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.employee.management.model.Employee;
import com.employee.management.repository.EmployeeRepository;
// employee service class
@Service
... |
import java.util.*;
public class cTable {
private int[] tab; // class field representing int table
private int size; // class field representing table size
public cTable() {
// TODO Auto-generated constructor stub
System.out.println("To jest moja tablica");
}
public cTable(int n)
{
this.size = n;
if... |
import java.io.*;
/**
* Created by vszm on 8/3/14.
*/
class GNYR09F {
public static void main(String[] args) throws IOException {
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
long[][... |
package pl.edu.agh.cyberwej.data.dao.implementations;
import org.springframework.stereotype.Repository;
import pl.edu.agh.cyberwej.data.dao.interfaces.PaymentItemDAO;
import pl.edu.agh.cyberwej.data.objects.PaymentItem;
@Repository
public class PaymentItemDAOImpl extends DAOBase<PaymentItem> implements PaymentItemDA... |
package main.java.com.javacore.io_nio.task3.utils;
public final class Constants {
public static final String DELIMITER = ",";
}
|
package com.ytdsuda.management.mappers;
import org.apache.ibatis.annotations.Select;
public interface RecentSummaryMapper {
}
|
package test;
import java.io.File;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
impor... |
package com.petclinicspring.com.services;
import com.petclinicspring.com.models.Vet;
public interface VetService extends CrudService<Vet, Long>{
}
|
package com.example.priceapp.service;
import com.example.priceapp.model.Price;
import com.example.priceapp.repository.PriceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Comparator;
import java.util.Date;
import java.util.List... |
package cards;
import java.util.Scanner;
public class House {
public void startGame() throws InterruptedException {
// Double wager;
Scanner kb = new Scanner(System.in);
Player player = new Player();
player.setName(" ");
Player dealer = new Player();
dealer.setName("Dealer");
Deck d = new Deck();
d.s... |
import java.io.*;
import java.lang.*;
import java.util.*;
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// #include<stdbool.h>
/*
# Author : @RAJ009F
# Topic or Type : GFG/Array
# Problem Statement : MaxDiff between two elements
# Description :
# Complexity :
=======================
#samp... |
package com.coder.model;
// Generated Jan 23, 2020 8:11:18 PM by Hibernate Tools 5.0.6.Final
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType... |
package com.egova.eagleyes.repository;
import com.egova.baselibrary.model.BaseResponse;
import com.egova.baselibrary.model.Lcee;
import com.egova.baselibrary.model.NameTextValue;
import com.egova.eagleyes.model.request.SearchCondition;
import java.util.List;
import androidx.lifecycle.LiveData;
/**
* 车辆统计
*/
publi... |
/*********************************************************************
Purpose/Description: The following solution has the linear complexity using BigInteger numbers
in order to print very long numbers without causing an undesired overflow however a subLinear
couldn't be found but using a fibbonnacci solution.
Au... |
package br.com.estore.web.control;
import java.io.IOException;
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.HttpServletResponse;
... |
package egovframework.adm.com.cmp.controller;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.com... |
/**
*
*/
package ethan.v4.thread;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
/**
* @since 2013-10-27
* @author ethan
* @version $Id$
* ^^固定线程池,缓存线程池,调度线程池
*/
public class Threa... |
import java.util.Scanner;
public class Middle {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int n1,n2,n3;
System.out.println("Enter 3 distinct number");
n1=in.nextInt();
n2=in.nextInt();
n3=in.nextInt();
if(n1==n2||n2==n3||n3==n2)
System.out.println("Duplicate values f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.