text
stringlengths
10
2.72M
package com.huailai.club.huailaiclub.view; import android.content.Context; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.view.View; /** * Created by lenovo on 2017/3/22. */ public class RectangleView extends View{ private Context context; public RectangleView(Context ...
package com.irozon.sneaker; import android.app.Activity; import android.content.Context; import android.graphics.Rect; import android.graphics.drawable.GradientDrawable; import android.view.View; import android.view.Window; /** * Created by hammad.akram on 2/27/18. */ class Utils { /** * Returns status b...
package com.netcracker.DTO; public class UserModerDto { private Long userId; private String fio; private String email; private String phoneNumber; private Long numberOfComplaints; public Long getIsBan() { return isBan; } public void setIsBan(Long isBan) { this.isBan = ...
/* * Copyright (c) 2017-2020 Peter G. Horvath, All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
package com.housesline.utils; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; /** * 数据库链接工具类 * @author cdh * */ public class JDBCUtils { //创建数据库使用的默认数据源 public static final String DEFAUL...
package com.yang.Admin; /** * Created by GY on 12/1/2016. */ import java.util.ArrayList; import java.util.Iterator; import java.util.Map; import com.yang.*; import com.yang.Beans.Dish; import com.yang.Dao.DishDao; import org.apache.struts2.interceptor.SessionAware; import com.opensymphony.xwork2.ActionSupport; p...
package DataStorageLayer; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; public class DAOEpisode { ResultSet resultSet; // String matching the Database Query's private static final String TABLE = "Episode"; public static final String TITLE = "Title"; public st...
package com.example.myaccountmechanism; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; /** * This is used if the user invokes the "Add Account" dialog. * Instantiate the Authenticator and return the corresponding IBinder. * @author Ian Darwin * */ p...
package io.github.ihongs.normal.serv; import io.github.ihongs.action.ActionDriver; import io.github.ihongs.action.serv.AuthAction; import io.github.ihongs.action.serv.ConfAction; import io.github.ihongs.action.serv.LangAction; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http...
package lesson7.classfiles; import java.util.LinkedList; //Класс обхода графа в глубину public class DepthFirstPaths { private boolean[] marked;//маркер посещен(visited) private int[] edgeTo;//массив откуда пришли к этой вершине private int source;//начальная вершина обхода графа public DepthFirstPat...
package cn.itcast.core.controller.order; import cn.itcast.core.entity.PageResult; import cn.itcast.core.pojo.order.Order; import cn.itcast.core.pojo.order.OrderItem; import cn.itcast.core.service.order.OrderItemService; import cn.itcast.core.service.order.OrderService; import com.alibaba.dubbo.config.annotation.Refere...
package pp; import hlp.MyHttpClient; import pp.model.HippoHorse; import pp.model.HippoTour; import pp.service.GlRuService; import pp.service.GlRuServiceImpl; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List;...
package com.metoo.modul.app.game.view.tree; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import j...
package com.crmiguez.aixinainventory.service.location; import com.crmiguez.aixinainventory.entities.Location; import com.crmiguez.aixinainventory.repository.LocationRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.sprin...
package com.example.datatocursor; import android.database.AbstractCursor; import android.database.Cursor; /** * Provide a Cursor from a fixed list of data * column 1 - _id * column 2 - filename * column 3 - file type */ public class DataToCursor extends AbstractCursor { private static final String[] COLUMN_NAM...
import java.util.ArrayList; import java.util.List; /* * 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. */ /** * * @author listya */ public class Pipe<T> { private List<T> lists; ...
package model; import java.sql.Statement; import java.sql.ResultSet; import java.util.ArrayList; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.DriverManager; public class ProjectDAO { // Connection 객체를 생성해줌. -> 추후 dao 모두 만들고 나면 connection pool로 교체하자. private Connection connectDB() { ...
package L4_June19.OOPS_Story1; public class Person { String name = "xyz"; int age = 45; public Person() { } public Person(String name, int age) { this.name = name; this.age = age; } public void setAge(int age) throws Exception { if (age < 0) { throw new Exception("Invalid age."); } this.age ...
package kr.co.magiclms.domain; public class Transaction { }
import java.awt.*; import java.awt.event.*; import javax.swing.*; class form4 extends JFrame implements ActionListener { JLabel l1,l2; JTextField t1,t2; JButton b1,b2; String dep; double ecode; public void de() { l1=new JLabel("Emp-code"); l2=new JLabel("Department"); t1=new JTextField(); t2=new JTextFiel...
package com.neu.spring.pojo; import java.util.HashSet; import java.util.Set; import javax.persistence.AssociationOverride; import javax.persistence.AssociationOverrides; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import j...
package com.allmsi.sys.service; /** * 系统登录和退出操作 * @author sunnannan * */ public interface WebLoginService { Object login(String loginName,String password); Object logout(String token); }
/** * Copyright (C) 2008 Atlassian * * 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 t...
package com.shan.tech.javlib.consts; public class ErrorMessage { public static final String NO_FOUND = "There is no %s found by %s."; }
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.neuron.mytelkom.model; import java.io.Serializable; public class MyTicketItem implements Serializable { private static fin...
package Sorters; public class BogoSort extends Sorter{ public BogoSort(int[] array){ super(array); } @Override protected void sort(int start, int finish) { while(!isSorted()) { randomize(); } } private void randomize(){ int[] temp = array.clone...
package com.beike.wap.service; import java.util.List; import com.beike.wap.entity.MMerchant; /** * <p> * Title:品牌或分店Service * </p> * <p> * Description: * </p> * <p> * Copyright: Copyright (c) 2011 * </p> * <p> * Company: qianpin.com * </p> * * @date 2011-09-23 * @author k.w * @...
package com.trump.auction.cust.domain; import lombok.Data; import lombok.ToString; import java.util.Date; /** * 用户实体 * @author wangbo */ @Data @ToString public class UserInfo { private Integer id; private String userType; private String userPhone; private String realName; private String idNumb...
package com.legaoyi.storer.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.lega...
/** * This class, the driver class, contains the main method of the program. In an attempt to make the program * more modular and the main method simpler, the main method makes use of the "InputProcessor" class to * process the input in the text file, rather than processing it solely in the main method itself. * ...
package com.catCake.cakeonline.admin.entity; 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="cakeSize") public class CakeSize { pri...
package Strategy; public class AccountPremiumStrategy extends CableTVStrategy{ private static double serviceCharge = 0.2; private static double valueAdditionalChannel = 2; @Override public double invoice(double numbersChannels, double valueChannels) { return (numbersChannels * valueChannels * this.valueAd...
/* * Copyright 2002-2023 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.app.AdminUI.ControlsUI; import com.app.DBConnection; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; public class DeleteScreen extends JFrame { pri...
package com.xld.timer.test; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** * @descript 定时器测试 * @author xld * @date 2019-09-29 4:01 PM */ @Component public class TestTimer { @Scheduled(cron = "0/5 * * * * ?") public void test(){ Sys...
package by.htp.carparking.web.action.impl; //import static by.htp.carparking.web.util.WebConstantDeclaration.*; //import static by.htp.carparking.web.util.HttpRequestParamValidator.*; //import static by.htp.carparking.web.util.HttpRequestParamFormatter.*; import javax.servlet.http.HttpServletRequest; import ...
package com.ecej.nove.autoconfigure.redis; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import com.ecej.nove.redis.core.RedisAutoConfiguration; import com.ecej.nove.redis.u...
package reportExtends; import java.io.IOException; import com.aventstack.extentreports.ExtentReporter; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.MediaEntityBuilder; import com.aventstack.extentreports.reporter.ExtentH...
package com.jgchk.haven.data.model.db; import android.arch.persistence.room.Entity; import android.arch.persistence.room.Ignore; import android.arch.persistence.room.PrimaryKey; import android.location.Location; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.jgchk.haven.dat...
package com.universidadeafit.appeafit.Views; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.view.View; import com.universidadeafit.a...
/* * 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 services; import javax.swing.JOptionPane; /** * * @author boc */ public class Alerts { public static v...
package Problem1; public class ArrayDictionary implements Dictionary { private KVEntry[] entries; public ArrayDictionary(int capacity) { entries = new KVEntry[capacity]; } @Override public boolean isEmpty() { // NOT IMPLEMENTED YET return false; } private int hash...
package com.example.coolcloudweather; public class Hour { private String degree; private String time; private String text; public String getDegree() { return degree; } public void setDegree(String degree) { this.degree = degree; } public String getTime() { ...
package Problem_2156; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Inte...
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="unitofmeasure001mb") public class...
package com.agamidev.newsfeedsapp.Interfaces; import com.agamidev.newsfeedsapp.Models.NewsModel; public interface RecyclerItemClickListener { void onItemClick(NewsModel news); }
package com.vicutu.batchdownload.dao; import com.vicutu.batchdownload.domain.DownloadDetail; public interface DownloadDetailDao { void saveOrUpdateAccessDetail(DownloadDetail downloadDetail); }
package com.example.administrator.competition.fragment.my; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.example.administrator.competition.R; import com.yidao.module_lib.base.BaseView; import com.yidao.module_lib.manager.ViewManager; i...
package quiz03; public class MainClass { public static void main(String[] args) { // 월급쟁이 SalaryMan staff1 = new SalaryMan("james" , 300); SalaryMan staff4 = new SalaryMan("brown" , 300); //System.out.println(staff1.getName()); //System.out.println(staff1.getPay()); // 판매직 SalesMan s...
class Perulangan { public static void main(String[] args) { for(int i = 1; i <= 10; i++) { System.out.println(i); } int a=1; while(a <= 10) { System.out.println(a); a = a +1; // a++; } int b = 1; do { ...
package Models; public class EmployeeRole { private String SSN; private String title; private double salary; public EmployeeRole(String SSN, String title, double salary) { this.SSN = SSN; this.title = title; this.salary = salary; } public String getSSN() { return SSN; } public ...
import gtfs.GtfsData; import network.datasource.CategoryAPI; import network.datasource.EventAPI; import network.datasource.impl.CategoryAPIImpl; import network.datasource.impl.EventAPIImpl; import network.model.response.CategoryResponse; import network.model.response.EventResponse; import org.onebusaway.csv_entities.sc...
package com.jgw.supercodeplatform.project.hainanrunda.dto.batchinfo; import io.swagger.annotations.ApiModelProperty; public class PlantingBatchDto { @ApiModelProperty(value = "种植批次") private String traceBatchName; private String traceBatchInfoId;//唯一id @ApiModelProperty(value = "种植产品") private ...
package com.sunny.model; /** * Created by Sunny on 8/2/2019. */ import lombok.Data; import javax.persistence.*; import java.sql.Date; @Data//a Lombok annotation to create all the getters, setters, equals, hash, and toString methods, based on the fields @Entity @Table(name = "BOOKING") public class...
/* * Copyright 2002-2023 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.PriorityQueue; public class FriendSuggestion { private static class Impl { // Number of nodes int n; // adj[0] and cost[0] store the initial graph, adj[1] and cost[1] store the reversed graph. ...
package com.cosplay.demo.mvp.presenter; import android.os.Handler; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringRequest; import com.cosplay.demo.mvp.bean.FHnews; import com.cosplay.demo.mvp.view.IView.IFHnewsView; import com.google.gson.Gson; impo...
package yinq.situation.fragments; import android.os.Bundle; import android.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import android.widget.Toast; import com.google.gson.Gson; import com.yinq.cherrydialyrecord.R; import ...
package liu.java.util.stream.classes; public class Test { }
package com.aof.core.persistence.hibernate; public class LookupException extends Exception { public LookupException(String message, Throwable cause) { super(message, cause); } public LookupException(String message) { super(message); } }
package com.dhc.openglbasic; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.nio.ShortBuffer; import java.util.ArrayList; import javax.mi...
/* v models se vytvareji jednotlive tridy podle kterych si muzu vytvaret objekty */ /* zde vytvorime objekt Sin */ package models; import org.openqa.selenium.WebElement; import java.util.List; public class Sin { private String title; private String author; private String message; private List<Strin...
package com.redsun.platf.entity; /** * <p>Title : com.webapp </p> * <p>Copyright : Copyright (c) 2010</p> * <p>Company : FreedomSoft </p> * * <pre> * ----------------------------------------------------------------------------- </pre> * Program ID : @See com.redsun.platf.entity.acc...
/* * Copyright © 2020-2022 ForgeRock AS (obst@forgerock.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...
package by.epam.gmail.automation.pages; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.openqa.selenium.WebDriver; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.PageFactory; import by.epam.gmail.automation.utils.ExplicitWait; import ...
package com.example.patricemp.scrumme; import android.content.Context; import android.content.Intent; import android.os.Parcelable; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v4.app.Fragmen...
import java.time.*; public class TimeUtil { public static void main(String[] args) { System.out.println("utc " + System.currentTimeMillis()); System.out.println("msk " + LocalDateTime.now().toInstant(ZoneOffset.UTC).toEpochMilli()); } }
package com.memberComment.model; import java.util.List; public class TestJDBC { public static void main(String[] args) { MemberCommentDAO_interface dao = new MemberCommentDAO(); //All // List<MemberCommVO> list = dao.selectAll(); // for(MemberCommVO memberCommVO : list) { // System.out.println(memberCom...
package video.api.android.sdk.domain; public class SourceVideo { private String type; private String uri; // private String status; // private int filesize; // private ArrayList<ReceivedBytes> receivedBytes; public SourceVideo() { } public SourceVideo(String type, String uri/*, String st...
/* * 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 human; /** * * @author hugo */ public class HumanDemo { public static void main(String[] args) { Human number...
package com.whg.vrxcompare; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.whg.vrxcompare.FileUtil.FileType; public class Main { private static final String INPUT_PROPERTY_LIST = "C:/Rajarshi/MyLab/...
package edu.mum.sonet.repositories; import edu.mum.sonet.models.User; import org.springframework.data.jpa.repository.JpaRepository; import edu.mum.sonet.models.UserNotification; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.ste...
package com.pattern.cglib.aop; import org.omg.PortableInterceptor.RequestInfo; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; public class DynamicProxyHandler implements InvocationHandler { private RealPayment realPayment; private Object proxiedObject; public DynamicProxy...
package com.cs261.output; import com.cs261.analysis.Node; import java.io.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; public class AlertPrinter { private List<Node> nodes; private int id; private String type; private String[] header...
package net.awesomekorean.podo.challenge; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.core.content.ContextCompat; import androidx.fragment.app.FragmentPagerAdapter; im...
package com.flushoutsolutions.foheart.globals; /** * Created by Manuel on 18/08/2014. */ public class Config { public static String app_id = ""; public static int user_id; public static int user_pass; public static final String rest_auth= ""; public static final String rest_apps = ""; ...
package no.nav.vedtak.felles.integrasjon.organisasjon; public interface OrgInfo { OrganisasjonEReg hentOrganisasjon(String orgnummer); <T> T hentOrganisasjon(String orgnummer, Class<T> clazz); String hentOrganisasjonNavn(String orgnummer); JuridiskEnhetVirksomheter hentOrganisasjonHistorikk(String ...
package com.ut.module_msg; import android.arch.lifecycle.ViewModelProviders; import android.content.Intent; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import com.alibaba.android.arouter.facade.annotation.Route; import com...
package lecturesharingproject.lecturesharing.controller; import lecturesharingproject.lecturesharing.entity.Lecture; import lecturesharingproject.lecturesharing.entity.Teacher; import lecturesharingproject.lecturesharing.entity.University; import lecturesharingproject.lecturesharing.entity.User; import lecturesharingp...
package com.qa.test; import org.testng.annotations.Test; import org.testng.annotations.Test; import com.qa.core.Base; public class Login extends Base { @Test public void TC001() { browserSetup(); passSiteURL(); } }
package be.odisee.se4.hetnest.dao; import be.odisee.se4.hetnest.domain.Ingredient; import org.springframework.data.repository.CrudRepository; public interface IngredientRepository extends CrudRepository<Ingredient, Long> { }
package com.sherchen.likewechatphotoviewer.ui; import android.app.Application; /** * Created by dave on 2017/1/10. */ public class MyApplication extends Application{ }
package com.zhku.my21days.controller; import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.List; import javax.annotation.Resource; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet...
package chapter01; /* Write a program that reads in two integers between 0 and 4294967295, stores them in int variables, and computes and displays their unsigned sum, difference, product, quotient, and remainder. Do not convert them to long values. */ import java.util.Scanner; public class ex07 { public stati...
import java.util.Scanner; public class Histogram { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.nextLine()); double p1 = 0; double p2 = 0; double p3 = 0; double p4 = 0; double p5 = 0; ...
package com.jgermaine.fyp.rest.service.impl; import java.util.HashMap; import java.util.List; import javax.persistence.EntityExistsException; import javax.persistence.NoResultException; import javax.persistence.NonUniqueResultException; import javax.persistence.PersistenceException; import org.springframework.beans....
package nightgames.skills; import nightgames.characters.Character; import nightgames.combat.Combat; import nightgames.combat.Result; import nightgames.stance.Mount; import nightgames.stance.Stance; public class CommandDown extends PlayerCommand { @Override public boolean usable(Combat c, Character target) { ...
public class SubMatrixThread extends Thread { GaussianElimination gaussianElimination; int innerRow; int row; public SubMatrixThread(GaussianElimination gaussianElimination, int innerRow, int row) { this.gaussianElimination = gaussianElimination; this.innerRow = innerRow; this....
package com.Thrift_Shop; import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import ...
package com.example.smklabusta.Api; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class LoginRetrofit { public static Retrofit retrofit = new Retrofit.Builder() .baseUrl("http://192.1...
package com.jd.jarvisdemonim.ui.testadapteractivity; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.os.RemoteException; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.jd.jarvisdemonim.R; impo...
package com.example.consultants.week4daily2.model.data.remote; import com.example.consultants.week4daily2.model.githubresponse.GithubResponse; import com.example.consultants.week4daily2.model.githubresponse.RepoResponse; import java.util.List; import io.reactivex.Observable; import retrofit2.Call; import retrofit2.h...
package Arrays; public class NthBiggest { public static void main(String[] args) { ArrayOperation ao = ArrayOperation.getInstance(); int[] a = ao.readElement(); System.out.println("Entered array elements are: "); ao.dispArr(a); int biggest = ao.nthBiggest(a, 3); System.out.println("3rd biggest element...
package com.github.iam20.device.model; public class TempHumidBuilder { private TempHumid tempHumid; public TempHumidBuilder() { tempHumid = new TempHumid(); } public TempHumidBuilder celcius(double value) { tempHumid.setCelsius(value); return this; } public TempHumidBuilder humid(double value) { tempHu...
package com.lenovohit.ssm.base.utils; import java.util.HashMap; import java.util.List; import java.util.Map; import com.lenovohit.core.exception.BaseException; import com.lenovohit.core.manager.GenericManager; import com.lenovohit.core.utils.SpringUtils; import com.lenovohit.ssm.base.model.Sequence; public class Sequ...
package com.github.bot.curiosone.core.nlp.tokenizer.interfaces; import com.github.bot.curiosone.core.nlp.tokenizer.LexType; import com.github.bot.curiosone.core.nlp.tokenizer.PosType; import edu.mit.jwi.item.IWordID; import java.util.List; import java.util.Map; /** * Syntact/Semantic attribute of a word. * * @auth...
package com.vti.backent; import java.util.Scanner; public class Exercise_1 { public void question_1() { System.out.println("Question 1:"); float luong1; float luong2; luong1 = (float) 5240.5; luong2 = (float) 10970.055; System.out.println("Lương Account 1: "+luong1+" Và Lương Account 2: "+l...
import java.util.*; public class HashUnique { public static void main() { Scanner sc=new Scanner(System.in); HashMap<Integer,Boolean> map=new HashMap<>(); int n=sc.nextInt(); int c=n; ArrayList<Integer> arr=new ArrayList<>(); while(c!=0) { arr....
package egovframework.com.file.excel.download; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel....
package eu.bittrade.steem.steemstats.dao; import java.io.Serializable; /** * @author <a href="http://steemit.com/@dez1337">dez1337</a> */ public interface RecordDao<T, I extends Serializable> extends GenericDao<T, I> { }