text
stringlengths
10
2.72M
package com.tencent.mm.ui.conversation; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import com.tencent.mm.ui.conversation.i.7; class i$7$2 implements OnClickListener { final /* synthetic */ 7 uqV; i$7$2(7 7) { this.uqV = 7; } public final v...
package com.fleet.cassandra.controller; import com.fleet.cassandra.entity.User; import com.fleet.cassandra.service.UserService; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; impo...
package com.sabre.api.sacs.soap.callback; import java.io.IOException; import javax.xml.transform.TransformerException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.oxm.jaxb.Jaxb2Marshaller; import org.springframework.stereotype.Controller; import org.springframew...
package com.onlythinking.commons.exception; import com.google.common.collect.Sets; import lombok.AccessLevel; import lombok.NoArgsConstructor; import org.springframework.boot.autoconfigure.web.ErrorAttributes; import org.springframework.boot.autoconfigure.web.ErrorProperties; import org.springframework.http.HttpStatus...
package com.serenskye.flickrpaper.constants; /** * Created by IntelliJ IDEA. * User: seren * Date: 15/08/12 * Time: 16:59 */ public class FlickrServiceMessages { public static final int URLS_LOADED = 0; public static final int IMAGE_LOADED = 1; public static final int URL_ERROR = 2; public static final int BI...
package br.com.consultaws.model.dao; import java.sql.Connection; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.ws.rs.PathParam; import com.mysql.jdbc.PreparedStatement; import br.com.consultaws.model.bean.Especialidade; import br.com.consultaws.model.conectionfactory.Con...
package com.rupali; import com.sun.xml.internal.ws.api.server.WebServiceContextDelegate; public class Maventest { public static void main(String[] args) { String Expval="Ranford Bank"; //launch Firefox //maximize driver.manage().window().maximize(); //url driver.get("http://183.82.100.55/ranford2")...
package com.prokarma.reference.architecture.feature.home; import android.arch.lifecycle.ViewModelProviders; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android...
/** * Copyright (C) 2014 Stratio (http://stratio.com) * * 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 ap...
package cn.xyz.mianshi.vo; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Setter @Getter @ToString public class PublicNumDvo { private Integer publicId;// 公众号Id private String nickname;// 昵称 private String message;//首页发送的欢迎语 private String messageUrl;//图片链接 private String introduce;//公众号介...
package com.example.mvpdemo0602.bean; /** * Created by Administrator on 2018/6/5. */ public class User { private long id; private String userName; private String userPassword; private String userRePassword; private boolean isRemember; private int permission; private String userNick; ...
package net.sourceforge.vrapper.vim.register; import net.sourceforge.vrapper.utils.PositionlessSelection; import net.sourceforge.vrapper.utils.Search; import net.sourceforge.vrapper.vim.commands.Command; import net.sourceforge.vrapper.vim.commands.TextOperation; import net.sourceforge.vrapper.vim.commands.motions.Find...
package com.news.knews.domain; import javax.persistence.*; import java.util.List; @Entity public class User { // @Id @GeneratedValue(strategy = GenerationType.AUTO) // private long seq; // @Column(name="id", unique=true) @Id private String id; private String password; private String name...
package com.developpez.lmauzaize.java.concurrence.ch03_structure_donnees; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import com.developpez.lmauzaize.java.concurrence.Logger; public class ArrayBlockingQueueIteration { public static void main(String[] args) thr...
package leecode.dfs; import java.util.LinkedList; import java.util.Queue; /* 在每一层的时候,本层的next已经连接好,所以任务是:把下一层的next连好。 由于是满二叉树,所以必有左右节点,如果没有孩子节点则也不用处理了直接返回 因为本层的任务是处理孩子节点的next,左孩子连自己的右孩子,右孩子在自己的 next不为空的时候指向兄弟节点的左孩子,如果自己的next为空,则右孩子的next也为空,所以不必要处理 等到了下一层,本层的next已经连好, 迭代的解法 https://leetcode.wang/leetcode-116-Populatin...
package com.example.ralemproductions.ezchat; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View...
package example.test.string; import org.apache.commons.lang3.math.NumberUtils; import org.junit.Test; import java.util.Arrays; import java.util.Calendar; import java.util.Collections; import java.util.List; /** * @author Liu Lei * @date 2018/10/10 */ public class StringTest { /** * 商详页展示优惠券缓存 */ ...
package com.atguigu.eduorder.mapper; import com.atguigu.eduorder.entity.TPayLog; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * 支付日志表 Mapper 接口 * </p> * * @author shine * @since 2021-07-20 */ public interface TPayLogMapper extends BaseMapper<TPayLog> { }
package com.days.moment.board.dto; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Builder @AllArgsConstructor @NoArgsConstructor public class TagResponseDTO { private String tag; private Long bNum; public String getTag() { ret...
package cloudscript.lang.nodes; import cloudscript.lang.*; public class InstanceVariableNode extends Node { private String name; public InstanceVariableNode(String name) { this.name = name; } public CloudScriptObject eval(Context context) throws CloudScriptException { return context.getCurrentSe...
package cn.itsite.abase.mvvm.viewmodel.base; import android.app.Application; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.MutableLiveData; import cn.itsite.abase.mvvm.contract.base.BaseContract; import io.reactivex.Observer; import io.reactivex.disposables...
package Controller.HelperObjects; import Controller.UserController; import javafx.application.Platform; import java.util.TimerTask; public class RefreshTokenCaller extends TimerTask { public UserController userController; public RefreshTokenCaller(UserController userController) { this.userController...
package test.frame04; import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JO...
package com.adms.util; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; public class MessageUtils { private static MessageUtils instance; public MessageUtils() { } public static MessageUtils getInstance() { if(instance == null) { instance = new MessageUtils(); }...
package com.hk.xia.mybatisplus.generator.autoge.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.stereotype.Controller; /** * <p> * 好慷员工表 前端控制器 * </p> * * @author wang.yubin * @since 2019-08-01 */ @Controller @RequestMapping("/autoGe/hk-employee") public c...
package dao; import com.mongodb.BasicDBObject; import com.mongodb.Block; import com.mongodb.Cursor; import com.mongodb.Mongo; import com.mongodb.client.FindIterable; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoCursor; import entity.Lemma; import org.bson.BsonDocument; import org.bson.Docu...
package designer.ui.palette.components; import designer.ui.palette.PalettePanel; import javax.swing.*; /** * Created by Tomas Hanusas on 27.01.15. */ public class BatchletComponent extends PaletteComponent { private static final String BATCHLET_COMPONENT_TYPE = "Batchlet"; public BatchletComponent(Palet...
package controllers; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import javax.servlet.http.HttpSession; import java.io.IOException; import java.util.ArrayList; import java.util.List; import j...
package co.th.aten.network.control; import java.io.Serializable; import javax.inject.Inject; import org.jboss.solder.logging.Logger; public class StockProductControl implements Serializable { /** * */ private static final long serialVersionUID = -6463221528014730255L; @Inject Logger log; @Inject priv...
package queryProcessing; import java.util.List; import com.google.common.collect.Lists; public class Query { private List<Edge> edges; private List<String> nodes; public Query() { edges = Lists.newLinkedList(); nodes = Lists.newLinkedList(); } public void addEdge(String source, String t...
package chatroom.model.message; public class PublicServerMessage extends Message implements Displayable { private String message; public PublicServerMessage(String message) { type = 0; this.message = message; } public String getMessage(){ return message; } }
package com.hcp.objective.web.olingo; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.olingo.odata2.api.edm.Edm; import org.apache.olingo.odata2.api.ep.entr...
package corgi.hub.core.mqtt.listener.impl; import corgi.hub.core.mqtt.bean.MqttStoreMessage; import corgi.hub.core.mqtt.common.JedisConnectionManager; import corgi.hub.core.mqtt.common.MqttConstants; import corgi.hub.core.mqtt.event.MqttPublishEvent; import corgi.hub.core.mqtt.exception.RedisStorageException; import c...
package babylanguage.babyapp.appscommon.languages.languagePage; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity...
package org.newdawn.slick.tests; import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.BasicGame; import org.newdawn.slick.Color; import org.newdawn.slick.Game; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickExcepti...
package cn.edu.zucc.web.service; import cn.edu.zucc.web.model.User; import java.util.List; /** * 读取用户数据Service * Created by zxy on 11/28/2016. */ public interface LoadUserDataService { List<User> getUserDataByPage(int start, int offset,boolean all); Integer getAllUserLength(); Integer getActiveUser...
package com.udem.ift6243.sql.schema; public class HeraContextSchema { public static final String TABLE_NAME = "context"; public static final String TABLE_COL_ID = "id"; public static final String TABLE_COL_LATITUDE = "latitude"; public static final String TABLE_COL_LONGITUDE = "longitude"; public static final S...
package org.alienideology.jcord.event.guild.voice; import org.alienideology.jcord.Identity; import org.alienideology.jcord.handle.guild.IGuild; import org.alienideology.jcord.handle.guild.IMember; /** * @author AlienIdeology */ public class GuildMemberMuteEvent extends GuildMemberVoiceEvent { public GuildMembe...
package practice01; public class Practice01MathIterative implements Practice01Math { @Override public int fact(int n) throws Exception { int fact=1; if(n<0) throw new Exception(); for(int i =1;i<=n;i++) fact*=i; return fact; } @Override public int fib(int n) throws Exception { in...
/* Given the total file size in bytes (the size is given as an integer). Time- run a program that calculates how many kilobytes, megabytes, gigabytes. */ /** * * @author Aliaksiej Protas */ import java.util.Scanner; public class Lab04B1 { /** * @param args the command line arguments */ public s...
/* * GNUnetWebUI - A Web User Interface for P2P networks. <https://gitorious.org/gnunet-webui> * Copyright 2013 Sébastien Moratinos <sebastien.moratinos@gmail.com> * * * This file is part of GNUnetWebUI. * * GNUnetWebUI is free software: you can redistribute it and/or modify * it under the terms ...
package com.rc.portal.dao.impl; import java.sql.SQLException; import java.util.List; import com.ibatis.sqlmap.client.SqlMapClient; import com.rc.app.framework.webapp.model.page.PageManager; import com.rc.app.framework.webapp.model.page.PageWraper; import com.rc.portal.dao.RxTReserveOrderDAO; import com.rc.portal.vo.R...
package com.dao; import com.entities.Account; import com.entities.User; /** * Created by nikita on 8/6/14. */ public interface UserDAO { public int insertUser(User user); public boolean deleteUser(User user); public boolean updateUser(User user); public User findUserByAccount(Account account); }
package com.silver.dan.castdemo.widgets; import android.content.Context; import com.silver.dan.castdemo.Widget; import com.silver.dan.castdemo.settingsFragments.WeatherSettings; import com.silver.dan.castdemo.settingsFragments.WidgetSettingsFragment; import org.json.JSONException; import org.json.JSONObject; publi...
package program; import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx.event.EventHandler; import javafx.fxml.FXMLLoader; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.control.Alert; import javafx.scene.control.Button; import javafx.scene.control.Text...
package com.sinelnikov.competetive.week1; import org.junit.Assert; import org.junit.Test; public class ErasingMaximumTest { @Test public void testCase1() { Assert.assertArrayEquals(new int[] { 1, 0, 2 }, ErasingMaximum.solve(new int[] { 1, 3, 2})); } @Test public void testCase2() { ...
package nl.vdijkit.aas.webclient.pricing; import io.vertx.core.json.JsonObject; import nl.vdijkit.aas.domain.ReactiveItem; import nl.vdijkit.aas.webclient.ResponseItemMapper; import org.jboss.logging.Logger; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; class PricingMapper ...
package com.example.webviewtest.Enums; /** * author: dayu * date: 2019/8/26 9:25 * context: */ @SuppressWarnings("all") public enum StringEnum { PRE_URL; }
package com.cannapaceus.services; import com.cannapaceus.grader.Assignment; import com.cannapaceus.grader.Course; import com.cannapaceus.grader.Student; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.printing.PDFPageable; import javax.print.*; import javax.print.attribute.HashPrintRequestAttrib...
/* * 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 antariksa.fx; import antariksa.fx.roket.*; import java.net.URL; import java.sql.SQLException; import java.util.Resou...
package com.tencent.mm.plugin.sns.model; class ah$2 implements Runnable { final /* synthetic */ ah nrc; ah$2(ah ahVar) { this.nrc = ahVar; } public final void run() { ah.a(this.nrc, this.nrc.iII.size()); } }
package com.movieapi.movieapi.exception; public class GenericNotFoundException extends Exception { public GenericNotFoundException(String msg) { super(msg); } }
package com.sebprunier.jobboard.publishing; import org.junit.Before; import org.junit.Test; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import com.sebprunier.jobboard.Job; import com.sebprunier.jobboard.serialization.JobSerializer; import com.sebprunier....
// SaveMyHeartRunner.java // This class runs a world that contains a Heart and Bacteria import info.gridworld.actor.ActorWorld; import info.gridworld.grid.Location; import java.util.Random; public class level00Runner { public static void main(String[] args) { Random r = new Random(); ActorWorld wor...
package com.example.media; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Toast; import com.example.media.service.TrafficService; import com.exa...
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; // 영역 구하기 public class p2583 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); int N = sc.nextInt(); int K = sc.nextInt(); Graph2583 map...
package com.fundwit.sys.shikra.actuator; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; import org.springframework.test.context.junit4.Spri...
package objs; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import resources.Constants; public class ProfilePage { public static void clickProfileSettings(WebDriver driver) { driver.findElement(By.xpath(Constants.PROFILE_XPATH)).click();...
package bookexercises.chapter1.fundamentals.one; import edu.princeton.cs.algs4.StdOut; /** * Binomial distribution. Estimate the number of recursive calls that would be * used by the code * public static double binomial(int N, int k, double p) * { * if (N == 0 && k == 0) return 1.0; * el...
package SUT.SE61.Team07.Entity; import lombok.*; import javax.validation.constraints.NotNull; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Entity; import java.util.Date; impo...
package com.github.dmstocking.putitonthelist.uitl; import com.github.dmstocking.optional.java.util.function.Supplier; import com.google.android.gms.tasks.Tasks; import com.google.firebase.firestore.CollectionReference; import com.google.firebase.firestore.DocumentReference; import com.google.firebase.firestore.Documen...
package programmers.kakaoLv1.failureRate; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class FailureRateTest { @Test void solu(){ Assertions.assertArrayEquals(new int[]{3, 4, 2, 1, 5}, FailureRate.solution2(5, new int[]{2, 1, 2, 6, 2, 4, 3, 3})); Assertions.assertArray...
package com.rectus29.nimmt.configuration; import java.util.ResourceBundle; public class NimmtConfigurationResourceBundle implements NimmtConfiguration { ResourceBundle resourceBundle = ResourceBundle.getBundle("nimmt"); @Override public int getBattleRoundNumber() { return Integer.valueOf(resourceBundle.getS...
package patterns.chainofresponsibility; public interface IDispenseChain { void setNextChain(IDispenseChain nextChain); void dispense(Currency currency); }
package com.github.mikewtao.webf.demo.service.impl; import java.util.List; import java.util.Map; import com.github.mikewtao.webf.annotation.AutoFind; import com.github.mikewtao.webf.demo.dao.LoginDao; import com.github.mikewtao.webf.demo.service.LoginService; /** * */ public class LoginServiceImpl implements Logi...
package com.jegsoftware.payperiodbudgeting.data; /** * Created by jonathon on 2/6/18. */ public enum ItemType { PLANNED_EXPENSE, ACTUAL_EXPENSE, DEPOSIT }
package com.archie; import java.util.ArrayList; import java.util.Random; import java.util.Scanner; public class Main { private static ArrayList<Domino> dominoList = new ArrayList<>(); private static ArrayList<Player> playerList = new ArrayList<>(); private static ArrayList<Domino> tableList = new ArrayL...
package univ.lorraine.notes.service; import univ.lorraine.notes.model.Editeur; import univ.lorraine.notes.model.Theme; import univ.lorraine.notes.model.Type; import java.util.List; public interface IThemeService { List<Theme> findall(); Theme save(Theme theme); Theme findById(int id); ...
package com.cpz.Demo12; import com.cpz.Demo05.DemoInterFace; import java.util.ArrayList; import java.util.Collection; public class Demo02Generic { public static void main(String[] args) { Collection<Integer> list1=new ArrayList<>(); Collection<String> list2=new ArrayList<>(); Collection<N...
package com.facebook.react.bridge; import com.facebook.jni.HybridData; public class ProxyJavaScriptExecutor extends JavaScriptExecutor { private JavaJSExecutor mJavaJSExecutor; public ProxyJavaScriptExecutor(JavaJSExecutor paramJavaJSExecutor) { super(initHybrid(paramJavaJSExecutor)); this.mJa...
package com.ddt.dao; import java.util.List; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import com.ddt.bean.Course; import com.ddt.bean.Student; import com.ddt.daoInter.CourseDaoInter; public class CourseDao extends HibernateDaoSupport implements CourseDaoInter{ // 增加课程信息 public void a...
package pl.edu.pw.mini.gapso.initializer; import org.apache.commons.math3.distribution.UniformRealDistribution; import pl.edu.pw.mini.gapso.bounds.Bounds; import pl.edu.pw.mini.gapso.optimizer.SamplingOptimizer; import pl.edu.pw.mini.gapso.utils.Generator; public class RandomInitializer extends Initializer { pub...
package interviewbit.string; import java.util.ArrayList; public class LongestCommonPrefix { public String longestCommonPrefix(ArrayList<String> a) { String shortestString = getShortestStringFromArray(a); shortestString = getCommonPrefix(a, shortestString); return shortestString; } private String getShorte...
package com.catalyst.selenium.pages; import static org.junit.Assert.*; import org.junit.Test; import com.catalyst.selenium.framework.PageObjectTest; import com.catalyst.selenium.pages.FoodPage; public class FoodPageTest extends PageObjectTest{ private FoodPage foodPage = new FoodPage(getDriver()); @Test publ...
/******************************************************************************* * Copyright 2021 Danny Kunz * * 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....
package app.dao; import org.springframework.stereotype.Component; import app.data.CustomerRevenue; @Component public class CustomerRevenueDAO extends AbsractDAO<CustomerRevenue> implements IDataAccessObject<CustomerRevenue> { public CustomerRevenueDAO() { super(CustomerRevenue.class); } }
package com.chocoshop.controller; import com.chocoshop.model.Category; import com.chocoshop.service.CategoryService; import com.github.pagehelper.PageHelper; import org.apache.commons.collections.map.HashedMap; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annot...
package Utilities; import java.util.prefs.Preferences; public class UserSettingsHandler { private Preferences userPreferences; static final String LAST_SET_ENVIRONMENT = "lastEnvironment"; public static final String DEFAULT_VALUE = "Beach"; public static final String MASTER_VOLUME = "masterVolume"; ...
package PageObjectModel; import org.openqa.selenium.WebDriver; import Maven.SeleniumProject.WebDrivers; public class Factory2 { static WebDriver driver; public static void openBrowser (String browser, String url) { if (browser.equalsIgnoreCase("firefox")) driver = WebDrivers.FireFox(); else { ...
package per.epxoxy.event; /** * Created by xiaox on 1/31/2017. */ public class EventArgs { public static final EventArgs empty = new EventArgs(); public EventArgs(){ } }
/* * Copyright (c) 2016 Mobvoi 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 by applicable law or agreed...
/* Document : SME_Lending Created on : August 21, 2015, 11:56:42 AM Author : Anuj Verma */ package com.spring.controller; import java.io.File; import java.io.PrintWriter; import java.io.StringWriter; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotatio...
package com.voksel.electric.pc.ui.parameter; import com.voksel.electric.pc.common.ComponentUtil; import com.voksel.electric.pc.common.MessageBox; import com.voksel.electric.pc.domain.entity.Role; import com.voksel.electric.pc.service.ParameterService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org...
package rs.code9.taster.web.converter; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.core.convert.converter.Converter; /** * Formats Date object to string. * * @author p.stanic */ public class DateToStringConverter implements Converter<Date, String> { private static fina...
package com.espendwise.manta.service; import java.util.List; import com.espendwise.manta.model.data.BusEntityData; import com.espendwise.manta.model.data.ScheduleData; import com.espendwise.manta.model.data.ScheduleDetailData; import com.espendwise.manta.model.view.CorporateScheduleView; import com.espendwise.manta.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 com.davegreen.datastructuresmap; import java.util.HashMap; /** * * @author Dave */ public class TestMap { private Hash...
package com.baomidou.mybatisplus.samples.quickstart.practic; import java.text.SimpleDateFormat; import java.util.Date; import java.util.concurrent.CountDownLatch; public class CountDownLatchDemo { final static SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public static void main(String[]...
package org.buaa.ly.MyCar.exception; import lombok.Data; import lombok.EqualsAndHashCode; import org.buaa.ly.MyCar.http.ResponseStatusMsg; @Data @EqualsAndHashCode(callSuper = false) public class BaseError extends RuntimeException { private int status; public BaseError(int status, String message) { ...
package com.example.easymodbus_project.dao; import com.example.easymodbus_project.model.InputRegister; import org.springframework.data.jpa.repository.JpaRepository; public interface InputRegisterDao extends JpaRepository<InputRegister,Integer>{ }
import java.io.Serializable; public class Hibridos extends Veiculo implements Serializable { // variaveis de instancia private double consumoKmEletricidade; private double consumoKmGasolina; private double bateriaAtual; private double tamanhoBateria; // em watts private double combustivelAtual;...
import java.util.Scanner; public class URI1047 { public static void main(String[] args) { Scanner teclado = new Scanner(System.in); int hi, mi, hf, mf, mt1, mt2, m24, resultado; hi = teclado.nextInt(); mi = teclado.nextInt(); hf = teclado.nextInt(); mf = teclado.nextInt(); resultado = 0; mt1 = ...
/* * 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 stockorganizer; import java.util.ArrayList; /** * */ public class Calculation { public double averageCost(double cumQt...
class InterruptedThread { public static void main(String[] args){ MyThread t = new MyThread(); t.start(); try { Thread.sleep(5000); } catch (InterruptedException e) { System.out.println("main interrupted"); } t.interrupt(); // interrupting other thread here try { t.join(); } catch (Interr...
import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; /** * Homework 1 - A Jack Lesemann, jwl4vg Sources: Big Java Book */ public class Photo implements Comparable<Photo>{ /** * constant caption field as a string */ private...
package ibatis.services.user.impl; import java.util.List; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import ibatis.services.domain.User; import ibatis.services.user.UserDAO; /* * Persisten...
package com.zero.votes.cronjobs; import com.zero.votes.persistence.PollFacade; import com.zero.votes.persistence.entities.Poll; import com.zero.votes.web.util.EMailer; import java.util.Locale; import java.util.concurrent.TimeUnit; import javax.annotation.PreDestroy; import javax.annotation.Resource; import javax.ejb.S...
package jie.android.ip.common.dialog; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import jie.android.ip.CommonCons...
package com.sy.sa.event; import com.lmax.disruptor.EventTranslator; /** * * @data 2019年4月23日 上午11:51:35 * @author ztq **/ public class MyDataEventTranslator implements EventTranslator<MyDataEvent> { //public void translateTo(MyDataEvent event, long sequence, Integer id, String value) @Override public void transl...
package ba.bitcamp.LabS02D02; import java.util.Scanner; public class OduzimanjeBrojeva { public static void main(String[] args) { Scanner unos = new Scanner(System.in); int broj1 = unos.nextInt(); int broj2 = unos.nextInt(); if (broj2 > broj1) { int broj3 = broj2 - broj1; System.out.println(b...
package com.semantyca.nb.cli; public enum Trigger { DISABLE, ONLY_CONSOLE, POST_APP_START, POST_APP_DEPLOYED, EVERY_5_MIN, EVERY_HOUR, EVERY_NIGHT, EVERY_MONDAY; }