text stringlengths 10 2.72M |
|---|
/**
* Created by nsp on 2015/10/21.
*/
public class WelcomeBank {
public WelcomeBank() {
System.out.println("Welcome to ABC Bank");
System.out.println("We are happy to give your money if we can find it");
}
}
|
package lab.tiyo.trigonometry.adapters;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.TextVie... |
package application;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import javafx.scene.control.ListView;
public class collaborateur_principal {
ArrayList<Integer> users_select_list_id = new ArrayList<Integer>();
// create principal collaborator met... |
package ru.job4j.htmlcss;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import org.apac... |
package com.yxb.contentproviderdemo;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.util.Log;
public class MyContentProvider extends C... |
package com.alvin.demo.design;
import com.alvin.demo.design.store.ICommodity;
import com.alvin.demo.design.store.Impl.CardCommodityService;
import com.alvin.demo.design.store.Impl.CouponCommodityService;
import com.alvin.demo.design.store.Impl.GoodsCommodityService;
public class StoreFactory {
public ICommodity ... |
package bn;
import bn.distributions.Distribution.SufficientStatistic;
/**
* Basic Bayesian node interface. Methods held by static and dynamic nodes
* @author Nils F. Sandell
*/
public interface IBayesNode {
/**
* Get a sufficient statistic object for this node's distribution.
* @return A sufficient statist... |
package generator.util.structures;
import generator.visitors.AtomicValueType;
import java.util.List;
public class PythonFunction {
private String name;
private AtomicValueType returnValue;
private List<AtomicValueType> parameters;
public PythonFunction(String name, AtomicValueType returnValue, List<... |
package backend;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeSet;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeMap;
import java.util.Vector;
import java.util.Collection;
import java.sql.ResultSet;
import java.sql.SQLException;
import util.... |
package com.qt.welcome.controller;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpSe... |
package testo.pl.giphyapitest.connection;
/**
* Created by Lukasz Marczak on 2015-08-07.
*/
public class Run {
public static GiphyWebService run(String endpoint) {
return new retrofit.RestAdapter.Builder().setEndpoint(endpoint)
.build().create(GiphyWebService.class);
}
public sta... |
package fr.lteconsulting.pomexplorer.commands;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Created by ebour on 02/11/15.
*/
@Retention(RetentionPolicy.RUNTIME)
public @interface Command
{
}
|
package com.swjt.xingzishop.Service;
import com.swjt.xingzishop.Bean.XzUser;
import com.swjt.xingzishop.Mapper.XzUserMapper;
import com.swjt.xingzishop.SpringTest;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import javax.annotation.Resource;
import java.util.Date;... |
// https://www.youtube.com/watch?v=pGVnBT1bI6E
class Solution {
public int reachNumber(int target) {
int sum = 0, k = 0;
target = Math.abs(target);
while (sum < target || (sum != target && (sum - target) % 2 != 0)) {
sum = sum + k;
k++;
}
return k > 0... |
package net.grupocae.cd;
public class NumerosRomanos {
public static void main(String[] args) {
//regresaRomano("MCMLXXIX");
regresaRomano("1979");
}
public static void regresaRomano(String numero) {
String[] arreglo_miles = { "", "M", "MM", "MMM" };
String[] arreglo_cienes = { "", "C", "CC", "CCC", "CD"... |
package com.feedback.model;
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="courses")
public class Enroll1 {
@Id
@Gen... |
package com.worldchip.bbp.ect.receiver;
import com.worldchip.bbp.ect.service.BootService;
import com.worldchip.bbp.ect.util.AlarmUtil;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class BootReceiver extends BroadcastReceiver ... |
package basic;
//yield()메서드 연습용 예제
public class ThreadTest13 {
public static void main(String[] args) {
ThreadYield th1 = new ThreadYield("1번 쓰레드");
ThreadYield th2 = new ThreadYield("2번 쓰레드");
th1.start();
th2.start();
try {
Thread.sleep(10);
} catch (InterruptedException e) {
}System.out.println... |
package com.busekylin.gracefulshutdown.web;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class WebController {
@GetMapping("/test")
public void test(){
try {
Thread.sleep(1000 * 60);
... |
package EntityManagers;
import java.util.List;
import Entities.Address;
import Entities.Customer;
public interface AddressManager {
// Create
public void persistAddress(Address input);
// Read
public List<Address> getAddressByCustomer(Customer input);
// Update
public void updateAddressLine1(int id, Stri... |
package paket;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Kaynak {
private Map<String, String> mapimiz;
private List<String> listemiz;
private String eposta;
public Kaynak() {
eposta = "java@yandex.ru";
mapimiz = new HashMap<String, String... |
package com.richdapice.flowfinder.models;
import com.google.auto.value.AutoValue;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.Moshi;
@AutoValue
public abstract class SiteCode {
public abstract String value();
public abstract String network();
public abstract String agencyCode();
... |
package controller;
import model.MultiLayerImageProcessingModel;
/**
* The current command function object used in the command pattern for the controller.
*/
public class Current implements ImageProcessingCommands {
private final String name;
/**
* Creates a current function object with the given name.
... |
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.imageio.ImageIO;
/**
* TargetPlane class represents targets in enemy plane form that can shoot
*/
... |
package fm.jiecao.jcvideoplayer_lib;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.media.AudioManager;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Gravity;
import android.vie... |
package de.tetet.fof7.denorm;
import java.util.function.Consumer;
import java.util.function.Predicate;
import com.mongodb.BasicDBObject;
import com.mongodb.BulkWriteOperation;
import com.mongodb.DB;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import de.tetet.fof7.config.Config;
import de.tetet.fof7.con... |
package com.design.pattern.singleton;
/**
* @Author: 98050
* @Time: 2019-01-09 23:04
* @Feature: 静态内部类实现
*/
public class Singleton5 {
private Singleton5(){
System.out.println("运行");
}
private static class Singleton5Holder{
private static final Singleton5 uniqueInstance = new Singleton5... |
package com.getkhaki.api.bff.persistence.models.views;
import com.getkhaki.api.bff.web.models.PersonDto;
import org.hibernate.annotations.Type;
import javax.persistence.Column;
import javax.persistence.Lob;
import java.time.Instant;
import java.util.List;
public interface CalendarEventsWithAttendeesView {
byte[]... |
package Dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* 用于数据库备份与恢复的Dao
* @author computer
*
*/
public class SecureDao {
private final static String dbUrl = "jdbc:sqlserver://localhost:1433;DatabaseName=master";... |
/*
* 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 servlet.register;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
im... |
package it.bibliotecaweb.servlet.libro;
import java.io.IOException;
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 it.bibliotecaweb.model.Autor... |
import org.hibernate.Criteria;
import org.hibernate.PropertyAccessException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.St... |
package com.iesvirgendelcarmen.POO.ejercicios;
/**
* Managed class for right triangle
* @author beni
* @version 1.0
*/
public class Triangle {
private double side1;
private double side2;
/**
* Contructor
* @param side1 first cateto
* @param side2 second cateto
*/
public Triangle(double ... |
package gov.nih.mipav.view;
import gov.nih.mipav.model.provenance.ProvenanceRecorder;
import gov.nih.mipav.model.scripting.*;
import gov.nih.mipav.model.scripting.actions.*;
import gov.nih.mipav.model.structures.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import javax.swin... |
/*
* 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 agh.musicapplication.mappdao.interfaces;
import agh.musicapplication.mappdao.Crudable;
import agh.musicapplication.mappmodel.... |
package org.exoplatform.management.ecmadmin.operations.queries;
import java.util.Set;
import org.exoplatform.services.cms.queries.QueryService;
import org.gatein.management.api.exceptions.OperationException;
import org.gatein.management.api.operation.OperationContext;
import org.gatein.management.api.operation.Operat... |
package net.baade;
import java.math.BigDecimal;
public class Cliente {
private String Nomecliente;
/*int clienteID;
public int getClienteID() {
return clienteID;
//}
//public void setClienteID(int clienteID) {
this.clienteID = clienteID;
//}
*/
public String getNomecliente() {
retur... |
package com.aidigame.hisun.imengstar.http.json;
import com.aidigame.hisun.imengstar.http.json.LoginJson.Data;
/**
* {"state":0,
* "errorCode":0,
* "errorMessage":"",
* "version":"1.0",
* "confVersion":"1.0",
* "data":{"isSuccess":true},
* "currentTime":1401949319
* }
* @author admin
*
*/
public class Regis... |
package com.bcq.oklib;
import com.bcq.oklib.net.domain.DefauParser;
import com.bcq.oklib.net.Processor;
import com.bcq.oklib.net.Parser;
import java.io.File;
public class OKHelper {
private static Parser parser;
private static Processor processor;
private static String ROOT_NAME = Constant.ROOT_NAME;
... |
//designpatterns.command.SystemExitClass.java
package designpatterns.command;
public class SystemExitClass {
public void exit() {
System.out.println("Í˳öϵͳ£¡");
}
}
|
package com.zxt.framework.dictionary.action;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JSO... |
package com.robin.springbootlearn;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAuto... |
package com.xin.bob.fibonacci;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.xin.bob.fibonacci.utils.Fibonacci;
/**
* 传统的ndk-build命令 编译出so文件 然后再Java代码中引入编译出的so文件
* jni 文件夹中放置C的源码 Android.mk 和 Application.mk 使用ndk-build编译成so文件后调用
* Android模式下 ... |
package com.zjut.bluetoothle;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class TimeHelper {
static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
static SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMddHHmmss");
private stat... |
package assignment4;
import java.util.Scanner;
public class Question31 {
public static void main(String[] args) {
Question31 obj = new Question31();
Scanner sc = new Scanner(System.in);
System.out.println("\nPrinting pattern\n");
System.out.print("Enter the number: ");
int number = sc.ne... |
package org.jctools.queues.atomic;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.jctools.queues.MessagePassingQueue;
import org.jctools.queues.MpqSanityTestMpscChunked;
import org.jctools.queues.MpscChunkedArrayQueue;
impo... |
package com.itcia.itgoo;
import java.security.Principal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.sprin... |
package com.innova.timetable;
import android.app.Application;
import androidx.lifecycle.LiveData;
import com.innova.timetable.dao.LessonDao;
import com.innova.timetable.dao.TaskDao;
import com.innova.timetable.models.Lesson;
import com.innova.timetable.models.Task;
import java.util.List;
public class ... |
package com.company.lesson09;
public class Robot {
private String name;
private int hp;
private int power;
}
|
package com.cpro.rxjavaretrofit.entity;
/**
* Created by lx on 2016/6/16.
*/
public class PubClassInfoListEntity {
private Long pubclassId;
private String pubclassCode;
private String subject;
private String pubclassName;
private String teacherName;
private String brief;
private Long clas... |
package network.warzone.tgm.util;
import com.google.common.collect.Sets;
import org.bukkit.Material;
import java.util.Set;
public class Blocks {
private static String[] visualChoices = {"WOOL", "CARPET", "TERRACOTTA", "STAINED_GLASS", "STAINED_GLASS_PANE"};
public static boolean isVisualMaterial(Material mat... |
package com.maxmind.geoip2.model;
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.get;
import static com.github.tomakehurst.wiremock.client.WireMock.stubFor;
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
... |
package com.tech42.callrecorder.views;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.PieData;
import com.github.mike... |
package com.example.ecoleenligne;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import andro... |
package app.com.example.android.identity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;... |
package com.outfitterandroid.unittests;
import com.outfitterandroid.User;
import com.parse.ParseException;
import com.parse.ParseUser;
import junit.framework.TestCase;
public class UserTest extends TestCase {
/**
* Tests priority submission setting
*/
public void testPrioritySubmission() throws Par... |
package repositoryDAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import entidades.Loja;
public class LojaDAO {
private Connection connection;
public LojaD... |
package com.hr.personnel.service;
import com.hr.login.model.LoginModel;
public interface UpdatePasswordService {
boolean updateNewPassword(LoginModel loginModel, String newPassword);
LoginModel findNewLoginModel(LoginModel loginModel);
}
|
package com.imooc.service;
import com.imooc.pojo.*;
import com.imooc.pojo.vo.CommentCountsVO;
import com.imooc.pojo.vo.ShopCartVO;
import com.imooc.utils.PagedGridResult;
import java.util.List;
/**
* 商品详情页相关接口
*/
public interface ItemService {
/**
* 根据商品id查询商品
* @return
*/
Items getItemsByI... |
package com.axibase.tsd.api.method.extended;
import com.axibase.tsd.api.Checker;
import com.axibase.tsd.api.method.BaseMethod;
import com.axibase.tsd.api.method.checks.AbstractCheck;
import com.axibase.tsd.api.model.command.PlainCommand;
import com.axibase.tsd.api.model.extended.CommandSendingResult;
import javax.ws.... |
package com.project.universitystudentassistant.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.annotation.NonN... |
package com.egova.eagleyes.repository;
import com.egova.baselibrary.model.Lcee;
import com.egova.eagleyes.model.request.TFLoginRequest;
import com.egova.baselibrary.model.BaseResponse;
import com.egova.eagleyes.model.respose.LoginResponse;
import androidx.lifecycle.LiveData;
public interface LoginRepository {
//... |
package dao;
import java.util.HashMap;
import java.util.Map;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import dao.mapper.FileMapper;
import logic.SNSFile;
@Repository
public class file... |
/*
* 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 mandelbrot.gui;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics;
import... |
package ru.avokin.uidiff.diff.folderdiff.model;
import ru.avokin.uidiff.diff.common.model.DiffSideModel;
/**
* User: Andrey Vokin
* Date: 01.10.2010
*/
public class FolderDiffSideModel extends DiffSideModel {
private final DiffTreeModel treeModel;
private DiffFileTreeNode selectedNode;
public Folder... |
import convert.ConvertBase;
import convert.impl.ConvertBaseImpl;
/**
* Main class.
*/
public final class Main {
private Main() {
}
/**
* Main point for start programm.
*
* @param args arguments for programm.
*/
public static void main(final String[] args) {
ConvertBase co... |
package com.crmiguez.aixinainventory.repository;
import com.crmiguez.aixinainventory.entities.Brand;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository("brandRepository")
public interface BrandRepository extends CrudRepository<Brand, String> {
... |
package com.github.binarywang.wxpay.testbase;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("xml")
public class XmlWxPayConfig extends WxPayConfig {
private String openid;
public String getOpenid() {
return openid;
}
public... |
package com.hdy.myhxc.mapper;
import com.hdy.myhxc.model.Role;
import com.hdy.myhxc.model.RoleExample;
import java.util.List;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;
@Mapper
@Repository
public interface RoleMapper {
/**
... |
import java.util.*;
/**
* Write a description of class Test here.
*
* @colinbowen
* @0.1
*/
public class Test
{
private Card playingCard;
/**
* Constructor for objects of class Test
*/
public Test()
{
}
public void createCards()
{
playingCard = ne... |
package com.example.choonhee.hack2hired_21.activity.book;
import java.io.Serializable;
/**
* Created by calvinlow on 22/04/2017.
*/
public class Book implements Serializable {
private String name;
private String ISBN;
private String desc;
private String author;
private String imageUrl;
pu... |
package com.hznu.fa2login.modules.sys.service;
import com.baomidou.mybatisplus.service.IService;
import com.hznu.fa2login.modules.sys.entity.Ccode;
/**
* @Author: TateBrown
* @date: 2018/11/28 19:28
* @param:
* @return:
*/
public interface CcodeService extends IService<Ccode> {
}
|
package com.mc.library.base;
import android.support.v4.app.Fragment;
/**
* Created by dinghui on 2016/11/4.
* Fragment基类
*/
public class BaseFragment extends Fragment {
}
|
package Graphs;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
class UndirectedGraphNode {
int label;
List<UndirectedGraphNode> neighbors;
UndirectedGraphNode(int x) {
label = x;
neighbors = new ArrayList<UndirectedGraphNode>(); }
... |
package com.pichincha.prueba.exceptions;
import java.util.Locale;
import com.pichincha.prueba.util.MensajesUtil;
import com.sun.istack.NotNull;
public class BOException extends Exception {
private static final long serialVersionUID = 1L;
private static final Locale localeDefault = new Locale("es", "EC");
priv... |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package com.java.practice.google;
/**
* https://leetcode.com/problems/circular-array-loop/
*/
public class ArrayLoop {
public static void main(String[] args) {
int[] nums = {-2, 1, -1, -2, -2};
System.out.println(isCycle(nums));
}
public static boolean isCycle(int[] nums) {
if... |
/*
* LcmsLesson.java 1.00 2011-10-11
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the license agreement
* you ent... |
package com.example.pagination_task.Fragments;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultIte... |
package com.ai.platform.agent.web.util;
public class ResultCodeConstants {
public static final String OK = "0";
public static final String OK_MSG = "操作成功";
public static final String FAIL = "1";
public static final String FAIL_MSG = "操作失败";
public static final String DOING = "2";
public static final String DO... |
package org.test.ht;
import java.math.BigDecimal;
public class RoundKSqrt {
public String roundKSqrt(double x, int k) {
String current = "";
for (int i = 0; i <= k; i++) {
int low, high;
if (i == 0) {
low = 0;
high = (int) x;
} e... |
package com.testyantra.empspringmvc.jaxb.beans;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
@SuppressWarnings("serial")
@Entity
@Table(name = "EMPLOYEE_ADDRESSINFO")
public class Employ... |
package com.karya.service;
import java.util.List;
import com.karya.model.MaterialReqnotCreate001MB;
import com.karya.model.PuItemHistory001MB;
import com.karya.model.ReqItemOrdBuy001MB;
import com.karya.model.RequestedItemBuy001MB;
public interface IBuyingReportsService {
public void addmatreqnotcreate(MaterialReqn... |
package com.example.randomlocks.listup.Adapter;
import android.content.Context;
import android.graphics.Paint;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CompoundButton... |
package org.celllife.stock.test;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.test.context.transaction.TransactionConfiguration;
@Configuration
@ImportResource({
"classpath:/META-INF/spring/spring-application.xml... |
import java.util.Scanner;
public class Q1 {
public static void main(String[] args) {
//create Scanner object
Scanner input = new Scanner(System.in);
//input the numbers
System.out.println("Enter a, b, and c for the quadratic equation.");
double aInput = input.nextDouble();
double bInput = input.next... |
/******************************************************************************
* Copyright (c) 2012 GitHub Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... |
package algorithms;
import graph.*;
import log.*;
import java.util.*;
import java.io.*;
public class DepthFirstSearch {
/**
*
*/
private ArrayList<Vertex> vertexList;
/**
*
*/
private int orderIndex = 0;
/**
*
*/
private Stack<Vertex> stack;
... |
package sign.com.common;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 分页对象
* @author lulin
*
*/
public class PageDto {
private Integer pageSize = 10; // 每页条数
private Integer pageIndex = 1; // 第几页
private Long fullListSize; // 总记录数
Map<String,Object> params = new Ha... |
package com.pdd.pop.sdk.http.api.response;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.PopBaseHttpResponse;
public class PddLogisticsOnlineSendResponse extends PopBaseHttpResponse{
/**
* 发货通知响应对象
*/
@JsonProperty("logistics_online_send_response"... |
package cn.math.fibonacciSequence;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
/**
* Created by xiaoni on 2019/8/17.
* 斐波那契数列
* <p>
* 又称黄金分割数列、因数学家列昂纳多·斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”
*/
@Slf4j
public class FibonacciSequence {
/**
* 递归法求第n项
*
* @param n... |
/**
* Pg 825 Chapter 13 - Intro to Comparator
* Show the difference between Comparable and Comparator in an array of some words
* from the NATO phonetic alphabet codeWord list. (https://en.wikipedia.org/wiki/NATO_phonetic_alphabet)
*/
/* pg 826 Comparator Interface:
* public interface Comparator<T> {
* p... |
package page_object;
import command_providers.ActOn;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import seleniumAutomation.EbayPriceValidation;
public class NavigationBar {
private final Logger LOGGER= Log... |
package com.bridgelabz.employeePayroll;
import org.junit.Assert;
import org.junit.Test;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import static com.bridgelabz.employeePayroll.EmployeePayrollServices.IOService... |
/*
* Copyright 2002-2021 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 msip.go.kr.organ.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Controller;
import Bean.Booking;
import DAO.BookingDAO;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import ja... |
class MergeSort
{
// Merges two subarrays of arr[].
// First subarray is arr[l..m]
// Second subarray is arr[m+1..r]
void merge(int arr[], int l, int m, int r)
{
int[] left = new int[m];
for (int i=0; i<m; i++) {
left[i] = arr[i];
}
in... |
package language.thread.lock.juc;
public class ReentrantLockAble {
boolean isLocked = true;
Thread lockedBy = null;
int lockCount = 0;
public synchronized void lock() throws InterruptedException {
Thread thread = Thread.currentThread();
while (isLocked && lockedBy != thread) {
... |
package com.lasform.core.business.exceptions;
public class EmptyFieldException extends BusinessException {
public EmptyFieldException(){
super("Empty Field Exception");
setBusinessExceptionCode(1003);
}
public EmptyFieldException( String message ){
super(message);
setBusin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.