text
stringlengths
10
2.72M
package com.learn.leetcode.week4; import com.learn.leetcode.week1.struct.ListNode; public class SolutionReverseList { public static ListNode reverseList(ListNode head) { if(head == null) return null; ListNode before = null; ListNode current = head; ListNode next = curre...
package com.tuyenmonkey.stackoverflowmvvm.api; import com.tuyenmonkey.stackoverflowmvvm.entity.QuestionList; import retrofit.http.GET; import retrofit.http.Query; import rx.Observable; /** * Created by Tuyen on 2/22/16. */ public interface StackOverflowApi { @GET("2.2/questions?order=desc&sort=creation&site=s...
/** * Class to represent a graph * Methods to find EC, LC, indegree and outdegree * @author : pgr150030- Panchami Rudrakshi reference : critical_shortest_paths_in _DAG (lecture 24 rbk notes) */ import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.u...
package com.rhino.mailParser.betterParser; import com.rhino.mailParser.data.UserData; public interface WordParserInterface { public void parse(String word,UserData data); }
package kiemtra; public class Main { public static void main(String[] args) { Quanlynhanvien qlnv = new Quanlynhanvien(null, null, 0); qlnv.menu(); } }
import java.awt.*; import java.awt.geom.*; // class that handles the rendering of wires! public class RenderWire extends Line2D implements Visitable { // edges of the line segment private final Point2D a; private final Point2D b; public RenderWire(final Point2D a, final Point2D b) { this.a = a...
package com.springJWT_Trksh.model; import javax.persistence.*; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @NoArgsConstructor @Entity @Table(name="roller") public class KisiRole { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @En...
package net.droidlabs.viking.bindings.map.listeners; import com.google.android.gms.maps.model.Marker; import net.droidlabs.viking.bindings.map.managers.MarkerManager; import net.droidlabs.viking.bindings.map.models.BindableMarker; import net.droidlabs.viking.bindings.map.adapters.MarkerClickAdapter; public class Mar...
package ir.madreseplus.ui.view.weekly; import java.util.List; import ir.madreseplus.data.model.req.Event; import ir.madreseplus.utilities.BaseNavigator; public interface WeeklyScheduleNavigator<T> extends BaseNavigator { void error(Throwable throwable); void events(List<Event> events); }
package com.gaoshin.onsalelocal.osl.entity; public enum BookmarkType { Offer, Search, Store, }
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import java.util.Vector; import java.ut...
package Day4.UnitTesting; /** * Created by student on 06-May-16. */ public enum CoffeeType { Expresso(10,0), LATTE(5,300),CAPPUCINO(7,100),FILTERCOFFEE(10,0); private final int requiredBeans; private final int requiredMilk; CoffeeType(int requiredBeans, int requiredMilk) { this.require...
package com.itheima; import java.util.Scanner; public class Test01 { public static void main(String[] args) { Scanner in=new Scanner(System.in); System.out.println("输入一个数字"); int week=in.nextInt(); if(week<1||week>7){ System.out.println("你输入的数值范围有误"); }else if(w...
package com.stk123.task; import cn.hutool.core.bean.BeanUtil; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public class TaskRunner implements CommandLineRunner { @Override public void run(String... args) throws Exception { System.out.p...
public class transaksi { public double saldo, saldoAwal, saldoAkhir; public String tanggalTransaksi,type; void transaksi (double a, double b, double c, String d, String e){ saldo = a; saldoAwal = b; saldoAkhir = c; tanggalTransaksi = d; type = e; } void tamp...
/* * Copyright © 2018 www.noark.xyz All Rights Reserved. * * 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 ! * 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件: * * http://www.noark.xyz/LICENSE * * 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播; * 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本; * 3.无论你对源代码做出任何修改和改进,版权都归Noark...
package com.example.selfhelpcity.adapter; import android.content.Context; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.example.selfhelpcity.R; import com.example.selfhelpcity.base.Api; import com.example.selfhelpcity.bean.db.CommuityBean; imp...
package com.example.railway_lab_department.Service; import com.example.railway_lab_department.Repository.DepartmentRepository; import com.example.railway_lab_department.entity.Department; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax....
/* * 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...
package common.web; import org.junit.AfterClass; import org.junit.BeforeClass; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.WebResource.Builder; import com.sun.jersey.client.apache.ApacheHttpClient; import com.sun.jersey.client.apache.config.D...
package com.cmm.pay.base; public abstract class BaseAbstractAgent { public abstract Integer getCurrentAgentId(); }
/* * 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.pmm.sdgc.ws.funcional; import com.pmm.sdgc.dao.BiometriaCadastradaDao; import com.pmm.sdgc.dao.EscalaDao; import com.pmm.s...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE file for licensing information. */ package pl.edu.icm.unity.saml.idp; import pl.edu.icm.unity.types.basic.Attribute; import xmlbeans.org.oasis.saml2.assertion.AttributeType; /** * Defines mappings of Unity attributes to and from...
package gov.nih.nci.ctrp.importtrials.studyprotocolenum; import com.fasterxml.jackson.annotation.JsonValue; import gov.nih.nci.ctrp.importtrials.exception.ImportTrialException; import org.apache.commons.lang3.StringUtils; /** * Created by chandrasekaranp on 3/20/17. */ public enum SamplingMethodCode { /** ...
package mistaomega.jahoot.gui; import mistaomega.jahoot.client.Client; import javax.swing.*; import java.awt.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; /** * This is the gameplay UI * The user will select a button within the allotted time * This control...
package io.github.ihongs.serv.matrix; import io.github.ihongs.Cnst; import io.github.ihongs.Core; import io.github.ihongs.HongsException; import io.github.ihongs.HongsExemption; import io.github.ihongs.action.ActionHelper; import io.github.ihongs.action.FormSet; import io.github.ihongs.db.DB; import io.github.ihongs.d...
package cn.hellohao.dao; import org.apache.ibatis.annotations.Mapper; @Mapper public interface NoticeMapper { String getNotice(); }
package com.example.activitatmvc.controller; import java.io.IOException; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute;...
public class tempf { }
package com.example.gtraderprototype.entity; import android.util.Log; /** * player class that initializes the user */ public class Player extends Character { public static volatile Player player = null; /** * initializing a player that has a default Gnatt ship * @param name name of the player ...
package com.jfronny.raut.api; import com.google.common.collect.Multimap; import net.minecraft.entity.EquipmentSlot; import net.minecraft.entity.attribute.EntityAttribute; import net.minecraft.entity.attribute.EntityAttributeModifier; import net.minecraft.item.ArmorItem; import net.minecraft.item.Item; import net.minec...
package com.alibaba.druid.bvt.support.spring; import java.io.ByteArrayInputStream; import java.io.StringReader; import java.sql.Connection; import java.sql.PreparedStatement; import junit.framework.TestCase; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.support.spring.DruidLobCreator; publ...
package com.chenyuwei.requestmaker; import android.app.ProgressDialog; import android.content.Context; import android.util.Log; import android.widget.Toast; import com.android.volley.AuthFailureError; import com.android.volley.DefaultRetryPolicy; import com.android.volley.Request; import com.android.volley.RequestQue...
package controllers.machineLearning.linear_logistic; import controllers.machineLearning.all.Matrix; import controllers.machineLearning.logistic.LogisticCost; /** * Created by shrestha on 11/18/2015. */ public class RegularizedGradient { private double regularizedCost; public double[][] getGradient(double[]...
package com.contus.keerthi.myapp; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.vi...
package com.lenovohit.hcp.base.web.rest; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.Request...
package com.example.jdktest.advice; import com.example.jdktest.common.CommonResult; import com.example.jdktest.constant.ServiceExceptionEnum; import com.example.jdktest.execption.ServiceException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.ExceptionHandler; ...
public class Gold implements Membership { private static Gold instance = new Gold(); public static Gold getInstance() { return instance; } @Override public double getDiscount() { return 0.90; } public String toString() { return "Gold"; } }
package hua; public class Storage { private String variety; private int packages_number; public String getVariety() { return variety; } public void setVariety(String variety) { this.variety = variety; } public int getPackages_number() { return packa...
package Operacional; public class Mostrador { private String display; public boolean mostrarMensagem(String str, int tempo) { this.display = str; //Thread.currentThread().sleep(temp*1000); return true; } public boolean mostrarMensagem(String str) { this.display = str; return true; } }
package com.eegeo.mapapi.services.routing; import java.util.List; /** * A response to a routing query. Returned when a routing query completes via callback. */ public class RoutingQueryResponse { boolean m_succeeded; List<Route> m_results; RoutingQueryResponse(boolean succeeded, List<Route> results)...
package pers.mrxiexie.card.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; @NoArgsConstructor @Data public class GoodsShelves { /** * banner : http://mmbiz.qpic.cn/mmbiz/iaL1LJM1mF9aRKPZJkmG8xXhiaHqkKSVMMWeN3hLut7X7h icFN * page_t...
package unb.beacon.beacon_project; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.le.BluetoothLeScanner; import android.bluetooth.le.ScanCallback; import android.bluetooth.le.ScanFilter; import android.bluetooth.le.ScanResult; import android.bluetooth.le.ScanSettings; ...
package org.giddap.dreamfactory.leetcode.onlinejudge; /** * <a href="http://oj.leetcode.com/problems/sort-colors/">Sort Colors</a> * Copyright 2013 LeetCode * <p/> * Given an array with n objects colored red, white or blue, sort them so that * objects of the same color are adjacent, with the colors in the order r...
package com.lenovohit.hwe.pay.support.acctpay.balance.transfer; import java.util.List; public class RestListResponse<T> extends RestResponse { public RestListResponse(){ super(); } public RestListResponse(RestResponse reponse){ super(); if(null == reponse){ return; } this.setSuccess(reponse.getSucces...
package com.codigo.smartstore.database.domain.domain; import java.util.regex.Pattern; public class DNSHelpers { private static Pattern pDomainName; private static final String DOMAIN_NAME_PATTERN = "^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{2,6}$"; static { DNSHelpers.pDomainName = Pattern.compile(DNSHelp...
package org.wildfly.issues.jbeap11984; import javax.jws.WebMethod; import javax.jws.WebService; import org.apache.cxf.interceptor.InInterceptors; @InInterceptors(classes = { org.wildfly.issues.jbeap11984.EventHandlerInjector.class }) @WebService public class Hello { @WebMethod public String hello(String msg...
package com.alibaba.druid.bvt.sql.mysql.show; import com.alibaba.druid.sql.MysqlTest; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser; import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlSchemaStatVisitor; import com.alibaba.druid.sql.parser.SQL...
package cit360mvcSimple; import java.util.Vector; public class Controller { public void startApplication() { RunwayModel = new Model(); RunwayModel.initialize(); View view = new View(); for (int i = 10; i > 0; i--) { String movement = view.newView(currentRunway(), i);...
package uk.kainos.seleniumframework.driver.producer.desktop.ie; import org.openqa.selenium.PageLoadStrategy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie.InternetExplorerOptions; import org.openqa.selenium.remote.LocalFileDetector; import org.openqa.selenium.remote.RemoteWebDriver; import uk.ka...
package com.example.bookspace.settings; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; i...
package com.wrathOfLoD.Models.Ability.Abilities; import com.wrathOfLoD.Models.Entity.Character.Character; import com.wrathOfLoD.Models.Skill.SneakSkillManager; /** * Created by luluding on 4/13/16. */ public class PickPocketAbility extends UntimedAbility{ private SneakSkillManager ssm; public PickPocketAbi...
package graphs.maxflow; import java.util.ArrayList; import java.util.List; public class FlowNetwork { private int vertices; private int edges; private List<List<Edge>> adjacencies; public FlowNetwork(int vertices) { this.vertices = vertices; adjacencies = new ArrayList<>(); f...
package com.redsun.platf.web.controller.system.account; import com.redsun.platf.dao.base.IPagedDao; import com.redsun.platf.entity.account.AccountRole; import com.redsun.platf.entity.account.UserAccount; import com.redsun.platf.entity.sys.Department; import com.redsun.platf.service.account.AccountManager; import com.r...
public class Matrix { public static void main(String[] args) { int a[][]={{1,1,1},{2,2,2},{3,3,3}}; int b[][]={{1,1,1},{2,2,2},{3,3,3}}; matrixAddition(a,b); matrixSubtraction(a,b); matrixMultiplication(a,b); matrixTranspose(a); } private static void matrixAddition(int[][] a,int[][] b) { ...
package com.turios.modules.utils; public class AssetFiles { public static final String PICKLIST = "picklist.txt"; public static final String TKP = "TKP.pdf"; }
package com.metoo.foundation.dao; import org.springframework.stereotype.Repository; import com.metoo.core.base.GenericDAO; import com.metoo.foundation.domain.AdvertPosition; @Repository("advertPositionDAO") public class AdvertPositionDAO extends GenericDAO<AdvertPosition> { }
package com.pda.pda_android.db.dao; import java.util.Map; import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.AbstractDaoSession; import org.greenrobot.greendao.database.Database; import org.greenrobot.greendao.identityscope.IdentityScopeType; import org.greenrobot.greendao.internal.DaoConfig; ...
/** */ package iso20022.impl; import java.lang.String; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; i...
package javapackage; public class Customer1 implements Comparable<Customer1> { private final String name; private final String address; Customer1(String name, String address) { this.name = name; this.address = address; } @Override public int compareTo(Customer1 other) { return name.compareTo(other.name);...
package com.tmontovaneli.engine; import java.io.Serializable; public class Palavra implements Serializable, Comparable<Palavra> { /** * */ private static final long serialVersionUID = 658021962229211967L; String word; int nrOccur; int nrOccurComoProx; public Palavra(String word) { ...
package org.squonk.api; import org.apache.camel.spi.TypeConverterRegistry; /** * Created by timbo on 23/03/2016. */ public interface GenericHandler<P,G> { void setGenericType(Class<G> genericType); Class<G> getGenericType(); default boolean canConvertGeneric(Class<? extends Object> otherGenericType,...
import java.util.*; public class Ch18_03 { //takes O(nlogn) time complexity and O(1) space complexity public static int minimumTotalWaitingTime(List<Integer> serviceTimes) { Collections.sort(serviceTimes); int totalWaitingTime = 0; int waitingTime = 0; for (int i = 1; i < serviceTimes.size(); i++) { wai...
package uz.otash.shop.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import uz.otash.shop.entity.template.AbsEntity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persi...
package enums; public enum BlackJackMove { STICK, TWIST }
package com.thomasdedinsky.fydp.fydpweb.auth; import org.springframework.stereotype.Service; @Service public class ConfirmationTokenService { private final ConfirmationTokenRepository confirmationTokenRepository; public ConfirmationTokenService(ConfirmationTokenRepository confirmationTokenRepository) { ...
package com.zantong.mobilecttx.user.activity; import android.content.Intent; import android.view.View; import android.widget.TextView; import com.zantong.mobilecttx.common.PublicData; import com.zantong.mobilecttx.R; import com.zantong.mobilecttx.api.CallBack; import com.zantong.mobilecttx.api.CarApiClient; import co...
/* * 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 Lambda; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List...
package controller; import controller.cliente.TelaClienteController; import controller.funcionario.TelaFuncionarioController; import entity.Carrinho; import entity.Produto; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.ResourceBundle; im...
package net.edzard.kinetic; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.user.client.ui.Image; /** * A fill style using an image as a pattern. * @author Ed */ public class PatternFillStyle implements FillStyle { /** The image to use */ private Image image; /** How to repeat th...
/* * Created on Apr 16, 2007 * * * Window - Preferences - Java - Code Style - Code Templates */ package com.citibank.ods.entity.pl; import com.citibank.ods.common.entity.BaseODSEntity; import com.citibank.ods.entity.pl.valueobject.BaseTplIpDocCallbackEntityVO; /** * @author gerson.a.rodrigues * ...
package com.gxtc.huchuan.ui.mine.classroom.profitList; import com.gxtc.commlibrary.BasePresenter; import com.gxtc.commlibrary.BaseUserView; import com.gxtc.commlibrary.data.BaseSource; import com.gxtc.huchuan.bean.DistributionBean; import com.gxtc.huchuan.http.ApiCallBack; import java.util.List; /** * Describe: * ...
/* Copyright 2017 Stratumn SAS. 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 required by applicable law or agreed to...
package mekfarm.containers; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.items.IItemHandler; /** * Created by CF on 2016-11-16. */ public class CropClonerContainer extends FarmContainer { public CropClonerCo...
/** * This code calculates the minimum edit required to convert one string to another and * prints the changes required to convert string to another string * References: * 1. https://www.geeksforgeeks.org/print-all-possible-ways-to-convert-one-string-into-another-string-edit-distance/ * 2. https...
package com.frontlinerlzx.tmall_lzx.web; import com.frontlinerlzx.tmall_lzx.pojo.Product; import com.frontlinerlzx.tmall_lzx.pojo.ProductImage; import com.frontlinerlzx.tmall_lzx.service.ProductImageService; import com.frontlinerlzx.tmall_lzx.service.ProductService; import com.frontlinerlzx.tmall_lzx.util.ImageUtil; i...
/* * @Title: MemcacheException.java * @Package: com.scf.core.context.spring.memcache.exception * @author wubin * @date 2016年8月2日 上午11:17:23 * @version 1.3.1 */ package com.scf.core.context.spring.memcache.exception; import com.scf.core.exception.ExCode; import com.scf.core.exception.sys.SystemExcepti...
public class ShowStatus implements Command { @Override public void execute(String[] cmdParts) { try { ShopSystem shopSystem = ShopSystem.getInstance(); shopSystem.showStatus(); } catch (Exception e) { System.out.println(e.getMessage()); } } }
package com.example.obroshi.alarmclock.view; import android.Manifest; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.os.Bundle; import an...
package Utility; import javax.mail.MessagingException; import javax.mail.internet.AddressException; public class TestConfig{ static monitoringMail mail = new monitoringMail(); public static void mailSender() throws AddressException, MessagingException{ mail.sendMail(server, from, to, subject, messageBody, attach...
package com.practice; import java.util.Random; import java.util.Scanner; public class RockPaperScissors { public static void main(String[] args) { System.out.println("---Welcome to Rock Paper Scissors Game---"); System.out.println("Notations:"); System.out.println("(a) Rock = 0");...
package service.listados; import java.io.IOException; import java.time.LocalDate; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import java.util.HashMap; import java.util.Locale; import java.util.Vector; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; impo...
package org.giveback.problems.readcsvsaveremote; import java.io.IOException; import java.util.concurrent.LinkedBlockingQueue; public final class ReadCsv implements Runnable { private final LinkedBlockingQueue<String> csvPathQ; private final LinkedBlockingQueue<CsvContent> csvContentQ; public ReadCsv(Lin...
package com.gestion.servlet; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servle...
package com.eussi._01_jca_jce.securitypkg; import java.io.FileInputStream; import java.security.*; import java.security.cert.CertPath; import java.security.cert.CertificateFactory; import java.util.Date; /** * demo待完善,后面看到Https时在完善 * Created by wangxueming on 2019/4/1. */ public class _13_Timestamp {//...
/* * Ara - Capture Species and Specimen Data * * Copyright © 2009 INBio (Instituto Nacional de Biodiversidad). * Heredia, Costa Rica. * * 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, ...
package com.hotdog.petcam.Controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.sp...
package com.xiaomi.common.tools; import java.text.SimpleDateFormat; import java.util.Date; public class TradingFlowUtil { /** * 18位交易流水号 前14位为年月时分秒 后四位为随机数 保证不会重复 */ public static String get(){ Date date = new Date(); SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMddHHmmss"); ...
package com.imthe.god.handlers; import com.imthe.god.base.APIConfig; import com.imthe.god.base.Configurations; import com.imthe.god.base.DBConfig; import com.imthe.god.interfaces.data.IAggregator; import com.imthe.god.util.ConfigReader; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; im...
package gui.db; import java.awt.Color; import javax.swing.JTable; public interface CellDecorator { Color getBackgroundColor (final JTable table, final int row, final int col, final Object value); Color getBorderColor (final JTable table, final int row, final int col...
package PA165.language_school_manager.Dao; import PA165.language_school_manager.Entities.Lecturer; import PA165.language_school_manager.Entities.Person; import org.springframework.stereotype.Repository; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import java.util.List; import ...
import java.util.Scanner; public class UsaMultiplicacion{ public static void main(String[]args){ Multiplicacion m = new Multiplicacion(); Scanner Lee=new Scanner(System.in); System.out.print("Ingresa un numero para X: "); m.setNumero1(Lee.nextInt()); System.out.print("Ingresa un numero para Y: "); m.setNumero2(Lee.n...
package ch.mitti.exceptions; public class ArrayAccessException extends Exception{ private static int counter = 0; public ArrayAccessException(String message){ super(message); counter++; } public int getExceptionCount(){ return counter; } }
package com.example.chordnote.ui.main.compose; import com.example.chordnote.ui.base.MvpView; public interface ComposeView extends MvpView { }
// https://www.youtube.com/watch?reload=9&v=Ds4Kvd_xn4w class Solution { public char findTheDifference(String s, String t) { HashMap<Character,Integer> map = new HashMap<Character, Integer>(); for (char c: s.toCharArray()) map.put(c, map.getOrDefault(c, 0) + 1); for (char c: t.toCharA...
package a3.test; import a3.ai.JT_Destroyer; import aiantwars.EAntType; import aiantwars.IAntInfo; import aiantwars.ILocationInfo; import aiantwars.IOnGameFinished; import aiantwars.ITeamInfo; import aiantwars.graphicsinterface.IGraphicsAntWarsGUI; import aiantwars.impl.AntWarsGameCtrl; import aiantwars.impl.Board; imp...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package java2plant.builder; import java.io.File; import java.io.InputStream; import java2plant.describer.ContextDescriber; /** * * @author arthur */ public abstract class AbstractBuilder { protected InputStrea...
package official; import okhttp3.*; import java.io.IOException; public class Overview { private OkHttpClient client = new OkHttpClient(); /** * GET A URL */ public String run(String url) throws IOException { Request request = new Request.Builder() .url(url) ...
package com.testFileUpload.common; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; /** * 返回结果类 * * @author CAIFUCHENG3 */ public class ResultObject<T> { /** * 成功代码 */ public static final String SUCCESS = "S1A00000"; /** * 失败代码 */ pu...
package pl.olart.pmsuite.services; import pl.olart.pmsuite.model.Metadane; import pl.olart.pmsuite.model.RozliczenieRFPBean; import pl.olart.pmsuite.model.TypKosztuBean; import pl.olart.pmsuite.model.Wynik; import java.util.*; /** * User: grp * Date: 16.06.16 * Time: 02:17 */ public class RozliczenieService { ...