text
stringlengths
10
2.72M
package by.epam.jb25.day1; public class Task4 { public static void main(String[]args){ double a = 10; double b = 15; double c, s; c = Math.hypot(a,b); s = 0.5*a*b; System.out.println("Гипотенуза = " + c +" и площадь равна " + s ); } }
/** * Represents a Sandwich item. * * @author Ben Godfrey * @version 12 APRIL 2018 */ public class Sandwich implements MenuItem { /** The name of the Sandwich */ private String mName; /** The price of the Sandwich */ private double mPrice; /** * Creates a new Sandwich given the price a...
package officehours04_12; import java.util.*; public class DynamicReadingInt { public static void main(String[] args) { Scanner input = new Scanner (System.in); System.out.println("how many number do you have"); int [] nums = new int [input.nextInt()]; //0 0 0 0 for(int i = 0; i ...
package com.hb.rssai.presenter; import com.hb.rssai.constants.Constant; import com.hb.rssai.contract.ModifySubscriptionContract; import java.util.HashMap; import java.util.Map; import rx.android.schedulers.AndroidSchedulers; import rx.schedulers.Schedulers; /** * Created by Administrator * on 2019/5/5 */ public ...
/* * 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 se.havero.sater.wiremock.model; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import...
package test1; public class test1 { public static void main(String[] args) { System.out.println(1); System.out.println(2); //22222222222 //1111111111111 //333333333333333333333 //rrrrrrrrrrrrrrrr //44444444444444444 //rsfssdfsdfsfs //6666666666666666666666 //444444444444...
package Pages; import org.openqa.selenium.WebDriver; public abstract class Page<T> { public WebDriver driver; protected abstract String url(); protected abstract T openPage(); public Page(WebDriver driver){ this.driver = driver; } }
package project; import inputStrategy.ComputerInputStrategy; import inputStrategy.HumanInputStrategy; import java.util.Random; import java.util.Scanner; class TicTacToe { private final Board board = new Board(); private final Player[] players= new Player[2]; private Player currentPlayer = null; priv...
package remote.datatypes; import enums.PacketCommand; import exceptions.IncorrectDataException; import helpers.DataConversionHelper; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * A class for keeping packets to be sent to or recieved from the autonomous system. * ...
package site.xulian.learning.utils; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class RequestUtil { /** * 获取请求的IP地址 * @param request * @return */ public static String getIpAddr(HttpServletRequest request) { S...
package eu.lsem.bakalarka.webfrontend.action.secure; import net.sourceforge.stripes.action.*; import net.sourceforge.stripes.integration.spring.SpringBean; import net.sourceforge.stripes.validation.Validate; import net.sourceforge.stripes.validation.ValidationMethod; import net.sourceforge.stripes.validation.Val...
package homework1; import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.List; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; class HexTest { @Test @DisplayName("Hex draw test") void drawTest() { ...
package tech.chazwarp923.unifieditems.crafting; import java.util.Map; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.oredict.OreDictionary; import tech.chazwarp923.unifieditems.block.UIBlockGemOre; im...
package ejercicio11; import java.util.Scanner; public class Ejercicio11 { public static void main(String[] args) { menu(); } private static void menu() { int opcion=0; do { System.out.println("---MENU---"); System.out.println("1.-Introducir productos"); System.out.println("2.-Introducir clientes");...
package org.ml4j.wit.api.impl.json; import java.util.List; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; @JsonIgnoreProperties(ignoreUnknown = true) public class EntityUpdateRequest { private String doc; @JsonProperty("values") private List<V...
package SwordOffer; import java.util.HashMap; /** * @author renyujie518 * @version 1.0.0 * @ClassName RandomListNodeCopy_35.java * @Description 复杂链表的复制 * 输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点),返回结果为复制后复杂链表的 head。 * * 思路: * 运用hashmap 建立 原节点 -> 新节点 的映射关系来建立新链表。 * 因为每个新节点都和原节点是对应的,建立这个映射关系后, * 新...
/* * (C) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 a...
/* * 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 threads; /** * * @author rafael */ public class PrioridadeThread extends Thread { PrioridadeThread(String n...
//**************** Oct 26- P5**************** package OOP_Encapsulation; public class BrowserUser { public static void main(String[] args) { Browser br=new Browser(); br.launchBrowser(); } }
package mvc_demo.models; public class Event extends Model{ }
package com.example.healthmanage.ui.activity.temperature; import java.util.List; public class InsertPrescriptionBean { /** * modelName : 中暑 * modelType : 0 * drugList : [{"id":18,"name":"名称","number":22,"unit":"药品单位","useMode":"服用方式","useTime":"2021-05-07 08:00:00","useFrequency":"服用频率"},{"id":19,...
/* ***************************************************************************** * Name: Alan Turing * Coursera User ID: 123456 * Last modified: 1/1/2019 **************************************************************************** */ public class RevesPuzzle { private static void Tower(int...
package com.goodhealth.algorithm.JDBC; import java.sql.*; public class Oracle { private static final int port = 1521; private static final String databaseName = "ghj"; private static final String URL = "jdbc:oracle:thin:@localhost:" + port + ":" + databaseName; private static final String USER = "sa"; private ...
/* * Copyright: (c) 2004-2011 Mayo Foundation for Medical Education and * Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the * triple-shield Mayo logo are trademarks and service marks of MFMER. * * Except as contained in the copyright notice above, or as used to identify * MFMER as the author of ...
package Six; /** * package:包,对应到文件系统就是多级目录 * 为了解决两个问题: * 1、文件同名问题 * 2、为了方便管理类,将具体处理功能的代码放到同一个目录下 * 使用: * 一般定义package会放置在Java文件的第一行 * package 域名倒写 * package com.mashibng. * 完全限定名:包名+类名 * * * JDK中常用的包: * lang: 不需要手动导入,自动加载 * util:工具包 * net:...
package com.drzewo97.ballotbox.panel.controller.election; import com.drzewo97.ballotbox.core.model.election.Election; import com.drzewo97.ballotbox.core.model.election.ElectionRepository; import com.drzewo97.ballotbox.core.model.poll.Poll; import com.drzewo97.ballotbox.core.model.poll.PollRepository; import org.spring...
package com.duanxr.yith.midium; /** * @author 段然 2021/3/12 */ public class OneAwayLcci { /** * There are three types of edits that can be performed on strings: insert a character, remove a character, or replace a character. Given two strings, write a function to check if they are one edit (or zero edits) away....
package fiscal; // Generated 10/07/2009 10:49:54 by Hibernate Tools 3.2.0.b9 import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persisten...
package com.baomidou.mybatisplus.samples.quickstart.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.samples.quickstart.domain.User; import com.baomidou.mybatisplus.samples.quickstart.mapper.UserMapper; import com.baomidou.mybatisplus.samples.quickstart....
package com.ericlam.mc.minigames.core.factory.scoreboard; import com.ericlam.mc.minigames.core.factory.Factory; import com.ericlam.mc.minigames.core.game.GameTeam; import org.bukkit.scoreboard.Team; /** * 計分版工廠 */ public interface ScoreboardFactory extends Factory<GameBoard> { /** * 添加隊伍設定 * @param g...
package IO; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java...
/* * 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 model; import contrat.Metier; import java.io.Serializable; /** * * @author bynan */ public class UserModel extends Metier ...
package com.tencent.mm.plugin.walletlock.b; import com.tencent.mm.g.a.sd; import com.tencent.mm.kernel.g; import com.tencent.mm.plugin.walletlock.gesture.a.d; import com.tencent.mm.plugin.walletlock.gesture.a.e; import com.tencent.mm.protocal.c.ayz; import com.tencent.mm.sdk.b.b; import com.tencent.mm.sdk.b.c; import ...
package com.xkzhangsan.time.nlp; import java.util.List; import java.util.concurrent.Callable; /** * TimeNLP Callable * @author xkzhangsan */ public class TimeNLPCallable implements Callable<List<TimeNLP>>{ private String text; private String timeBase; public TimeNLPCallable(String text, String timeBase) {...
package com.mx.profuturo.bolsa.model.service.hiringform.vo; import com.mx.profuturo.bolsa.model.service.hiringform.dto.FormularioEtapa1DTO; import com.mx.profuturo.bolsa.model.service.hiringform.dto.FormularioEtapa2DTO; import com.mx.profuturo.bolsa.model.service.hiringform.dto.FormularioEtapa3DTO; import com.mx.prof...
package co.nos.noswallet.ui.home.v2.transactionDetail; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.support.a...
package com.stackroute.jdbc; import java.sql.*; public class DatabaseMetadataDemo { private Connection connection; private Statement statement; private ResultSet resultSet; public void getEmployeeDetails() { try { Class.forName("com.mysql.cj.jdbc.Driver"); } catch (ClassN...
package com.fleet.easyexcel.controller; import com.alibaba.excel.EasyExcel; import com.fleet.easyexcel.entity.User; import com.fleet.easyexcel.listener.UserListener; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.we...
package engine.network; public class AbstractDelta implements Comparable<AbstractDelta>{ protected long time; public AbstractDelta(long time){ this.time = time; } @Override public int compareTo(AbstractDelta delta) { return Long.compare(time, delta.time); } public long getTime(){ retu...
import java.sql.Connection; import java.sql.DriverManager; public class Database_Connection { Connection connect() { try{ Class.forName("com.mysql.jdbc.Driver"); Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/exam","root",""); System.out.println("Database is connected succe...
package classes; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.charset.Charset; public class Registro { String chave; String nome; String email; String telefone; public void setChave(String chave){ this.chave = ch...
package com.example.storage; import java.io.File; import java.util.ArrayList; import android.graphics.Bitmap; import android.os.Bundle; import android.os.Environment; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import an...
package com.tencent.mm.ui.chatting.viewitems; import android.os.Bundle; import com.tencent.mm.R; import com.tencent.mm.ar.r; import com.tencent.mm.kernel.g; import com.tencent.mm.model.au; import com.tencent.mm.model.c; import com.tencent.mm.model.s; import com.tencent.mm.plugin.messenger.a.e; import com.tencent.mm.st...
package br.com.tomioka.vendashortalicas.controllers; import br.com.tomioka.vendashortalicas.models.Pedido; import br.com.tomioka.vendashortalicas.services.PedidoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.an...
package com.dazhi.naming.pojo; public class CommonParams { public static final String CODE = "code"; public static final String SERVICE_NAME = "serviceName"; public static final String CLUSTER_NAME = "clusterName"; public static final String NAMESPACE_ID = "namespaceId"; public static final Str...
package com.wt.jiaduo.dao; import org.springframework.data.jpa.repository.JpaRepository; import com.wt.jiaduo.dto.jpa.XiaomaiTiaoxiubingHouqi; public interface XiaomaiTiaoxiubingHouqiDao extends JpaRepository<XiaomaiTiaoxiubingHouqi, Integer> { }
package org.apex.main; import java.io.*; public class FileRead { public static void main(String[] args) { // TODO Auto-generated method stub // String fileName = "Temp.text"; String line = null; try { FileReader fileReader = new FileReader("C:\\Users\\Mridula\\Documents\\Java\\Temp.txt"); Buff...
package com.qtrj.simpleframework.ssh.controller; import com.oreilly.servlet.MultipartRequest; import java.io.File; public abstract class UploadFileNewCall { public abstract <T> void file(T paramT, File paramFile, String paramString1, String paramString2, long paramLong, String paramString3) throws Exception; p...
package com.blueeaglecreditunion.script; /** * ADT to hold the member information */ public class MemberInformation { private String cardPrefix; private String cardStatus; private String cardNumber; private String cardExpirationDate; private String memberNumber; private String primaryAccoun...
package com.openfaas.function; import com.openfaas.model.IHandler; import com.openfaas.model.IResponse; import com.openfaas.model.IRequest; import com.openfaas.model.Response; import freemarker.template.Configuration; import freemarker.template.Template; import freemarker.template.TemplateExceptionHandler; import jav...
public class AreaDemo { public static void main(String[] args) { System.out.println("The are of the circle with a radius of 20 is " + Area.getArea(20.0) ); System.out.println("The are of the rectangle with length of 10 and width of 20 is "+ Area.getArea(10, 20)); System.out.println("The area of the cylinder w...
package edu.illinois.finalproject.PlayerProfile; import android.content.Context; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.view....
package com.smartwerkz.bytecode.vm.methods; import com.smartwerkz.bytecode.classfile.Classfile; import com.smartwerkz.bytecode.classfile.MethodInfo; import com.smartwerkz.bytecode.classfile.Methods; import com.smartwerkz.bytecode.controlflow.FrameExit; import com.smartwerkz.bytecode.primitives.JavaObject; import com.s...
/** */ package ConceptMapDSL; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Map Elements</b></em>'. * <!-- end-user-doc --> * * * @see ConceptMapDSL.ConceptMapDSLPackage#getMapElements() * @model * @generated */ public interface MapElements extends NamedElement { } // MapEleme...
/* * * * Copyright 2009-2018. * * * * 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 ...
/* * 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 helpers; /** * * @author ChrisMac */ public class OverloadedCounter { private int initial; private boolean check; ...
package GUI_Sudoku; import javax.swing.JLabel; import Sudoku_Logica.Celda; @SuppressWarnings("serial") public class MiLabel extends JLabel { //Atributos protected Celda c; //Constructor public MiLabel(Celda cel) { super(); c=cel; } //Metodos public void setcelda(Celda cel) { c=cel; } public Celda getceld...
package org.sbbs.dao; import java.util.List; import java.util.Map; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.Validation; import javax.validation.Validator; import javax.validation.ValidatorFactory; import org.hibernate.HibernateException; import org.hibern...
package com.kashu.test.domain; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.CollectionTable; import javax.persistence.Colu...
/* * 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 sketchit; import javafx.scene.paint.Color; import javafx.scene.shape.Shape; /** * * @author Mason */ public abstract class...
package leetcode; import java.util.*; /** * @Author: Mr.M * @Date: 2019-03-01 21:24 * @Description: https://leetcode-cn.com/problems/lru-cache/ **/ class task { int nums; int key; public task(int nums, int key) { this.nums = nums; this.key = key; } } // 没有考虑到多个相同频率的事物,但是调用的时间不同,也就是最近时间不同的情况如何区分. clas...
package com.company.controllers; import com.company.dao.DishDao; import com.company.dao.EmployeeDao; import com.company.dao.OrderDao; import com.company.model.Dish; import com.company.model.Order; import org.springframework.transaction.annotation.Transactional; import java.sql.Timestamp; import java.util.ArrayList; i...
package paiva.pedro.at_desenvolvimento_android.Utility; import android.content.Context; import android.widget.Toast; public class DefaultAttributes { public static int SPLASH_TIME_OUT = 3000; public static final String URL = "http://demo1846932.mockable.io/"; public static final String UsersDB = "Users";...
package com.xiaoxiao.search.service; import com.xiaoxiao.utils.Result; /** * _ooOoo_ * o8888888o * 88" . "88 * (| -_- |) * O\ = /O * ____/`---'\____ * .' \\| |// `. * / \\||| : |||// \ * / _||||| -:- |||||- \ * | | \\\ - /// | | * | \_| ''\---/'' | | * \ .-\__ `-` ___/-. / * __...
package com.ugarit.java.designpatterns.bridge.impl; import java.util.Random; /** * Random integer strategy implementation to generate an integer from a range * * @author durrah (mhd.durrah@gmail.com) on 5/16/15. */ public class RangeRandomIntGenerator implements RandomIntGenerator { /** * range min ...
package com.naver.dao; import java.util.ArrayList; import java.util.HashMap; public interface CommandDAO { int deleteDateWords(long id, int date, int bottype); int deleteWords(long id, String word, int bottype); ArrayList<HashMap> selectPeriodWords(long id, String predate, String afterdate, int bottype); Array...
package com.gtfs.service.interfaces; import java.io.Serializable; import java.util.List; import com.gtfs.bean.BranchMst; import com.gtfs.bean.LicPremPaymentDtls; public interface LicPremPaymentDtlsService extends Serializable { List<LicPremPaymentDtls> findLicPremPaymentDtls(Long id, BranchMst branchMst)...
/* * 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 pruebas; import javax.swing.JOptionPane; /** * * @author Arturo */ public class Pruebas { /** * @param args the ...
package com.anywaycloud.dao; import com.anywaycloud.model.UserFile; public interface UserFileMapper { int deleteByPrimaryKey(Integer id); int insert(UserFile record); int insertSelective(UserFile record); UserFile selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Use...
package com.bcgbcg.br.controller; import java.io.File; import java.util.List; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controlle...
package com.penzias.service; import com.penzias.core.interfaces.BasicService; import com.penzias.entity.ApoplexyConclusionInfo; import com.penzias.entity.ApoplexyConclusionInfoExample; public interface ApoplexyConclusionInfoService extends BasicService<ApoplexyConclusionInfoExample, ApoplexyConclusionInfo> { ...
public class Node<E> { protected Node<E> left, right; protected E data; public Node() { left = null; right = null; data = null; } public Node(E n) { left = null; right = null; this.data = n; } public E getData() { return data; } public N...
package apache_POI; public class DataReadingFromExcel { }
package com.example.demo.dao; import com.example.demo.entity.SysUserRole; import com.example.demo.mapper.IMapper; public interface SysUserRoleMapper extends IMapper<SysUserRole> { }
package demo06; import java.util.Iterator; import java.util.concurrent.PriorityBlockingQueue; public class UsePriorityBlockingQueue { public static void main(String[] args) throws InterruptedException { PriorityBlockingQueue<Task> p =new PriorityBlockingQueue<Task>(); Task t1 = new Task(); t1.setId...
package com.leetcode.wangruns; //20、palindrome-partitioning-ii[动态规划] /** * Given a string s, partition s such that every substring of the partition is a palindrome. * Return the minimum cuts needed for a palindrome partitioning of s. * For example, given s ="aab", * Return 1 since the palindrome partitioning ["aa...
/* * 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 safeflyeu.view; import safeflyeu.controller.ObradaOsiguranje; /** * * @author labak */ public class SplashScreen extends j...
package networking.mail.examples; import javax.mail.*; import javax.mail.internet.*; import javax.swing.JOptionPane; import javax.swing.JPasswordField; import java.util.*; public class SendSMTPMail { public static void main(String[] args) { // TODO Auto-generated method stub String username = "c...
package cn.cj.spring_boot.dao; import java.util.List; import org.springframework.stereotype.Component; import cn.cj.spring_boot.domain.BaseDict; @Component public interface BaseDictDao { List<BaseDict> getDictListByTypeCode(String typeCode); }
package saim_only_03_27; public class OddNumberDivisible3_5 { public static void main(String[] args) { for(int num=1; num<=100; num++){ if(num %2 !=0 && num %3==0 && num %5 ==0 ){ System.out.println("Odd numbers "+num +" can be divided by 3 and 5 "); } } ...
package com.usecasepoint.service; import com.usecasepoint.exception.EntityNotFoundEx; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public class AbstractService<T> implements ServiceInterface<T, String>{ protected final JpaRepository<T, String> repository; public Abst...
package Types; import java.util.List; public class Expr { public int value; Variables vars; int depth; Term term; String connector; Expr expr; List tokens; public Expr(List tokens,Variables vars, int depth) { this.tokens = tokens; this.depth = depth; this.vars = vars; } public void Parse() { if(...
package interaccionobjetos; public class PersonaPrivada { private String nombre; private int edad; public PersonaPrivada(String nombre, int edad) { this.nombre = nombre; this.edad = edad; } public String getNombre() { return nombre; } public void se...
package com.yoeki.kalpnay.hrporatal.Jobposting; public class Jobpostingmodel { String nocadicdates; String opening; String hiringlead; String createdon; String status; public String getNocadicdates() { return nocadicdates; } public void setNocadicdates(String nocadicdates) { ...
package com.zstu.Filter; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.io.IOException; public class OneFilter implements Filter { @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterCha...
package com.intraway.exception; import javax.validation.ConstraintViolationException; public class TransactionRefuseException extends RuntimeException { public TransactionRefuseException(ConstraintViolationException e){ super(e.getMessage()); } }
package by.imag.app; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.os.AsyncTask; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.LayoutInflater; import android.view.View;...
package com.zyq.service.impl; import com.zyq.mapper.LoginMapper; import com.zyq.pojo.User; import com.zyq.service.LoginService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @author 邹雨樵 * @date 2019/7/22 * @since 1.0.0 */ @Service public class ...
package com.java8.lambda.cart; import lombok.Getter; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate; @Getter public class CartService { // 加一点假数据 public List<Product> cartList = new ArrayList<Product>() { { add(Product.builder().productId(110) ...
package Kap2.Aufgabe1; import javax.json.bind.annotation.JsonbPropertyOrder; import java.util.ArrayList; import java.util.List; @JsonbPropertyOrder({"id", "name", "hobbies"}) public class Person { private int id; private String name; private List<String> hobbies; public Person() { } public ...
package com.awsp8.wizardry.Items; import com.awsp8.wizardry.Wizardry; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; /** * Can be planted on Dirt, Grass, or Mycelium * @author ...
package com.streming.kafka.intercept; import org.apache.kafka.clients.consumer.ConsumerInterceptor; import org.apache.kafka.clients.consumer.ConsumerRecords; import org.apache.kafka.clients.consumer.OffsetAndMetadata; import org.apache.kafka.common.TopicPartition; import java.util.Map; /** * @fileName: CustomInterc...
package PresentationLayer.Controller; import BusinessLayer.DeliveryService; import PresentationLayer.View.RaportView; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileNotFoundException; /** * The type Raport controller. */ public class RaportController { /** * Th...
/* * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. * * 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 requi...
class PenBuilder { private PenImpl pen = new PenImpl(); PenBuilder withColor(PenColor color) { pen.setColor(color); return this; } PenBuilder withWidth(PenWidth width) { pen.setWidth(width); return this; } Pen build() { return pen; } }
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; public class MiniMapModel extends Model { //updateLocationAndDirection() will contain the logic ...
package org.twittercity.twitterdataminer.searchtwitter; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONObject; import org.twittercity.twitterdataminer.TwitterException; import org.twittercity.twitterdataminer.http.HttpResponse; import org.twittercity.twitter...
package ga.islandcrawl.building; import ga.islandcrawl.draw.Oval; import ga.islandcrawl.form.Campfire; import ga.islandcrawl.form.Form; import ga.islandcrawl.object.Item; import ga.islandcrawl.object.Tag; import ga.islandcrawl.object.unit.Man; import ga.islandcrawl.other.WordMap; import ga.islandcrawl.state.Fire; /**...
package com.tencent.mm.plugin.gallery; import com.tencent.mm.bt.h.d; import com.tencent.mm.model.ar; import java.util.HashMap; class Plugin$2 implements ar { final /* synthetic */ Plugin jAc; Plugin$2(Plugin plugin) { this.jAc = plugin; } public final HashMap<Integer, d> Ci() { retur...
package com.lfd.day0130_03_anim; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.graphics.drawable.AnimationDrawable; import android.view.Menu; import android.view.View; import android.widget.ImageView; public class MainActivity extends Activity { pri...