text
stringlengths
10
2.72M
package com.mtsoft.animal.activity; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.ImageView; im...
package com.bramgussekloo.projectb.Activities.Login; import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.TextInputEditText; import android.support.design.widget.TextInputLayout; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import ...
package org.bca.training.spring.core; import java.util.List; import org.bca.training.spring.core.beans.data.Model; import org.bca.training.spring.core.beans.read.Datasource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.AnnotationConfigApplicationContext; ...
package rso.dfs.dummy.server; import java.util.ArrayList; /** * @author Adam Papros <adam.papros@gmail.com> * * */ public class Storage { private ArrayList<Data> data; public Storage() { data = new ArrayList<Data>(); } public Storage(ArrayList<Data> data) { super(); this.data = data; } public Arr...
package com.wifisec; import android.annotation.TargetApi; import android.content.BroadcastReceiver; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; imp...
package com.example.tecomca.mylogin_seccion05.Fragments.InstructionsFragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v...
package server; import Utils.Message; import tanks.model.RectModel; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketException; import java.util.HashMap; import java.util.LinkedHashMap; public class Receiver implements Runnable { private final Link...
package game.states; import java.awt.Graphics; import game.worlds.World; /** * Estado de un juego mientras se lo est� jugando. */ public class GameState extends State { private static GameState instance; @Override public void update() { World.getInstance().update(); } @Override public void draw(Graphic...
package zseurekaclient.ll.service.impl; import zseurekaclient.ll.bean.ConsultContent; import zseurekaclient.ll.service.UserService; import java.util.List; public class UserServiceImpl implements UserService { @Override public List<ConsultContent> queryContents() { return null; } }
/* * 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...
/* * (C) Mississippi State University 2009 * * The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is * a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries * and wapplets are ...
package com.example.demo.mongodb.model; import java.util.List; public class Preguntas { private String pregunta; private List<String> listaRespuestas; private int respuesta_correcta; private int puntuacion_pregunta; public Preguntas() { } public String getPregunta() { return pregunta; } public ...
package app; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; public class PersistanceStorage { private static String dimensionsFile = "data/dimensions"; public static void storeDimensions(Dimension dimension) throws ...
package io.breen.socrates.model.event; import io.breen.socrates.model.wrapper.SubmittedFileWrapperNode; import io.breen.socrates.util.ObservableChangedEvent; /** * The event that is generated by a SubmittedFileWrapperNode when it changes its "completed" state * --- in other words, if it changes from not complete to...
package me.okx.rankup.placeholders; import me.okx.rankup.Rankup; import me.okx.rankup.Utils; import me.okx.rankup.data.Rank; import me.okx.rankup.exception.NotInLadderException; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Player; import java.text.DecimalFormat; import java.util.Ma...
package com.apap.tugas1_apap.controller; import java.util.HashMap; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.Mode...
package com.zqs.model.message.e; /** * 手机验证码类别 * * @author qiushi.zhou * @date 2017年7月20日 下午12:52:49 */ public interface EMessageStatus { /** 注册 */ int REGISTER_CODE = 1; /** 忘记密码 */ int FORGET_PWD_CODE = 2; }
package prosjektoppgave.gui; import prosjektoppgave.controller.Controller; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.IOException; /** * The main window of th...
/** * This code compares version number * Problem statment: Compare two version numbers version1 and version2. 1. If version1 > version2 return 1, 2. If version1 < version2 return -1, 3. otherwise return 0. Reference: https://github.com/varunu28/InterviewBit-Java-Solutions/blob/master/Strings/...
/* ComplexRuleTemplate -- a class within the Cellular Automaton Explorer. Copyright (C) 2005 David B. Bahr (http://academic.regis.edu/dbahr/) 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 Foundati...
package com.wannabe.ontop; public class Map { private String[] MAP = new String [] { "............", "............", "............", "............", "............", "------------", "############" }; private int heig...
package com.iodgram.smsticket; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import...
package net.leloubil.mcpwn.carvinglabs; import com.google.gson.annotations.SerializedName; import lombok.Getter; import java.util.ArrayList; import java.util.Date; @Getter public class CLReward { @SerializedName("burnProducts") public ArrayList<CLProduct> burnProducts = new ArrayList<>(); @SerializedName...
package com.altmedia.billboard.service; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.HashMap; import java.util.List; import java.util.Map; import com.altmedia.billboard.entity.Listing; import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; import com.amazonaws.s...
package com.zarokima.mastersproject.game; import java.util.ArrayList; import org.andengine.engine.handler.IUpdateHandler; import org.andengine.entity.scene.Scene; import org.andengine.entity.sprite.AnimatedSprite; import org.andengine.extension.physics.box2d.PhysicsConnector; import org.andengine.extension.phys...
package com.najasoftware.fdv.service; import android.content.Context; import android.util.Log; import com.najasoftware.fdv.model.Parametro; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import livroandroid.lib.utils.FileUtils; /** * Created by Lemoe...
package com.example.security; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import o...
package com.openfarmanager.android.fragments; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.RadioGroup; import com.openfarmanager.android.R; import com.openfarmanager.android.utils.ParcelableWrapper; import static com.openfarmanager.android.utils.Extensions....
package com.explore.service.Impl; import com.explore.common.ServerResponse; import com.explore.dao.*; import com.explore.pojo.*; import com.explore.service.IManageService; import com.explore.dao.QuartersMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service...
/** * Copyright (c) 2004-2021 All Rights Reserved. */ package com.adomy.mirpc.samples.simple.consumer; import java.util.concurrent.TimeUnit; import com.adomy.mirpc.core.remoting.invoker.MiRpcInvokerFactory; import com.adomy.mirpc.core.remoting.invoker.enums.InvokeTypeEnum; import com.adomy.mirpc.core.remoting.invok...
package br.edu.com.entities; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; @Entity public class Atividade { @Id @GeneratedValue private Long id; private String Descricao; @ManyToOne private Discipli...
package com.gxtc.huchuan.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.widget.ImageView; import android.widget.TextView; import com.gxtc.commlibrary.base.BaseRecyclerAdapter; import com.gxtc.commlibrary.base.BaseRecyclerTypeAdapter; import com.gxtc.commlibrary....
package com.rohraff.netpccontactapp.mapper; import com.rohraff.netpccontactapp.model.Contact; import com.rohraff.netpccontactapp.model.ContactDao; import org.apache.ibatis.annotations.*; import java.util.List; import java.util.Optional; @Mapper public interface ContactMapper { @Insert("INSERT INTO CONTACTS (fir...
package br.com.kessel.test; import br.com.kessel.controller.LevelController; public class TestClassLevel { public static void main(String[] args) { LevelController lc = new LevelController(); lc.read(); } }
package selenium_web.Practice; import org.junit.jupiter.api.Test; //import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class StartSelenium { @Test public void startSelenium() { WebDriver webDriver = new Chr...
package com.weili.dao; import java.sql.Connection; import java.sql.SQLException; import java.util.Date; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import com.shove.data.DataException; import com.shove.data.DataSet; import com.shove.util.BeanMapUtils; import ...
package com.prakriti.favlistapp; import android.content.Context; import android.content.SharedPreferences; import androidx.preference.PreferenceManager; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Map; public class CategoryManager { // save data to Shared Preferen...
import java.util.Scanner; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.FileReader; import java.io.BufferedReader; import java.io.File; import java.io.PrintWriter; import javax.swing.*; import java.awt.Color; i...
package MainRuns; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.math.BigDecimal; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java...
package com.standardchartered.controllers; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.sp...
package org.point85.domain.proficy; import java.util.List; import com.google.gson.annotations.SerializedName; /** * A serialized list of tag data * */ public class TagValues extends TagError { @SerializedName(value = "Data") private List<TagData> tagData; public List<TagData> getTagData() { return tagData; ...
package com.flowedu.controller; import com.flowedu.util.Util; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; /** * Created by jihoan on 2...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cput.codez.angorora.eventstar.model; import java.util.Calendar; import java.util.List; /** * * @author allen */ public final class Meeting { private String id; private String eventName; private S...
package in.anandm.oj.model; import in.anandm.oj.repository.EvaluationResultRepository; import in.anandm.oj.repository.SolutionRepository; import in.anandm.oj.repository.TestCaseRepository; import in.anandm.oj.service.PathHelper; import in.anandm.oj.utils.FileUtils; import java.io.BufferedReader; import java.io.Buffer...
package camera.toandoan.com.cameraproject; import android.Manifest; import android.app.Activity; import android.content.pm.PackageManager; import android.hardware.Camera; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.util.Log; import a...
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * 给定一个整数数组,返回两个数字的索引,使得它们相加到一个特定的目标。 * * @author song.liu@ele.me * @version v1.0,2017-02-07 17:01 */ public class TwoSum { public static void main(S...
package lib.basenet.okhttp.upload_down; import java.io.Serializable; /** * 断点下载文件信息 */ public final class DownloadFileInfo implements Serializable { //状态值 //下载成功:完成 public static final int SUCCESS = 4; //下载失败:网络错误 public static final int FAILURE = 1; //下载中:下载中 此状态不缓存 public static final ...
package work.binder.ui; import java.util.List; import java.util.Map; import com.vaadin.event.FieldEvents; import com.vaadin.event.FieldEvents.TextChangeEvent; import com.vaadin.ui.TextArea; public class PackageCommands extends LayoutReloadComponent { private static final long serialVersionUID = 40354...
package escolasis.modelo.dao.interfaces; import java.util.List; import escolasis.modelo.PapelPessoa; public interface PapelPessoaDao { public void salvar(PapelPessoa papelPessoa); public List<PapelPessoa> listar(); public PapelPessoa getPapelPessoa(Long idPapelPessoa); }
package Matrimony.matrimonyart; import java.awt.Robot; import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; import java.io.File; import java.io.FilenameFilter; import java.io.IOException; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.List; import java.util.Set; im...
/* * 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 View; import java.util.Date; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.sw...
package com.tianwotian.mytaobao.bean; /** * Created by user on 2016/9/2. */ public class CheckMobile { String error; public String getError(){ return error; } }
package com.esrinea.dotGeo.tracking.model.component.alertLiveFeed.dao; import com.esrinea.dotGeo.tracking.model.common.dao.GenericDAO; import com.esrinea.dotGeo.tracking.model.component.alertLiveFeed.entity.AlertLiveFeed; public interface AlertLiveFeedDAO extends GenericDAO<AlertLiveFeed> { AlertLiveFeed fin...
package com.duanc.model.dto; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import org.springframework.stereotype.Component; import com.duanc.utils.Pagination; @Component("phoneDTO") public class PhoneDTO implements Serializable{ private static final long serialVersion...
/** * Created by Александр on 03.11.2016. */ public class Application { public static void main(String[] args) { System.out.println("Hello World !!!"); } }
package greedy; import java.util.Arrays; /** * Created by gouthamvidyapradhan on 28/06/2017. * <p> * There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it's horizontal, y-coordinates don't mat...
package DemoRest.WebApp.repository; import DemoRest.WebApp.model.Bill; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import org.springframework.stereotype.Service; import java.util.List; @Service public interface BillRepository extends JpaRepository<B...
package com.yf.bigdata.kafka.hollysys.factory; import com.yf.bigdata.kafka.hollysys.listener.KafkaProducerMessageListener; import org.apache.commons.lang3.StringUtils; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.clients.producer.RecordMetadata; import org.apache.kafka.common.serial...
package cttd.cryptography.demo; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import cttd.cryptography.util.CommonUtils; public class ShaHashing { public static String hash(String input) { byte[] dataInput = CommonUtils.convertStringToBytes(input); return hash(da...
package com.android.myvirtualnutritionist.ui.diary.nutrition; import android.graphics.Color; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment;...
package com.ism.projects.th; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; import com.ism.common.util.Utility; public class THISCardStatementQuery extends EKLStatementQueryService{ protected String startDate = null; pro...
package org.digdata.swustoj.hibernate.entiy; /** * UserAuth entity. @author MyEclipse Persistence Tools */ public class UserAuth implements java.io.Serializable { // Fields private Integer id; private String url; private String description; // Constructors /** default constructor */ public UserAuth() { ...
import java.io.*; import java.net.Socket; public class SocketInstance extends Socket implements Runnable{ public Socket socket; private BufferedReader bufferedReader; SocketInstance(Socket sk){ this.socket = sk; } @Override public void run() { Boolean connectFlag = true; ...
package com.self.user.sharedpreferencesdemo; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class ActivityB extends AppCompatActivity { private TextView tv_gre...
package L2_EstruturaDeDecisao; import java.util.Scanner; public class Exercicio_19 { public static void main(String[] args) { int num; int unidade = 0; int dezena = 0; int centena = 0; int minhar = 0; System.out.println("Digite um numero menor que 1000"); Sc...
package com.example.chat.service; import java.util.Optional; public interface ChatRoomService { Optional<String> getChatId(String senderId, String recipientId, boolean createIfNotExist); }
package 笔试题目.剑指offer.数组中前k小的数; import java.util.*; public class Solution { public ArrayList<Integer> GetLeastNumbers_Solution(int [] input, int k) { if (input == null || input.length < k){ return new ArrayList<>(); } buildMinHeap(input); int n = input.length; ...
package com.example.demo.util; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.MockitoAnnotations; impor...
package com.springD.application.system.controller; import com.springD.application.system.entity.User; import com.springD.application.system.service.UserPermissionService; import com.springD.framework.shiro.ShiroUser; import com.springD.framework.utils.Identities; import com.springD.framework.utils.UserUtils; import co...
package com.evature.evasdk.appinterface; import com.evature.evasdk.EvaChatApi; /** * Created by iftah on 22/02/2016. */ public interface EvaLifeCycleListener { void onPause(); void onResume(EvaChatApi chatScreen); }
/* * 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.b.test.common; import org.apache.commons.lang.math.RandomUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.text.MessageFormat; import java.text.SimpleDateFormat;...
// inherit class ExerciseI6 public class ExerciseI8 extends ExerciseI6 { // Euclidean algorithm without the use of modulo function public void calc() { while(this.getM() != this.getN()) { while(getM() > getN()) { setM(getM() - getN()); } while(getN() > getM()) { ...
package mc.kurunegala.bop.model; public class NeedDoc { private Integer idneeddoc; private Integer needdocPriority; private Integer applicationCatagoryIdapplicationCatagory; private Integer doccatIddoccat; public Integer getIdneeddoc() { return idneeddoc; } public void setIdnee...
package me.libraryaddict.disguise; import java.util.Arrays; import java.util.List; import me.libraryaddict.disguise.disguisetypes.Disguise; import static me.libraryaddict.disguise.disguisetypes.DisguiseType.*; import me.libraryaddict.disguise.disguisetypes.DisguiseType; public class DisallowedDisguises { public ...
package se.kth.kthfsdashboard.util; import java.text.DecimalFormat; import junit.framework.TestCase; /** * * @author Hamidreza Afzali <afzali@kth.se> */ public class FormatterTest extends TestCase { Formatter f = new Formatter(); final Long K = 1024L; final Long M = K * K; final Long G = M * K; ...
package com.eme.aelegant.model.net; import com.eme.aelegant.model.net.api.ZhihuApi; import com.eme.aelegant.model.net.converter.FastJsonConverterFactory; import com.facebook.stetho.okhttp3.StethoInterceptor; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; import ...
package com.madrapps.dagger.models; import dagger.multibindings.Multibinds; import javax.inject.Inject; import java.util.Map; public class Alley implements Road { public final Map<String, Vehicle> vehicleMap; public final Vehicle vehicle; @Inject Alley(Map<String, Vehicle> vehicleMap, Truck truck) ...
package com.aisino.invoice.xtsz.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.aisino.invoice.xtjk.po.FwkpQyxx; import com.aisino.invoice.xtjk.po.FwkpXtjkSearch; /** * @ClassName: FwkpQyxxMapper * @Description: * @date 2017年5月22日 下午6:37:11 * @Copyright 2017 航天信息股份有限公司...
package com.scf.module.security.interceptor; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import ...
package com.cosplay.demo.mvp.model; /** * Created by zhiwei.wang on 2017/3/22. */ public interface UserModel { }
/* * 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 servlet.common.cookie; import java.io.IOException; import javax.servlet.http.Cookie; import servlet.login.GooglePojo; import s...
package com.tretiakov.app; public class App { public static void main( String[] args ) { GameLogic gameLogic = new GameLogic(); gameLogic.gameGycle(); } }
package com.remote_interface; import java.rmi.Remote; import java.rmi.RemoteException; import java.util.ArrayList; import com.model.Commodity; import com.model.ImportBill; import com.model.PortBillItem; public interface IImportService extends Remote{ /** * 根据编号查找商品 * @param no * @return 不存在 null...
package ir.madreseplus.data.model.res; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class TicketInfoRes { @SerializedName("cluster") @Expose public Integer cluster; @SerializedName("created_on") @Expose public Str...
import static io.restassured.RestAssured.given; import io.restassured.specification.RequestSpecification; public class ssss { @Test public static RequestSpecification setup() { RequestSpecification res = given().auth().basic("sk_test_Mk8ZqJJp6vy4jRm7pKiCA4vt", ""); return res; } }
package structural.decorator.my.htmldemo.decorators; import structural.decorator.my.htmldemo.htmlnodes.HtmlNode; // 附加 <underline> 标签 public class UnderlineDecorator extends Decorator{ public UnderlineDecorator(HtmlNode node) { super(node); } @Override public String getText() { return...
package ca.oneroof.oneroof.ui; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.databinding.DataBindingUtil; import java.util.function.Consumer; import ca.oneroof.oneroof.R; import ca.oneroof.oneroof.api.Debt; import ca.oneroof.oneroof.databinding.ItemDebt...
//даны элементы, вывести элементы со сдвигом на n. package different; import java.util.Scanner; import java.util.Arrays; public class diff_11 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = scanner.nextLine(); //"11 34 3 45 23 5 67"; int[]...
package framework; /** * Created by kilo on 2018/8/14. * 继承了java.lang.Cloneable接口,可以调用Object.clone()方法自动复制实例 */ public interface Product extends Cloneable { void use(String s); /** * 调用clone方法自动复制实例 * * @return */ Product createClone(); }
package com.travel.lodge.userservice.dto; import lombok.Data; @Data public class UpdateUserRequest { private String firstName; private String lastName; private String contactNo; private String location; private String activityStatus; }
package com.spring.minjun.user.model; import java.util.Date; public class UserVO { private String account; private String password; private String name; private Integer checkId; private String sessionId; private Date limitTime; //자동로그인 체크 여부 private boolean autoLogin; public String getSessionId() { ...
package com.gxtc.huchuan.ui.deal.deal; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.view.LayoutInflater; import android.view.View; import andr...
package com.corejava.operators; public class ArithmeticOperator { public static void main(String[] args) { int x, y = 10, z = 5; x = y + z; //10+5=15 System.out.println("+ operator resulted in " + x);//15 x = y - z; //10-5=5 System.out.println("- operator resulted in " + x);//5 x = y * z; //10*5=50 Sy...
/* * Copyright 2002-2022 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.example.yui.games; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.database.Cursor; import android.database.SQL...
package jdk8; @FunctionalInterface public interface A { //只有一个抽象方法。 int a1(String input); //Ojbect类的方法不算。。。。 @Override String toString(); default void foo(){ System.out.println("Calling A.foo()"); } public static void test(){ } }
package uz.zako.example.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security....
package com.ifeng.recom.mixrecall.core.cache.feedback; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheStats; import com.google.common.cache.LoadingCache; import com.ifeng.recom.mixrecall.common.dao.redis.jedisPool.ItemcfJedisUtil; import co...
package com.wirelesscar.dynafleet.api.types; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Api_DTMStoreDTMAlarmSettingTO complex type. * ...