text
stringlengths
10
2.72M
package com.bridgelabz; import java.util.ArrayList; import java.util.Scanner; interface empWageMethod { public void calculateEmpWage(CompanyEmpWage obj); } public class EmpWageBuilder implements empWageMethod { //CONSTANTS private static final int IS_FULL_TIME = 1; private static final int IS_PART_...
package com.other.updown.mapper; import com.other.updown.domain.dto.ImagesUpload; import java.util.List; import org.apache.ibatis.annotations.Mapper; @Mapper public interface ImagesUploadMapper { int deleteByPrimaryKey(Integer imageId); int insert(ImagesUpload record); ImagesUpload selectByPrimaryKey(In...
package switch2019.project.DTO.serializationDTO; import org.springframework.hateoas.RepresentationModel; import java.util.Objects; public class CategoryDenominationDTO extends RepresentationModel<CategoryDenominationDTO> { private final String categoryDenomination; public CategoryDenominationDTO(String cate...
package br.eti.ns.nssuite.requisicoes.nfce; import br.eti.ns.nssuite.requisicoes._genericos.ConsSitReq; public class ConsSitReqNFCe extends ConsSitReq { public String chNFe; }
import static org.junit.Assert.*; import org.junit.Test; import java.util.ArrayList; public class LCAtest1 { // Tests for binary search tree @Test public void testFindLCAInt() { // Make binary tree LCA tree = new LCA(); tree.root = new Node(1); tree.root.left = new Node(2); tree.root.right...
package com.example.sas_maxnot19.luckyapp.activities; import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; imp...
package mono.com.facebook.drawee.controller; public class ControllerViewportVisibilityListenerImplementor extends java.lang.Object implements mono.android.IGCUserPeer, com.facebook.drawee.controller.ControllerViewportVisibilityListener { /** @hide */ public static final String __md_methods; static { __md_me...
package com.yunhe.customermanagement.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAndHashCode; import lo...
/* * #%L * Janus * %% * Copyright (C) 2014 KIXEYE, Inc * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
package com.zhowin.miyou.mine.activity; import android.view.View; import com.zhowin.base_library.utils.ActivityManager; import com.zhowin.base_library.utils.SpanUtils; import com.zhowin.miyou.R; import com.zhowin.miyou.base.BaseBindActivity; import com.zhowin.miyou.databinding.ActivityVerifiedBinding; /** * 实名认证 ...
package com.tencent.mm.plugin.game.model; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.tencent.mm.kernel.g; import com.tencent.mm.plugin.game.a.b; import com.tencent.mm.plugin.game.a.c; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.sdk.platfor...
/* * Copyright (c) 2016. Universidad Politecnica de Madrid * * @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es> * */ package org.librairy.modeler.lda.exceptions; /** * Created on 07/09/16: * * @author cbadenes */ public class EmptyResultException extends RuntimeException { public EmptyResultException...
import java.util.Scanner; class Main { static void inputNum() { System.out.println("Input number: "); } static void isPrime() { System.out.println("The number entered is prime!"); } static void notPrime() { System.out.println("The number entered is not a prime!"); } ...
package com.test; public class Car { private String model; private String company; private String driver; private int price; public Car() { super(); } public Car(String model, String company, String driver, int price) { super(); this.model = model; this.company = company; this.dri...
package testMvn; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; import entity.InsuredPerson; class InitialTest { @Test public void testInitial() { InsuredPerson one = new InsuredPerson(); String result = one.getInitial("Макаренко Светлана Ивановна"); asse...
package com.nlpeng.entity; import java.io.Serializable; import java.util.Date; public class BrokerMessageLog implements Serializable { private String messageId; private String message; private Integer tryCount; private String status; private Date nextRetry; private Date createTime; p...
package com.gmail.merikbest2015.ecommerce.repos; import com.gmail.merikbest2015.ecommerce.domain.User; import org.springframework.data.jpa.repository.JpaRepository; /** * A repository for {@link User} objects providing a set of JPA methods for working with the database. * Inherits interface {@link JpaRepository}. ...
/** *Author Fys * *Time 2016-7-11-下午2:42:48 **/ package com.goldgov.dygl.module.partymemberrated.ratedexamlink.web; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qu...
package babylanguage.babyapp.learntotalk.memoryGame; import android.view.View; public interface OnMemoryCardClickListener { public void onClick(int cardId); }
package com.twoyears44.myclass; import android.app.Application; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; /** * Created by twoyears44 on 16/4/26. */ public class BCDatabase { static SQLiteDatabase databas...
package org.search.flight.dao; import java.util.ArrayList; import java.util.List; import java.util.Optional; import org.search.flight.model.Airport; public class AirportDAO { private List<Airport> airportList; public static final AirportDAO instance = new AirportDAO(); private AirportDAO(){ airportList = new ...
package com.blackvelvet.cybos.bridge.cpindexes ; import com4j.*; /** * IRawCpSeries 인터페이스 */ @IID("{2C6A064A-DE70-4AFD-AE57-2FD3A443CBA4}") public interface IRawCpSeries extends Com4jObject { // Methods: /** * <p> * method GetRawData * </p> * @param startIndex Optional parameter. Default value is 0...
package com.nosuchteam.controller; import com.nosuchteam.bean.RequestList; import com.nosuchteam.bean.Work; import com.nosuchteam.service.WorkService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVari...
package com.mapping.util; import java.sql.Connection; import java.sql.DriverManager; public class TestJdbc { public static void main(String[] args) { //String jdbcUrl="jdbc:postgresql://localhost:5432/personal"; String jdbcUrl="jdbc:postgresql://localhost:5432/personal"; //String jdbcUrl="jdbc:postgresql://lo...
// Write a Java program to sort a numeric array and a string array package excercie13; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class example { public static void main(String[] args) { double somme =0 ; Scanner kb = new Scanner(System.i...
package com.ocoolcraft.plugins.commands; import com.ocoolcraft.plugins.GMCRequest; public enum Command { GMCCommand(GMC.GMC_COMMAND,new GMC()), GMCAcceptCommand(GMCAccept.GMC_ACCEPT_COMMAND,new GMCAccept()), GMCDisplayCommand(GMCDisplay.GMC_DISPLAY_COMMAND,new GMCDisplay()), GMCRejectCommand(GMCReject...
/* * 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 Entidades; import java.util.List; /** * * @author rosemary */ public class entCabeceraPrePoda { private int id_c...
package in.aerem.AlicePlugin; import com.google.zxing.WriterException; import org.bukkit.Color; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.eve...
/* * Copyright 2014 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
package com.company; public class Main { public static int calculatemultiple (int numberOne, int numberTwo) { return numberOne * numberTwo; } public static void main(String[] args) { // write your code here int myFirstNumber = 3; int mySecondNumber = 5; System.out.println(calcu...
public MultimediaElement { public String status; public int volume; public int brightness; }
package com.example.mvvmlivedatabindingexample; import android.view.View; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; public class LoginViewModel extends ViewModel { public MutableLiveData<String> email = new MutableLiveData<>(); public ...
package com.kps.videoplayer; public interface SliderListener { void valueChanged(boolean isAdjusting); }
package com.udian; import org.springframework.boot.SpringApplication; import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * Hello world! * */ @SpringBootApplication //@MapperScan("com.udian.**.mapper") public class App { public static vo...
package co.nos.noswallet.ui.home.v2.historyData; import android.support.annotation.Nullable; import java.util.ArrayList; import javax.inject.Inject; import co.nos.noswallet.network.nosModel.AccountHistory; import co.nos.noswallet.network.nosModel.SocketResponse; import co.nos.noswallet.network.websockets.SafeCast; ...
package a.b.c; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; ...
package com.tencent.mm.plugin.location.ui.impl; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; class i$7 implements OnCancelListener { final /* synthetic */ i kKy; i$7(i iVar) { this.kKy = iVar; } public final void onCancel(DialogInterface di...
package com.sdl.webapp.tridion.query; /** * <p>BrokerQueryException class.</p> */ public class BrokerQueryException extends Exception { /** * <p>Constructor for BrokerQueryException.</p> */ public BrokerQueryException() { } /** * <p>Constructor for BrokerQueryException.</p> * ...
execute(des, src, registers, memory) { int DWORD = 32; // Destination is always r32 String desValue = registers.get(des); String srcValue = ""; // Check if the src is either r32 or m32 if ( src.isRegister() ) { srcValue = registers.get(src); } else if ( src.isMemory() ) { s...
/* * Copyright (C) 2010-2012, Wan Lee, wan5332@gmail.com * Source can be obtained from git://github.com/wanclee/datashaper.git * BSD-style license. Please read license.txt that comes with source files */ /** * Utility for handling Double-related processing */ package com.psrtoolkit.datashaper.util; import com.ps...
package com.tencent.mm.e.c; import com.tencent.mm.e.b.g.a; import com.tencent.mm.sdk.platformtools.x; import java.util.concurrent.TimeUnit; final class d$a implements Runnable { final /* synthetic */ d bFQ; public final void run() { while (true) { boolean z; synchronized (this...
package co.edu.banco.model; public enum TipoTransaccion { ABRIR_CUENTA, ABRIR_BOLSILLO, CANCELAR_BOLSILLO, CANCELAR_CUENTA, DEPOSITAR, RETIRAR, TRASLADAR, CONSULTAR; }
package sort_algorithm; public class HeapSortTest { public static void main(String[] args){ HeapSort heap = new HeapSort(10); heap.insert(80); heap.insert(75); heap.insert(60); heap.insert(68); heap.insert(55); heap.insert(40); heap.insert(52); ...
/* * 文 件 名: ImageShowRequest.java * 描 述: ImageShowRequest.java * 时 间: 2013-6-21 */ package com.babyshow.rest.imageshow; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import org.hibernate.validator.constraints.Range; import com.babyshow.rest.RestReques...
package com.agong.demo; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import java.io.Reader; import java.lang.reflect.Type; public class JsonUtil { @SuppressWarnings("unchecked") public static <T> T json2object(String json, TypeToken<T> typeToken) { try { Gson gson=new Gson(); ...
package pt.ipleiria.helprecycle.gps; import com.google.firebase.database.IgnoreExtraProperties; @IgnoreExtraProperties public class GPSPoint { public float latitude; public float longitude; public GPSPoint() {} public GPSPoint(float latitude, float longitude) { this.latitude = latitude; ...
package egovframework.example.sample.web; class Parent{ public void show(){ System.out.println("parent"); } } class Child extends Parent{ public void show(){ System.out.println("child"); } } public class helloJAva { public static void main(String[] args) { int []a = new int[8]; int i=0; int n=10; ...
package b.d; public final class a$a { private a$a() { } public /* synthetic */ a$a(byte b) { this(); } }
package leecode.链表; import java.util.List; public class K个一组翻转链表_25 { //参考翻转单向链表和翻转部分单向链表递归写法 labuladong公众号 public ListNode reverseKGoup(ListNode head,int k){ if(head==null){ return null;//这个是返回空 } ListNode a=head;//使用a,b!!不直接使用head ListNode b=head; for (int...
/** * */ package uk.gov.hmcts.befta.factory; import uk.gov.hmcts.befta.TestAutomationAdapter; import uk.gov.hmcts.befta.data.HttpTestData; import uk.gov.hmcts.befta.player.BackEndFunctionalTestScenarioContext; import uk.gov.hmcts.befta.util.DynamicValueInjector; /** * @author korneleehenry * */ public class Dyn...
/** * Contiene le classi per la gestione della logia della cassa e degli eventi associati */ package business.cassa;
/* 1: */ package com.kaldin.common.util; /* 2: */ /* 3: */ import java.io.File; /* 4: */ import java.io.FileInputStream; /* 5: */ import java.util.Properties; /* 6: */ import javax.naming.InitialContext; /* 7: */ import javax.sql.DataSource; /* 8: */ import org.hibernate....
package com.keithsmyth.testdealdetailsharness.header; import com.keithsmyth.testdealdetailsharness.model.Deal; class HeaderModel { final String title; HeaderModel(Deal deal) { this.title = deal.title; } }
package com.drzewo97.ballotbox.panel.controller.committee; import com.drzewo97.ballotbox.core.model.committee.Committee; import com.drzewo97.ballotbox.core.model.committee.CommitteeRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.sp...
package sbe.builder; import org.junit.Assert; import org.junit.Test; import sbe.msg.*; import uk.co.real_logic.agrona.DirectBuffer; /** * Created by dharmeshsing on 18/02/17. */ public class NewOrderBuilderTest { private NewOrderBuilder newOrderBuilder = new NewOrderBuilder(); @Test public void testNew...
package com.iceteck.silicompressorr; import com.iceteck.silicompressorr.videocompression.MediaController; /** * @author Toure, Akah L * @version 1.1.1 * Created by Toure on 28/03/2016. */ public class VideoCompressor { /** * Perform background video compression. Make sure the videofileUri and destinatio...
package com.uinsk.mobileppkapps.connection; import android.content.Context; import com.loopj.android.http.AsyncHttpClient; import com.loopj.android.http.AsyncHttpResponseHandler; import com.loopj.android.http.RequestParams; import cz.msebera.android.httpclient.entity.StringEntity; public class PropClient { pri...
package com.jasoftsolutions.mikhuna.activity.fragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.GridLayout; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.jasoft...
package com.aprendoz_test.data; /** * aprendoz_test.CalifEst * 01/19/2015 07:58:53 * */ public class CalifEst { private CalifEstId id; public CalifEstId getId() { return id; } public void setId(CalifEstId id) { this.id = id; } }
package com.techpakka.pmk.model; public class Troll { String id,image,caption,likes,troll_page; public Troll() { } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getImage() { return image; } public v...
package com.learning.usercenter.entity.form; import com.learning.usercenter.common.entity.form.BaseForm; import com.learning.usercenter.entity.po.Role; import lombok.Data; import javax.validation.constraints.NotBlank; import java.util.Set; /** * @author Zzz */ @Data public class RoleForm extends BaseForm<Role> { ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.clienteapp.demo.service; import com.clienteapp.demo.entity.Cliente; import com.clienteapp.demo.repository.ClienteRepositor...
/* * Copyright (C) 2015 Miquel Sas * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is dis...
package com.sw_engineering_candies.yaca; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class YacaApplication { public static void main(String[] args) { SpringApplication.run(YacaApplication.class, args...
/*********************************************************************** * Module: Dermatologist.java * Author: WIN 10 * Purpose: Defines the Class Dermatologist ***********************************************************************/ package com.hesoyam.pharmacy.user.model; import com.fasterxml.jackson.annotati...
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 luma <stubma@163.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any lat...
package com.tencent.mm.pluginsdk.ui.tools; import java.io.File; class FileExplorerUI$b { File file; final /* synthetic */ FileExplorerUI qSc; String qSj; private FileExplorerUI$b(FileExplorerUI fileExplorerUI) { this.qSc = fileExplorerUI; } /* synthetic */ FileExplorerUI$b(FileExplor...
import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class F { public static String name = "F.txt"; public static void main(String[] args) throws Exception { Scanner in = new Scanner(new File(name)); while (in.hasNextInt()) { int numboxes =...
package com.link.admin.controller; import com.jfinal.aop.Before; import com.jfinal.aop.Clear; import com.jfinal.core.Controller; import com.jfinal.kit.HashKit; import com.jfinal.kit.LogKit; import com.link.admin.controller.validator.LoginValidator; import com.link.admin.controller.vo.TreeMenu; import com.link.api.serv...
package br.com.exemplo.dataingestion.adapters.events.listener; import br.com.exemplo.dataingestion.adapters.events.entities.LoadEntity; import br.com.exemplo.dataingestion.domain.producer.ProducerService; import br.com.exemplo.dataingestion.util.CreateLancamento; import io.micrometer.core.instrument.MeterRegistry; imp...
package magical.robot.ioio; import ioio.lib.api.DigitalOutput; import ioio.lib.api.IOIO; import ioio.lib.api.PwmOutput; import ioio.lib.api.exception.ConnectionLostException; /** * this class handles all the robotic arm API functionality * @author Doron */ public class RoboticArmEdge implements Stoppable{ protec...
package com.sixmac.entity; import javax.persistence.*; import java.util.ArrayList; import java.util.List; /** * Created by Administrator on 2016/5/19 0019. */ @Entity @Table(name = "t_team") public class Team extends BaseEntity{ @Column(name = "name") private String name; /*@ManyToOne @JoinColumn(...
package com.mx.profuturo.bolsa.util.restclient; import com.mx.profuturo.bolsa.model.recruitment.service.dto.InterviewAppointmentDTO; import com.mx.profuturo.bolsa.model.restclient.RequestBean; import com.mx.profuturo.bolsa.model.service.areasinteres.dto.GenericTextResponseBean; import org.springframework.http.HttpMeth...
package com.rockwellcollins.atc.limp.translate.lustre.transformations; import java.util.HashMap; import java.util.Map; import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.EcoreUtil2; import com.rockwellcollins.atc.limp.ConstantDeclaration; import com.rockwellcollins.atc.limp.ExternalFunction; import com.r...
package com.ybh.front.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class SqlProductlistExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table FreeHost_SqlProductlist * * @mbg.gene...
package com.web.TestNgRltd; import java.io.IOException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.Assert; import org.testng.ITestResult; import org.testng.annotation...
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.Servo; import com.qualcomm.robotcore.hardware.TouchSensor; import com.qualcomm.rob...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package modelo; import rede.JogadaSoletrando; /** * * @author Bisnaguete */ public class Partida { private Jogador jogadorEu; private Jogador jogadorOponente; private boolean conectado; private Nive...
package com.jack.jkbase.service.impl; import com.jack.jkbase.annotation.Operation; import com.jack.jkbase.config.ShiroConfig; import com.jack.jkbase.entity.SysUser; import com.jack.jkbase.entity.ViewSysUser; import com.jack.jkbase.mapper.SysUserMapper; import com.jack.jkbase.mapper.ViewSysUserMapper; import com.jack.j...
import bank.Entity; import bank.Individual; import bank.IndividualEntrepreneur; public class Main { public static void main(String[] args) { Individual individual = new Individual(5000); Entity entity = new Entity(7000); IndividualEntrepreneur individualEntrepreneur = new IndividualEntrepr...
package com.cms.common.service.impl; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import net.sf.json.JSONArray; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactio...
package com.example.mrt.testviewpager.Adapter; import android.app.Activity; 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.LinearLayout; import android.widget.TextView; i...
package be.axxes.bookrental.dao; import be.axxes.bookrental.domain.Author; import be.axxes.bookrental.domain.Book; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import java.util.List; @RepositoryRestResource public interface...
package common.java.utils; public class ConstantTest { static final int CONSTANT_VALUE = 10; public static void main(String args[]) { System.out.println("CONSTANT_VALUE : " + CONSTANT_VALUE); // CONSTANT_VALUE=70; } }
package pages; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.Status; public class ProjectCreation extends Base { public ProjectCreation(WebDriver driver) { super(driver); } static ExtentTest currentTest;...
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 luma <stubma@163.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any lat...
package lesson6; import java.util.*; import java.util.function.Function; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { Book book1 = new Book("Power Of Positive Thinking", 400, "USA"); Book book2 = new Book("Man’s Search for Meaning", 300, "German...
package modele; /** * Classe comportant le modèle de données de la classe Emplye * doit étendre la classe abstraite AbstractTableModel */ import java.util.ArrayList; import javax.swing.table.AbstractTableModel; public class ModeleArtiste extends AbstractTableModel { private static final long serialVer...
package project2; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; public class ObjectSerialization { public static void main(String[] args) throws Exception { B ob...
package org.kpu.ticketbox.payment; public class Receipt { String client; // 사용자 이름 + 결제 정보 String productName; // 영화 상품 이름 String payMethod; // 결제 수단 double subTotalAmount; // 커미션 제외한 금액 double totalAmount; // 커미션 포함한 금액 public double getTotalAmount() { return totalAmount; } public String...
package com.SkyBlue.hr.circumstance.to; import com.SkyBlue.common.annotation.Dataset; import com.SkyBlue.common.to.BaseBean; import lombok.Getter; import lombok.Setter; @Dataset(name="dsHoliday") public class HolidayBean extends BaseBean{ @Setter @Getter private String basicDay,holidayName,note,holidayType; }
package net.sssanma.mc.utility; import com.sk89q.worldedit.bukkit.selections.Selection; import net.sssanma.mc.ECore; import net.sssanma.mc.utility.Utility.Is; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.conf...
/** * Project Name: Thread * File Name: Fourth.java * Package Name: oop * Date: 2016年4月27日下午3:39:02 * Copyright (c) 2016, Yunchuang All Rights Reserved. * * @author gehge * * 变更时间 Date:2016年4月27日下午3:39:02 变更原因 变更人员. * */ package oop; /** * ClassName:Fourth <br/> * * (TODO:添加处理说明) * */ public class ...
import java.util.Random; public class MyRandom extends Random { public int[] numbers; public int consumed = 0; public MyRandom(int[] numbers) { this.numbers = numbers; } @Override public int nextInt(int upperBound) { int v = numbers[consumed++]; System.err.println(v); if (v < 0) return 0; if (v >=...
package com.pangpang6.books.sort.heap; import org.junit.Test; import java.util.Arrays; public class SmallHeapSortTest { @Test public void smallHeapSortTest() { int[] arr = {9, 8, 11, 6, 5, 13, 3, 40, 1, 22}; for (int i = arr.length / 2 - 1; i >= 0; i--) { adjustSmall(arr, i, arr.length); } ...
package project2_JavaToJSON.model; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; @Builder @Data @NoArgsConstructor @AllArgsConstructor public class QuizCategory { private String category; private List<QuestionMetadata> r...
package com.lubarov.daniel.blog; import com.lubarov.daniel.data.collection.Collection; import com.lubarov.daniel.data.sequence.SinglyLinkedList; import com.lubarov.daniel.web.http.HttpRequest; import com.lubarov.daniel.web.http.MemorySessionData; public final class Notifications { private static final MemorySession...
package com.kaoqin.dao; import java.sql.ResultSet; import java.sql.SQLException; import com.kaoqin.db.Conn; import com.kaoqin.po.Admin; public class AdminDao { public static boolean login(Admin ad){ Conn db = new Conn(); String sqlstr = "select id,userName,userPass from admin where userName...
package com.tencent.mm.plugin.appbrand.jsapi.video; import com.tencent.mm.plugin.appbrand.jsapi.video.e.g; import com.tencent.mm.plugin.mmsight.segment.FFmpegMetadataRetriever; import com.tencent.mm.sdk.platformtools.al.a; import com.tencent.mm.sdk.platformtools.x; import java.math.BigDecimal; import org.json.JSONExce...
package com.espendwise.manta.util; import com.espendwise.manta.model.data.CountryPropertyData; import com.espendwise.manta.model.data.ItemData; import com.espendwise.manta.model.data.OrderItemData; import com.espendwise.manta.model.data.OrderMetaData; import com.espendwise.manta.model.view.DistOptionsForShippingView...