text
stringlengths
10
2.72M
package com.example.liuyuhua.cainiaonews.biz; import com.example.liuyuhua.cainiaonews.entity.RecentActivityBean; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.text.SimpleDateFormat; import java....
import java.util.*; class Solution { public int solution(int[] priorities, int location) { int answer = 0; PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder()); Queue<Data> q = new LinkedList<>(); for (int i=0; i<priorities.length; i++) { ...
package com.tencent.mm.plugin.voip_cs.b; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.NetworkInfo.State; import android.os.Build; import android.os.Build.VERSION; import com.tencent.mm.compatible.e.m; import com.tencent.mm.protocal.c.bzm; im...
package com.cjc.framework.config; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.client.RestTemplate; import java.util.ArrayList; import java.util.List; ...
/* * 文 件 名: ImageMockController.java * 描 述: ImageMockController.java * 时 间: 2013-8-5 */ package com.babyshow.imagemock.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework....
package org.cheng.login.model.impl; import android.util.Log; import org.cheng.login.MyApp; import org.cheng.login.entity.ApkFile; import org.cheng.login.entity.Contact; import org.cheng.login.entity.User; import org.cheng.login.model.IContactModel; import org.cheng.login.model.IModel; import org.cheng.login.utils.Oth...
/******************************************************************************* * Besiege * by Kyle Dhillon * Source Code available under a read-only license. Do not copy, modify, or distribute. ******************************************************************************/ package kyle.game.besiege; impor...
public boolean[][] createPath(boolean[][] grid) { //create stack of all points visited //Stack<int[]> visitedPoints = new Stack<int[]>(); Vector<int[]> visitedPoints = new Vector<int[]>(); //create starting cell at the origin int[] currentCell = new int[2]; currentCell[0] = 0; currentCell[1] = 0; //set origin ...
package com.example.wristband.utils; import com.example.wristband.R; import java.util.List; /** * Created by 刘青林 on 2018/3/19. */ public class Constans { public static String USER_NAME = "";//账户名称 public static String httpHead = "http://192.168.128.66:8080/"; //User Controller Url public static...
import java.util.Random; /** * Created by ashagal on 12/8/15. */ public class Utils { public static void print(double[][] a) { for (int i = 0; i < a.length; i++) { for (int j = 0; j < a[i].length; j++) { System.out.print(a[i][j] + " "); } System.out.pri...
package br.com.luvva.challenge.common.service; import br.com.luvva.challenge.common.model.Analysis; import br.com.luvva.challenge.common.model.Digit; import br.com.luvva.challenge.common.model.Status; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Optional; import java.ut...
package com.gerray.fmsystem.CommunicationModule; import java.util.Date; public class ChatClass { public String title; public String chatID; public String senderID; public String receiverID; public String receiverName; public String receiverContact; public String senderName; public Date...
package br.com.nozinho.model; import java.io.Serializable; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax...
package com.panduka.gojimo.fragments; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.widget.SwipeRefreshLayout; import android.view.View; import com.panduka.gojimo.R; import com.panduka.gojimo.adapters.ProductListAdapter; import com.panduka.gojimo.datastructure.Default...
package com.leyou.search.mq; import com.leyou.search.service.IndexService; import com.rabbitmq.http.client.domain.ExchangeType; import org.springframework.amqp.core.ExchangeTypes; import org.springframework.amqp.rabbit.annotation.Exchange; import org.springframework.amqp.rabbit.annotation.Queue; import org.springframe...
package writer; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import gradebook.GradeBook; import gradebook.GradeBook.AssignedWork; import gradebook.GradeBook.GradedWork; import gradebook.GradeBook.Student; ...
package kunsan.yongho.report; public class Audio extends Product { private int ampPower; private String tunerApplication; Audio(int productId, String name, String maker, int warehousingDay, int stock, int price, int ampPower, String tunerApplication) { super(productId, name, maker, warehousingDay, stock, price);...
package com.practice.socket; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.Socket; public class ChatSocket extends Thread { private Socket socket; public ChatSocket(Socket s){ this.socket = s; } public void getMessage(String message){ try { socket.getOutputS...
package com.hcp.objective.web; import java.io.IOException; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; imp...
package com.fatosajvazi; public class Main { public static void main(String[] args) { // write your code here printSquareStar(10); } public static void printSquareStar(int number) { if (number < 5) { System.out.println("Invalid Value"); return; ...
package com.e.jobkwetu.Model; public class trans { private String date, transaction, status, amount; private String id; public trans() { } public trans(String date, String transaction, String status, String amount, String id) { this.date = date; this.transaction = trans...
package controllers; import java.util.Collection; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.util.Assert; import org.springframework.web.bind.annotation.RequestMapping; imp...
package com.polyvelo.beans; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; import java.util.Map.Entry; import com.polyvelo.bdd.BDDManager; /** * Classe permettant de manipuler et de récupérer des Basket depuis la BDD. * @author Erwan Matrat & C...
package Semana11; public class CartaoDeCredito extends Pagamento { private String numeroDoCartao; public CartaoDeCredito(String nomeDoPagador, String cpf, Double valorASerPago, String numeroDoCartao) { super(nomeDoPagador, cpf, valorASerPago); this.numeroDoCartao = numeroDoCartao; } public String getNumeroD...
package chapter_1_09_SwingComponents; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; public class Props { /** * @param args */ public static void main(String[] args) { // TODO Auto-g...
package banyuan.day06.p02; /** * 1.编程. 已知字符串:”this is a test of java”. * 按要求执行以下操作: * (1) 统计该字符串中字母s出现的次数 * (2) 取出子字符串”test” * (3) 将本字符串复制到一个字符数组Char[] str中. * (4) 将字符串中每个单词的第一个字母变成大写, 输出到控制台。 * (5) 用两种方式实现该字符串的倒叙输出。(用StringBuffer和for循环方式分别实现) * (6) 将本字符串转换成一个字符串数组,要求每个数组元素都是一个有意义的额英文单词,并输出到控制台 * * @author 陈...
package com.face.controllers; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import ...
package server.repository; import common.Client; import common.Movie; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.JdbcTemplate; import common.validato...
/** * aBoy.com Inc. * Copyright (c) 2004-2012 All Rights Reserved. */ package com.github.obullxl.lang.spring.web; import java.util.HashSet; import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; im...
package com.yulinfeng.main; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.yulinfeng.pojo.AccessToken; import com.yulinfeng.pojo.Button; import com.yulinfeng.pojo.CommonButton; import com.yulinfeng.pojo.ComplexButton; import com.yulinfeng.pojo.Menu; import com.yulinfeng.pojo.ViewButton; import co...
package com.witt.thread; public class TestThread { /** * * yield * join * sleep * */ public static void main(String[] args) { //PrimeThread1 pt1 = new PrimeThread1(); //pt1.start(); PrimeThread2 primeThread2 = new PrimeThread2(); Thread t1 = new...
package com.elvarg.world.model; /** * Represents a player's privilege rights. * * @author relex lawl */ public enum PlayerInteractingOption { NONE, CHALLENGE, ATTACK; public static PlayerInteractingOption forName(String name) { if(name.toLowerCase().contains("null")) return NONE; for(PlayerInteracti...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package id.co.ahm.jxf.config; import java.util.logging.Level; import java.util.logging.Logger; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.a...
package com.yida.design.composite.generator.impl; import java.util.ArrayList; import java.util.List; import com.yida.design.composite.generator.Component; /** ********************* * @author yangke * @version 1.0 * @created 2018年7月12日 下午3:11:16 *********************** */ public class Composite ex...
/* * 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 lejeuloto; import java.awt.Image; /** * * @author yannt */ public class Lot { private String descriptif; private i...
import java.util.*; import java.util.stream.*; import java.io.*; import java.math.*; import java.awt.geom.*; public class C { public static final BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); public static final PrintWriter outWriter = new PrintWriter(System.out); public static cla...
package banking.domain; public enum Command { CREATE("create"), BALANCE("balance"), LOGIN("login"), LOG_OUT("logout"), EXIT("exit"), INVALID("invalid"); private final String command; Command(String command) { this.command = command; } public String getCommand() { ...
package gameMechanics; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Paths; import java.util.ArrayList; import java.util.HashMap; import java.util.Timer...
package game; import java.io.Serializable; import java.util.Random; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * * */ @XmlRootElement(name = "Employee") @XmlType(propOrder = {"name", "sex", "skill", "xp", "pay", "isSick"}) public class Employee implements Seriali...
package com.zhouyi.business; import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; import javax.sound....
package creditcard.services; import java.time.LocalDate; import framework.services.Report; import creditcard.dal.AccountDAOImp; import creditcard.entities.CreditCardAccount; public class MonthlyBillingReport extends Report { public MonthlyBillingReport(String filter) { super(new AccountDAOImp(), filter); } @O...
package com.ryit.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ryit.mapper.CheckoutMapper; import com.ryit.service.CheckoutService; @Service public class CheckoutServiceImp implements CheckoutService{ @Autowired private Check...
package com.tfjybj.integral.provider.dao; import org.springframework.stereotype.Repository; /** * OrganizationUserDao接口 * organizationUser表 * * @author 王云召 * @version ${version} * @since ${version} 2019-09-11 22:13:52 */ @Repository("organizationUserDao") public interface OrganizationUserDao{ }
/* * Copyright © 2015 - 2019 Lightbend, Inc. <http://www.lightbend.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 requ...
package vendor.greasemonkey.drabstech.com.greasemonkeyvendor.notification; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.List; import vendor.greasemonkey.drabstech.com.grease...
package com.model; /** * 用于测试多线程同步的计数器 * * @author xuxinbin * @version $$Id: nettyJoin, v 0.1 2017/9/14 9:58 xuxinbin Exp $$ */ public class Counter { long count = 0; public synchronized void add(long value) { this.count += value; //System.out.println(Thread.currentThread().getName() + "...
package de.jmda.fx.cdi.viewtemplate; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import de.jmda.fx.cdi.FXView; public class View extends FXView { private final static Logger LOGGER = LogManager.getLogger(View.class); public View() { LOGGER.debug("view constr...
package com.example.adapterkit.old; /** * Author: 信仰年轻 * Date: 2021-01-04 17:14 * Email: hydznsqk@163.com * Des: */ public class OldModel { public static final int TYPE_TOP_TAB = 1; public static final int TYPE_BANNER = 2; public static final int TYPE_GRID_ITEM = 3; public static final int TYPE_AC...
package cn.zzcode.geek._09queue; /** * <p> * Title: LinkedQueue * </p> * <p> * Description:基于链表 * </p> * * @author XiuYu.Ge * @created 2018年10月15日 下午9:23:29 * @modified [who date description] * @check [who date description] */ public class LinkedQueue { private Node sentry; private ...
public class Address{ //instance variables public String street; public int number; public String postal; //constructor public Address(String street,int number,String postal){ this.street=street; this.number=number; this.postal=postal; } public String getStreet(){ return street; } public i...
package com.github.teenak.moviedemo.controller; import com.github.teenak.moviedemo.domain.Movie; import com.github.teenak.moviedemo.dto.ErrorResponse; import com.github.teenak.moviedemo.repository.MovieRepository; import com.google.common.collect.Lists; import org.springframework.beans.factory.annotation.Autowired; im...
package com.example.ComicToon.Models.ModelRepositories; import java.util.List; import com.example.ComicToon.Models.ComicSeriesModel; import org.springframework.data.mongodb.repository.MongoRepository; import java.util.ArrayList; public interface ComicSeriesRepository extends MongoRepository<ComicSeriesModel, Strin...
package servlet.context; import java.io.IOException; import java.io.PrintWriter; import java.util.HashMap; import java.util.Iterator; import java.util.Set; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpS...
package br.com.estudo.model; import java.util.Date; 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 javax.validation.constraints.NotNull; @Entity @Ta...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * CategoriesButtons.java * * Created on 27-Nov-2012, 21:58:32 */ package assortedComponents; import is3calendar2.MainFrame; /** * * @author hector */ public class CategoriesButtons extends javax.swing.JPanel...
package com.fixit.ui.fragments; import android.content.Context; import android.graphics.drawable.AnimationDrawable; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.CoordinatorLayout; import android.support.v7.widget.Toolbar; import android.text.TextUtils; impo...
package com.vajra.pageobjects; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.openqa.selenium.Dimension; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.sel...
package pp_fp06.pizza_restaurant.enums; public enum Pizza_Size { SMALL, MEDIUM, BIG; public static String PizzaSizeToString(Pizza_Size size) { switch (size) { case SMALL: return "This Pizza is small size"; case MEDIUM: return "This Pizza is mediu...
public class Payroll { double netPay; double grossPay; double stateTax; double federalTax; double fica; String idNum; public Payroll() { grossPay = 0; stateTax = 0; federalTax = 0; idNum = ""; } public Payroll(double pay, double state, double federal, double f) { grossPay = pay; stateTax = ...
package com.salesdataanalysis.domain.model.salesman; import java.util.Comparator; import java.util.List; import java.util.Optional; import com.google.common.collect.ForwardingList; public class Salesmen extends ForwardingList<Salesman> { private final List<Salesman> salesmen; private Salesmen(final List<Salesma...
package com.edinarobotics.zeppelin.commands; import com.edinarobotics.utils.log.Logging; import com.edinarobotics.zeppelin.Components; import com.edinarobotics.zeppelin.subsystems.Drivetrain; import com.kauailabs.navx.frc.AHRS; import edu.wpi.first.wpilibj.command.Command; public class DriveXInchesVerticalCommand ex...
import java.io.File; public class OutDirectory { public static void main(String[] args) { File file = new File("D:\\缓存\\爱思助手"); // fileList(file); m2(file); // m(new File("D:\\软件\\压缩包")); } private static void fileList(File file) { //通过直接判断是不是文件夹来决定是否进行下一步可以减少时间开销 ...
/* * FileName: ISerialNumberDao.java * Description: * Company: 南宁超创信息工程有限公司 * Copyright: ChaoChuang (c) 2005 * History: 2005-12-13 (Jyb) 1.0 Create */ package com.spower.basesystem.serialnumber.service.dao; import java.util.List; import com.spower.basesystem.common.service.dao.ICommonDa...
package XmlCsvApi; /** * Created by mfrackowiak on 2015-06-18. */ public class OUTPUT { }
package integration; import DTO.ApplicationDTO; import DTO.AvailabilityDTO; import DTO.CompetenceDTO; import DTO.CompetenceProfileDTO; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import javax.ejb.Stateless; import javax.ejb.TransactionAt...
package com.duofei.database; import com.duofei.database.utils.DbUtils; import java.sql.Connection; /** * @author duofei * @date 2019/6/29 */ public class ConnectionTest { public static void main(String[] args) { final Connection connection = DbUtils.getConnection(); System.out.println("连接成功")...
package p9.server.netpaks; public class EquipmentDataSet { public Integer id; public String name; public String slot; public Integer armor; public Integer hp; public Integer mp; public Integer attack; public String imagename; public EquipmentDataSet(){} public EquipmentDataSet(Integer id, String name, S...
package com.fordprog.matrix.interpreter.type; import com.fordprog.matrix.MatrixParser; import com.fordprog.matrix.interpreter.execution.FunctionVisitor; import com.fordprog.matrix.interpreter.semantic.Symbol; import java.util.List; public class UserDefinedFunction extends Function { private final MatrixParser.Fu...
package com.translator.domain.model.validation; import com.translator.domain.model.numeral.RomanNumeral; import java.util.List; public interface Validator { boolean validate(List<RomanNumeral> romanNumerals); }
/* * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
package com.eason.lottert.service; import com.eason.lottert.bean.User; import java.util.List; /** * @ 文件名: UserService * @ 创建者: Eason * @ 时间: 2018/9/27 17:15 * @ 描述: */ public interface UserService { void register(User user); User login(String mobile, String password); User findByUid(String...
package com.polsl.edziennik.desktopclient.view.teacher.panels; import com.polsl.edziennik.delegates.AdminDelegate; import com.polsl.edziennik.delegates.DelegateFactory; import com.polsl.edziennik.delegates.exceptions.DelegateException; import com.polsl.edziennik.desktopclient.model.tables.TeacherTableModel; impo...
package de.fatoak.engine.process; import java.util.ArrayList; /** * Created by Markus on 21.04.2014. */ public final class ProcessManager { private ArrayList<Process> m_processList; public ProcessManager() { m_processList = new ArrayList<Process>(); } /** * Process queue will be p...
package com.ahmetkizilay.yatlib4j.accounts; import com.ahmetkizilay.yatlib4j.oauthhelper.OAuthHolder; public class UpdateProfile { private static final String BASE_URL = "https://api.twitter.com/1.1/account/update_profile.json"; private static final String HTTP_METHOD = "POST"; public static UpdateProfile.Respo...
package com.sa.supplier; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; import org.osgi.framework.ServiceRegistration; import org.eclipse.core.resources.*; import com.sa.bookstore.BookStoreImpl; public class Activator implements Bundl...
package com.tencent.mm.plugin.freewifi.ui; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import com.tencent.mm.R; import com.tencent.mm.bg.d; class FreeWifiActivateStateUI$6 implements OnClickListener { final /* synthetic */ FreeWifiActivateStateUI jmf; Fr...
package edu.john.practice.singleton; /** * 第二种:慢性子式 2/3 * (延迟创建这个实例对象) * 1.构造器私有化 * 2.类当中用一个静态变量来保存唯一实例 * 3.提供一个静态方法来,获取这个实例对象 * <p> * 线程安全(适合多线程) * * @author John * @date 8/24/2020 2:06 AM */ public class Singleton5 { private static Singleton5 instance; private Singleton5() {} public static S...
package genopt.ricardo.simulacao; import java.io.FileNotFoundException; import java.io.IOException; public final class Main { private static String MEASURED_FILE = "medidos.csv"; private static String SIMULATED_FILE = "simulados.csv"; public static void main(String[] args) throws FileNotFoundException, I...
package com.kgitbank.spring.domain.account.mapper; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.spri...
package ge.gov.mia.smart.search; import ge.gov.mia.smart.parser.Article; import ge.gov.mia.smart.search.front.ConvictResult; import ge.gov.mia.smart.search.front.CssQueryRes; import ge.gov.mia.smart.search.front.DactiloResult; import ge.gov.mia.smart.search.front.DeportResult; import ge.gov.mia.smart.search.front.Na...
/* * Copyright (c) 2014. igitras.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 applicable law or agreed ...
package com.example.device; import java.util.List; import com.example.device.widget.CompassView; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import an...
package com.example.forwork; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.widget.RelativeLayout; import android.widget.TextView; imp...
package com.cat.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.cat.bean.UserDetails; import com.cat.dao.UserDetailsDao; import com.cat.service.UserDetailsService; @Service public class UserDetailsServiceImpl implements UserDetail...
/* * Copyright(c) 2018 Hemajoo Ltd. * --------------------------------------------------------------------------- * This file is part of the Hemajoo's Foundation project which is licensed * under the Apache license version 2 and use is subject to license terms. * You should have received a copy of the license with...
package com.coding.java.thread.base; /** * https://blog.csdn.net/evankaka/article/details/44153709# */ public class ThreadTestI extends Thread{ private String name; public ThreadTestI(String name) { this.name = name; } @Override public void run() { for (int i = 0; i < 5; i++) {...
package com.mike.money; /** * Created by mike on 12/19/2015. */ public class Main { static public Simulation simulation; static public void main(String[] args) { /* flags etc. -noSSA -roi 0 -noIncome -Expenses 12000.0 -general 0 -noStock -noIRA -noexpenses removes expenses...
package com.learningscreenplay.screenplaydespegar.tasks; import com.learningscreenplay.screenplaydespegar.actions.ChooseTheDate; import net.serenitybdd.screenplay.Actor; import net.serenitybdd.screenplay.Task; import net.serenitybdd.screenplay.Tasks; public class SelectFlightDates implements Task { private Str...
public class TestFor01 { public static void main(String[] args) { //1+2+3+...+100 //while: // int i = 1; // int sum = 0; // while(i <= 100) // { // sum +=i; // i ++; // } // System.out.println(sum); //for int sum = 0; for(int i = 1;i<100;i++) { sum += i; } System.out.pri...
package mathiasschoepke; import javax.servlet.ServletContext; import org.ocpsoft.rewrite.annotation.RewriteConfiguration; import org.ocpsoft.rewrite.config.Configuration; import org.ocpsoft.rewrite.config.ConfigurationBuilder; import org.ocpsoft.rewrite.servlet.config.Forward; import org.ocpsoft.rewrite.servl...
package com.crm.qa.pages; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.crm.qa.base.TestBase; public class LoginPage extends TestBase { //page factory-OR: @FindBy(name...
import myHttpServer.MyHttpServer; import org.apache.log4j.Logger; import java.io.IOException; import java.sql.SQLException; /** * Created by cenk on 28/12/14. */ public class Server { private static final Logger logger = Logger.getLogger(Server.class); public static void main(String args[]) throws IOException...
package Aulas; public class OperadoresAtribuicaoAula { public static void main (String[]args){ int i = 10; int dois = 1; dois += 1; // dois = dois + 1; int cinco = 7; cinco -= 2; //cinco = cinco - 2; int dez = 5; dez *= 2; // dez = dez * 2; int quatro = 12; quatro /= 3; /...
/* * Copyright (C) 2019-2023 Hedera Hashgraph, LLC * * 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 applicab...
class Bits { public static void main(String args[]) { byte x,y; x=10; y=11; System.out.println("~x= "+ (~x)); System.out.println("x&y= "+ (x&y)); System.out.println("x|y= "+ (x|y)); System.out.println("x^y= "+ (x^y)); System.out.println("x<<2= "+(x<<2)); System.out.println("x>>2= "+(x>>2)); System...
package com.hnam.androiddagger.main; import android.util.Log; import javax.inject.Inject; /** * Created by nampham on 12/23/18. */ public class MainPresenterImpl implements MainContract.Presenter { private static final String TAG = MainPresenterImpl.class.getSimpleName(); private MainContract.View mView; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package legaltime.view.model; import javax.swing.table.AbstractTableModel; import legaltime.cache.ClientCache; import legaltime.model.ClientBean; import legaltime.modelsafe.EasyLog; /** * * @author bmartin */ publi...
package com.implementation; import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class valley { // Complete the countingValleys function below. static int countingValleys(int n, String s) { ...
package com.mtihc.minecraft.treasurechest.persistance; import java.util.Collection; import org.bukkit.OfflinePlayer; public interface Memory { Collection<String> getAllPlayerFound(OfflinePlayer player); long whenHasPlayerFound(OfflinePlayer player, String chestId); boolean hasPlayerFound(OfflinePlayer player,...
package com.yfancy.web.boss.config; import com.yfancy.common.base.Result; import com.yfancy.common.base.enums.SystemCodeMsgEnum; import com.yfancy.common.base.exception.BizMsgException; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bin...