text
stringlengths
10
2.72M
package com.sezioo.permission.beans; import javax.validation.constraints.Min; import lombok.Getter; import lombok.Setter; public class PageQuery { @Getter @Setter @Min(value = 1,message="当前页码不合法") private int pageNo; @Getter @Setter @Min(value = 1,message="每页展示数量不合法") private int pageSize; @Setter pri...
/** * */ package com.needii.dashboard.service; import java.util.List; import java.util.Set; import com.needii.dashboard.model.Category; import com.needii.dashboard.utils.Option; /** * @author kelvin * */ public interface CategoryService { List<Category> findAll(); List<Category> findAll(Option option); ...
package com.bofsoft.laio.laiovehiclegps.Widget; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.bofsoft.laio.laiovehiclegps.R;...
package com.gxtc.huchuan.data; import com.gxtc.commlibrary.data.BaseRepository; import com.gxtc.huchuan.bean.NewsBean; import com.gxtc.huchuan.bean.TopicShareListBean; import com.gxtc.huchuan.http.ApiCallBack; import com.gxtc.huchuan.http.ApiObserver; import com.gxtc.huchuan.http.ApiResponseBean; import com.gxtc.huchu...
package com.mirri.mirribilandia.item; import android.content.Context; import android.os.Bundle; import com.mirri.mirribilandia.R; import com.mirri.mirribilandia.ui.UrlConnectionAsyncTask; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.net.MalformedURLException; imp...
package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here int number = 0; String numberString; Scanner scanner = new Scanner(System.in); while (number != 11) { System.out.println("\nEnt...
/* * 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 Jobsheet7_1841720126Ela; /** * * @author User */ public class Utama1841720126Ela { public static void main(String[] arg...
package com.ems.service; import com.ems.domain.Address; public class AddressService { public Address getAddressById(long addressId){ return null; } }
package com.weathair.dto.forum; import com.weathair.entities.User; import com.weathair.entities.forum.Topic; public class PostResponseDto { private Integer id; private String title; private String text; private Topic topic; private User user; public PostResponseDto() { super(); } public Integer getI...
/* * Created on 2004-12-3 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package com.aof.webapp.action; import org.apache.struts.action.ActionMapping; /** * @author nicebean * */ public class SecureActionMapping extends ActionMappin...
/* * 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 Repository; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; /** * * @...
package Graph; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; public class Graph { private ArrayList<String> vertexList; //存储顶点集合 private int[][] edges; //存储图对应的邻结矩阵 private int numOfEdges; //表示边的数目 //定义给数组boolean[], 记录某个结点是否被访问 private boolean[] isVisited; ...
package com.junzhao.rongyun.weight; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.view.View; import android.widget.EditText; import android.widget.TextView; import com.junzhao.shanfen.R; /** ...
package ltd.getman.testjobproject.domain.models.sort; import java.util.List; import ltd.getman.testjobproject.domain.models.mechanizm.Mechanizm; /** * Created by Artem Getman on 18.05.17. * a.e.getman@gmail.com */ public class BubbleSort extends BaseSortedClass { public BubbleSort() { super(TYPE.BUBBLE); ...
package com.github.ytjojo.supernestedlayout; import android.content.Context; import android.graphics.Path; import android.graphics.Rect; import android.graphics.Region; import android.support.v4.view.ViewCompat; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; /** * Created...
package com.imooc.files.controller; import com.imooc.api.controller.files.FileUploadControllerApi; import com.imooc.exception.GraceException; import com.imooc.files.FileResource; import com.imooc.files.GridFSConfig; import com.imooc.files.service.UploadService; import com.imooc.grace.result.GraceJSONResult; import com...
package am.bizis.cds.dpfdp4; import java.util.HashSet; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; impo...
package com.programapprentice.app; /** * User: program-apprentice * Date: 9/28/15 * Time: 11:20 PM */ public class FindPeakElement_162 { public int findPeakElement(int[] nums) { if(nums == null) { return -1; } if(nums.length == 1) { return 0; } in...
package core; public class Percentual implements Expressao { private Expressao valor; private double percentual; public Percentual(Expressao valor, double percentual) { this.valor = valor; this.percentual = percentual; } @Override public double resolver() { return valor.resolver() * percentual / 100; ...
package nl.kasperschipper.alligatorithm; import nl.kasperschipper.alligatorithm.config.JobConfiguration; import nl.kasperschipper.alligatorithm.services.JobService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.f...
/* 6.a.- Se va a implementar un simulador de Vehículos. Existen dos tipos de Vehículo: Coche y Camión. * a) Sus características comunes son la matrícula y la velocidad. * En el momento de crearlos, la matrícula se recibe por parámetro y la velocidad se inicializa a 0. * El método toString() de los vehículos ...
package network.nerve.swap.model.po.stable; import io.nuls.base.basic.AddressTool; import network.nerve.swap.model.NerveToken; import java.util.Arrays; /** * @author Niels */ public class StableSwapPairPo { private byte[] address; private NerveToken tokenLP; private NerveToken[] coins; private int[...
package com.example.min.diaryforfamily.data; /** * Created by MIN on 2017. 6. 22.. */ public class Act { String status; @Override public String toString() { return status; } }
package io.pigbrain.tree.avltree; import org.junit.Assert; import org.junit.Test; public class AVLTreeTest { @Test public void addTest1() { AVLTree tree = new AVLTree(); tree.add(5); tree.add(3); tree.add(1); AVLNode root = tree.getRoot(); Assert.assertTrue(root.getData() == 3); Assert.ass...
package com.freeraven.datastructures.strings.uniqueness; /** * Created by zvlad on 6/28/16. */ public interface CharactersUniquenessChecker { boolean check(String stringToCheck); }
package com.pykj.design.principle.lawofdemeter.example; /** * @description: TODO * @author: zhangpengxiang * @time: 2020/4/20 16:33 */ public class Course { }
package com.ifeng.recom.mixrecall.common.config; import com.ctrip.framework.apollo.Apollo; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import c...
package com.aikiinc.coronavirus; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.ModelAndView; import com.aikiinc.coronavirus.model.CoronaVirus; import com.aikiinc.coronavirus.service.CoronaVirusProcessing; import com.aikiinc.coronavirus.service.CoronaVirusService...
package com.eighteengray.procamera.model.imageloader; import android.content.Context; import android.widget.ImageView; import com.bumptech.glide.Glide; /** * Created by Razer on 2017/12/6. */ public class GlideImageLoader implements IImageLoader { private static IImageLoader instance; private static Conte...
package com.designpattern.dp4singletonpattern.lazy.v4; /** * 静态内部类单例模式(懒汉式单例模式 ) * 只有在外部用到的时候 内部类 才会加载 * 兼顾 饿汉单例 的内存浪费问题 和 懒汉单例的synchronized性能问题 */ public class LazyInnerClassSingleton { // 使用LazySimpleSingleton的时候,默认会先初始化内部类,不使用的话内部类是不会加载的 private LazyInnerClassSingleton(){ // 在构造函数中增加判断 防止【反射破...
/* * Copyright 2002-2022 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.example.dto; import java.util.Date; import java.util.List; public abstract class AbstractDTO<T> { private Long id; private Date createdDate; private String createdBy; private Date modifiedDate; private String modifiedBy; private List<T> results; private long totalItem; pri...
package com.thoughtworks.shoppingweb.web; import com.thoughtworks.shoppingweb.domain.Address; import com.thoughtworks.shoppingweb.domain.ShopCart; import com.thoughtworks.shoppingweb.service.AddressService; import com.thoughtworks.shoppingweb.service.ShopCartService; import com.thoughtworks.shoppingweb.service.UserSer...
package com.example.tourguiderapp.view; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import com.example.tourguiderapp.R; public class ResetPasswordActivity extends AppCompatActivity { @Override protected void onCreate(Bu...
package application.address.model; import messageCenter.ReceiverBTP; /** * Created by leo on 11/02/2015. * ljsa at cin.ufpe.br */ public class UserBTP extends User { public UserBTP (String username, String ip) { super(username, ip); } @Override public void login() { } @Override public boolean connectS...
package com.fhate.studyhelper.model; import java.util.ArrayList; public class ScheduleDay { public String day; public ArrayList<Lesson> lessons; public ScheduleDay(String day, ArrayList<Lesson> lessons) { this.day = day; this.lessons = lessons; } }
package com.metoo.foundation.test; import java.util.ArrayList; import java.util.Iterator; import org.junit.Test; public class IteratorTest { @Test public void test1() { ArrayList<Integer> arrayList = new ArrayList<>(); for (int i = 0; i < 20; i++) { arrayList.add(...
package com.jay.mvp_dagger2_sample.ui.activity.splash; /** * Created by JINISYS on 26/03/2018. */ public interface ISplashPresenter { void testConnection(); }
package com.npaw.responseservice; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ResponseServiceApplication { private stati...
package com.getkhaki.api.bff.hibernate.dialect; import org.hibernate.dialect.MariaDB103Dialect; import org.hibernate.dialect.function.SQLFunctionTemplate; import org.hibernate.type.StandardBasicTypes; public class CustomMariaDbDialect extends MariaDB103Dialect { public CustomMariaDbDialect() { super(); ...
package leyou.mapper; public interface CustomerMapper { }
import java.util.*; public class ComponentTable { final private ArrayList<String> usedKeys = new ArrayList<>(); final private Hashtable<String, String> test = new Hashtable<>(); ComponentTable() {} }
package evolutionYoutube; import java.util.List; import com.vaadin.navigator.View; import com.vaadin.ui.Button; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Panel; import com.vaadin.ui.UI; import com.vaadin.ui.Button.ClickEvent; import database.BD_general; public class Videos_subidos extends Videos_s...
import java.io.Serializable; import java.lang.reflect.Array; import java.util.Random; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author INM381-User */ public class VPSSearchResult implements Serializable { private int _vpsS...
package common.db.task; import java.util.List; import common.db.entity.Task; public interface TaskHandler { int processTask(List<Task> task); }
package com.pdd.pop.sdk.http.api.request; import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty; import com.pdd.pop.sdk.http.api.response.PddGoodsListGetResponse; import com.pdd.pop.sdk.http.HttpMethod; import com.pdd.pop.sdk.http.PopBaseHttpRequest; import com.pdd.pop.sdk.common.util.JsonUtil; import jav...
/* * 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 sview; import java.util.Map; import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationObjectSupport; import org.springfram...
/* * Copyright 2016 Grzegorz Skorupa <g.skorupa at gmail.com>. * * 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 edu.cricket.api.cricketscores.task; import edu.cricket.api.cricketscores.async.RefreshPreGamesTask; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.task.TaskExecutor; import org.springframework.stereotype.S...
package com.ut.module_lock.adapter; import android.databinding.DataBindingUtil; import android.databinding.ViewDataBinding; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java...
package com.k2data.k2app.utils; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Map; /** * 用 orika 代替 * * @author lidong9144@163.com 17-3-24. */ @Deprecated public class PojoUtils { /** * 复制{@link Object}的成员变量的值到目标{@link Object}的相同名称的的成员变量上,不区分大小写。 * * @param ...
/* * Merge HRIS API * The unified API for building rich integrations with multiple HR Information System platforms. * * The version of the OpenAPI document: 1.0 * Contact: hello@merge.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.te...
package com.junyoung.searchwheretogoapi.controller; import static org.mockito.ArgumentMatchers.any; import static org.mockito.BDDMockito.given; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath...
package com.example.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.CacheControl; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.anno...
package mw.wspolne.model; import lombok.Getter; import lombok.Setter; import java.text.DecimalFormat; /** * Created with IntelliJ IDEA. * User: Mariusz.Wojcik * Date: 11.03.14 * Time: 16:29 * To change this template use File | Settings | File Templates. */ @Setter @Getter public class MiernikZajetosci { pr...
/** * Created by Alexander Lomat on 15.05.19 * version 0.0.3 */ package by.epam.onemusic.pool; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.concurrent.BlockingDeque; imp...
package vn.edu.techkids.myapplication; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Main2Activity extends AppCompatActivity { @Override protected v...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.model; import com.beans.TblOrderDetail; import com.help.HibernateUtil; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; /** * * @author ADMIN */ public class OrderDetailMo...
package com.mzdhr.aadpractice.background; import android.app.Service; import android.content.Intent; import android.os.Handler; import android.os.HandlerThread; import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.Process; import android.support.annotation.Nullable; import ...
package com.revature.ersservlets; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.serv...
package kiki.AccountCal.Beta; import java.util.List; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.LinearLayout; import andro...
package testqueue; import static org.junit.Assert.*; import queue_singlelinkedlist.FifoQueue; import org.junit.Test; public class TestAppendFifoQueue { private FifoQueue<Integer >myQueue1 = new FifoQueue<Integer>(); private FifoQueue<Integer >myQueue2 = new FifoQueue<Integer>(); @Test public void twoEmptyQu...
/* * 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 tqs.weatherapp2.repository; import tqs.weatherapp2.model.Forecast; import java.util.List; import org.springframework.data.repos...
package com.jit.staticmethods01; public class Test implements Interf{ public static void main(String[] args) { Test t =new Test(); //t.m1(); //Test.m1(); Interf.m1(); } }
package com.accenture.test.assesment.model; import com.fasterxml.jackson.annotation.JsonIgnore; public class CustomerModel { private int custId; private String customerName; private int active; private String emailAddress; private String mobileNumber; private String phoneNumber; private String state; private...
package com.oleksii.arrmy.CrewPortal; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class CrewPortalApplication { public static void main(String[] args){ SpringApplication.run(CrewPortalApplication.class, args)...
package com.company; public class Cat extends Animal { private int laserBeam; private int bazookas; private int rubicCubes; public Cat(String name, int brain, int body, int size, int weight, int laserBeam, int bazookas, int rubicCubes) { super(name, brain, body, size, weight); this.la...
/* * 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 controller; import java.io.*; import java.net.*; public class Serverr { public static void main(String[] args) { ...
package com.example.testproject.first_setting; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import androidx.fragment.app.Fragment; import com.example.testproject.R; public class FifthPermissionSettingFragment ext...
package algorithms.search; import java.io.Serializable; import java.util.LinkedList; import java.util.List; import algorithms.maze.Position; /** * Solution is a class that represents the path between the start point and the goal point- * it is the Solution for a searchable - consists from a linkedList * @author Tu...
//解析jar文件。获取jar中。后缀为class文件的全限定名。而且判断。该class文件。是否继承和实现某个接口。 //以下是测试类 import java.io.File; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.net.URL; import java.net.URLClassLoader; import java.text.SimpleDateFormat; import java.util.*; import java.util.jar.*; public class JarDi...
package me.rainnny; import me.rainnny.util.RainnnyFile; import net.md_5.bungee.config.Configuration; import java.util.List; public class Settings { public static List<String> MOTD_LINES; public static String MOTD_NEWS; public static String STAFF_CONNECT; public static String STAFF_SWITCH; public...
package api.valorevaluacion; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface RepositorioValorEvaluacion extends JpaRepository<EntidadValorEvaluacion, Integer> { }
/** * Copyright (C) 2016 - 2030 youtongluan. * * 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 applicab...
package com.edasaki.rpg.holograms; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.Scanner; import org.bukkit.ChatColor; import org.bukkit.Chunk; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.event.EventHandler; import org.bukkit.event.world.ChunkLo...
package com.indoorpositioning.services; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.indoorpositioning.PositioningVariables; import com.indoorpositioning.persistence.Hist...
package com.test.demo; public class MyTestClass { public static void main(String[] str){ System.out.print("我是测试java工程"); } }
package ua.com.blackjack; import java.util.ArrayList; import java.util.List; import ua.com.blackjack.card.*; public class Hand { private List<Card> cards; private final int BLACKJACK = 21; public Hand() { cards = new ArrayList<>(); } public void addCard(Card card) { cards.add(c...
/* * 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 algorithms.search.symboltable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import algorithms.search.ST; import org.apache.commons.collections4.CollectionUtils; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Created by Chen Li on 2017/6/17. */ pu...
package com.qa.concepts; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; public class DragAndDrop { public static void m...
package com.db.persistence.services; /** * Created by taljmars on 4/28/17. */ public interface SessionsSvc extends TokenAwareSvc { void setToken(String token); /** * The following publish all the private changes to the public database. * After this action no object should exist under the private...
package com.paces.game.estados; import com.badlogic.gdx.graphics.VertexAttributes; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g3d.Environment; import com.badlogic.gdx.graphics.g3d.Material; import com.badlogic.gdx.graphics....
package com.app; public class SimpleFactory { public Object createObject(String name){ if("emp".equalsIgnoreCase(name)){ return new Employee(10,"ABCD"); }else{ return new Address(104,"Rayachoty"); } } }
/* * Copyright 2002-2022 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 cn.edu.cqu.jwc.mis.ta.model; import java.sql.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 org.hibernate.validator.constra...
/* * 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 server.data; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLExce...
// Name: Nanako Chung // Date: March 21st, 2017 // Description: this program creates a 5x5 dimension with either a circle or a square (chosen at random). If mouse is clicked, the shapes will shuffle // sets up processing within eclipse import processing.core.PApplet; public class ArrayVisualization extends PApplet{ p...
public class Q997_FindTheTownJudge { // // Method 1 5ms 99.24% // public int findJudge(int N, int[][] trust) { // int[][] people = new int[N][2]; // for(int[] person : trust) { // people[person[0]-1][0]++; // people[person[1]-1][1]++; // } // for(int i = 0; i < N;...
package com.reptile.util.constants; /** * @author LiuEnYuan * @version 1.1 reptile constants contains this project all constants **/ public final class ReptileConstants { /** define jdbc properties position **/ public static final String JDBC_PROPERTIES_POSITION = "src/main/resources/jdbc.properties"; ...
package br.com.mixfiscal.prodspedxnfe.services.ex; public class DadosSpedNaoCarregadosException extends Exception { public DadosSpedNaoCarregadosException() { super(); } public DadosSpedNaoCarregadosException(String message) { super(message); } public DadosSpedNaoCarregado...
package question4; import java.io.*; import java.net.*; public class UpperCaseInputStreamTest extends junit.framework.TestCase{ public void testAccès_README_TXT(){ try{ InputStream is = new BufferedInputStream( new FileInputStream(new File("question4/README.TXT"))); int c = is.read(); assertTru...
/** */ package Metamodell.model.metamodell.tests; import Metamodell.model.metamodell.MetamodellFactory; import Metamodell.model.metamodell.SenderReceiverport; import junit.textui.TestRunner; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Sender Receiverport</b></em>'. * <!-- end-user-do...
package com.pwq.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.regex.Pattern; /** * @Description:格式化数据 * @author: york * @date: 2016-07-30 16:07 * @version: v1.0 */ public class Form...
package uquest.com.bo.models.services.encuesta; import uquest.com.bo.models.entity.Encuesta; import java.util.Date; import java.util.List; public interface IEncuestaService { public List<Encuesta> findAll(); public Encuesta save(Encuesta encuesta); public Encuesta findOne(Long id); public void del...
package br.com.douglastuiuiu.biometricengine.queue.config; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.amqp.rabbit.annotation.EnableRabbit; import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory; import org.springframework.amqp.rabbit.connection.CachingConn...
import java.math.*; import java.io.*; import java.util.*; class diffeven { public static void main(String[] args) { Scanner kb = new Scanner(System.in); int a=kb.nextInt(); int b=kb.nextInt(); if(Math.abs(a-b)%2==0) { System.out.println("even"); } else { System.out.println("odd"); } } }
/** * Enumeration клас, що містить перелік організацій, * створені спільнотою могилянців. */ public enum Organizations { TA_MOHYLYANKA_1, MASTANDUP_2, SPUDEIISKI_VISNYK_3, SPUDEIISKE_BRATSTVO_NAUKMA_4, BUDDY_NAUKMA_5, POLITOLOGY_STUDENTS_ASSOCIATION_6, DEBATE_CLUB_7, ECOCL...
package yola.form.tests; public class Given { public final static String TEST_FORM_URL = "https://goo.gl/forms/t16Uov7ZHXCrB2ZE2"; public final static String VALID_EMAIL = "test@test.com"; public final static String VALID_MM = "01"; public final static String VALID_SS = "01"; public final static S...