text
stringlengths
10
2.72M
package mekfarm.capabilities; import net.minecraft.item.ItemStack; import net.minecraftforge.items.IItemHandler; /** * Created by CF on 2016-11-10. */ public interface IFilterHandler extends IItemHandler { boolean acceptsFilter(int slot, ItemStack filter); }
package tr.org.lkd.lyk2015.sampleservlet; import java.io.IOException; import java.util.Calendar; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebS...
package com.bofsoft.laio.customerservice.DataClass.db; import com.bofsoft.laio.data.BaseData; /** * 学员状态基础表 * * @author admin */ public class StuStatusData extends BaseData { public int Id; public String MC; // 状态名称 public String Unit; // 展示单位 public int SeqType; // 展示顺序 public int IsDel; ...
// Solution is based on binary search. // I code didn't work, and this is closest to my code from discussion forums. public class Solution { public int mySqrt(int x) { if (x == 0) return 0; int left = 1, right = x; while (true) { int mid = left + (right - left)/2; ...
package views; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; import connections.ClientServerConnection; import listeners.InspectSubmitListener; import listeners.NextButtonListener; /** * Inspectio...
package github.dwstanle.tickets.search; import github.dwstanle.tickets.SeatMap; import github.dwstanle.tickets.model.Seat; import org.springframework.stereotype.Component; import java.util.Optional; import java.util.Set; @Component public class SimpleTicketSearchEngine implements TicketSearchEngine { @Override ...
package com.techelevator.npgeek.model.survey; import java.io.PrintWriter; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class IOStreamSurveyDAO implements Surv...
package com.cbs.edu.spring.decoupled_spring; public interface MessageProvider { String getMessage(); }
package com.example.isufdeliu; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.content.SharedPreferences; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.Menu; import and...
package com.example.iit.materialdesign.database; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.example.iit.materialdesign.model.Comment; imp...
/** * @Author: Mahmoud Abdelrahman * Teacher Validator class is where the code responsible for implementing the teacher validator methods * implemented. * Extends the BaseValidator class. */ package com.easylearn.easylearn.validation; import com.easylearn.easylearn.entity.Teacher; import com.easylearn.easylearn.r...
// ********************************************************** // 1. 제 목: // 2. 프로그램명: CommunityMsMenuBean.java // 3. 개 요: // 4. 환 경: JDK 1.3 // 5. 버 젼: 0.1 // 6. 작 성: Administrator 2003-08-29 // 7. 수 정: // // ********************************************************** package com.ziaan.co...
/* ServletOutputStreamWrapper.java Purpose: Description: History: Mon Jan 17 14:08:22 2005, Created by tomyeh Copyright (C) 2005 Potix Corporation. All Rights Reserved. {{IS_RIGHT This program is distributed under LGPL Version 2.1 in the hope that it will be useful, but WITHOUT ANY WARRANTY. }}IS_RI...
package com.example.covidtracer; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Bundle; import android.view.KeyEvent; import android.view.inputmethod.EditorInfo; import android.widget.Button; import android.widget.EditText; import android.widget.Text...
package com.wxt.designpattern.mediator.test02; /** * @Author: weixiaotao * @ClassName SoundCard * @Date: 2018/10/30 18:35 * @Description: 声卡类,一个同事类 */ public class SoundCard extends Colleague{ public SoundCard(Mediator mediator) { super(mediator); } /** * 按照声频数据发出声音 * @param data 发出声音的数据 */ public v...
package com.bikchen.hiber; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; import java.util.List; @SpringBootApplication public class HiberApplication { public static void main(String[]...
package com.stepDefinition; import com.steps.HomePageStep; import com.steps.OfficePageStep; import com.steps.PublicPlacePageStep; import com.steps.TakeTheBusPageStep; import com.steps.CommonPageStep; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import com.steps.AreYouGamePageS...
package com.yc.ssm_vote.web.action; import java.util.Map; import org.apache.logging.log4j.LogManager; import org.apache.struts2.interceptor.RequestAware; import org.apache.struts2.interceptor.SessionAware; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Con...
package dreamcoderj.shiftarrays.com; import java.util.Arrays; public class ShiftingArrays { public static void main(String[] args) { // TODO Auto-generated method stub int[] oldArray = {5,10,15,20,25}; int[] newArray = shiftArray(oldArray); System.out.println("This is the old Array: " + Arrays.toString(o...
package net.inveed.rest.jpa.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Entity of marked property will be serialized as JSON object (instead of entity ID) * */ @Retention(Retentio...
package com.anssy.ognl; /** * @author Mr.薛 * Java防止sql注入 */ public class SqlIn { public static void main(String[] args) { String str = "script-8iashdansdtasdsql select * from sys_user"; System.out.println("原始字符:"+str+" 处理之后的字符串:"+new SqlIn().filterSQLInjection(str)); } public final static String fil...
import java.awt.*; import javax.swing.*; class Main { public static void main(String[] args) { //teste1(); JFrame f = new JFrame(); Reprodutor c = new Reprodutor(); f.setContentPane(c); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //teste2(c); f.setSize(500,400); f.set...
package hw03.gizzon.battleship; /** *The enum below is used to know what state the game is currently in. *@author Nicole Gizzo */ public enum BattleshipStates { INIT, PLAYER1, PLAYER2, FINISHED; }
package org.samsoft.qrator.leader.impl; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.recipes.leader.LeaderSelector; import org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter; import org.samsoft.qrator.leader.Candidate; import org.samsoft.qrator.leader...
package com.api.os.service; import com.api.os.dominios.OrdemServico; import com.api.os.enums.StatusOS; import com.api.os.repository.OrdemServicoRepository; import com.api.os.service.exception.ObjectNotFoundException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.S...
/*package com.datayes.textmining.Utils; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.L...
package pl.olart.pmsuite.model; import java.io.Serializable; /** * User: grp * Date: 16.06.16 * Time: 16:43 */ public class Wynik implements Serializable { private String nazwa; private Double wynik1 = 0d; private Double wynik2 = 0d; private Double wynik3 = 0d; private Double wynik4 = 0d; ...
package Day4; public class Learn { public static void main(String args[]) { } }
package com.mmall.controller.portal; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody...
package edu.ycp.cs320.groupProject.webapp; import java.util.Iterator; import java.util.List; import java.util.Scanner; import edu.ycp.cs320.groupProject.webapp.UserPass; import edu.ycp.cs320.groupProject.webapp.DatabaseProvider; import edu.ycp.cs320.groupProject.webapp.IDatabase; public class TitleQuery { public st...
package fr.doranco.designpattern.strategy; public class OuvertureSecuriseStrategy extends OuvertureStrategy { @Override public void ouvrir() { // Je pousse le bouchon puis je tourne. } }
package controller.mobile; import java.io.IOException; import java.io.PrintWriter; import java.net.URL; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.RequestDispatcher; impo...
package com.git.cloud.parame.model.po; import com.git.cloud.common.model.base.BaseBO; public class ParameterPo extends BaseBO { private static final long serialVersionUID = 1L; private String paramId; private String paramName; private String paramValue; private String remark; private String isActive; ...
package searchandsort; /** * @author Nam Zeng * @coding UTF-8 * @Date 2019/4/7 * @Description 插入排序 */ public class InsertSort { /** * 利用插入排序法,将数组arr中[left,right]中的元素升序排列 * 算法步骤: * 1.将第一个元素看做一个有序序列,把从第二个元素到最后一个元素当成是未排序序列。 * 2.从头到尾依次扫描未排序序列,将扫描到的每个元素插入有序序列的适当位置。 * 如果待插入的元素与有序序列中的某个元素相...
package com.restcode.restcode.service; import com.restcode.restcode.domain.model.Sale; import com.restcode.restcode.domain.model.SaleDetail; import com.restcode.restcode.domain.repository.IRestaurantRepository; import com.restcode.restcode.domain.repository.ISaleRepository; import com.restcode.restcode.domain.service....
package com.yang.o2o.service; import java.util.List; import org.springframework.stereotype.Service; import com.yang.o2o.entity.Area; @Service public interface AreaService { List<Area> getAreaList(); }
package ar.edu.unlam.pb1.tp03.prueba; import ar.edu.unlam.pb1.tp03.dominio.Punto; public class PruebaPunto { public static void main(String[] args) { Punto punto1 = new Punto(); punto1.setCoordenadaX(10.0); punto1.setCoordenadaY(5); System.out.println("La coordenada x es: " + punto1.getCo...
package com.programapprentice.app; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * User: program-apprentice * Date: 8/23/15 * Time: 3:42 PM */ public class DecodeWays_Test { DecodeWays_91 obj = new DecodeWays_91(); @Test public void test1() { String s = "10"; ...
package slimeknights.tconstruct.tools.modifiers; import net.minecraft.nbt.NBTTagCompound; import slimeknights.tconstruct.library.modifiers.ModifierAspect; import slimeknights.tconstruct.library.tools.ToolNBT; import slimeknights.tconstruct.library.utils.HarvestLevels; import slimeknights.tconstruct.library.utils.TagU...
package com.example.isvirin.storeclient.data.entity.daoconverter; import org.greenrobot.greendao.converter.PropertyConverter; public class BrandTypeConverter implements PropertyConverter<BrandType, String>{ @Override public BrandType convertToEntityProperty(String databaseValue) { return BrandType.va...
package com.gsccs.sme.plat.rtable.model; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; public class EnergyMain { private String mainId; private Long corpid; @DateTimeFormat(pattern = "yyyy-MM-dd") private Date startdate; ...
package randomData; import buffer.LastOperation; import javafx.beans.binding.NumberBinding; import util.Util; import java.lang.reflect.Array; import java.util.Calendar; import java.util.Random; public class DataGeneration { private Random rnd; public DataGeneration() { rnd = new Random(); } ...
package method0105; import java.util.Scanner; public class Method4 { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.print("1번째 숫자 입력: "); int num1 = s.nextInt(); System.out.print("2번째 숫자 입력: "); int num2 = s.nextInt(); System.out.print("3번째 숫자 입력: "); int num3 =...
package core.heroes.original; import core.heroes.skills.YuanShaoArrowSalvoHeroSkill; public class YuanShao extends AbstractHero { private static final long serialVersionUID = 1L; public YuanShao() { super(4, Faction.QUN, Gender.MALE, "Yuan Shao", new YuanShaoArrowSalvoHeroSkill() ); } }
package cn.controller; import java.util.List; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import entityClass.CourseInfo; import entityClass.SelectInfo...
package com.employee_recognition.Entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table (name="position") public class Position { @Id @Column(name = "position_id") private int position_id; @Column(name = "position") pr...
package com.ut.healthelink.model; import com.ut.healthelink.validator.NoHtml; import java.util.List; 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 j...
package co.sblock.utilities; import static org.junit.Assert.fail; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashMap; import org.bukkit.Material; import org.junit.Test; public class ItemNameTest { @Test public void testMaterialsPresent() { HashMap<St...
package com.cheese.radio.util.calendarutils; import android.content.Context; import com.cheese.radio.ui.user.calendar.CalendarEntity; import java.util.ArrayList; import java.util.List; public class CalendarUtil { /** * 获得当月显示的日期(上月 + 当月 + 下月) * * @param year 当前年份 * @param month 当前月份 * ...
package com.unicss.util; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.regex.Pattern; import javax.xml.datatype.DatatypeFactory; import javax.xml.datatype.XMLGregor...
import java.io.*; import java.lang.*; import java.util.*; // #!/usr/bin/python -O // #include <stdio.h> // #include <stdlib.h> // #include <string.h> // #include<stdbool.h> // #include<limits.h> // #include<iostream> // #include<algorithm> // #include<string> // #include<vector> // using namespace std; /* # Author...
package com.bedroom.common; /** * ajax返回类型 */ public class AjaxResult { /**状态码,默认操作成功true;失败设置为error*/ private String status = "true"; /**返回信息,返回前端操作的文字结果*/ private String msg = "操作成功"; /**操作成功与否,默认为成功*/ private Boolean success = true; /**返回的结果集,返回后台的对象*/ private Object object; //构造函数 ...
package lk.ac.mrt.cse.mscresearch.persistance.dao; import java.util.List; import java.util.stream.Collectors; import org.hibernate.Session; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import lk.ac.mrt.cse.mscresearch.persistance.entities.ClassIndex;...
package com.wrathOfLoD.Utility; import java.util.List; /** * Created by Mitchell on 4/7/2016. */ public enum Direction { DOWN(0, 0, 0, -1), DOWN_NORTH(0, -1, 1, -1), DOWN_NORTH_EAST(1, -1, 0, -1), DOWN_SOUTH_EAST(1, 0, -1, -1), DOWN_SOUTH(0, 1, -1, -1), DOWN_SOUTH_WEST(-1, 1, 0, -1), DOWN_NORTH_WEST(-1, 0, ...
package com.izasoft.jcart.repository; import org.springframework.data.jpa.repository.JpaRepository; import com.izasoft.jcart.domain.Permission; public interface PermissionRepository extends JpaRepository<Permission, Integer> { }
package weather; public class Grapher { private final WeatherUtil data; private String[] stringOfYears = new String[18]; private double[][] data_array = new double[18][4]; private double minOfMaxTemps = 10000; private double minOfMinTemps = 10000; public Grapher(WeatherUtil data) { if ( data == null) ...
import java.util.*; import java.lang.*; import java.io.*; class GFG { public static void main (String[] args) { Scanner myInput = new Scanner( System.in ); int t = myInput.nextInt(); while(t>0) { Queue<Long> q = new LinkedList<Long>(); long a=1,b=2; q.add(a);q.add(b); t--; ...
package com.example.kimnamgil.testapplication.data; import android.graphics.drawable.Drawable; /** * Created by kimnamgil on 2016. 7. 16.. */ public class Person { private String email; private String name; private Drawable photo; //Construct public Person() {} public Person(String name, ...
package drivetrain.unused; import drivetrain.DriveControl; public class AntiTipDriveControl extends DriveControl {//not currently in use //this is a form of drive control that will be called when we start tipping private static AntiTipDriveControl antitipdrivecontrol; private AntiTipDriveControl() { } public ...
package connectfour; import java.util.ArrayList; import processing.core.*; /** * Connect Four * * User chooses red or black. * Plays against simple AI that drops tokens at strategic locations. * User has the option to play another game upon completion. * * @author Julian Hinsch */ public class ConnectFour ex...
package hadoop.inputformat; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Reducer; import java.io.IOException; import java.net.InetAddress; public class WordCountReducer extends Reducer<Text,IntWritable,Text,IntWritable> { InetAddress addr = null; ...
package raig.org.states; public interface State { void quarterInserted(); void turnsCrank(); void gumballsFinished(); void dispense(); String statetoString(); void gumballsNotFinished(); }
public class Main { public static void main(String[] args) { String[] raduga = {"Красный", "Оранжевый", "Желтый", "Зеленый", "Голубой", "Синий", "Фиолетовый"}; for (int i = 0; i < raduga.length; i++) { System.out.print(raduga[i] + " "); } int middleOfArray = (ra...
package com.seleniumpom.tests.framework; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.edge.EdgeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import org.openqa.selenium.ie.InternetExplorerD...
package com.example.canyetismis.runningtracker; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteOpenHelper; public class DBHelper extends SQLiteOpenHelper { public DBHelper(Context context) { ...
/* runtime O(n^2) = (n to iterate each start) * (n to iterate each end) space O(n) = queue */ public boolean wordBreak(String s, List<String> wordDict){ Set<String> dictionary = new HashSet<>(wordDict); Queue<Integer> startIndices = new LinkedList<>(); boolean[] visited = new boolean[s.leng...
package com.example.ecommerce; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.databinding.DataBindingUtil; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.widget.Toast; import ...
package com.cheese.radio.ui.media.anchor.entity.description; import android.databinding.ObservableField; import android.os.Bundle; import android.webkit.WebView; import android.widget.ProgressBar; import com.binding.model.model.ModelView; import com.binding.model.model.ViewModel; import com.cheese.radio.R; import com...
package com.karya.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="accprofitlossstatement001mb") pub...
package practice; import java.util.Scanner; public class FactorialSum { static int factorial; public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println("Enter a number:"); int n = s.nextInt(); s.close(); int sum = 0, f; System.out.println("-------------------")...
package com.sapl.retailerorderingmsdpharma.observer; /** * Created by JARVIS on 19-Feb-18. */ public interface Observable <T> { void register(T observer); void unregister(T observer); }
package edu.washington.echee.intentsandextras; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import an...
package util; import java.time.LocalTime; public class TotalTimeCalculator { private static int toSeconds(String time) throws Exception { String[] s = time.split("\\."); if (s.length != 3) throw new Exception("Syntax error!"); int t = 0; for (int i = 0; i < 3; ++i) t = t * 60 + Integer.parseInt(s[...
package br.unibh.loja.negocio; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Logger; import javax.inject.I...
package com.acewill.ordermachine.pos; import android.content.Context; import android.text.TextUtils; import android.util.Log; import com.acewill.ordermachine.activity.WshCreateDeal; import com.acewill.ordermachine.common.Common; import com.acewill.ordermachine.model.LoginRep; import com.acewill.ordermachine.model.Log...
package com.example.demo.test; import com.fasterxml.jackson.databind.PropertyNamingStrategy; /** * Created By RenBin6 on 2020/9/4 . */ public class SnakeCaseStrategyTest { public static void main(String[] args) { PropertyNamingStrategy.SnakeCaseStrategy snakeCaseStrategy = new PropertyNamingStrategy.Sna...
/*Objective: * 1.Client gives the Roll No and it gets the all details of that student from database. * 2.Insert new Student in database with given RollNo and then print Complete students Details from database The Database activities are separated into DAO1 class */ import java.sql.*; import java.util.Arra...
package com.zxt.compplatform.formengine.service.impl; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import j...
import java.io.*; import java.util.*; class fact1 { public static void main(String args[]) { Scanner s=new Scanner(System.in); int a=s.nextInt(); if((a==0)||(a==1)) { System.out.print("1"); } else { int mul=1; for(int i=1;i<=a;i...
package ua.siemens.dbtool.service; import ua.siemens.dbtool.model.entities.Profile; import java.util.Collection; /** * Service interface for {@link Profile} * * @author Perevoznyk Pavlo * creation date 29 August 2017 * @version 1.0 */ public interface ProfileService { void save(Profile profile); ...
package com.gxtc.huchuan.bean; import java.io.Serializable; /** * Created by Gubr on 2017/3/20. * 关注 人数 用这个对象 */ public class PersonCountBean implements Serializable{ private String name; private String headPic; private String shareCount; private String call; //这个是称呼 public String getCall...
package org.vincent.stream; import org.apache.commons.lang3.StringUtils; import java.util.Arrays; import java.util.List; import java.util.function.Consumer; /** * @author PengRong * @package org.vincent.stream * @ClassName ConsumerTest.java * @date 2020/6/6 - 10:35 * @ProjectName JavaAopLearning * @Description...
package com.asgab.service.account; import java.io.Serializable; import javax.annotation.PostConstruct; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.LockedAccountException; imp...
import Staff.TechStaff.DbAdmin; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; public class DbAdminTest { DbAdmin dbAdmin; @Before public void before(){ dbAdmin = new DbAdmin("Miss Brahms", "GB654321", 15000); } @Test public void canRa...
/* * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration. * * Created Sat Nov 13 13:09:55 CST 2004 by MyEclipse Hibernate Tool. */ package com.aof.component.helpdesk; import java.io.Serializable; /** * A class that represents a row in the ACTIO...
package com.miyatu.tianshixiaobai.activities.Others; import android.app.Activity; import android.content.Intent; import android.view.View; import android.widget.RelativeLayout; import android.widget.TextView; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.hjq.toast.ToastUtils; impor...
package com.example.prog3.alkasaffollowup; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; impor...
package lab12; import java.io.File; import java.util.Scanner; /** * Created by ran on 4/6/16. * * Heap sort, Quick sort & Merge sort * */ public class Lab { public static void main(String[] args) throws Exception{ Scanner w = new Scanner(System.in); w.nextLine(); //prepare file ...
package com.alibaba.druid.bvt.pool; import java.sql.SQLException; import com.alibaba.druid.PoolTestCase; import org.junit.Assert; import junit.framework.TestCase; import com.alibaba.druid.filter.FilterAdapter; import com.alibaba.druid.filter.FilterChain; import com.alibaba.druid.pool.DruidDataSource; import com.alib...
package GUI.controller; import java.io.IOException; import java.time.DateTimeException; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import javax.xml.bind.ValidationException; import exceptions.FormatacaoInvalidaException; import exceptions.P...
package com.acewill.ordermachine.dialog; import android.view.View; import com.acewill.ordermachine.R; /** * Author:Anch * Date:2017/12/25 14:56 * Desc: */ public class ChangeLanguageDialog extends BaseDialog implements View.OnClickListener { /** * @return */ public static ChangeLanguageDialog newInstance()...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package gtree; import java.util.ArrayList; /** * * @author grostirolla */ public class Tree { private Node root; private int count; private int DEFROOTX = 100; private int DEFROOTY ...
package g350; /** * @author 方康华 * @title PowerOfFore * @projectName leetcode * @description No.342 Easy * @date 2019/7/22 20:50 */ public class PowerOfFour { // 三个要求:大于0,是2的幂,唯一一个"1"在奇数为上 public boolean isPowerOfFour(int num) { return num > 0 && (num & (num - 1)) == 0 && (num & 0xAAAAAAAA) == 0;...
import java.io.PrintWriter; import java.util.Iterator; import java.util.LinkedList; import java.util.Scanner; public class Main { static Scanner in = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int n = in.nextInt(); int lastLe...
// Command.java package org.google.code.netapps.scriptrunner; /** * This interface is a wrapper for command definitions. * * @version 1.0 05/16/2001 * @author Alexander Shvets */ public interface Command { public static final String PROMOTE = "promote"; public static final String GET = "get...
package za.ac.cput.chapter5assignment.facadepattern; /** * Created by student on 2015/03/12. */ public class Boat implements Vehicle { @Override public String getWhereItMoves() { return "Boat moves on water"; } }
package com.takipi.tests.counters.immutables; //immutableOrder public final class Order { private final int id; public Order(int id) { this.id = id; } public int getId() { return id; } }
package com.example.forcatapp.util; import java.util.List; public class SessionControl { static public HttpClient httpclient = null; public static HttpClient getHttpclient() { if (httpclient == null) { HttpClient http = new HttpClient(); SessionControl.setHttpclient(http); ...
package org.valdi.entities; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Set; import java.util.UUID; import java.util.logging.Level; import org.bukkit.Bukkit...
package com.emc.netty.server; import com.alibaba.fastjson.JSON; import com.emc.netty.client.CommType; import io.netty.channel.ChannelHandlerContext; import lombok.Data; import lombok.experimental.Accessors; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import java.util.Set; impor...