text
stringlengths
10
2.72M
package shulei.july26; // 自定义日期类 /** * 日期类型 * @author helloWorld * */ class MyDate { public int iYear; public int iMonth; public int iDay; private static int checkYear(int iYear) { if ((iYear > 1901) && (iYear < 2050)) return iYear; else { System.out.println("The Year out of range, I think you want...
package com.example.framgiaphamducnam.demomodel3d.screens.vietskin; import android.os.Bundle; import android.os.Handler; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.V...
package Matrix2; import ConcurrentCache.ConcurrentCache; import java.util.Random; public class Matrix2 { private int dim; private int[] arr; private ConcurrentCache cache; public Matrix2(int dim) { this.dim = dim; arr = new int[dim * dim]; cache = new ConcurrentCache(dim); ...
package view.prof_frame; import control.erros.ErroNome; import javax.swing.*; import java.io.IOException; import static control.ExibirListas.exibirListaTurmasDumProf; class ListaTurmas { JPanel listaTurmas; private JLabel listaTurmasLabel; public ListaTurmas(){ try { listaTurmasLabe...
package cn.quartz; import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; /** * @author Created by xiaoni on 2018/10/17. */ @Configuration @EnableSch...
package com.android.cvbsdemo; public class CommonUtils { public static boolean is7Inch() { return false; } }
package xcelite.model; import compat.com.ebay.xcelite_104.annotations.Compat_Column; public class AbstractWriterTestsBean { @Compat_Column(name = "booleanSimpleType") boolean booleanSimpleType = true; @Compat_Column(name = "booleanObjectType") Boolean booleanObjectType = true; @Compat_Colum...
/* * Created by Angel Leon (@gubatron), Alden Torres (aldenml) * Copyright (c) 2011-2014, FrostWire(R). All rights reserved. * * 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 versio...
/* * 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 ch11; import java.util.*; public class HashSetEx5 { public static void main(String[] args) { HashSet setA = new HashSet(); HashSet setB = new HashSet(); HashSet setHab = new HashSet(); HashSet setKyo = new HashSet(); HashSet setCha = new HashSet(); setA.add("1"); setA.add("2"); setA.add("3"); ...
package com.example.atpc.cms; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.design.widget.NavigationView; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout;...
package mlAlg; import java.awt.Canvas; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.imageio.ImageIO; publ...
package com.seatgeek.placesautocomplete; import java.util.HashSet; import java.util.Set; /** * Object for passing filters around. */ public class Filters { private final Set<String> countries = new HashSet<>(); public Filters() { } public static Filters getDefault() { return new Filters()...
class Solution { public int widthOfBinaryTree(TreeNode root) { if (root == null) return 0; int max = 0; Queue<Pair<TreeNode, Integer>> q = new LinkedList<>(); q.offer(new Pair<>(root, 1)); int firstIndex = 0; int lastIndex = 0; while (!q.isEm...
/* * Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms. */ package com.yahoo.cubed.dao; import com.yahoo.cubed.model.PipelineProjectionVM; import org.hibernate.Session; /** * Pipeline projection value mapping data access object impleme...
package di.homework.CalXml; public class MyCalculator { private int firstNum; private int secondNum; public MyCalculator(int first, int second) { this.firstNum = first; this.secondNum = second; System.out.println("MyCalculator(fir,sec)..."); } public int getAdd() { return this.firstNum + thi...
package common; import java.awt.FlowLayout; import java.awt.GridLayout; import java.util.Collection; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JOptionPane;...
package gr.uoa.di.dbm.webapp.entity; import java.io.Serializable; import javax.persistence.*; /** * The persistent class for the trim_trees database table. * */ @Entity @Table(name="trim_trees") public class TrimTree extends ServiceRequest implements Serializable { private static final long serialVersionUID = 1...
package com.cxxt.mickys.playwithme.model.register; import android.content.Context; import com.cxxt.mickys.playwithme.presenter.register.OnAuthCodeListener; import com.cxxt.mickys.playwithme.presenter.register.OnRegisterFinishedListener; /** * RegisterModel * 注册 model 层接口 * * @author huangyz0918 */ public interf...
package functionalTesting.logoutPage.independently; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedConditions; import...
/* Link.java Purpose: Description: History: Tue Dec 13 15:22:15 2005, Created by tomyeh Copyright (C) 2005 Potix Corporation. All Rights Reserved. {{IS_RIGHT This program is distributed under LGPL Version 2.1 in the hope that it will be useful, but WITHOUT ANY WARRANTY. }}IS_RIGHT */ package org.zko...
package com.ljm.server.impl; import com.ljm.domain.DemoInfo; import com.ljm.repository.DemoInfoRepository; import com.ljm.server.DemoInfoService; import javassist.NotFoundException; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CachePut; import org.springframework....
package repository; import java.time.LocalDate; import java.util.HashMap; import java.util.Map; import data.Prod_Id; public class ProductOrder { public ProductOrder(){ } static Map<Integer, Prod_Id> prod = new HashMap<>(); static{ prod.put(101, new Prod_Id(101,"Hyderabad",LocalDate.of(2019, 01, 15), "Packag...
package com.example.bob.health_helper.Community.activity; import android.graphics.Color; import android.os.Bundle; import android.support.design.internal.FlowLayout; import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerVi...
package com.example.displayinfo; import android.app.Activity; import android.content.res.Configuration; import android.graphics.Point; import android.os.Build; import android.os.Bundle; import android.util.DisplayMetrics; import android.view.Display; import android.widget.TextView; public class MainActivity extends A...
package org.vanilladb.comm.protocols.tob; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; import org.vanilladb.comm.process....
package com.user.profileapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.Button; import android.widget.RelativeLayout; import andro...
package com.example.administrator.listview_callback.Test2; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import com.example.administrator.listview_callback.Myadapter; import com.example.administrator.listvi...
package com.daydvr.store.view.login; import android.view.View; import android.widget.ImageView; import com.daydvr.store.base.BaseActivity; /** * @author LoSyc * @version Created on 2018/1/6. 0:25 */ public class BaseForLoginActivity extends BaseActivity { protected void initBackButton(ImageView back) { ...
package com.restaurent; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.commons.httpclient.cookie.CookiePolicy; import org.apache.commons.httpclient.params.HttpMethodParams; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import or...
package ru.shikhovtsev.factorymethod; import ru.shikhovtsev.factorymethod.button.Button; import ru.shikhovtsev.factorymethod.button.WindowsButton; public class WindowsDialog extends Dialog { @Override public Button createButton() { return new WindowsButton(); } }
package Object; import Object.Enum.CategoriaEnum; import Object.Enum.IntensitaEnum; import Object.Enum.UnitaMisuraEnum; /** * La classe EsercizioObject mappa la tabella "esercizio" del database */ public class EsercizioObject { private String tipologia; private CategoriaEnum categoria; private Intensi...
package no.nav.vedtak.felles.integrasjon.person; public record PDLExceptionDetails(String type, String cause, String policy) { }
package hw10003; public class Sample9 { public static void main(String[]args) { int num1,num2; num1=3; System.out.println("變數num1的值是:"+num1); num2=num1; System.out.println("將變數num1指定到變數num2之中"); System.out.println("變數num2的值是:"+num2); } }
package com.cbs.edu.jdbc.examples; import java.sql.*; import java.util.ArrayList; import java.util.List; public class PreparedStatementExample { // JDBC driver name and database URL static final String JDBC_DRIVER = "org.postgresql.Driver"; static final String DB_URL = "impl:postgresql://ec2-54-228-251-25...
package spms.vo; import java.util.Date; public class Application { protected int ano; protected int rno; protected String title; protected String email; protected String company; protected String job; protected String question1; protected String answer1; protected String ...
package algopro.algo; import algopro.util.MapScanner; import java.util.Random; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class JumpPointTest { JumpPoint j; char[][] chart; final double ref = 0.01; boolean check; Random random; @Before public...
/* * 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...
/* The MIT License (MIT) Copyright (c) 2014 Stephan Kesper Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
package ca.mcgill.ecse223.kingdomino.features; import static org.junit.Assert.assertEquals; import ca.mcgill.ecse223.kingdomino.KingdominoApplication; import ca.mcgill.ecse223.kingdomino.controller.*; import ca.mcgill.ecse223.kingdomino.model.*; import io.cucumber.java.After; import io.cucumber.java.en.Given; import i...
/* * 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 chapseven; import java.util.Scanner; /** * * @author Frebby */ public class ValidatePassword { public static void main...
/*Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, given nums = [0, 1, 0, 3, 12], after calling your function, nums should be [1, 3, 12, 0, 0].*/ public class Solution { public void moveZeroes(int[] nums) { ...
package org.lazywizard.localmp.controllers.joypad; import org.lwjgl.input.Controller; // Purpose of this class: LWJGL event system doesn't work with non-L axis, // so we need to calculate axis events manually if we want the R/LZ/RZ/dpad // TODO: Throw exception when acting on consumed events class JoypadAxisEv...
package 小实例.学生管理系统; public class StudentFactory { private StudentFactory() { } public static IStudentService getInstance() { return new StudentService(); } }
package com.sherry.apistore; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController("/") public class ToDoApp { @GetMapping("/") private String hello() { return "Hello from API Store"; } }
package org.usfirst.frc.team548.robot.AutoModes; import org.usfirst.frc.team548.robot.Constants; public class OnlyShoot extends AutoMode { public OnlyShoot() { super("Only Shoot"); } @Override protected void run() { //shootAtSpeed(12, Constants.SHOOT_AUTON_SPEED); //Blue.... Make pos to do re...
package com.demo.web.tags; import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.SimpleTagSupport; import com.demo.common.AppConfig; import com.demo.util.DESTool; public class EncryptionTag extends SimpleTagSupport { private String value; @Override public void doTag(...
package com.programapprentice.app; import com.programapprentice.util.Util; import org.junit.Test; import java.util.List; /** * User: program-apprentice * Date: 10/11/15 * Time: 11:15 AM */ public class DifferentWaysToAddParentheses_Test { DifferentWaysToAddParentheses_241 obj = new DifferentWaysToAddParenthe...
package br.com.welson.clinic.errors; import javax.ws.rs.core.Response; public class UsernameOrPasswordError extends ErrorDetails { public UsernameOrPasswordError() { super("Usuário ou senha invalidos!", Response.Status.FORBIDDEN); } }
/* * Copyright 2008-2018 shopxx.net. All rights reserved. * Support: localhost * License: localhost/license * FileId: zg8TvBOglxtNtu5NHOACaKzMkpvg5Isz */ package net.bdsc.service.impl; import org.springframework.stereotype.Service; import net.bdsc.entity.Specification; import net.bdsc.service.SpecificationServic...
package com.dodoca.create_image.controller; import com.dodoca.create_image.exception.BaseResult; import com.dodoca.create_image.exception.ResultUtil; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @Author: TianGuangHui * @...
package com.nextLevel.hero.member.model.dto; import java.util.Collection; import java.util.List; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.User; public class UserImpl extends User { private int no; //회원번호 private int companyNo; ...
package com.test.logn; import com.test.base.Node; import com.test.base.Solution; /** * .并归排序 - 递归实现 * * 1,最好情况时间复杂度 * n*log(n) * * 2,最坏情况时间复杂度 * n*log(n) * * 3,平均情况时间复杂度 * n*log(n) * * 4,空间复杂度 * O(n) * * 5,稳定性 * .稳定 * * @author YLine * * 2019年2月20日 上午10:26:05 */ public class SolutionMergeB ...
package com.example.demo.rpc; public interface Tinterface { String send(String msg); }
package com.chompchompfig.rockpaperscissors.infrastructure.rest; import com.chompchompfig.rockpaperscissors.domain.moves.ClassicMoves; import com.chompchompfig.rockpaperscissors.infrastructure.movestrategy.RemoteNextMoveResource; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; import org.jun...
package dfs_ch05; import java.util.*; public class Ch05_pb1 { public static void main(String[] args) { Scanner scn = new Scanner(System.in); System.out.println("행(N)과 열(M)의 수를 각각 입력하세요. "); int row = scn.nextInt(); int col = scn.nextInt(); int [][] arr = new int [row][col]; System.out.println("얼음틀을...
package com.example.startup; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import com.example.startup.FragmentStudent.Assingments; import com.example.startup.FragmentStudent.Attendance; import com.example.startup.FragmentStud...
package cn.machine.secondarysort; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.api.java.function.Function; import org.apache.spark.api.java.function.PairFunction; imp...
package people; public class People { //属性(成员变量) 有什么 private double height; //身高 public double getHeight(){ return height; } public void setHeight(double newHeight){ height = newHeight; } private int age; //年龄 public int getAge() { return age; } pu...
package morpion; public class BigMorpion { Morpion[] total; char gagnant; static final int nbMorpion = 9; public BigMorpion() { this.total = new Morpion[nbMorpion]; for (int i = 0; i < nbMorpion; i++) { total[i] = new Morpion(); } } public boolean isFini() { Morpion[] t = this.getTotal(); if (t[0]...
package net.maizegenetics.analysis.popgen; import net.maizegenetics.util.TableReport; import net.maizegenetics.util.AbstractTableReport; import java.io.Serializable; import java.util.Vector; import net.maizegenetics.dna.snp.GenotypeTable; /** *This class provides the distribution of polymorphisms * * ...
package org.abrahamalarcon.datastream.util; public enum ErrorCode { GENERAL_ERROR(1000), ; long error; private ErrorCode(long error) { this.error = error; } public long getError() { return error; } public String toString() { return String.valueOf(error); } }
package String; public class ReverseString { public static String reverseString(String s) { if(s == null || s.length() ==0) return s; int left = 0; int right = s.length()-1; char[] str = s.toCharArray(); while(left < right) { char temp = str[left]; s...
import java.awt.*; /** * Created with IntelliJ IDEA. * User: dogeyes * Date: 13-1-14 * Time: 上午10:17 * To change this template use File | Settings | File Templates. */ public class MyParticle { private double rx, ry; private double vx, vy; private double s; private double mass; private Color ...
/* * 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 ifpb.dac.queue; import javax.annotation.Resource; import javax.ejb.LocalBean; import javax.ejb.Stateful; import javax.ejb.Stat...
package ru.carFactory.Details; public class Body implements Detail { private final int ID; private static int amount = 0; public Body() { ID = amount++; } @Override public int getID() { return ID; } }
package com.pack.dao; import com.pack.entity.Admin; import com.pack.entity.BatchAllocation; import com.pack.entity.Login; public interface AdminDao { public String loginAdmin(Login login); public void addBatch(BatchAllocation batchAllocation); public void addAdmin(Admin admin); }
package logic.bonus; import controller.Game; import logic.gameelements.bumper.Bumper; import logic.table.ConcreteTable; import logic.table.Table; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class DropTargetBonusTest { private Game game; private Table tab1; @B...
package com.GestiondesClub.services; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.GestiondesClub.dao.DemandeEventRepository; import com.GestiondesClub.dto.DemEventDto; import com.GestiondesCl...
package com.eurekacachet.clocling.data.remote; import com.eurekacachet.clocling.data.local.PreferencesHelper; import com.eurekacachet.clocling.data.model.AuthResponse; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.IOException; import java.util.Map; import okhttp3.Interceptor; impor...
package com.gaoshin.points.server.resource; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import org.apache.log4j.Logger; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import...
package org.dbdoclet.test.sample; /** * The class <code>Hint</code> is a sample documentation class, which * tries to use as many features of the javadoc world as possible. * * @author <a href="mailto:mfuchs@unico-consulting.com">Michael Fuchs</a> * @version 1.0 */ public class Hint implements Thinkable { ...
public class ArrQ1 { public boolean iscandles(int n) { if(n>=5) return true; else return false; } public static void main(String[] args) { ArrQ1 ob=new ArrQ1(); int arr[]= {2,3,5,1,3}; for(int i=0;i<arr.length;i++) { int sum=3; if(arr[i]== 5) System.out.print("True"); else { ...
/** * @author DengYouming * @since 2016-7-29 下午9:52:59 */ package org.hpin.webservice.util; import org.apache.commons.lang.StringUtils; import java.io.*; import java.nio.charset.Charset; import java.util.List; import java.util.Properties; /** * @author DengYouming * @since 2016-7-29 下午9:52:59 */ public class P...
package edu.nyu.cs9053.homework4.hierarchy; import java.util.Objects; public class Gulf extends BodyOfWater { private final int gulfParameter; public Gulf(String name, double volume, int gulfParameter) { super(name, volume); this.gulfParameter = gulfParameter; } public in...
package baseclass; import mysqlcon.sqlconnect; import java.sql.*; public class authorinfo { private String bookindex; private String authorname;//此处名称应与jsp表单名一致 private String age; private String wherefrom; public String getbookindex() { return bookindex; } public void setbookindex(S...
package com.tech.interview.siply.redbus.repository.contract.users; import com.tech.interview.siply.redbus.entity.dao.users.Customer; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Optional; import java.util.UUID; @Repository public int...
package edu.upenn.cis455.frontend; import static spark.Spark.*; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.text.SimpleDateFormat; import java.util.Li...
package cn.diffpi.resource.asthma.user.model; import cn.diffpi.kit.DateUtil; import cn.dreampie.orm.Model; import cn.dreampie.orm.annotation.Table; import cn.dreampie.security.DefaultPasswordService; /** * Created by one__l on 2015年10月11日 */ @Table(name = "asthma_user", cached = true) public class AsthmaUser extend...
package org.valar.project.contactsApplication.exception; public class UserBlockedException extends RuntimeException{ /* * Create User object with out error description */ public UserBlockedException() {} /* * Created user object with error description */ public UserBlockedException(String errDesc) {} }
package com.manit.krungsri.realmmeapplication.activity; import android.content.Intent; import android.databinding.DataBindingUtil; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.View; import android....
package com.bofsoft.laio.laiovehiclegps.DataClass; import com.bofsoft.laio.data.BaseData; import java.util.List; /** * 获取公共数据表更新时间信息,如果比本地新,就进行更新操作 * * @author admin * */ public class TableUpdateListData<T> extends BaseData { private int ConfType; private String UpdateTime; private List<T> info; publi...
package PACKAGE_NAME;public class StringInstrument { }
package f.star.iota.milk.ui.www52guzhuang.guzhuang; import android.os.Bundle; import f.star.iota.milk.base.MoreScrollImageFragment; public class GuZhuangFragment extends MoreScrollImageFragment<GuZhuangPresenter, GuZhuangAdapter> { public static GuZhuangFragment newInstance(String url) { GuZhuangFrag...
package com.cloud.test; import android.os.Binder; import android.os.Parcel; import android.os.RemoteException; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.Log; public class CallBackProxy extends Binder { public static final String descriptor...
package com.Ajinkya.wa_text.fragments; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater...
package com.dudhe.narayan.strecive; import android.speech.tts.TextToSpeech; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView;...
package nesto.daggertaste; import android.net.ConnectivityManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Editable; import android.text.TextWatcher; import android.widget.EditText; import javax.inject.Inject; import nesto.base.util.LogUtil; public class MainAc...
package com.logicbig.example; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.SessionAttribute; import java.time.Duration; import java.ti...
package com.gaoshin.onsalelocal.slocal.service.impl; import java.math.BigDecimal; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annot...
package com.zc.cris.mybatis.bean; import java.util.List; // 模拟oracle 的分页查询,将其定义为一个存储过程 procedure public class Page { private int start; private int end; private int totalCount; private List<Employee> emps; public int getStart() { return start; } public void setStart(int start) { this.st...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.explorer.client.window; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibind...
package br.com.mixfiscal.prodspedxnfe.util; public class Masc { public static boolean isCPF(String numDoc) { return Masc.isCPFOrCNPJ(numDoc, ETipoDoc.CPF); } public static boolean isCNPJ(String numDoc) { return Masc.isCPFOrCNPJ(numDoc, ETipoDoc.CNPJ); } public static String mas...
package kim; public class commtandpush1 { }
package com.java9whatsnew.language_improvements; import static java.util.stream.Collectors.filtering; import static java.util.stream.Collectors.flatMapping; import static java.util.stream.Collectors.groupingBy; import static java.util.stream.Collectors.toSet; import java.util.Map; import java.util.Set; public class ...
package modifer.innerClass; import com.sun.org.apache.bcel.internal.classfile.InnerClass; import modifer.Address; import modifer.User; /** * 简述: * <p> * 内部类不加static属性时,只能先创建了外部类再创建内部类 * 加static修饰时,通过外部类名就可以创建内部类对象 * 内部类是一个相对独立的概念 * * @author WangLipeng 1243027794@qq.com * @version 1.0 * @since 2020/1/8 10:07...
package com.ece.ing4.ppe.smartpillbox.smartpillbox; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.NonNull; import android.util.Log; import...
/* * Copyright 2002-2007 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.kbi.qwertech.api.data; public class QTConfigs { public static boolean doMobScrapesDrop; public static boolean slingshotGlass; public static boolean slingshotExplode; public static boolean doMobsUseGear; public static boolean canScrapePlayers; public static boolean addCustomAI; public static...
package leetcode; import org.junit.Before; import org.junit.Test; import com.google.common.truth.Truth; public class NimGameTest { private NimGame nimGame; @Before public void setup(){ nimGame = new NimGame(); } @Test public void test1_Expect_True(){ Truth.assertThat(nimGam...