text
stringlengths
10
2.72M
package com.stackroute.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; @Controller public class UserController { @Reques...
package men.brakh.kasiski; import java.util.*; public class GcdsTable { // Таблица Наибольший общий делитель --- Число его повторений private Map<Integer, Integer> gcds = new HashMap<>(); /** * Добавление наибольшего общего делителя вв хеш-таблицу * @param gcd НОД */ public void addGcd...
package fj.swsk.cn.eqapp.subs.more.C; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import java.util.ArrayList; import java.util.List; import fj.swsk.cn.eqapp.R; import fj.swsk.cn.eqapp.main.C.BaseTopbarActivity; ...
package com.bazmehdi.pjb.view; import android.os.Bundle; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import com.bazmehdi.pjb.R; import org.json.JSONException; import org.json.JSONObject; public class PaymentDetails extends AppCompatActivity { ...
package com.designpattern.dp8strategypattern.v1; public class GroupbuyStrategy implements SaleStrategy { @Override public void doSale() { System.out.println("团购策略"); } }
package com.cloudaping.cloudaping.entity.productType; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Computer extends ProductType{ @Id private Integer computerId; private String computerBrand; private String computerCase; private String computerScreen; priva...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * */ /** * @author Aloy Aditya Sen * */class b{ static int maze[][];public b() { // TODO Auto-generated constructor stub }static int r;static int c; public static void main (String ... orange) throw...
package com.twitter.component_test.rest; import static com.jayway.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; import java.util.Optional; import javax.annotation.Resource; import javax.inject.Inject; import javax.ws.rs.core.MediaType; import org.junit.Before; import org.j...
package com.sunny.rpc.socket; import java.io.IOException; import java.net.Socket; import java.util.Date; import java.util.concurrent.TimeUnit; /** * <Description> <br> * * @author Sunny<br> * @version 1.0<br> * @taskId: <br> * @createDate 2018/10/11 23:23 <br> * @see com.sunny.rpc.socket <br> *...
package slimeknights.tconstruct.plugin.jei.casting; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.commons.lang3.tuple.Triple; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import net.minecraft.item.Item; import net.minecraft.item.ItemStac...
package org.maple.jdk8.stream; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; /** * @Author Mapleins * @Date 2019-04-06 2:09 * @Description flatMap */ public class Test7 { public stat...
package com.example.Lookify.controllers; import java.util.List; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import ...
package gina.nikol.qnr.demo.entity; import java.util.Date; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import ...
package lefkatis.personalityapp.Controllers; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import lefkatis.personalityapp.App; import lefkatis.personalityapp.Models.GoogleAnalyticsHelper; import lefkatis.personalityapp.R; public class AboutActivi...
package com.example.smdemo1.service; import javax.annotation.Resource; import com.example.smdemo1.dao.UserMapper2; import com.example.smdemo1.model.User; import org.springframework.stereotype.Service; /** * @author xp-dc * @date 2018/12/25 */ @Service public class UserService2 { @Resource private UserMapper2 u...
package it.unimi.di.tsp20.TailCallOptimization; /** * Colors used to format strings in the console. */ public class ConsoleColors { // Reset public static final String RESET = "\033[0m"; // Text Reset // Regular Colors public static final String YELLOW = "\033[0;33m"; // YELLOW //Bold Colors...
package logica; import java.io.Serializable; public class MemoriaRam extends Producto implements Serializable{ private static final long serialVersionUID = 1L; private String cantidadMemoria; private String tipoMemoria; public MemoriaRam(double precio, int cantInicial, String numeroSerie, String m...
/* * 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 conteudo; import java.util.Vector; /** * * @author Mayco, Matheus, Henrique */ public class ConjuntoImagem { private...
package com.durgesh.schoolassist.Adapters; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; ...
package fi.lyma.minesweeper.logic; import static org.junit.Assert.*; import fi.lyma.minesweeper.logic.Tile; import org.junit.Before; import org.junit.Test; /** * Created by lyma on 24.1.2017. */ public class TileTest { Tile tile; @Before public void setup() { tile = new Tile(0, 0); } ...
package com.fanfte.designPattern.dynamicProxy; public interface FishSeller { int sellFish(); }
package com.zhanwei.java.test2; public class ThreadDemo extends Thread{ private Sequence sequence; public ThreadDemo(Sequence sequence) { this.sequence = sequence; } public void run() { for(int i=0;i<3;i++){ System.out.println("Thread :" + Thread.currentThread().getName() + ",number : " + sequence.getNu...
package py.edu.facitec.psmsystem.abm; import java.awt.Color; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; im...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.ForkJoinTask; import java.util.concurrent.RecursiveTask; public class ForkAndJoin { private static final ForkJoinPool POOL = new ForkJoinPool(2); public static void ...
package com.bofsoft.laio.customerservice.DataClass.erweima; import com.bofsoft.laio.data.BaseData; public class ShareCodeAndInfo extends BaseData { public String invitecode;//优惠码 public String invitehtml;//分享展示html public String shareinfo;//分享文本内容 public String inviteurl;//分享的连接 public String shar...
package FolkPaaUni; public class Person { private int ID; private String fornavn; private String etternavn; private int fodselsaar; public Person(int id, String fnavn,String enavn, int faar) { ID = id; fornavn = fnavn; etternavn = enavn; fodselsaar = faar; } public Person() { ...
package bg.swift.HW17; public class Address { private String streetAddress; private String city; private String state; private int postalCode; public Address(String streetAddress, String city, String state, int postalCode) { this.streetAddress = streetAddress; this.city = city; this.state = state; this.p...
package com.appsala.app.controllers; import java.util.List; import com.appsala.app.entities.Regional; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import com.appsala.app.services.RegionalService; import org.springframework.web.bind.annotation.*; import org.springframework...
package duverger.lib; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Optional; import java.util.function.*; public class InstanceHolder<T> { private final T value; private final boolean isPresent; private InstanceHolder(final T value_p, final boolean isPre...
package com.lenovohit.hcp.pharmacy.manager; import java.util.List; import com.lenovohit.hcp.base.model.HcpUser; import com.lenovohit.hcp.pharmacy.model.PhaCheckInfo; /** * * 类描述: 盘点结存更新库存表和库存汇总表 *@author GW *@date 2017年5月28日 * */ public interface PhaCheckInfoManager { /** ...
package com.programapprentice.app; /** * User: program-apprentice * Date: 10/4/15 * Time: 9:58 PM */ public class HouseRobberII_213 { public int rob(int[] nums) { if (nums == null || nums.length == 0) { return 0; } if(nums.length == 1) { return nums[0]; }...
import java.util.*; public class POJ3579 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); while (sc.hasNextInt()) { int n = sc.nextInt(); int[] num = new int[n]; int[] diffs = new int[n * (n-1)...
/*** * Message * Date: 23/10/2020 * @author: B3-10 / ESSAYED Sana, MATOKA Lea ***/ package history; public class Message { protected String user; protected String message; /** * constructor Message * @param user * @param message * **/ public Message(String user, String message) { this.us...
package com.proxiad.games.extranet.controller.websocket; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.messaging.handler.annotation.Header; import org.springframework.messaging.handler.annotation.MessageMapping; import org.springframework.messagin...
package com.teamkassvi.ascend; import android.app.Application; import com.microsoft.projectoxford.face.FaceServiceClient; import com.microsoft.projectoxford.face.FaceServiceRestClient; /** * Created by kartik1 on 17-04-2018. */ public class SampleApp extends Application { @Override public void onCreate()...
package com.example.configurations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; import org.springframework.stereotype.Component; @Component public class AppProperties { @Autowired private Environment environment; public String getPropert...
package com.sizatn.sort; import java.util.Arrays; /** * * @desc 插入排序的算法描述是一种简单直观的排序算法。它的工作原理是通过构建有序序列,对于未排序数据,在已排序序列中从后向前扫描,找到相应位置并插入。 * 一般来说,插入排序都采用in-place在数组上实现。具体算法描述如下: * 1.从第一个元素开始,该元素可以认为已经被排序; * 2.取出下一个元素,在已经排序的元素序列中从后向前扫描; * 3.如果该元素(已排序)大于新元素,将该元素移到下一位置; * 4.重复步骤3,直到找到已排序的元素小于或者等于新元素的位置; * 5.将新元素插入到...
package com.tony.pandemic.builders; import com.tony.pandemic.hospital.Hospital; import java.text.ParseException; import java.time.LocalDateTime; public class HospitalBuilder { public static Hospital createHospital() throws ParseException { return Hospital.builder() .name("Hospital Samari...
package com.sinodynamic.hkgta.dao.crm; import java.util.List; import org.springframework.stereotype.Repository; import com.sinodynamic.hkgta.dao.GenericDao; import com.sinodynamic.hkgta.entity.crm.HkArea; import com.sinodynamic.hkgta.entity.crm.HkDistrict; @SuppressWarnings("rawtypes") @Repository public class HKAr...
package leetCode; import java.util.Arrays; import java.util.List; /** * There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Example 1: nums1 = [1, 3] nums2 = [2] The median is 2.0 Example 2: num...
package za.ac.cput.views.person.lecturer; /** * GetAllLecturer.java * Author: Shane Knoll (218279124) * Date: 20 October 2021 */ import com.google.gson.Gson; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import org.json.JSONArray; import org.json.JSONObject; import za.ac.cput.enti...
package com.appspot.smartshop.utils; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import android.app.Activity; import android.app.NotificationManager; import android.graphics.drawabl...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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 require...
/** * Commands for Map-Reduce in Riak. * <h4>Map-Reduce</h4> * <ul> * <li>{@link com.basho.riak.client.api.commands.mapreduce.BucketMapReduce}</li> * <li>{@link com.basho.riak.client.api.commands.mapreduce.BucketKeyMapReduce}</li> * <li>{@link com.basho.riak.client.api.commands.mapreduce.IndexMapReduce}</li> * <...
package com.lidaye.shopIndex.domain.vo; import com.lidaye.shopIndex.domain.entity.SubMenu1; import lombok.Data; import java.io.Serializable; import java.util.List; @Data public class SubMenu1Vo extends SubMenu1 { private List<SubMenu2Vo> subMenu2Vos; }
package com.swm.wechat.core; import java.io.IOException; import java.util.Date; import net.sf.json.JSONObject; import com.swm.common.util.HttpTookit; public class WeChatAccessToken { private String access_token; private int expires_in; private Date time = new Date(); public boolean isExpires() { ...
/** * This method finds the closest element to a target in binary search tree * Reference: https://algorithmsandme.com/find-closest-element-in-binary-search-tree/ * */ class Node { Node left; Node right; int data; Node(int data) { left = null; right = null; this.data = data;...
package com.hwj.service; import java.util.List; import com.hwj.entity.MindNode; public interface IMindNodeService extends IBaseService<MindNode> { List<MindNode> selectMindNode(Object value1, Integer currentPage, Integer pageSize); Long searchMindPage(Object value1); }
package vues; import controleur.Controleur; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.GridPane; import modele.Joueur; import ...
package com.example.tushar.capture; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.os.AsyncTask; import android.provider.MediaStore; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity;...
package com.wkrzywiec.spring.library.entity; 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.search.annotations.Field; import ...
package com.meetingapp.android.fragments.home; import android.content.Context; import android.net.Uri; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com...
package practice.leetcode.algorithm; /** * 11. Container With Most Water * https://leetcode.com/problems/container-with-most-water/description/ */ public class ContainerWithMostWater { /** * * @param height the height * @return the int */ public int maxArea(int[] height) { int ...
package com.example.rentacar.entitity; import java.util.Date; import java.util.Set; import java.util.TreeSet; import javax.persistence.*; import lombok.AllArgsConstructor; import lombok.Data; import org.hibernate.annotations.GenericGenerator; @Data @AllArgsConstructor @Entity @Table(name = "RATE_PRICE") public c...
package com.corejava.scjp; public class ICICIBank extends Rbi2Bank{ /** * @param args */ public static void main(String[] args) { ICICIBank icb = new ICICIBank(); icb.MiniStatement(); icb.PinChange(); } public void MiniStatement() { System.out.println("This is ICICI Bank MiniStatement Service...
package com.javarush.test.level10.lesson03.task04; public class Solution { double d = 1; float f = (float) d; long l = (long) f; int i = (int) l; short s = (short) i; byte b = (byte) s; }
package com.legaoyi.protocol.up.messagebody; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.fasterxml.jackson.annotation.JsonProperty; import com.legaoyi.protocol.message.MessageBody; /** * 提问应答 * * @author <a href="mailto:shengbo.gao@gmail.com;78...
package Model.impl; import Bean.Memory; import Bean.Message; import Configure.RouterAndHostConfigure; import Model.IRouteInterface; import com.sun.istack.internal.NotNull; /** * @author dmrfcoder * @date 2019-04-15 */ public class RouterInterface implements IRouteInterface { private Host host; private Mem...
package com.beike.dao.impl.user; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.jdbc.core.simple.ParameterizedRowMapper; import org.springframework.stereotype.Repository; import com.beike.dao.GenericDaoImpl; import com.beike.dao.user.UserAddressDao; import ...
package com.sum.flowable.service; import org.flowable.engine.delegate.DelegateExecution; import org.flowable.engine.delegate.JavaDelegate; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class PublishArticleService implements JavaDelegate { private static final Logger log = LoggerFactory.getL...
package br.com.tt.petshop.repository; import br.com.tt.petshop.model.Cliente; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface RelatorioClienteRepo...
package com.stk123.util.baidu; import java.io.IOException; import java.net.URLEncoder; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Exe...
package pe.edu.upc.profile.services; import pe.edu.upc.profile.entities.Administrator; import pe.edu.upc.profile.entities.PlanMember; import java.util.List; import java.util.Optional; public interface AdministratorService extends CrudService<Administrator, Long> { Optional<Administrator> auth(String email, Strin...
package boardPhysics; import java.util.ArrayList; import java.util.List; import physics.Circle; import physics.Geometry; import physics.Vect; public class CircularBumper implements Gadget, BoardObject { /** * List of gadgets whose triggers are connected to this gadget */ protected List<Gadget> trig...
package com.chinese.culture.util; import android.content.Context; import android.speech.tts.TextToSpeech; public class TTSUtil { private TextToSpeech textToSpeech; }
package com.auro.scholr.home.presentation.viewmodel; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; import com.auro.scholr.core.common.MessgeNotifyStatus; import com.auro.scholr.home.domain.usecase.HomeDbUseCase; import com.auro.scholr.home.domain.usecase.HomeRemoteUseCase; import com...
package com.tdd.romannumbers; public class RomanUnderTenConverter extends RomanConverter { @Override public int convert(int workingNumber, StringBuilder romanNumberBuilder) { romanNumberBuilder.append(conversionTable.get(workingNumber)); return workingNumber; } }
package com.example.myprog.java.examples.immutability; import java.util.ArrayList; import java.util.List; public class ImmutableObject { private final String name; private final List<Integer> numbers; public ImmutableObject(String name, List<Integer> numbers) { this.name = name; this.num...
package com.chengli.listener; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; /** * Created by chengli on ${date} */ @WebListener public class MyListener implements ServletContextListener { @Override public void contextIniti...
package com.codigo.smartstore.webapi.domain.idef; import java.time.LocalDate; import java.time.LocalTime; public interface IGovernmentIdentyficator { /** * Właściwość określa datę wydania * * @return */ default LocalDate getIssuedDate() { return LocalDate.now(); } /** * Właściwość określa czas wyda...
package com.ironyard.repo; import com.ironyard.data.BarDrinks; import com.ironyard.data.BarInformation; import org.springframework.data.repository.CrudRepository; import java.util.List; /** * Created by rohanayub on 3/15/17. */ public interface BarInformationRepo extends CrudRepository<BarInformation,Long> { p...
package com.esum.framework.core.queue.provider; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.jms.Connection; import javax.jms.JMSException; import org.hornetq.api.core.TransportConfiguration; import org.hornetq.api.jms.HornetQJMSClient; import org.hornetq.api.jms.JMSFactor...
package com.sherry.epaydigital.bussiness.service; import com.sherry.epaydigital.bussiness.domain.QRCodeDomain; import com.sherry.epaydigital.data.model.Customer; import com.sherry.epaydigital.data.model.EpayDigitalMeLink; import com.sherry.epaydigital.data.model.QRCode; import com.sherry.epaydigital.data.repository.Cu...
package com.engin.widget; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; import android.graphics.RectF; import android.graphics.Shader...
/* IdSpace.java Purpose: Description: History: Fri Jul 29 10:41:31 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....
public class TwoColorSquare{ public static void main(String[] args){ StdDraw.setXscale(-5,5); StdDraw.setYscale(-5,5); //Halvfyrkant 1 StdDraw.setPenColor(StdDraw.DARK_GRAY); StdDraw.filledRectangle(-3,0,3,6); //Halvfyrkant 2 StdDraw.setPenColor(StdDraw.LIGHT_GRAY); StdDraw.filledRectangle(3,0,3,...
package awtSample06; import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScroll...
/* * 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 com.netcracker.CustomException; public class FailureRequestPayment extends Exception{ }
package com.isg.ifrend.core.model.mli.transaction; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * * Bean class for Transaction * */ public class AuthorizeTransaction implements Serializable { private static final long serialVersionUID = 6838235722553547202L; priva...
// https://www.youtube.com/watch?v=4ykBXGbonlA class Solution { public List<List<String>> partition(String s) { List<List<String>> decompositions = new ArrayList(); decomposeString(0, s, new ArrayList<>(), decompositions); return decompositions; } private void decomposeString(int wo...
import java.util.Scanner; public class Cliente implements GestionBiblio{ private String nombre; private String dni; Cliente(){ } Cliente (String nombre, String dni){ this.nombre = nombre; this.dni = dni; } //NOMBRE// public void setNombre(String nombre) { this.nombre = nombr...
package rso.dfs.dummy.server; import org.apache.thrift.server.TServer; import org.apache.thrift.server.TServer.Args; import org.apache.thrift.server.TSimpleServer; import org.apache.thrift.transport.TServerSocket; import org.apache.thrift.transport.TServerTransport; import rso.dfs.dummy.generated.StorageService; /**...
package com.developworks.jvmcode; /** * <p>Title: areturn</p> * <p>Description: 从方法中返回一个引用类型数据</p> * <p>Author: ouyp </p> * <p>Date: 2018-05-19 15:38</p> */ public class areturn { public Object areturn(Object o) { return o; } } /** * public java.lang.Object areturn(java.lang.Object); * Code:...
package com.atguigu.callable; import java.util.concurrent.Callable; import java.util.concurrent.FutureTask; public class NumThread{ public static void main(String[] args) { ThreadNew threadNew = new ThreadNew(); FutureTask futureTask = new FutureTask(threadNew); new Thread(futureTask).star...
import org.junit.Test; import static org.junit.Assert.*; class CustomerTest { @Test void testStatement() { Customer customer1 = new Customer("Maria"); assertEquals( "Rental Record for Maria\n" + "Amount owed is 0.0\n" + "You earned 0 frequent renter points",...
package ticTacToe; public enum Mark { X("X"), O("O"), EMPTY("_"); public String value; Mark(String value) { this.value = value; } @Override public String toString() { return value; } }
package modelo; public class tableDetalle_ventasDTO { private long codigo_detalle_venta; private int cantidad_producto; private long codigo_producto; private long codigo_venta; private double valor_total; private double valor_venta; private double valoriva; public tableDetalle_ventasDTO(long codigo_detalle_ven...
package com.guoguo.mocktest.account; public class Account { private String accountId; private long balance; public Account (String accountId, long initialBalance){ this.accountId=accountId; this.balance=initialBalance; } public void debit(long amount){ this.balance-=amount; } public void credit(long a...
package com.xinhua.api.domain.xinXXGBean; import com.apsaras.aps.increment.domain.AbstractIncResponse; import java.io.Serializable; /** * Created by lirs_wb on 2015/8/28. * 信息修改 响应 */ public class XinXXGResponse extends AbstractIncResponse implements Serializable { /** * 保险公司交易日期 */ private Stri...
package com.swapping.springcloud.ms.core.utils; import org.apache.commons.codec.digest.DigestUtils; import java.util.UUID; /** * swapping项目下所有的工具方法 * @author SXD * @date 2018.10.26 */ public class SwappingUtils { public static final String MD5_KEY = "Angel_SXD"; /** * 公共获取UUID方法 * 获取长度为...
package array; /** * Created by gouthamvidyapradhan on 12/12/2017. * Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to * compute the researcher's h-index. According to the definition of h-index on Wikipedia: "A scientist has index h if h of his/her N papers...
package com.metoo.module.app.chatting.view.action; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; i...
package com.gsccs.sme.shiro.client; import org.apache.shiro.authc.UsernamePasswordToken; /** * 类功能说明 TODO:自定义Token * * @author x.d zhang * @version V2.0 */ public class UserPwdSiteToken extends UsernamePasswordToken { private static final long serialVersionUID = -3217596468830869181L; private String captcha;...
import java.awt.EventQueue; import java.sql.*; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JComboBox; import com.jgoodies.forms.layout.FormLayout; import com.jgoodies.forms.layout.ColumnSpec; import com.jgoodies.forms.layout.RowSpec; import com.jgoodies.forms.factories.FormFactory; impor...
package com.spring.testable.mock.pojo.dto; import lombok.Data; /** * @author caijie */ @Data public class UserDto { private String account; }
package baguchan.earthmobsmod.tag; import baguchan.earthmobsmod.handler.EarthFluids; import baguchan.earthmobsmod.handler.EarthTags; import net.minecraft.data.DataGenerator; import net.minecraft.data.FluidTagsProvider; public class EarthFluidTagsProvider extends FluidTagsProvider { public EarthFluidTagsProvider(D...
package pl.szymonleyk.jpa; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; public class AddressRepository implements Repository<Address> { public void insert(Address address) { EntityManagerFactory emf = javax.persistence.Persisten...
/** * */ package eierlegendeWollmilchSau; /** * @author Otto Werse * */ public enum EigeneEnum { EINS_ZUSTAND(0), ZWEI_ZUSTAND(1); int nummer; private EigeneEnum(int i) { this.nummer = i; } @Override public String toString() { String s = ""; switch (this.nummer) { case 1: ...
package Controller; import java.util.List; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; import org.sp...