text stringlengths 10 2.72M |
|---|
package com.wq.newcommunitygovern.di.component;
import dagger.BindsInstance;
import dagger.Component;
import com.jess.arms.di.component.AppComponent;
import com.wq.newcommunitygovern.di.module.SigninModule;
import com.wq.newcommunitygovern.mvp.contract.SigninContract;
import com.jess.arms.di.scope.ActivityScope;
im... |
package extra;
/**
* Created by Angelina on 05.02.2017.
*/
public class TestRegex {
public static final String REGEX = "([-+]?[0-9]*\\.?[0-9]+[\\/\\+\\-\\*])+([-+]?[0-9]*\\.?[0-9]+)";
public static void main(final String[] args) throws Exception {
String[] ss = REGEX.split("/+");
for (String ... |
package viper.ui.watermark;
import java.awt.Color;
import java.awt.Font;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.gif4j.GifDecoder;
import com.gif4j.GifEncoder;
import com.gif4j.GifImage;
import com.gif4j.... |
package 笔试题;
import java.util.*;
public class 作业帮二面 {
public static List<Integer> maxSub(int[] nums){
if(nums==null||nums.length==0)return Collections.emptyList();
ArrayList<Integer> res=new ArrayList<>();
ArrayList<Integer> temp;
int max=0,sum;
for (int i=0;i< nums.length;... |
package com.tencent.mm.plugin.appbrand.config;
import com.tencent.mm.sdk.platformtools.bi;
import java.util.LinkedList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
public final class WxaAttributes$d {
public int cbu;
public String foV;
public String fqu;
public int fs... |
package com.tencent.mm.plugin.appbrand.jsapi.p;
import android.content.Context;
import android.net.Uri;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import com.tencent.mm.plugin.appbrand.g;
import com.tencent.mm.plugin.appbrand.jsapi.p.c.b;
import com.tencent.mm.plugin.appbrand.jsapi.... |
package net.sf.ardengine.rpg.multiplayer.messages;
import net.sf.ardengine.rpg.multiplayer.INetworkedNode;
/**
* Message sent by server when loading new level to joined clients
* to synchronize with changes, which occurred since game started.
*/
public class StateMessage extends JsonMessage {
/**Type of JSON ... |
package Primitives;
public class Point2D {
Coordinate _x;
Coordinate _y;
//*************** Constractor ****************//
public Point2D() {
super();
this._x = new Coordinate();
this._y = new Coordinate();
}
public Point2D(Coordinate _x, Coordinate _y) {
super();
this._x = new Co... |
package fall2018.csc2017.scoring;
import org.junit.Test;
import static org.junit.Assert.*;
public class ScoreTest {
private Score testScore;
private void makeScore() {
this.testScore = new Score("Username", 1000);
}
/**
* Tests the getValue() method.
*/
@Test
... |
package mate.academy.internetshop.dao.jdbc;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import mate.academy.internetshop.dao.OrderDao;
i... |
package com.pangpang6.books.base.lambda;
import org.junit.Test;
import java.util.function.UnaryOperator;
/**
* Created by jiangjiguang on 2018/1/2.
*/
public class UnaryOperatorTest {
@Test
public void identityTest(){
UnaryOperator<String> i = (x)-> x.toUpperCase();
System.out.println(i.... |
package com.sunjian.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class LoginPage extends BasePage {
public WebDriver driver;
public LoginPage(WebDriver driver){
super(driver, "LoginPage");
this.driver = driver;
}
protected String getURL(){
return getElemen... |
package com.tutorial.threads.test;
//public class Horse extends Thread {
//Horse extends Animal implements Runnable
public class Horse implements Runnable {
String name;
public Horse(String name) {
this.name = name;
}
public Horse() {
}
@Override
public void run() {
synchronized(this)... |
package com.ssm.po;
public class Orderdetail {
private int ordersId;
private int itemsId;
private int id;
private int itemsNum;
private Items items;
public Items getItems() {
return items;
}
public void setItems(Items items) {
this.items = items;
}
public int getOrdersId() {
return ordersId;
}
pu... |
package com.example.mobilebooks;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONException;
import org.json.JSONObject;
import com.parse.Parse;
import com.parse.ParseException;
import com.parse.ParsePush;
import android.os.AsyncTask... |
package com.hnam.androiddagger.di.ChatComponent;
import com.hnam.androiddagger.chat.ChatActivity;
import com.hnam.androiddagger.chat.ChatScreenModule;
import com.hnam.androiddagger.main.MainScreenActivity;
import com.hnam.androiddagger.main.MainScreenModule;
import dagger.Module;
import dagger.android.ContributesAnd... |
package at.ebinterface.validation.rtr.generated;
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 SignatureInfoType complex type. <p/> <p>The following sche... |
package com.raju.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.... |
package com.goldgov.portal.synUserScore.service.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory... |
import java.awt.Color;
import java.awt.Dimension;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Program extends JFrame{
static panel2 right;
static panel1 left;
public static void main(String[] args) throws IOException, ClassNotFoundException{
... |
package com.mbc.minibanking;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JPasswordField;
import javax.swing.JPanel;
public class Staff {
pr... |
package com.elsevier.ews.jacksontest.model;
import java.util.Set;
public class IndexItem {
private String pii;
private Set<String> appIds;
public String getPii() {
return pii;
}
public void setPii(String pii) {
this.pii = pii;
}
public Set<String> getAppIds() {
return appIds;
}
public void setAppIds(Se... |
package android.huyhuynh.orderapp.views;
import android.app.Dialog;
import android.content.DialogInterface;
import android.huyhuynh.orderapp.R;
import android.huyhuynh.orderapp.model.Menu;
import android.huyhuynh.orderapp.model.Order;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Vi... |
package com.example.iutassistant.Acitivities;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.example.iutassistant.R;
import com.google.firebase.database.FirebaseDatabase;
public class Message extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedIn... |
/* 1: */ package com.kaldin.user.register.action;
/* 2: */
/* 3: */ import com.kaldin.user.register.dao.impl.AcademicInfoImplementor;
/* 4: */ import com.kaldin.user.register.dao.impl.ExperienceInfoImplementor;
/* 5: */ import com.kaldin.user.register.dao.impl.PersonalInfoImplementor;
/* 6: */ i... |
package com.javarush.task.task14.task1408;
/*
Куриная фабрика
*/
public class Solution {
public static void main(String[] args) {
Hen hen = HenFactory.getHen(Country.RUSSIA);
hen.getCountOfEggsPerMonth();
}
public interface Country {
String UKRAINE = "Ukraine";
String RUSS... |
import java.util.*;
public class e4 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Introduzca primer número: ");
int num1 = sc.nextInt();
System.out.print("Introduzca segundo número: ");
int num2 = sc.nextInt();
System.out.print("Introduzca ter... |
/**
* Created by Gauseeban on 21.07.2020.
*/
public class Sirkel {
// Statisk metode som returnerer diameteren til en sirkel
public static double diameter(double radius){
double diameter = radius * 2;
return diameter;
}
// Statisk metode som beregner og returnerer sirkelens omkrets (o... |
package com.sinata.rwxchina.component_entertainment.adapter;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHol... |
package com.tencent.mm.plugin.sns.ui;
import com.tencent.mm.sdk.platformtools.x;
class SnsStrangerCommentDetailUI$10 implements Runnable {
final /* synthetic */ SnsStrangerCommentDetailUI obC;
SnsStrangerCommentDetailUI$10(SnsStrangerCommentDetailUI snsStrangerCommentDetailUI) {
this.obC = snsStrange... |
package rain.test.study20201017;
import java.util.ArrayDeque;
import java.util.Deque;
/**
* 353. 贪吃蛇
* 请你设计一个 贪吃蛇游戏,该游戏将会在一个 屏幕尺寸 = 宽度 x 高度 的屏幕上运行。如果你不熟悉这个游戏,可以 点击这里 在线试玩。
* <p>
* 起初时,蛇在左上角的 (0, 0) 位置,身体长度为 1 个单位。
* <p>
* 你将会被给出一个 (行, 列) 形式的食物位置序列。当蛇吃到食物时,身子的长度会增加 1 个单位,得分也会 +1。
* <p>
* 食物不会同时出现,会按列表的顺序逐一显示在屏... |
package br.usp.memoriavirtual.servicos.soap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.h... |
package com.tt.miniapp.msg.video;
import android.app.Activity;
import android.graphics.Bitmap;
import android.media.MediaMetadataRetriever;
import android.text.TextUtils;
import com.storage.async.Action;
import com.storage.async.Observable;
import com.storage.async.Schedulers;
import com.tt.frontendapiinterfa... |
package com.wsg.protocl_7001;
public class Test {
}
|
package com.sinata.rwxchina.basiclib.payment.utils;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.Toast;
import com.google.gson.Gson;
import com.sinata.rwxchina.basiclib.base.BaseGoodsInfo;
import com.sinata.rwxchina.basic... |
package com.hesoyam.pharmacy.pharmacy.mapper;
import com.hesoyam.pharmacy.pharmacy.dto.ShowOrderItemDTO;
import com.hesoyam.pharmacy.pharmacy.dto.ShowOrdersDTO;
import com.hesoyam.pharmacy.pharmacy.model.Order;
import com.hesoyam.pharmacy.pharmacy.model.OrderItem;
import java.util.List;
import java.util.stream.Collec... |
/**
* Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package seava.ad.presenter.impl.security.model;
import seava.ad.domain.impl.security.Menu;
import seava.j4e.api.annotation.Ds;
import seava.j4e.a... |
package animatronics.client.gui.element;
import java.util.Arrays;
import org.lwjgl.opengl.GL11;
import animatronics.api.energy.ITEHasEntropy;
import animatronics.client.gui.GuiBase;
import animatronics.client.gui.GuiPatterns;
import animatronics.utils.event.EventHookContainer;
import animatronics.utils.misc.MiscUtil... |
package dp;
import static org.junit.Assert.*;
import org.junit.Test;
public class PatternInGridTest {
@Test
public void isPatternInGrid() {
int[][] grid = new int[][] {
{1, 2, 3},
{3, 4, 5},
{5, 6, 7}
};
int[] inPattern = new int[]{1, 3, 4, 6};
int[] outPattern = new int[... |
package tools;
import models.Entity;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactor... |
package com.bvan.javastart.lessons5_6.method;
/**
* @author bvanchuhov
*/
public class TrianglePrinterWithMethods {
public static void main(String[] args) {
printTriangle(5);
}
public static void printTriangle(int size) {
if (size < 0) {
throw new IllegalArgumentException("n... |
package com.yqwl.controller;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
impor... |
package com.sergiienko.xrserver.parsers;
import com.sergiienko.xrserver.abstracts.RatesParser;
/**
* Parser for fixer.io data
*/
public class CDTStaticParser extends RatesParser {
/**
* Parse source data and store them in DB
* @throws Exception when failed
*/
public final void parse() throws ... |
package com.rednavis.application.rabbit.status;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
/**
* @author Alexander Sokolov
*/
public class TaskStatusManagerImpl implements TaskStatusManager{
pr... |
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;
public class listiteratorset {
public static void main(String[] args) {
Set<Integer> lhss = new TreeSet<>();
lhss.add(77);
lhss.ad... |
package com.tencent.mm.plugin.game.gamewebview.b;
import com.tencent.mm.sdk.platformtools.bi;
import java.util.Map;
public final class b {
public static Map<String, a> jHU;
public static void a(a aVar) {
if (!bi.oW(aVar.getName())) {
jHU.put(aVar.getName(), aVar);
}
}
}
|
package combination;
public class DecodeMsg {
// https://www.youtube.com/watch?v=qli-JCrSwuk
// 121 -> 1 21 | 12 1 | 1 2 1
void combine(String result, int[] array, int index) {
if (index == array.length) {
System.out.println("result = " + result);
return;
}
for... |
/**
*
*/
package site.com.google.anywaywrite.util.swing;
import java.awt.Component;
import java.awt.Container;
import java.awt.Window;
/**
* @author y-kitajima
*
*/
public class BgGuiUtil {
public static Window getOwnerWindow(Component c) {
if (c == null) {
throw new IllegalArgumentException(
"... |
package enthu_l;
//What changes should be made so that the program will print 54321?
public class e_1464 {
int k = 5;
public boolean checkIt(int k){
return k-->0?true:false;}
public void printThem(){ while(checkIt(k)){
System.out.print(k);}}
public static void main(String[] args) { new e_1464().printThem();}
... |
/**
*
*/
package mobi.wrt.oreader.app.clients.feedly.bo;
import android.os.Parcel;
import org.json.JSONException;
import org.json.JSONObject;
import by.istin.android.xcore.model.JSONModel;
public class AuthResponse extends JSONModel {
protected static final String REFRESH_TOKEN = "refresh_token";
private s... |
package hu.aensys.lambda.logic;
import java.io.IOException;
import java.net.URL;
import java.util.*;
public class DataLoader {
private final static String ADDRESS = "https://people.sc.fsu.edu/~jburkardt/data/csv/hw_25000.csv";
public static Collection<Data> downloadData(){
System.out.print("Download... |
package barrelofmonkeys;
import java.util.List;
public interface SongFinderStrategy {
List<Song> playlist(SongLoader loader) throws NoNextSongException;
}
|
package com.conglomerate.dev.Exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.server.ResponseStatusException;
public class NoSuchGroupingException extends ResponseStatusException {
public NoSuchGroupingException(int groupingId) {
super(HttpStatus.BAD_REQUEST, "Groupin... |
package net.liuzd.spring.boot.v2;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import net.liuzd.spring.boot.v2.customer.CustomerControllerTest;
import net.liuzd.spring.boot.v2.customer.CustomerRepositoryTest;
import net.liuzd.spring.boot.v2.cust... |
package com.grability.test.dlmontano.grabilitytest.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.ut... |
package com.tencent.mm.plugin.appbrand.collector;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable.Creator;
class CollectSession$1 implements Creator<CollectSession> {
CollectSession$1() {
}
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
Coll... |
package cn.xiahou.service;
import cn.xiahou.entity.JdItem;
import java.util.List;
public interface JdItemService {
/**
* 保存商品
* @param item
*/
public void save (JdItem item);
/**
* 查询商品
* @param item
* @return
*/
public List<JdItem> find(JdItem item);
}
|
package dbConnection;
import com.sun.rowset.JdbcRowSetImpl;
import org.apache.commons.dbutils.DbUtils;
import utils.Log;
import utils.Property;
import javax.sql.RowSet;
import javax.sql.rowset.JdbcRowSet;
import java.sql.*;
public class JDBCConnection {
private static PreparedStatement preparedStat... |
package com.tencent.mm.plugin.pwdgroup.ui;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.View;
import android.view.View.OnClick... |
package com.lsht.ml;
import java.util.ArrayList;
import java.util.List;
/**
* 节点类,负责记录和维护节点自身信息以及与这个节点相关的上下游连接,实现输出值和误差项的计算。
* Created by Junson on 2017/8/20.
*/
public class Node
{
private int layerIndex;
private int nodeIndex;
private List<Connection> upStreamConnections;
private List<Connection... |
package edu.nju.data.entity;
import edu.nju.data.util.MesType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
/**
* Created by ss14 on 2016/7/21.
*/
@Entity
public class Message {
private Long id;
private MesType mesgType;
private Long sourceI... |
import java.util.ArrayList;
public class Player {
private String name;
private String trainerClass;
private int age;
private Pkmn[] Pkmnlist = new Pkmn[3];//Should be 2 but w/e
private Pkmn currentPkmn;
private ArrayList<Item> itemList = new ArrayList<Item>();
public void showItemList() {
... |
package cq.java8.lambda;
//定义一个接口
public interface EmployStrategy {
//定义一个筛选方法
public boolean filterEmploy(Employ employ);
}
|
package Aula09;
public class Jogador implements JogadorInterface{
private String nome;
Jogador(String nome){
this.nome=nome;
}
@Override
public void joga() {
// TODO Auto-generated method stub
System.out.print("\nO "+nome+" joga");
}
}
|
package leetcode;
import java.util.HashMap;
import java.util.Hashtable;
/**
* Created by yang on 2017/1/4.
*/
/*
Given a string, find the length of the longest substring without repeating characters.
Examples:
Given "abcabcbb", the answer is "abc", which the length is 3.
Given "bbbbb", the answer ... |
package com.saha.test.base;
import com.saha.test.page.TopMenu;
import org.apache.commons.lang3.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.remote.Desi... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
import java.util.Scanner;
public class TipoDeCombustivel {
public static void main(String []agrs) {
Scanner scan = new Scanner(System.in);
int n = Integer.parseInt(scan.nextLine());
int alcool = 0;
int gasolina = 0;
int diesel = 0;
while(n != 4) {
if (n == 1) {
alcool++;
} else if (n == 2) ... |
package org.usfirst.frc.team467.robot.Autonomous;
/**
* A collection of methods that a drive class must implement to run our autonomous modes
*/
public interface AutoDrive {
void moveLinearFeet(double distance);
void rotateByAngle(double rotationInDegrees);
/**
* Move each side independently. Distances must b... |
package de.jmda.fx.cdi.multiview.view1;
public class FXView1EventData { } |
package com.joshuarichardson.dependencyinjection;
import android.content.Context;
import com.joshuarichardson.dependencyinjection.Modules.AnalyticsModule;
import com.joshuarichardson.dependencyinjection.Modules.DatabaseEntity;
import com.joshuarichardson.dependencyinjection.Modules.DatabaseModule;
import com.joshuari... |
/*
内部类只有被定义在成员位置上时,才能被私有或静态所修饰;一般内部类是不会被公有修饰
内部类可以写在类的任意位置上
*/
class Outer{
int x = 3;
void method(){
class Inner{ // 局部内部类,不能被静态私有修饰,静态、私有只修饰成员,现在Inner在局部,不能被修饰
void function(){ // 内部类中不能有静态成员,如果有,那么说明内部类也得是静态的,与以上相悖;
// 它的成员都是非静态的,没对象不能运行
System.out.println(Outer.this.x); // 可以访问外部成员;
}
}
... |
import java.io.File;
import javax.swing.JFileChooser;
public class Verzeichnissuche
{
private JFileChooser auswahl;
private int anzahlOrdner;
private int anzahlDateien;
private long groeßeDateien;
public Verzeichnissuche()
{
Verzeichnissuche();
}
private void Verzeichnissuche()
{
auswahl = new JFileC... |
package com.filiereticsa.arc.augmentepf.localization;
import android.graphics.Point;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
/**
* Created by anthonyprudhomme on 11/10/16.
* Copyright © 2016 Granite Apps. All rights rese... |
package com.example.a3_pc.complex_calculator;
import java.lang.Math;
public class complex {
public double real;
public double imaginary;
public double modulus;
public double angle;
// Default constructor of a complex number
complex() {
this.real = Double.NaN;
this.imaginary = D... |
package swt6.client;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import swt6.timer.interfaces.Timer;
import swt6.timer.interfaces.TimerService;
import swt6.timer.interfaces.TimerServiceFactory;
import java.util.List;
import java.util.Scanner;
import java.util.ServiceLoader;
pu... |
package modul6.ab04;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class SoccerTable {
private List<Team> teams;
private static final Comparator<Team> COMPARATOR_TEAM = Comparator.comparingInt(Team::getScore).thenComparingInt(Team::getGoal).thenComparing(Team::getCounterG... |
package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import model.Job_History;
import utils.DBConnectionUtil;
public class Job_HistoryDAO {
PreparedStatement ... |
package com.nsp.test.jdk.net;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.junit.Test;
public class InetAddressTest
{
@Test
public void testGetHostName()
{
try
{
InetAddress inetAddress = InetAddress.getLocalHost();
System.out.println(inetAddress.getCanonicalHostName()... |
package com.bit.myfood.repository;
import com.bit.myfood.model.entity.OrderDetail;
import com.bit.myfood.model.entity.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface OrderDetailReposit... |
package interfaces.interfaces;
import java.util.List;
import dto.main.Respuesta;
public interface ICrud<C, I> {
Respuesta<C> obtenerPorId(I id);
Respuesta<List<C>> obtenerTodos();
Respuesta<C> crear(C toCreate);
Respuesta<List<Respuesta<C>>> crear(Iterable<C> toCreate);
Respuesta<List<Respuesta<C>>> crear(... |
package corejava.io.files;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Properties;
import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.apache.comm... |
package com.hesoyam.pharmacy.user.controller;
import com.hesoyam.pharmacy.pharmacy.model.Pharmacy;
import com.hesoyam.pharmacy.pharmacy.service.impl.PharmacyService;
import com.hesoyam.pharmacy.user.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
i... |
package lishuai.common.util;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
/**
* 获取系统的MAC地址
* @author li
*
*/
public class LocalMAC {
public static String getSystemMAC(InetAddress addr) throws SocketException{
byte[] ma... |
package exercises.ella;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class Sid... |
package cn.tedu.jdbc.day02;
/*
* 这个程序可以防止注入,1' or '1'='1 是不能成为万能密码的
* */
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Scanner;
public class Login_Update {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.printl... |
package com.ntxdev.zuptecnico.util;
import android.content.Context;
import android.os.Environment;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import java.io.File;
import okio.BufferedSink;
import okio.Okio;
public class FileUtils {
public s... |
/**
*
*/
package com.wonders.task.contractReview.service.impl;
import com.wonders.schedule.util.DbUtil;
import com.wonders.task.contractReview.model.bo.PAttach;
import com.wonders.task.contractReview.model.bo.PContract;
import com.wonders.task.contractReview.model.vo.CompanyRoute;
import com.wonders.task.contractRev... |
/*
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
Example:
Input: "aab"
Output: 1
Explanation: The palindrome partitioning ["aa","b"] could be produced using 1 cut.
*/
class Solution {
public int minCu... |
package com.zhowin.miyou.recommend.fragment;
import android.os.Bundle;
import android.util.Log;
import androidx.fragment.app.Fragment;
import com.gyf.immersionbar.ImmersionBar;
import com.zhowin.base_library.adapter.HomePageAdapter;
import com.zhowin.base_library.utils.ConstantValue;
import com.zhowin.miyou.R;
impor... |
package com.tencent.mm.ar;
import android.content.ContentValues;
import android.database.Cursor;
public final class m {
private String bNH = (this.id + "_" + this.bPh);
public int bPh = 0;
int bWA = -1;
private String dHL = "";
private String dHM = "";
private int dHN = 0;
private int dHO ... |
package com.project.services;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingE... |
package wrapper;
import java.util.Date;
/*
* Class which represents information about drivers and their availability.
* It also allows the application to get and set the number of hours a
* driver has worked over time periods of a week or a year, and the
* holidays taken by a driver in the current calendar year.<br><... |
/*
* Copyright 2014, Stratio.
*
* 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 wri... |
package com.study.collura.objectboxstudy.mvp.base;
import com.study.collura.objectboxstudy.mvp.data.AppDataManager;
public abstract class BaseHelper {
private AppDataManager dataManager;
public BaseHelper (AppDataManager dataManager) {
this.dataManager = dataManager;
}
} |
package com.travel.services;
import java.util.List;
import com.travel.models.Trip;
public interface TripService {
void save(Trip trip);
Trip findById(Long id);
List<Trip> findAll();
List<Trip> findByOrganizerId(Long id);
void deleteById(Long id);
void merge(Long id, Long mergedId);
} |
package game.app.services.impl;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import game.app.dtos.reque... |
package exercice1;
/**
* Exceptions for TODOList: bad commands management
* @author Thomas COTTIN
*/
@SuppressWarnings("serial")
public class TODOListSaisirException extends Exception{
private String command;
public TODOListSaisirException(String command){
super();
this.command = command;
}
public Strin... |
package com.selesgames.weave.ui.main;
import javax.inject.Inject;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.V... |
package org.ubiquity.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Ignores a property for copy.
* This annotation can be used either on getter or on setter, with same effect.
*
* Da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.