text
stringlengths
10
2.72M
package com.example.a77354.android_final_project.HttpServiceInterface; import com.example.a77354.android_final_project.ToolClass.ResponseBody; import okhttp3.RequestBody; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Headers; import retrofit2.http.POST; /** * Created by kunzhai on 201...
package cyfixusBot.gui; import java.awt.Color; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.LinkedList; import javax.swing.BorderFactory; import javax.swing.DefaultComboBoxModel; i...
/* * 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...
/** * Wikipedia says * * The builder pattern is an object creation software design pattern with the intentions of finding a solution to the telescoping constructor anti-pattern. * * So we can create any objects by setting the parameters that we need. */ public class BuilderExample_01 { public static void main...
package pl.basistam.books; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlValue; import java.io.Serializable; @XmlRootElement public class Title implements Serializable { private String language; private String name; @Xm...
/* * 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 io.github.minhaz1217.onlineadvising; import io.github.minhaz1217.onlineadvising.Interface.CourseDescriptionRepository; import i...
package com.spr.utils; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; import com.spr.model.Contract; import com.spr.model.User; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutp...
package collection; public class Faculty { public static void main(String[] args) { String name; //Array of skills int a[]=new int[8]; System.out.println(a.length); //Sk } }
package com.cigc.limit.service; import com.cigc.limit.utils.AppCfgUtils; import com.cigc.limit.utils.DateUtils; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.index.query.*; import org.elasticsearch.search.aggregations.Aggregat...
package top.junebao.dao; import top.junebao.domain.Course; public class CourseDao { /** * 通过ID查询一门课程 * @param id * @return */ public static Course selectCourseById(String id) { return null; } }
package com.sl.app.access.find.account.dao; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.sl.app.access.find.account.vo.AppAccessFindAccountVO; import com.sl.app.common.context.AppContextKey; imp...
package pdp.uz.payload; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.validation.constraints.NotNull; import java.io.Serializable; @Getter @Setter @NoArgsConstructor @AllArgsConstructor publi...
package sorryclient; import java.awt.Color; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Image; import java.awt.Insets; import java.awt.event.ActionListener; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing....
package org.zhq; import org.zhq.constants.UDPConstants; import lombok.extern.slf4j.Slf4j; import org.zhq.utils.ByteUtil; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Lis...
package com.restcode.restcode.controller; import com.restcode.restcode.domain.model.Owner; import com.restcode.restcode.domain.service.IOwnerService; import com.restcode.restcode.resource.ConsultantResource; import com.restcode.restcode.resource.OwnerResource; import com.restcode.restcode.resource.SaveConsultantResou...
package com.example.service.impl; import com.example.entity.Product; import com.example.entity.ProductCategory; import com.example.entity.User; import com.example.service.NotificationService; import com.example.service.UserService; import java.util.Comparator; import java.util.LinkedList; import java.util.List; impor...
package br.com.lucro.manager.service.impl; import java.text.SimpleDateFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.inject.Inject; import org.apache.log4j.Logger; import br.com.lucro.manager.dao.FileOperationResumeOutstandingBalanceCieloDAO; import br.com.lucro.manager.model.F...
package com.sportzcourt.booking.ui.fragment; import android.support.v4.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.sportzcourt.booking.R; /** * Copyright 2016 (C) Happiest Minds Pvt Ltd.. * * <P> A placeholder frag...
/* * Origin of the benchmark: * repo: https://github.com/diffblue/cbmc.git * branch: develop * directory: regression/jbmc-strings/StringCompare01 * The benchmark was taken from the repo: 24 January 2018 */ public class Main { public static void main(String[] args) { String s1 = new String(...
package com.sparshik.yogicapple.model; import java.util.HashMap; /** * data structure for group chat */ public class ChatMessage { private String text; private String nickName; private String userProfilePicUrl; private boolean flagged; private HashMap<String, Object> timestampCreated; publi...
package com.company.test.dao; import java.io.Serializable; import com.company.test.entity.Person; /** * 测试dao * @author Dongfuming * 2016-5-6 下午5:02:04 */ public interface TestDao { public boolean savePerson(Person person); public Person findPersonById(Serializable id); }
public class AlgorithmNF extends Algorithm { private long l = 0L; public String getName() { return "nf"; } public long getL() { return l; } public void f(long n) { for (long i = 0; i < n; i++) { l++; f(n - 1); } } }
import java.util.Scanner; class InvalidAtmpinnumberException extends Exception { Long pin; int n=0; void checkpin(Long pin) throws InvalidAtmpinnumberException { this.pin=pin; while(pin>0) { pin=pin/10; n++; } if(n!=4) { throw new InvalidAtmpinnumberException(); } else { System.out.println("valid pin number"); } } } cl...
package com.example.citiesapi.configuration; import com.google.common.util.concurrent.RateLimiter; import org.springframework.context.annotation.Bean; import java.time.Duration; @org.springframework.context.annotation.Configuration public class Configuration { @Bean public RateLimiter rateLimiter() { ...
package com.zareca.spring.formework.annotation; import java.lang.annotation.*; /** * @Auther: ly * @Date: 2020/12/6 20:37 * @Description: */ @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ZARequestMapping { String value() default ""; }
package first.task.android; import java.io.Serializable; /** * Simple class to represent item with its name and boolean value */ public class Item implements Serializable { private static final long serialVersionUID = 1L; private String name; private boolean checked; public Item(String name) { this.setName(...
package com.lovers.java; /** * Created by wangzefeng on 2019/11/8 0008. */ public class Demo { public static void main(String[] args) { String s="大萨达多"; System.out.println(s.indexOf("大")); } }
package dto.user.menu.submenu; import dto.listados.TipoEstatusDTO; public class SubMenuDTO { private int idAction; private int fkApp; private String nombreMenu; private String nombreAction; private String urlAction; private String iconoAction; private int isHeader; private TipoEstatusDTO isHeaderSubmenuDTO; ...
//(c) A+ Computer Science //www.apluscompsci.com //Name: Adham Elarabawy public class RayOddToEven { public static int go(int[] ray) { int counter = 0; for (int i = 0; i < ray.length; i++) { if (ray[i] % 2 != 0) { for (int j = i+1; j < ray.length; j++) { counter++; if (ray[j] % 2 == 0)...
package test; import java.util.Date; import java.util.List; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.news.pojo.News; import com.news.pojo.Users; import com.spring.service.CommentsServices; impo...
package com.alex.eat; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class SuperBasket<E extends Weigh> implements Weigh { private Set<E> elements; public SuperBasket(int size) { this.elements = new HashSet<>(size); ...
package org.git; public class GitHub { public static void main(String[] args) { System.out.println("123455"); System.out.println("1234678"); System.out.println("123"); System.out.println("12333"); } }
/* * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved. * * 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 ...
package com.example.shivam.maintain_notes; import android.app.ActionBar; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; ...
package com.itinerary.resort.dao; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.easymock.EasyMock; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.junit.Test; import org.powermock.api.easymock.PowerMock; import org.powerm...
/* * Copyright (C) 2014 Vasilis Vryniotis <bbriniotis at datumbox.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
package com.example.kamil.ebookyourchildshealth.fragment; import android.app.DatePickerDialog; import android.content.Intent; import android.content.res.Resources; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.support.v4.app.Fragmen...
package toba.user; import java.io.Serializable; import java.time.LocalDateTime; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; @Entity public class User implements Serializable { @Id @GeneratedVa...
package com.cn.domain; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; /** * 主观题表 * @author Hang * @date 2016年2月29日上午10:37:16 * @version */ public class SubjectiveQuestions { //主观题表ID @Id @Generated...
package msip.go.kr.share.service; import java.util.List; import msip.go.kr.share.entity.ReqOpn; /** * 자료공유-자료요청 의견 관련 업무 처리를 위한 Sevice Interface 정의 * * @author 정승철 * @since 2015.07.10 * @see <pre> * == 개정이력(Modification Information) == * * 수정일 수정자 수정내용 * -------------------------...
package com.github.sd; /** * User: Daniil Sosonkin * Date: 5/30/2018 11:38 AM */ public interface JsonConvertable { String toJSON(); }
import java.awt.*; import java.applet.*; public class msg3 extends Applet { public void paint(Graphics a) { a.drawString("FATHERS NAME:- KUMAR SINGH",10,20); }//CLOSE OF MAIN }//CLOSE OF CLASS
package mf0227.uf2404.actividad2; /** * Interfaz donne se declaran las funciones arrancar y parar. * Estas funciones se implementaran en la clase Vehiculo * * @author Arturo Montaņez * */ public interface IConducible { //Arrancar vehiculo. Si existiera el atributo estaArrancado lo pondria a t...
package f.star.iota.milk.ui.gkdgif.gkd; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.ViewGroup; import f.star.iota.milk.R; import f.star.iota.milk.base.BaseAdapter; public class GkdGifAdapter extends BaseAdapter<GkdGifViewHolder, GkdGifBean> { @Override...
package gui.db; import gui.ComponentTools; import gui.form.ComboBoxItem; import gui.form.TextItem; import gui.form.ValueChangeEvent; import gui.form.ValueChangeListener; import gui.form.valid.RegexValidator; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayou...
package algorithm.genetic.factory; import java.util.ArrayList; import java.util.List; import algorithm.genetic.GAParameters; import algorithm.genetic.GeneticAlgorithm; import algorithm.genetic.crossover.CrossoverMethod; import algorithm.genetic.crossover.NoCrossover; import algorithm.genetic.crossover.OnePointCrossov...
package be.dpms.medwan.webapp.wl.struts.actions.healthrecord; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.Serv...
package TestPack; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class facebookSignUP { public static void main(String[] args) throws InterruptedException { // setting up and opening up browse...
package modelo.personajes; import modelo.*; import modelo.fases.FaseInicialMajinBoo; public class MajinBoo extends EnemigoDeLaTierra { public MajinBoo(Tablero tablero,Equipo equipo) { this.nombre = "MajinBoo"; this.tablero = tablero; this.fase = new FaseInicialMajinBoo(); this.equipo = equipo; ...
package com.yyy.servlet; import java.io.File; 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 com.yyy.json.ARTICLE_T...
package com.metoo.module.weixin.view.action; import java.io.IOException; import java.io.PrintWriter; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import j...
package com.esum.comp.dbm.process.outbound; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.esum.comp.dbm.DBConfig; import com.esum.comp.dbm.table.DBIfInfoRecord; import com.esum.comp.dbm.table.DBIfI...
package com.GestiondesClub.controller; import java.util.Date; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.PathVariable; import org.springframe...
package com.sdr.sdr; import com.mongodb.MongoException; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoCursor; import static com.sdr.sdr.Login.fecha; import javax.swing.table.DefaultTableModel; import static com.sdr.sdr.Main.db; import java.awt.event.ActionEvent; import java.awt.event.Action...
package com.stk123.spring.support.checkpoints; import com.stk123.spring.dto.checkpoints.CheckResult; public class ResultTrueOrFalse implements Result { private final static CheckResult CHECKRESULT_TRUE = new CheckResult(""); private final static CheckResult CHECKRESULT_FALSE = new CheckResult(""); priva...
package com.union.express.web.rolepermission.dao; import com.union.express.web.rolepermission.model.RolePermission; import org.springframework.data.repository.PagingAndSortingRepository; /** * Created by wq on 2016/10/6. */ public interface IRolePermissionRepository extends PagingAndSortingRepository<RolePermission...
package ru.vyarus.dropwizard.guice.module.context; import ru.vyarus.dropwizard.guice.module.context.info.BundleItemInfo; import ru.vyarus.dropwizard.guice.module.context.info.ExtensionItemInfo; import ru.vyarus.dropwizard.guice.module.context.info.ItemInfo; import ru.vyarus.dropwizard.guice.module.context.info.ModuleI...
package adminTest.subscriptionTest; import com.codeborne.selenide.Selenide; import io.qameta.allure.Severity; import io.qameta.allure.SeverityLevel; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.extension.ExtendWith; import portal.admin.order_subscription_page.new_subscriptions_page.NewSubscri...
package javacollections.flowerbouquet.flowers; public class Rose extends Flower { private RoseVariety roseVariety; public Rose(RoseVariety roseVariety, int stemLength, FreshnessLevel freshnessLevel, double cost) { super(stemLength, freshnessLevel, cost); this.roseVariety = roseVariety; ...
package com.kic.Controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.kic.DAO.BoardDAO; public class DeleteAction implements Action { @Override public String execute(Http...
package cn.kgc.service; import cn.kgc.domain.SumFind; import java.util.List; public interface SumFindService { public List<SumFind> sumfind(String license); }
import java.util.*; class binary { public static void main(String[] args) { int n; Scanner sc=new Scanner(System.in); System.out.println("Enter no.try"); n=sc.nextInt(); int c=0; String arr[]=new String[n]; int k=0; while(k<n) { System.out.println("Enter no."); int l=sc.nextInt(); System.ou...
package com.pmm.sdgc.dao; import com.pmm.sdgc.model.CargoGeral; import com.pmm.sdgc.model.Lotacao; import com.pmm.sdgc.model.LotacaoSub; import com.pmm.sdgc.model.Solicitacao; import com.pmm.sdgc.model.SolicitacaoSub; import com.pmm.sdgc.model.UserLogin; import com.pmm.sdgc.model.UserPermissaoAcesso; import c...
package com.citi.yourbank.vo; import io.swagger.annotations.ApiModel; import lombok.Data; @ApiModel("OwnerDetail") @Data public class OwnerDetailVO { private String userId; private String firstName; private String lastName; }
/** * */ package com.adobe.prj.client.ui; import java.util.List; import com.adobe.prj.dto.ProjectDetailsDto; /** * @author danchara * For listing project info for requirement (e) */ public class ProjectListingUi { /* * Displays individual project. * @param projectDetailsDto Dto of project to be displa...
package com.riddit.Riddit.controller; import com.riddit.Riddit.model.Text; import com.riddit.Riddit.service.TextService; import com.riddit.Riddit.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @RestControlle...
package org.kobic.genome.project.dao; public interface ProjectDao { // test // add test // test minseo }
/* * 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.innovaciones.reporte.service; import com.innovaciones.reporte.dao.UsuarioRolesDAO; import com.innovaciones.reporte.model.U...
/******************************************************************************* Name: Sarah Redmon Date: 1/23/19 Instructor: Ms. Tucker Class: GasPanel Purpose: To show the total amount and cost of KWH in a GUI ******************************************************************************* */ /*----------------------...
/* ------------------------------------------------------------------------------ * 软件名称:BB语音 * 公司名称:乐多科技 * 开发作者:Yongchao.Yang * 开发时间:2016年3月3日/2016 * All Rights Reserved 2012-2015 * -------------------------------------------------------...
package cn.com.hy.control; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import...
package screens; import io.appium.java_client.MobileElement; import io.appium.java_client.android.AndroidDriver; import org.openqa.selenium.By; public class HomeScreen extends BaseScreen { public HomeScreen(AndroidDriver driver) { super(driver); } String loginButton = "//android.widget.TextView[...
package edu.kmi.primejavaC.JWC.Model; import java.sql.SQLException; import edu.kmi.primejavaC.JWC.Controller.FrontController; /** * Created by JINU on 2017. 6. 8.. */ public class DB_Test { public static void main(String[] args) throws SQLException { FrontController dao = new FrontController(); ...
package com.prasnottar.nepalidateconverter.core; import java.util.Calendar; /** * Created by bibek on 6/24/17. */ interface CommonEnglishDateConverter { //INPUT : NEPALI YEAR, MONTH, DAYS OR NEPALIDATE OBJECT //step-1 : STARTING POINT FOR BOTH NEPALI DATE AND ENGLISH DATE int STARTING_ENGLISH_YEAR = 194...
public class InvalidValueException extends ValueException { public InvalidValueException(String invalid_argument, String invalid_value) { super("Niedozwolona wartość \"" + invalid_value + "\" dla klucza " + invalid_argument); } }
package kr.co.people_gram.app; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.InputM...
package com.airelogic.artistinfo.model; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class LyricsTest { @Test void countNumberOfWordsSimple() { Lyrics lyrics = new Lyrics("One"); assertEquals(1, lyrics.countNumberOfWords()); } @Test void ...
package classesState; import lab6.Pessoa; public class TomouPrimeiraDose extends EstadoVacinacao { @Override public void alteraEstado(Pessoa pessoa) { pessoa.setEstadoVacinacao(new TomarSegundaDose()); pessoa.atualizaEstadoVacina(pessoa); } @Override public String toString() { return "A pessoa tomou a pr...
import hw3.Experience; /** * @(#) Employee.java */ public abstract class Employee implements Comparable<Employee> { private String name; private String surname; private Experience experience; public int computeSalary( ) { int additionalSalary = 0; if (this.experience.equals(Experience.LOW)) { additiona...
package com.testcases; import org.testng.Assert; import org.testng.annotations.Test; import com.BaseClass.BaseClass; public class BankManagerLogin extends BaseClass{ @Test public void LoginTest() { click("bmlBtn_CSS"); Assert.assertTrue(isElementPresent("addCustomer_CSS")," login not sucess"); } }
package com.ui.toto.toto.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jboss.logging.Logger; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; public class DuckTestInter...
package com.xinhua.api.domain.xinXXGBean; import com.apsaras.aps.increment.domain.AbstractIncRequest; import java.io.Serializable; /** * Created by lirs_wb on 2015/8/28. *信息修改 请求 */ public class XinXXGRequest extends AbstractIncRequest implements Serializable { /** * 银行交易日期 */ private String ban...
package com.udomomo.blackjack.card; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public c...
package com.xnarum.thonline.entity.idd011; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @XmlAccessorType(XmlAccessType.FIELD) public class HajjFlightScheduleQueryResponseBody { @XmlElement(name="THName", nillable=true)...
package ForLoop; //Print 1-2+3-4...10 public class Series3 { public static void main(String[] args) { // TODO Auto-generated method stub for(int i=1;i<=10;i++) { if(i%2==0) System.out.print("-"+i); else if (i==1) System.out.print(i); else System.out.print("+"+i); } } }
package Familia; import POO.Adulto; import POO2.Humano; public interface Familia { Adulto getPadre(); Adulto getMadre(); Humano[] getHijos(); Adulto[] getTios(); Adulto[] getAbuelas(); Adulto[] getAbuelos(); void ejecutarAccion(); }
package com.sheygam.loginarchitectureexample.business.contactList; import com.sheygam.loginarchitectureexample.data.dao.Contact; import java.util.List; import io.reactivex.Single; /** * Created by Gleb on 16.02.2018. */ public interface IContactsListInteractor { Single<List<Contact>> loadList(); void log...
package com.EmployeeManag.service; import java.util.List; import com.EmployeeManag.entity.Employee; public interface EmployeeServiceInterface { Employee addEmployee(Employee employee); List<Employee> getEmployees(); Employee getEmployee(int id); Employee editEmployee(Employee employee); String deleteEmploy...
package com.git.cloud.workflow.webservice; import javax.jws.WebService; /** * 调用工作流对应web service接口类 * @author yangtao * @version 1.0 2014-09-17 */ @WebService(name = "IBpmWebService", targetNamespace = "http://com.git.workflow.webservice") public interface IBpmWebService { /** * 流程发布 * @param fil...
package com.mysql.test; import java.sql.Connection; import jdbctools.JdbcTools; public class TestConnection { public static void main(String[] args) { Connection connection=null; connection=JdbcTools.getConnection(); System.out.println(connection); } }
import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.List; import static org.junit.jupiter.api.Assertions.*; class SecretaryTest { @Test void getChanges() { List<Soldier> general1Soldiers=new ArrayList<>(); general1Soldiers.add(new Soldier(Soldier.MilitaryDegree.CA...
package com.Exam.dto; import java.util.Date; public class ProductDTO { int maSP; String tenSP; int donGia; String donVi; public int getMaSP() { return maSP; } public void setMaSP(int maSP) { this.maSP = maSP; } public String getTenSP() { return tenSP; } public void setTenSP(Strin...
package Problem_17406; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static int[][] arr; static int[][] map; static int N; static int M; static int K; static int[][] rotate; static int answer = Integer.MAX_VALUE; static boolean...
package services.users; import java.sql.SQLException; import java.util.List; import userdao.AuthDAO; import userdao.RolesDAO; import userdao.UserDAO; import userdaoimp.AuthDaoImpl; import userdaoimp.NotificationDaoImpl; import userdaoimp.RoleDaoImpl; import userdaoimp.UserDaoImpl; import admin.dao.NotificationsDAO; i...
package com.example.adivinanumero; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget....
package rdfsynopsis.test; import static org.junit.Assert.assertEquals; import java.io.StringWriter; import org.apache.log4j.Logger; import org.junit.Before; import org.junit.Test; import rdfsynopsis.analyzer.Analyzer; import rdfsynopsis.analyzer.TripleStreamAnalyzer; import rdfsynopsis.dataset.InMemoryDataset; impo...
package design_pattern.singleton; public class B_EagerInitiWithStaticBlock { private static B_EagerInitiWithStaticBlock instance; // static block enables to handle exception static { try { System.out.println("Thread Name: " + Thread.currentThread().getName()); instance = new B_EagerInitiWith...
package exercises.chapter3.ex5; import static net.mindview.util.Print.print; /** * @author Volodymyr Portianko * @date.created 02.03.2016 */ public class Exercise5 { public static void main(String[] args) { Dog dog1 = new Dog("spot", "Ruff!"); Dog dog2 = new Dog("scruffy", "Wurf!"); pri...
package com.metoo.foundation.service; import java.util.List; import java.util.Map; import com.metoo.foundation.domain.PlantingTrees; public interface IPlantingtreesService { /** * 保存一个PlantingTrees 对象 * @param instance * @return */ boolean save(PlantingTrees instance); boolean update(Pl...
package com.disfile.cn; import com.disfile.cn.annotation.MyAutoried; import com.disfile.cn.annotation.MyService; import com.disfile.cn.util.PkgUtil; import org.apache.commons.lang3.StringUtils; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.Map; import java.util.Set; import j...