text
stringlengths
10
2.72M
/* * This software is licensed under the MIT License * https://github.com/GStefanowich/MC-Server-Protection * * Copyright (c) 2019 Gregory Stefanowich * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
package com.tencent.mm.plugin.freewifi.ui; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import com.tencent.mm.R; import com.tencent.mm.kernel.g; import com.tencent.mm.model.au; import com.tencent.mm.plugin.appbrand.n.e; import com.tencent.mm.plugin.freew...
package question2; import java.util.Arrays; public class Main { public static void main(String[] args) { Etudiant etudiant1 = new Etudiant(); Etudiant etudiant2 = new Etudiant("Amr","Seoudy"); etudiant1.setNom("Adel"); etudiant1.setPrenom("Mohamed"); etudiant1.setCodePer("Seou195623478"); e...
package com.class01; import org.testng.annotations.AfterClass; import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterSuite; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeSuite;...
package com.cimcssc.chaojilanling.adapter.enterprise; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.cimcssc.chaojilanling.R; import com.cimcssc.chaojilanling.ent...
package com.ybh.front.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; public class Product_HostExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table FreeHost_Product_Host ...
/* Given a string, if the string "del" appears starting at index 1, then return a string where that "del" has been deleted. Otherwise, return the string unchanged. delDel("adelbc") → "abc" delDel("adeliciousMeal") → "aiciousMeal" delDel("adedbc") → "adedbc" delDel("appledelta") → "apple...
/* PROGRAMME: PROGRAMMER: DATE: PROJECT: MODIFIED DATE: */ package rtree; import java.io.*; import java.net.*; import java.util.List; public class RTreeClient { private Socket socket; public RTreeClient(String host,int port) { try { socket=new Socket(host,port)...
package windowGrid; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.Test; public class LamdaExp { WebDriver driver; @Test public void amazonLink() {...
import java.util.Random; public class Farmer { public int resourse = 5; public boolean collectGoods(Pet[] pets){ boolean goodsCollected = false; for (Pet pet: pets){ if (pet.resource > 0){ goodsCollected = true; } this.resourse += pet.resource...
package com.tencent.mm.plugin.ipcall.ui; import android.content.Context; import android.support.v7.app.ActionBarActivity; import android.text.format.DateFormat; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.tencent.mm.R; import com.tencent.mm.plugin.ipcall.a.g.g; i...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package lappa.smsbanking.App; // Install the Java helper library from twilio.com/docs/java/install import com.twilio.sdk.TwilioRestClient; import com.twilio.sdk.TwilioRestException; import com.twilio.sdk.resource.factor...
package ro.redeul.google.go.lang.psi.impl.expressions; import com.intellij.lang.ASTNode; import org.jetbrains.annotations.NotNull; import ro.redeul.google.go.lang.psi.expressions.GoBuiltinCallExpr; import ro.redeul.google.go.lang.psi.types.GoType; /** * Author: Toader Mihai Claudiu <mtoader@gmail.com> * <p/> * Dat...
package javax.microedition.location; /** * The Landmark class represents a landmark, i.e. a known location with a name. A landmark has a name by which it is known to the end user, a textual description, QualifiedCoordinates and optionally AddressInfo. * This class is only a container for the information. The construc...
package frc.robot.old; import com.ctre.phoenix.motorcontrol.FeedbackDevice; import com.ctre.phoenix.motorcontrol.can.TalonSRX; import com.ctre.phoenix.motorcontrol.can.VictorSPX; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.w...
package com.example.zealience.oneiromancy.ui.activity; import android.content.Intent; import android.os.Bundle; import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.StaggeredGridLayoutManager; import android.text.Editable; import android.text.TextWatcher; import android.view.KeyEvent;...
/* * Created on 27-nov-2004 * */ package es.ucm.fdi.si.vista; import java.awt.Container; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.Observable; import java.util.Observer; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swi...
package ladder.binarysearch; /** * Suppose a sorted array is rotated at some pivot unknown to you beforehand. * (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). * * Find the minimum element. * The array may contain duplicates. * * Given [4,4,5,6,7,0,1,2] return 0 */ public class FindMinimumInRotatedSortedArra...
package com.example.connectly.seeker; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import androidx.fragment.app.Fragment; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.V...
package com.di.maven; /** * Hello Mindstream! * Author: Bimal Pandey */ public class App { public static void main( String[] args ) { System.out.println( "Hello Mindstream!" System.out.println( "Welcome!" ); } }
package com.nmoumoulidis.opensensor.restInterface.requests; import com.nmoumoulidis.opensensor.model.InvalidSensorException; import com.nmoumoulidis.opensensor.model.NonAvailSensorException; import com.nmoumoulidis.opensensor.model.SensorTracker; import com.nmoumoulidis.opensensor.view.SensorStationActivity; /** * S...
import greenfoot.*; public class Spieler extends Actor { int cooldown = 0; public void act() { if(cooldown > 0) { cooldown -= 1; } if (MyWorld.class.isInstance(getWorld())) ((MyWorld)getWorld()).musik.play(); if (MyWorld2.class.isInstance(getWorld())) ((MyW...
package lapechealaqueue.episode1.util; import android.app.Activity; import android.util.DisplayMetrics; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; public class ScaleManager { public void scaleContents(View rootView, View container) { float xScale = (float) container...
/* * 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.netcracker.financeapp.dao; import com.netcracker.financeapp.mapping.Finance; import java.util.ArrayList; import j...
package com.noteshare.common.filter; import java.io.IOException; import java.net.URLDecoder; import java.util.Date; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletExc...
package wahcanttadmintailors.com.smartfoodorderingclientapp.Activites; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.WindowManager; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.FragmentTransaction; import wahcan...
import java.util.*; class Solution { public int solution(int[] scoville, int K) { int answer = 0; PriorityQueue<Integer> pq = new PriorityQueue<>(); for (int num: scoville) { pq.add(num); } while ((pq.peek() < K) && pq.size() >= 2) { ...
package ru.leymooo.simpleskins; import ru.leymooo.simpleskins.utils.RoundIterator; import ru.leymooo.simpleskins.utils.DataBaseUtils; import ru.leymooo.simpleskins.utils.SkinUtils; import com.google.gson.JsonSyntaxException; import com.google.inject.Inject; import com.velocitypowered.api.event.Subscribe; import com.ve...
import org.apache.commons.lang3.StringUtils; import java.io.FileInputStream; import java.io.IOException; import java.util.Scanner; /** * Created by gcc on 30/03/17. */ public class CADDFeatureSelector { /** * This method obtains CADD features for given variants * @param inputFile, file with training ...
package com.recko.assignment.recko.entity; import com.fasterxml.jackson.annotation.JsonProperty; import javax.persistence.*; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.time.Instant; import java.sql.Date; import java.util.List; import java.util.UUID; @Entity @Table(name="post") public c...
/** * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * 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 Foundatio...
package com.animations.maroof.bean; /** * Created by Maroof Ahmed Siddique on 2/4/2017. */ public class ListItems { public String getPosition() { return position; } public void setPosition(String position) { this.position = position; } public String getName() { return n...
package com.asiainfo.fdc.persistence.tclz; import java.io.Serializable; import java.util.List; import jef.database.Condition.Operator; import com.asiainfo.fdc.persistence.tclz.entity.FjTclzAllSum; import com.asiainfo.fdc.persistence.tclz.entity.QueryCon; public class FjTclzAllSumDaoImpl extends FjTclzAllS...
package utilidades; import java.util.Scanner; public class Tabuada { public static void main(String[] args) { int multiplicador =0; int resultado = 0; //Scanner leia = new Scanner(System.in); for(int x = 1; x<=10; x++) { System.out.printf("Tabuada do %d", x); System.out.println("\n-----...
package LC0_200.LC150_200; public class LC183_Customers_Who_Never_Order { // mysql }
package com.example.yana_kryvoshey_hw1.Objects; import android.widget.ImageView; public class Card { private String name; private int Cardpoint; public Card(){} public Card(String name) { this.name = name; this.Cardpoint = Integer.parseInt(name.replaceAll("[^0-9]", "")); } public...
/** * */ package ucl.cs.testingEmulator.time; import org.microemu.app.util.MIDletThread; import org.objectweb.asm.ClassAdapter; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; /** * @author -Michele Sama- aka -RAX- * * University College London *...
import ch02.stacks.*; import support.*; import java.util.Scanner; public class BidDriver { public static void main(String args[]) { LinkedStack<Bid> auction = new LinkedStack<> (); // Create stack of Bid objects String newBidderName, more="Y"; // Sentinel value for looping int n...
/* * 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 DOMIC; import java.util.ArrayList; public class QuestionBlock { ArrayList<Question> questions = new ArrayList<>(); ...
package daoImpl.mock; import java.util.HashMap; import java.util.Map; import dao.PersonDao; import model.Professor; import model.Section; import model.Student; import model.User; public class PersonDaoImpl implements PersonDao { @Override public HashMap<String, Professor> findAllProfessors() { HashMap<String...
/* * 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 lab5; import java.util.ArrayList; import static java.util.Collections.list; /** * * @author Admin */ public class demoXfil...
package swexpert; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class SWEA_5607_P_조합 { private static int mod = 1234567891; private static int N; private static int R; private static long[] fac; public static void main(Str...
package gov.samhsa.c2s.pcm.service.dto; import lombok.AllArgsConstructor; import lombok.Data; import org.hibernate.validator.constraints.NotEmpty; import javax.validation.Valid; import java.util.HashSet; import java.util.Set; @Data @AllArgsConstructor public class AbstractProviderDto { protected Long id; @Va...
package com.bozhong.lhdataaccess.infrastructure.dao; import com.bozhong.lhdataaccess.domain.BasicDepartmentDO; import com.bozhong.lhdataaccess.domain.HospitalDO; import com.bozhong.lhdataaccess.domain.HospitalWardDO; /** * User: 李志坚 * Date: 2018/11/5 * 医院病区数据的DAO */ public interface HospitalWardDAO { void up...
package com.darglk.todolist.service; import java.io.File; import java.util.List; import org.apache.commons.io.FileUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.security.cryp...
package chapter2; import java.util.Scanner; public class Ex2_5 { public static void main(String[] args) { Scanner input = new Scanner(System.in); double gratuityRate, gratuity, subtotal, total; System.out.print("Enter the subtotal: "); subtotal = input.nextDouble(); System.out.print("Enter the gr...
package Aula0; import java.util.Scanner; public class QuestaoA { public static void main(String[] args) { // instanciando o objeto scanner com o parâmetro 'System.in' Scanner scan = new Scanner(System.in); // criando as variaveis da questao float fahrenheit, celsius; // ent...
package com.ebay.lightning.core.services; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.junit.Before; import org.junit.Test; import com.ebay.lightning.core.beans.LightningRequest; import com.ebay.lightning.core.beans.LightningResponse; import com.ebay.lightning.core.beans.Reser...
package edu.pdx.cs410J.hueb; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class HelpActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { ...
package com.barearild.commute.service.trafikanten; import android.util.Log; import com.google.gson.stream.JsonReader; import java.io.IOException; import java.util.ArrayList; import java.util.Date; public class Travel { public static final String DEPARTURE_TIME = "DepartureTime"; public stati...
package com.wes.testing; import android.os.Bundle; import android.os.Handler; import android.os.Message; 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.Button; import ...
/** */ package ca.uwaterloo.gp.fmp.impl; import ca.uwaterloo.gp.fmp.Clonable; import ca.uwaterloo.gp.fmp.ConfigState; import ca.uwaterloo.gp.fmp.Constraint; import ca.uwaterloo.gp.fmp.Featur; import ca.uwaterloo.gp.fmp.Feature; import ca.uwaterloo.gp.fmp.FeatureGroup; import ca.uwaterloo.gp.fmp.FmpFactory; import ca....
package welcome; import java.util.Scanner; public class MatrixProblem { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("enter the rows"); int m=sc.nextInt(); System.out.println("enter the column"); int n=sc.nextInt(); int[][] mat...
package sunnyTestng; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.u...
package com.salmito.engine.main; import org.luaj.vm2.Globals; import org.luaj.vm2.lib.jse.JsePlatform; /** * Created by Tiago on 19/02/2015. */ public class LuaEnvironment { }
/* * Copyright 2007 Bastian Schenke 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 in writi...
package com.leetcode.oj; // 100 https://leetcode.com/problems/same-tree/ public class SameTree_100 { // Definition for a binary tree node. public static class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } public boolean isSameTree(TreeNode p, Tre...
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the l...
package com.storytime.client.lobbyroom; import de.novanic.eventservice.client.event.Event; public class UpdatePointLimitEvent implements Event { private static final long serialVersionUID = 1L; public int pointLimit = 0; public int getPointLimit() { return pointLimit; } public void s...
package com.example.Model.impl; import android.net.Uri; import android.provider.MediaStore; import com.example.Model.Media; /** * Created by Illuminati on 3/18/2017. */ public class Image implements Media{ String name; String path; @Override public String getName() { return name; } ...
package core.dao; import java.io.Serializable; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Criterion; import org.hibernate.criterion.Example; import core.dao.api.GenericDa...
package com.mrhan.db.allrounddaos; import java.lang.annotation.*; /** *注解,使用在实体类!<br/> * 表示当前实体类对应需要操作的数据表<br/> */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented public @interface DaoTable { /** * 实体类对应的表明 * @return */ String table(); /** * 实体类Class 类的信息 ...
package com.example.projectmanager.fragments; import android.support.v4.app.ListFragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import com.example.projectmanager.objects.Pers...
/* * UniTime 3.4 - 3.5 (University Timetabling Application) * Copyright (C) 2013, UniTime LLC, and individual contributors * as indicated by the @authors tag. * * 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 Fre...
package com.flute.atp.infrastructure.event; import com.flute.atp.application.ReportingApplicationService; import com.flute.atp.common.Category; import com.flute.atp.common.Rule; import com.flute.atp.common.State; import com.flute.atp.common.VerificationReport; import com.bytedance.atp.domain.model.runtime.event.*; imp...
package top.wangruns.nowcoder.sword2offer; /** * * Binary tree with pointer to parents * */ public class TreeLinkNode { int val; TreeLinkNode left; TreeLinkNode right; TreeLinkNode next; TreeLinkNode(int val) { this.val = val; } }
package partitioning.jobs; import java.io.IOException; import java.util.List; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce....
package com.neusoft.controller; import com.alibaba.fastjson.JSON; import com.neusoft.domain.*; import com.neusoft.mapper.*; import com.neusoft.response.RegRespObj; import com.neusoft.util.MailUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import or...
package com.metacube.restful.resources; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import com.google.gson.Gson; impo...
package com.zhouwei.androidtrainingsimples.flex_layoutmanager; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.ImageView; import com.google.android.flexbox.FlexboxLayoutManager; import com.zhouwei.androidtrainingsimples.R; import com.zhouwei.rvadapterlib.base.RVBaseCell; impor...
package com.dais.service; import com.dais.model.Fvirtualaddress; import java.util.List; /** * 招股金服 * CopyRight : www.zhgtrade.com * Author : liuyuanbo * Date: 2017/8/10 */ public interface FvirtualaddressService { Fvirtualaddress selectFvirtualAddress(Integer userid, Integer symbol); Fvirtualaddress se...
import com.autohome.tesla.proxy.storm.tools.ShortEncrypt; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /** * Created by Neher on 2014/6/11. */ public class test { private static final String regular = "(.*)`(.*)`(.*)`(.*)`(.*)"; public static void main(String[] arg...
package com.ifour.EmployeeManagement.Payroll; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class PayrollServiceTest { @BeforeEach void setUp() { } @AfterEach v...
package com.softvilla.slmparentportal; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v7.app.ActionBar; import android.support.v7.ap...
public class tab { public static void main(String[] args) { int[] tab = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}; double sum = 0; for (int i = 0; i < tab.length; i++) { sum = sum + tab[i]; System.out.println("Elementy tablicy " + i + " ...
import java.util.ArrayList; public class PriorityQueue1<E> { private ArrayList<Node<E>> queue = new ArrayList<Node<E>>(); public void add(E info, int p) { Node<E> n = new Node<E>(info, p); int start = 0; int end = queue.size()-1; int mid = 0; if(queue.isEmpty()) { queue.add(n); return; } ...
package com.zhujinghui.novel.dao; import com.zhujinghui.novel.pojo.Genre; import org.springframework.data.jpa.repository.JpaRepository; /** * @Author: JinghuiZhu * @Description: 小说类别DAO * @Date: Created in 15:42 2019/2/21 * @Modified By: */ public interface GenreDAO extends JpaRepository<Genre,Integer> { }
package EightOhOne; public class Q2 { public static void line(int n){ for (int i = 0; i < n; i++) { System.out.print("*"); } } public static void rectangle(int n,int m){ for (int i = 0; i < m; i++) { line(n); System.out.println(); } } public static void main(String[] args) { ...
package com.example.triviaapp.Util; import android.app.Activity; import android.content.SharedPreferences; public class Prefs { SharedPreferences sharedPreferences; public Prefs(Activity activity) { this.sharedPreferences = activity.getPreferences(activity.MODE_PRIVATE); } public void saveHi...
package miniprojet2; public interface CalculMath { public void Calcul() ; }
package com.neuedu.demo; public class Test03 { public static void main(String args[]){ // nN(); // number(); sum(); } //九九乘法表 public static void nN(){ for (int i = 1;i <= 9;i++){ for(int j =1;j <= 9;j++){ if(j <= i){ System.o...
/* * 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 dao; import common.AccessBdd; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import...
import java.awt.Dimension; import java.awt.event.*; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.concurrent.TimeUnit; import javax.swing.*; @SuppressWarnings("serial") public class connectFour extends JFrame implements MouseListener, ActionListener{ private GUI_...
package BangunDatar; public class Kubus extends Persegi { private double sisi; @Override public double getSisi(){ return sisi; } @Override public void setSisi(double sisi){ this.sisi = sisi; } public double volume(){ return (float) (Math.pow(this.sisi, 3));...
package com.tencent.mm.plugin.qqmail.ui; import android.content.Intent; import com.tencent.mm.plugin.qqmail.ui.ComposeUI.8; import com.tencent.mm.pluginsdk.permission.a; import com.tencent.mm.pluginsdk.ui.tools.FileExplorerUI; import com.tencent.mm.pluginsdk.ui.tools.l; import com.tencent.mm.sdk.platformtools.bi; impo...
package iterator; import shape.Shape; public class ShapeiteratorArray implements Iterator{ Shape[] shapes; int current=-1; public ShapeiteratorArray( Shape[] shape) { this.shapes=shape; } @Override public boolean hasNext() { if(shapes==null||current>=shapes.length-1||shapes...
package com.bbb.composite.product.details.dto; import java.io.Serializable; import java.math.BigDecimal; /** * ProductPriceCompositeDTO attributes specified here. * * @author psh111 * */ public class ProductPriceCompositeDTO implements Serializable{ /** * */ private static final long serialVersionU...
package cn.czfshine.network.project.cs.nioclient; import cn.czfshine.network.project.cs.Client; import cn.czfshine.network.project.cs.dto.Login; import cn.czfshine.network.project.cs.dto.Message; import lombok.extern.slf4j.Slf4j; import sun.nio.ch.SelectionKeyImpl; import java.io.IOException; import java.net.InetAddr...
package com.brainmentors.apps.configdemo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Component; @Component public class A { @Autowired @Qualifier("obj") private IB obj; public IB getObj() { r...
package com.example.golden_shoe; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class GoldenShoeApplicationTests { @Test void contextLoads() { } }
package com.tencent.mm.plugin.webview.fts.ui; import com.tencent.mm.sdk.platformtools.bd; class b$5 extends bd<Boolean> { final /* synthetic */ int fKG; final /* synthetic */ b pQL; public b$5(b bVar, Boolean bool, int i) { this.pQL = bVar; this.fKG = i; super(1000, bool, (byte) 0...
package com.tencent.mm.ui.tools; import android.os.Message; import com.tencent.mm.sdk.platformtools.ag; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; class ShareImgUI$3 extends ag { final /* synthetic */ ShareImgUI uBN; ShareImgUI$3(ShareImgUI shareImgUI) { th...
package org.gooru.dap.jobs.processors.utils; import org.apache.poi.ss.usermodel.Cell; public class UtilHelper { public static final String getCellValue(Cell cell) { if (cell != null) { switch (cell.getCellTypeEnum()) { case BOOLEAN: return String.valueOf(cell.getBo...
/* A balanced number is a 3-digit number whose second digit is equal to the sum of the first and last digit. Write a program which reads and sums balanced numbers. You should stop when an unbalanced number is given. Input Input data is read from the standard input Numbers will be given Each one will be on a separate l...
package littleservantmod.client.gui.toptab; import littleservantmod.entity.EntityLittleServant; public abstract class AbstractServantTab extends AbstractTab { protected EntityLittleServant servant; public AbstractServantTab(EntityLittleServant servant) { this.servant = servant; } }
package busterminal; import java.util.concurrent.Semaphore; public class WaitingArea3 { private static final Semaphore semA3 = new Semaphore(10, true); public synchronized void enterA3(customer cust){ if(semA3.availablePermits() < 1) { System.out.p...
package com.spbsu.flamestream.core.graph; import java.io.Serializable; public interface SerializableRunnable extends Runnable, Serializable { }
package com.kh.efp.band.model.vo; import java.io.Serializable; import java.sql.Date; import org.springframework.stereotype.Repository; @Repository public class AttBoard extends Board implements Serializable { private String mName; private int fid; private int mid; private String forigin_name; priva...
package com.grability.test.dlmontano.grabilitytest.comparator; import com.grability.test.dlmontano.grabilitytest.model.Application; import java.util.Comparator; /** * Created by Diego Montano on 14/06/2016. */ public class ApplicationComparatorByName implements Comparator<Application> { @Override public in...
package com.yc.test; import java.util.List; import javax.annotation.Resource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.Sp...