text
stringlengths
10
2.72M
package pers.mine.scratchpad.base.classload; /** * 类代码块初始化顺序 */ public class ClassLoadInitOrderTest { static { System.out.println("ClassLoadInitOrderTest静态代码块"); } public static void main(String[] args) { new SubClass(); } static class SuperClass { static { ...
package shoplistgener.domain; /** * Enum Types associated with an ingredient */ public enum Unit { DL, ML, G, PCS, CL, KG }
package org.softRoad.models; import org.softRoad.models.query.QueryUtils; import javax.persistence.Table; @Table(name = "procedure_city") public class ProcedureCity { public final static String PROCEDURE_ID = "procedure_id"; public final static String CITY_ID = "city_id"; public static String fields(Str...
package bspq21_e4.ParkingManagment.Classes; import static org.junit.Assert.*; import org.databene.contiperf.junit.ContiPerfRule; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import bspq21_e4.ParkingManagement.server.data.Parking; impo...
package com.hamrahvas.webservice; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element interface * generat...
package com.emed.shopping.service.admin.goods.impl; import com.emed.shopping.base.BaseServiceImpl; import com.emed.shopping.dao.model.admin.goods.ShopGoodsSpecProperty; import com.emed.shopping.service.admin.goods.GoodsSpecPropertyService; import org.springframework.stereotype.Service; /** * @Author: 周润斌 * @Date: c...
package cn.auto.core.annotation; /** * Created by chenmeng on 2016/4/26. */ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.T...
/* * 4.5.2 Omikuji * 乱数と条件分岐を使って、「大吉」「中吉」「小吉」「凶」を表示するプログラムを作りましょう。 * 大吉のときだけ、タートルの絵(星など)を描くようにしましょう。 */ public class Omikuji extends Turtle{ public static void main(String[] args){ Turtle.startTurtle(new Omikuji()); } public void start(){ int x=random(4); if(x==1){ System.out.println("大吉です"); rt(1...
package contacts; import suffixtree.SuffixIndex; import suffixtree.SuffixTrie; import suffixtree.SuffixTrieNode; import javax.swing.*; import java.sql.*; import java.util.ArrayList; /* ContactDB is responsible for the communication between the GUI and the database. Other 'DB' classes have static implemen...
// // Decompiled by Procyon v0.5.36 // package com.davivienda.sara.tablas.provisionhost.servicio; import javax.persistence.Query; import java.util.Collection; import java.util.Calendar; import javax.persistence.TransactionRequiredException; import com.davivienda.sara.base.exception.EntityServicioExcepcion; import j...
package com.pan.Concurrent.t5; /** * 当一个线程执行synchronized(非this对象X)时,另一个线程执行x对象中的同步方法或者同步代码块时,成同步效果 * */ public class Runt5 { public static void main(String[] args) throws Exception{ Servicet5 servicet5=new Servicet5(); MyObjectt5 myObjectt5=new MyObjectt5(); ThreadAt5 a=new ThreadAt5(...
package gameView; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import gameController.Card; public class CardImages { //array de arrays, para conter as imagens de jogares/armas/quartos respectivamente //porque não podem ser final? private fin...
package com.java8.comparator; import com.java8.behaviourparameterization.Apple; import com.java8.behaviourparameterization.Color; import java.util.ArrayList; import java.util.Comparator; import java.util.List; public class ChainingComparatorJava8 { public static void main(String[] args) { Apple a1 = new...
package com.example.gamedb.ui.activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import androidx.annotation.NonNull; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import com.example.gamedb.R...
/* * CZY_jd_updatecourseexperimentalenvironment.java * * Created on __DATE__, __TIME__ */ package czy.view; import global.dao.Databaseconnection; import java.sql.Connection; import java.sql.SQLException; import javax.swing.JOptionPane; import czy.dao.Courseexperimentalenvironmentaccess; import czy.model.Course...
/*** * @file SitiosDB.java * @author Francsico Javier Feria Coca * Descripcion: Aplicacion final del curso Android impartido por @exitae * Alumno: Francsico Javier Feria Coca * Notas: En comentarios de codigo quedan excluido acentos y caracteres especiales * para evitar errores con diferentes codificaciones de ca...
package com.davivienda.sara.administracion.session; import com.davivienda.sara.jobs.JobInformeDiferenciasRemote; import com.davivienda.sara.jobs.JobDaliAutoRemote; import com.davivienda.sara.jobs.JobCargueDiariosRemote; import com.davivienda.sara.jobs.JobInformeDiferenciasHome; import com.davivienda.sara.jobs.JobDaliA...
package v1; import java.util.Arrays; import java.util.concurrent.Callable; public class StatisticsPrinter implements Callable<Void>{ static double[] total_inits, total_balances, total_bandwagons, total_buckpasses, init_myCap_min, init_myCap_med, init_oppCap_min, init_oppCap_med, init_capRatio_min, init_capRat...
package org.dbdoclet.test.sample; /** * @author <a href="mailto:mfuchs@unico-consulting.com">Michael Fuchs</a> * @version 1.0 */ public class DreamingException extends Exception { }
package com.mycalc.view; import com.mycalc.controller.MyCalcController; import javax.swing.*; import javax.swing.border.EmptyBorder; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class DisplayPanel extends JPanel { private String display; pri...
package sop.filegen.generator.impl; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.util.Map.Entry; import fr.opensagres.xdocreport.core.document.SyntaxKind; import fr.opensagres.xdocreport.document.IXDocReport; import fr.opensagres...
package com.gk.action; import java.util.List; import javax.annotation.Resource; import com.gk.service.CollegeService; import com.opensymphony.xwork2.ActionSupport; import net.sf.json.JSONArray; import net.sf.json.JSONObject; public class College extends ActionSupport { private static final long ser...
package Models; import java.sql.Date; public class Factura { private int CodigoFactura; private int TipoDeFactura; private double MontoTotal; private double MontoPagado; private Date Fecha; private int idCliente; private int idTipoDePago; public Factura() { }...
package com.cakeworld.main; import org.springframework.data.repository.CrudRepository; import com.cakeworld.model.Bill; public interface BillRepository extends CrudRepository<Bill, Integer> { }
../../../jvmti-common/Main.java
package com.vicutu.batchdownload.engine.io.impl; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import com.vicutu.batchdownload.domain.AccessDetail; import com.vicutu.batchdownload.engine...
package com.emg.projectsmanage.ctrl; import java.util.Calendar; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Cont...
package com.hashedin.repository; import java.util.List; import com.hashedin.model.Task; public interface TaskRepository { List<Task> findByProject(long projectId); List<Task> findAll(); List<Task> findByAssignedTo(long userId); List<Task> findByStatus(long projectId,String status); Task save(Task task); Task ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.pmm.sdgc.ws.model; import com.pmm.sdgc.model.VariaveisLotacaoSub; import java.time.LocalDate; import java.util.ArrayList; ...
package com.gabriel.handyMan.controllers; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframewo...
package javaOOP; public class cars { // attributes and functions public String vinNumber; int numberOfdoors; int numberOfWheels; String carModel; boolean blindSpot; public void start() { breakCar(); } public void accelerate() { } public void checkMileage() { } p...
package maze.logic; public class Hero extends Piece{ public Hero(int x, int y){ super(x,y,'H'); } public Hero(){ super(1,1,'H'); } public void move(char dir){ switch(dir){ case 'N': case 'n': posY--; break; case 'S': case 's': posY++; break; case 'E': case 'e': posX++; break;...
package com.javaArray; import java.util.ArrayList; public class Customer { private String name; private ArrayList<Double> transactions; public Customer(String name, double amount) { this.name = name; this.transactions = new ArrayList<>(); addTransaction(amount); } ...
package com.esum.appetizer; public interface AppetizerConst { public static final String LOCALE_KEY = "LOCALE_KEY"; // 언어 키 - request.parameter, session.attribute public static final String TIMEZONE_KEY = "TIMEZONE_KEY"; // 타임존 키 - request.parameter, session.attribute public static final String SYSTEM_AD...
package Day6LogicalPrograms; import java.util.Scanner; public class ReverseOfNumber { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scanner = new Scanner(System.in); System.out.println("Enter a number to reverse it"); int N = scanner.nextInt(); int ReversedNo=0; int re...
package com.pickup.pickup.controller; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import com.pickup.pickup.R; /** * Created by zachschlesinger on 4/1/17. */ public class JoinActivity extends AppCompatActivity { private TextView display; @Ove...
package MVC.controllers; import java.awt.BorderLayout; import java.util.ArrayList; import java.util.Date; import javax.swing.JList; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.ListSelectionModel; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelection...
package com.alibaba.druid.bvt.sql.mysql.param; import com.alibaba.fastjson2.JSON; import com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils; import com.alibaba.druid.sql.visitor.VisitorFeature; import com.alibaba.druid.util.JdbcConstants; import junit.framework.TestCase; import java.util.ArrayList; import ...
package webCrawler; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import java.io.IOException; import java.io...
package com.example.gitapi; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import java.util.List; /** * Created by sudhanshu on 3/6/16. */ pu...
/* * 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 rpl_03; /** * * @author ASUS ROG */ public class Data_Pembelian { /** * @return the id_Pembelian */ publ...
package org.qa.controllers; import java.util.List; import org.qa.automotives.Car; import org.qa.dao.CarDAO; import org.qa.utils.UserInput; public class CarController implements Controller<Car> { private UserInput input = UserInput.getInstance(); private CarDAO dao = new CarDAO(); @Override public Car creat...
package com.esum.router; import java.io.File; import javax.servlet.ServletException; import org.apache.commons.io.FileUtils; import org.apache.log4j.PropertyConfigurator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.esum.framework.common.util.DateUtil; import com.esum.framework.common.util.Sy...
package com.example.eduardoalejandro.encuesta.encuesta; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.AdapterView; import android.widget....
package org.foolip.mushup; import java.io.*; import java.net.*; import java.util.regex.*; import javax.xml.parsers.*; import org.xml.sax.SAXException; import org.w3c.dom.*; import org.htmlparser.*; import org.htmlparser.filters.*; import org.htmlparser.tags.*; import org.htmlparser.util.*; public class WikipediaBlurb...
package com.crmiguez.aixinainventory.apirest; import com.crmiguez.aixinainventory.entities.ItemImages; import com.crmiguez.aixinainventory.exception.ResourceNotFoundException; import com.crmiguez.aixinainventory.service.itemimages.IItemImagesService; import org.springframework.beans.factory.annotation.Autowired; impor...
package com.NewTours_LoginFunctionality; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.concurrent.TimeUnit; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.a...
package history.value; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; import java.util.Scanner; import javax.servlet.http.*; import com.google.appengine.labs.repackaged.org.json.JSON...
/** */ package featureModel; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Binary Operation</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link featureModel.BinaryOperation#getRexp <em>Rexp</em>}</li> * <li>{...
package com.darwinsys.soundrec; import java.io.File; import android.app.Service; import android.content.Intent; import android.media.MediaRecorder; import android.net.Uri; import android.os.IBinder; import android.provider.MediaStore; import android.util.Log; import android.widget.Toast; /** * Sound Recording Servi...
package owner; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class Main { public static void main(String[] args) { // AnnotationConfigApplicationContext context = new AnnotationConfigApplicationCont...
/** * Created by kevin.huang on 2020-09-16. */ package foo; public class User { private String name; private int age; //@JsonTypeInfo(use = JsonTypeInfo.Id.NAME) public Phone phone; public User() { } public User(String name, int age) { this.name = name; this.age = age; } public String...
package 수행; ����; public class Child extends User{ int num,money,age,movenum,moneyh; public int getMoneyh() { return moneyh; } public void setMoneyh(int moneyh) { this.moneyh = moneyh; } public int getNum() { return num; } public void setNum(int num) { this.num = num; } public int getMoney() { ...
/** * */ package com.needii.dashboard.controller; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.s...
package com.newbig.im.model.dto; import lombok.Getter; import lombok.Setter; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotEmpty; @Setter @Getter public class LoginDto { @NotEmpty(message = "手机号不能为空") private String mobile; @NotEmpty(message = "密码不能为空") @Le...
import org.junit.After; import org.junit.Assert; import org.junit.Test; public class NodeTest { @Test public void test1() { String str = "1"; String str2 = "2"; Node node1 = new Node(str, str2, 1); Node node2 = new Node(str, str2, 1); Assert.assertEquals(node1, node2); ...
/** * Writes data of various types to standard output using StdOut.java */ //write to stdout StdOut.println("Test"); StdOut.println(12); StdOut.println(true); StdOut.printf("%.6f\n", 1.0/7.0);
// @SOURCE:/Users/zefirini/Documents/Cours/Licence Pro 2013 - 2014/GitHub/Palindrome/conf/routes // @HASH:406dd2c830d7052fe2d2ae5ceb1d2e93086dd79f // @DATE:Mon Jan 27 17:49:34 CET 2014 package controllers; public class routes { public static final controllers.ReversePalindrome Palindrome = new controllers.ReversePali...
package net.dtkanov.lac.gui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.BorderFactory; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; import net.dtk...
package ua.max.sprite; import application.Game; import javafx.animation.KeyFrame; import javafx.animation.Timeline; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.control.Alert; import javafx.scene.control.Label; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; ...
package br.com.fiap.fiapinteliBe21.domain; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.validation.constrai...
package fr.pantheonsorbonne.miage; public class FailedUpdateException extends RuntimeException { public FailedUpdateException(String message) { super(message); } /** * */ private static final long serialVersionUID = 1L; }
import java.util.ArrayList; import java.util.List; import java.util.concurrent.Semaphore; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; public class Scheduler { public static AlgorithmResult getAlgorithmResult(List<Service> services, Algorithm algorithm, boolean isMultiThread)...
package com.icss.bean; public class OrderFormBean { private int num; private int tb_num; private int desk_num; private String dateTime; private double money; private int user_id; public OrderFormBean(){ } public int getNum() { return num; } public void setNum(int num) { this.num = num; } public ...
package com.gsccs.sme.plat.svg.controller; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.s...
package com.esum.comp.kftp.table; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import net.sf.ehcache.Cache; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.esum.framework.cache.CacheUtil; import com.esum.framework.commo...
package day06.homework.rpcrobin.local; import day06.homework.rpcrobin.net_common.IdPassException; import day06.homework.rpcrobin.net_common.User; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; ...
package narif.personal.work.fnutils.components; import narif.personal.work.fnutils.datastructures.Tuple; import java.util.function.Supplier; public class Case<T> extends Tuple<Supplier<Boolean>, Supplier<Result<T>>> { private Case(Supplier<Boolean> booleanSupplier, Supplier<Result<T>> resultSupplier){ s...
package com.scriptingsystems.tutorialjava.streamsj8; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.stream.Stream; public class ProcesandoFicherosStreams { public static void main (String[] args) { try { /* Primera opción Stream str = Files.lines(...
package edu.mum.cs.cs425.studentmgmt.model; import javax.persistence.*; import java.time.LocalDate; @Entity public class Student { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long studentId; private String studentNumber; private String firstName; private String midleName; ...
package com.wdl.webapp.filter; import java.util.List; import javax.annotation.Resource; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.SimpleAuthenticationInfo; import org.apache.shiro.authc.Use...
package net.acomputerdog.BlazeLoader.util.reflect; import java.lang.reflect.Method; /** * Api functions to simplify reflective tasks. */ public class ReflectionUtils { /** * Dynamically invokes a method, even if it is inaccessible. * * @param method The method instance to invoke. * @param a...
package com.example.zyadzakaria.wev; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ListView; import android.widget.Toast; import java.io.IOException; import java.util.ArrayList; ...
/* * 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 LoloModel; import java.awt.Graphics; import Auxiliar.Desenho; import Controler.Tela; public class Bau extends Elemento{ ...
package com.thinkdevs.cryptomarket; import android.app.Application; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.provider.Settings; import androidx.annotation.NonNull; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseUser...
package com.metoo.foundation.domain; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.pers...
package com.atguigu.springcloud.service; import com.atguigu.springcloud.domain.CommonResult; import org.apache.ibatis.annotations.Param; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; /** * @author Yue_ * @create 2020-12-01-17:06 */ @FeignClient(...
package edu.uha.miage.web.controller; import edu.uha.miage.core.entity.Compte; import edu.uha.miage.core.entity.Fonction; import edu.uha.miage.core.entity.Personne; import edu.uha.miage.core.service.CompteService; import edu.uha.miage.core.service.DepartementService; import edu.uha.miage.core.service.FonctionService; ...
package Customer; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import j...
package com._01_stream; public class EmployeeConvert { private String convertName; private int convertAge; private String convertExtra; public EmployeeConvert() { } public String getConvertName() { return convertName; } public void setConvertName(String convertName) { ...
package br.com.gestor.controller; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; import javax.servlet.http.HttpServletRequest; import br.com.gestor.database.dao.EquipeDao; import br.com.gestor.database.dao.EquipeJPADao; import br.com.gestor.database.modelo.Dev; i...
package generic; /** * Created by max.lu on 2016/2/2. */ public class Book<T> { private T attr; public T getAttr() { return attr; } public void setAttr(T attr) { this.attr = attr; } }
package com.example.repository; import com.example.entity.Question; import org.springframework.data.jpa.repository.JpaRepository; public interface QuestionRepository extends JpaRepository<Question, Integer> {}
package com.example.lamelameo.picturepuzzle; import android.content.Intent; import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import andro...
package com.lumpofcode.collection.compare; import java.util.Comparator; /** * Created by emurphy on 6/15/15. */ public class IntegerComparator implements Comparator<Integer> { @Override public int compare(Integer theValue, Integer theOtherValue) { if(null != theValue) { if(nu...
package cn.kgc.controller; import cn.kgc.domain.Product; import cn.kgc.service.ProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.R...
package cn.kitho.web.tools.security; /** * Created by lingkitho on 2017/2/17. */ public class MixCodeTool { public static String mixData(String data){ return data; } public static String mixData(Integer data){ return data.toString(); } public static String recoverData(String dat...
package com.eniso.regimi.repository; import java.util.Date; import java.util.List; import java.util.Optional; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; import com.eniso.regimi.models.Specialist; import com.eniso.regimi.models.Subscriber; @Re...
package com.citibank.ods.persistence.pl.dao; import java.math.BigInteger; import java.util.ArrayList; // //©2002-2007 Accenture. All rights reserved. // /** * * @see package com.citibank.ods.persistence.pl.dao; * @version 1.0 * @author michele.monteiro,05/06/2007 * */ public interface BaseT...
package dbAssignment.opti_home_shop.data.model; import java.util.Objects; import javax.persistence.*; import com.sun.istack.NotNull; import org.hibernate.annotations.CreationTimestamp; @javax.persistence.Entity @Table(name = "ordertable") public class OrderTable { @Id @Column(name = "OT_Id") @NotNull @Generated...
package Models; public class student { private String eid; public String getEid() { return eid; } public void setEid(String eid) { this.eid = eid; } }
package com.staniul.teamspeak.modules.messengers; import com.staniul.util.validation.Validator; public class NotEmptyParamsValidator implements Validator<String> { @Override public boolean validate(String element) { return !"".equals(element); } }
/*This class is the hash table implementation * with an array of Linked List to represent the chaining * * Methods are as follows: * * BinaryTreeNode Constructor defualt * BinaryTreeNode with parameters * * * @author Julio Corral * @date 10/29/10 * @professor Dr. Fuentes * @T.A. ...
package ru.job4j.services; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import ru.job4j.models.Brand; /** * Класс BrandRepository реализует репозиторий. * * @author Gur...
package com.example.myseekbarlibrary.seekbar; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.view.MotionEvent; import com.example.myseekbarlibrary.progressbar.CircleProgressBar; /*** * @author ljc * 实现一个7彩的进度条 */ public class CircleSeekBar extends ...
package com.example.km.genericapp.fragments; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import com.example.km.genericapp.R; import io.reactiv...
package game; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main { static Scanner in = new Scanner(System.in); public static void fightMalfoy(Player player) { int younumber, malfoy; System.out.println( "\n\nYou have entered the slythrien's common room\n here st...
package com.adventurpriseme.castme.CommsMgr; /** * Enumerates the supported communications channels. * <p/> * This provides a list of supported communication channels. * The final entry, NUM_SUPPORTED_COMM_TYPES, must be the last item in the list, * and tells us how many communication types we support. * <p/> *...
package elections; public class InvalidInputData extends Exception { }
package com.citibank.newcpb.enun; import java.util.ArrayList; import com.citibank.newcpb.bean.ResultTableBean; public enum CustomerTypeEnum { NATUTAL_PERSON("F", "Fisica"), LEGAL_PERSON("J","Juridica"); private String value; private String desc; private CustomerTypeEnum(String value, String d...