text stringlengths 10 2.72M |
|---|
package com.jic.libin.leaderus.study002;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
/**
* Created by andylee on 16/12/18.
*/
public class Trie {
private int SIZE = 26;
// 字典树的根
private TrieNode root;
// 初始化字典树
Trie() {
root = new TrieNode();
}
// 字... |
package web;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Alert;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
//import org.testng.annotations.Test;
import com.clc.automation.AutomationFrameworkProject1.AppConstant;
import com.clc.automation.AutomationFramework... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.davivienda.multifuncional.reintegros.helper;
import com.davivienda.multifuncional.reintegros.general.ReintegrosMultifuncionalGeneralObjectContext;
import com.davivienda.multifuncional.reintegros.general.Rein... |
package de.cimdata.db_jsf.beans;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import de.cimdata.db_jsf.dao.DesignpatternDAO;
import de.cimdata.db_jsf.model.Designpattern;
@ManagedBean
public class Bean {
private List<Designpattern> l... |
package ortigiaenterprises.platerecognizer;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.grap... |
package org.cellcore.code.engine.page.extractor.mcc;
import org.cellcore.code.engine.page.extractor.AbstractPageDataExtractor;
import org.cellcore.code.model.Currency;
import org.cellcore.code.model.PriceSources;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import org.springframework.stereotype.C... |
package cn.mldn.eusplatform.dao.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import cn.mldn.eusplatform.dao.IScheduleDAO;
import cn.mldn.eusplatform.vo.Schedule;... |
package uz.pdp.appcodingbat.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import uz.pdp.appcodingbat.entity.Language;
import uz.pdp.appcodingbat.entity.User;
import uz.pdp.appcodingbat.payload... |
/*
* 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 CSC110_2016;
/**
*
* @author JanithWanni
*/
public class Barber extends Employee{
public void cut(){
... |
//반복문 while (조건 ) 문장;
package com.eomcs.basic.ex06;
public class Exam0310 {
public static void main(String[] args) {
//무한루프
//while (true)
//System.out.println("안녕");
//
//while (true); //빈문장
//System.out.println("안녕");
int count = 0;
int sum = 0;
//가장 읽기 쉽게하자
// while (count-... |
package com.vinay.kafka.kafkaproducer.controller;
import com.vinay.kafka.kafkaproducer.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Pa... |
package org.point85.domain.proficy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.ti... |
package com.legaoyi.file.messagebody;
import java.util.List;
import java.util.Map;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.legaoyi.protocol.message.MessageBody;
/**
* 上传基本信息
*
* @author... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package livraria.bo;
import java.util.List;
import livraria.persistence.LivroDao;
import livraria.persistence.Dao;
import livraria.vo.Categoria;
import livraria.vo.Livro;
/**
*
* @author Nilliam Ometto
*/
public cla... |
/**
*
*/
package org.escoladeltreball.thirdassignmenttopic;
/**
* @author iaw39443990
*
*/
public abstract class Tablet extends DeviceImpl {
/**
* @param marca
* @param model
* @param speed
*/
public Tablet(String marca, String model, int speed) {
super(marca, model, speed);
// TODO Auto-generated... |
package com.project.springboot.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.htt... |
package org.androware.androbeans;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import org.androware.androbeans.beans.Flow;
import org.androware.androbeans.beans.Top;
import org.androware.androbeans.utils.FilterLog;
import org.androware.androbeans.util... |
package com.cunoraz.continuouscrollable;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.IntDef;
import android.util.AttributeSet;
import android.util.Log;
import android.view.animation.LinearI... |
package br.com.saulofarias.customerapi.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import... |
package p0200;
public class P0215
{
private int iAge;
private String sNom;
public P0215(int age, String Nom)
{
this.iAge = age;
this.sNom = Nom;
}
public void crie()
{
System.out.printf("Wouaf Wouaf (Je m'appel %s et j'ai %d jours) !!\n",sNom,iAge);
}
public void dors()
{
iAge = iAge + 1; /... |
package com.example.selectandcrop.Model;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.wi... |
package app.letsqit.com.compiler.processor;
import app.letsqit.com.annotations.annotations.AutoDSL;
/**
* Created by gilgoldzweig on 08/07/2017.
*/
@AutoDSL
public class Testgggg {
}
|
package com.myth.springboot.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.myth.springboot.entity.Msg;
import com.myth.springboot.entity.Student;
import com.myth.springboot.entity.Teacher;
import com.myth.springboot.entity.User;
import com.myth.springboot.service... |
/**
* @author DengYouming
* @since 2016-7-29 下午2:25:54
*/
package org.hpin.webservice.util;
import java.util.Comparator;
/**
* ASCII码比较器
* @author DengYouming
* @since 2016-7-29 下午2:25:54
*/
public class AsciiComparator implements Comparator<String> {
@Override
public int compare(String o1, String o2) {
r... |
/**
*
*/
package com.example.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import ... |
package com.rednovo.ace.widget.gift;
import android.content.Context;
import android.os.Build;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
im... |
package com.stepefinition;
import org.base.LibGlobal;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Hotelpojo extends LibGlobal {
public Hotelpojo() {
PageFactory.initElements(driver, this);
}
@FindBy(name = "locati... |
package com.example.tmbdmovies.Adapters;
import android.view.View;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.tmbdmovies.R;
public class MovieViewHolder ext... |
package com.spark.collecteLait.Repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.spark.collecteLait.model.entity.Chauffeur;
@Repository
public interface ChauffeurRepository extends CrudRepository<Chauffeur, Long> {
}
|
package org.davidmoten.io.extras;
import static org.junit.Assert.assertEquals;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import org.junit.Test;
public class BoundedBufferedReaderTest {
@Test
public void testTestReader() throws IOException {
Reader r = createR... |
package com.example.administrator.cookman.ui.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
impo... |
package com.trump.auction.goods.domain;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* Created by 罗显 on 2017/12/21.
* 商品库存使用表
*/
@Data
@ToString
public class ProductInventoryLogRecord implements Serializable {
private static final long serialVersionUID = ... |
package io.hankki.auth.domain.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok... |
package client;
public class Driver {
public static void main(String[] args) {
new TCP_Client("192.168.0.178", 2000);
}
}
|
package com.kbi.qwertech.api.entities;
import com.kbi.qwertech.api.data.COLOR;
import com.kbi.qwertech.api.registry.MobSpeciesRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.BiomeDictionary;
import ... |
package be.openclinic.healthrecord;
import be.mxs.common.util.db.MedwanQuery;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
public class FunctionCategoryRisk {
private int functionCategoryId;
private int riskId;
private Timestamp upda... |
package four.loop;
import java.util.Arrays;
/**
* <li>LOOPS ili PETLJE
* <li>2. NIZOVA</li>
*/
public class ArrayLoopDemo {
public static void main(String[] args) {
String[] names = {"Adi", "Almir", "Nevena", "Amer", "Harun", "Jasmin", "Damir",
"Ajša", "Emil", "Adna", "Emir"};
/*int i =... |
package exercicio05;
public interface FabricadeCarros
{
CarroSedan criarCarroSdedan();
CarroPopular criarCarroPopular();
}
|
package lanzador;
import interfazGrafica.*;
/**
*
* @author Master
*/
public class Main {
/**
*
* @param args
*/
public static void main(String[] args) {
Bienvenida bienvenida= new Bienvenida();
}}
|
package br.com.cubo.sps.process;
import java.util.ArrayList;
import java.util.List;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import br.com.cubo.sps.vo.Match;
public class MatchConverterTest {
private int countKillEvents;
private String matchId;
private MatchConverter conv... |
package com.love.step.controller;
import com.alibaba.fastjson.JSON;
import com.love.step.config.RunConfig;
import com.love.step.constant.RedisConstant;
import com.love.step.dto.UserDTO;
import com.love.step.service.UserService;
import com.love.step.utils.RedisUtils;
import com.love.step.utils.ResultUtil;
import com.lo... |
package latihan6;
public class SInformasi extends Fakultas {
public SInformasi(){
super.setDosen("\n - Achmad Basuki, S.T, M.MG, Ph.D \n - Bayu Priyambadha, S.Kom, M.Kom \n - Dahnial Syauqy, S.T., M.T., M.Sc. \n - Eko Sakti P., S.Kom, M.Kom");
super.setKeminatan("\n - Sistem Informasi \n - Re... |
package com.itheima.day_20.service;
import com.itheima.day_20.domain.User;
public interface UserService {
//根据用户名查找用户
User findUser(String username);
}
|
package priv.yaowl.java.singleton;
public class Test {
public static void main(String[] args) {
Singleton s1 = Singleton.getInstance();
Singleton s2 = Singleton.getInstance();
System.out.println(s1 == s2);
System.out.println(s1 + "==" + s2);
SingletonSys ss1 = SingletonSys... |
package Utils;
import java.awt.*;
public class Variables {
private static Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
public static final double SCREEN_WIDTH= screenSize.width;
public static final double SCREEN_HEIGHT = screenSize.height;
public static final String USER_HOME_PA... |
package com.zzping.fix.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
public class FixLabelApply implements Serializable {
private String fixLabelApplyId;
private String userId;
private String userType;
private String userNo;
pr... |
package com.designpattern.dp6proxypattern.staticproxyPlus;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* 1.DynamicDataSourceEntry 负责切换数据源
* 2.OrderService 实现IOrderSerice接口,负责调用OrderDao(被代理类)
* 3.OrderDao 负责具体的订单Order的增删改查
* 4.OrderServiceStaticProxy 实现IOrderS... |
package com.java8.files;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
/**
* @author Neeraj Kr
*
*
*
*/
public class FileExample {
public static void main(String args[]) throws IOException {
File files = new File("/home/neeraj/Development");
//... |
package king_tokyo_power_up.game.card;
/**
* Evolution type enum defines different types of evolution cards.
*/
public enum EvolutionType {
/**
* Permanent evolution is an evolution that you keep throughout the king_tokyo_power_up.game.
*/
PERMANENT_EVOLUTION("Permanent Evolution"),
/**
*... |
package c01.todoteamname.project.SPORTCRED;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObj... |
package com.trump.auction.pals.api.model;
import com.cf.common.utils.ServiceResult;
import lombok.Data;
@Data
public class PayServiceResult extends ServiceResult {
public static String ERROR = "-100";
private String token;
private String noAgree;
public PayServiceResult(String code) {
super(co... |
package com.xt.together.json;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
import com.xt.together.constant.constant;
import com.xt.together.model.Food;
import com.xt.together.model.FoodLike;
import com.xt.together.model.FriendsCirCleUser;
import com.x... |
package com.guang.bishe.controller;
import com.guang.bishe.domain.Address;
import com.guang.bishe.domain.Orders;
import com.guang.bishe.domain.User;
import com.guang.bishe.service.AddressService;
import com.guang.bishe.service.OrderService;
import com.guang.bishe.service.RegistService;
import com.guang.bishe.service.U... |
public class Field {
static final int SIZE = 10;
char[][] position = new char[SIZE][SIZE];
Field() {
Main.data.generateField();
for (int i = 0; i < SIZE; i++) {
for (int j = 0; j < SIZE; j++) {
position[i][j] = '.';
}
}
}
public void ... |
package jakebellotti.steamvrlauncher.ui;
import java.awt.Desktop;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URI;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import jav... |
package project;
/*깃허브 수정 보려고 그냥 입력함*/
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JButton;
imp... |
/*
* CountData.java
*
* Created on 2006Äê10ÔÂ18ÈÕ, ÏÂÎç4:44
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package tot.cou... |
package factoring.trial.variant;
import java.util.Collection;
/**
* This implementation is generating a list of all primes up to a limit.
* Beside of storing the prime itself, it also store the reciprocal value.
* When checking a number if it is dividable by the prime, we will not divide
* the number by the prime... |
package com.itheima.day_03.innerClass;
public class InnerDemo {
public static void main(String[] args) {
Outer.Inner inner = new Outer("李四").new Inner();
inner.show();
}
}
|
package mylistpackage;
import java.util.Iterator;
/**
* Represents MyList interface.
*
* @author Letian Sun
* @version Jan. 12, 2015
* @param <Type> is of any object type.
*/
public interface MyList<Type> {
/**
* Returns the current number of elements in the list.
* @return the cu... |
package custom;
import javax.swing.JFrame;
public class GenericFrame extends JFrame
{
public GenericFrame()
{
super();
setGenericProperties();
}
public GenericFrame(String t)
{
super(t);
setGenericProperties();
}
public GenericFrame(int w, int h)
{
super();
setSize(w, h);
setGenericProperti... |
package com.example.jonathan.iadvisor;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.nfc.NfcAdapter;
import android.os.Bundle;
import android.s... |
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
public class UtenteList implements Serializable {
String archive_id;
String last_modification;
private ArrayList<Utente> list;
public UtenteList(){
list = new ArrayList<>();
}
public synchronized void add... |
package kr.co.magiclms.mapper;
import java.util.List;
import kr.co.magiclms.domain.Order;
public interface OrderMapper {
List<Order> selectOrder();
Order selectOrderByName(String memberId);
Order selectOrderByNo(int no);
void insertOrder(Order order);
}
|
package com.lenovohit.hwe.treat.model;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.lenovohit.hwe.base.model.AuditableModel;
@Entity
@Table(name = "TREAT_CONSULT_REPLY")
public class ConsultReply extends AuditableModel implements java.io.Serializable{
private static final long serialV... |
package com.lotus.util;
import java.util.Comparator;
public class PairComparator implements Comparator<Pair<String, Integer>> {
@Override
public int compare(Pair<String, Integer> o1, Pair<String, Integer> o2) {
// if (o1.getFirst().equalsIgnoreCase(o2.getFirst())) {
// return 0;
// }else {
return o2.getSeco... |
import java.util.*;
public class PlusOne {
public static List<Integer> plusOneAdd(List<Integer> A) {
int n = A.size() - 1;
A.set(n, A.get(n) + 1);
for(int i = n; i > 0 && A.get(i) == 10; --i) {
A.set(i,0);
A.set(i-1, A.get(i-1) + 1);
}
if(A.get(0) == 1... |
package com.github.davidmoten.geo;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class Base32Test {
public static final long MAX_LONG_DECODE = 9223372036854775807L ;
public static final long MIN_LONG_DECODE = -9223372036854775807L ;
publ... |
/**
* /****************************************************************************
* Name: Luis Gustavo Grubert Valensuela Z#:23351882 lvalensuela2015@fau.edu
* Course: JavaProgramming
* Professor: Dr. Mehrdad Nojoumian
* Due Date:02/22/2018 Due Time: 11:30PM
* Assignment Number: lab 05
* Last Chang... |
package com.tmdaq.etltool.json.wapper;
import com.alibaba.fastjson.JSON;
import com.tmdaq.etltool.core.Configuration;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author vttmlin
*/
public class FastJsonWapper extends Json {
FastJsonWapper(Configurati... |
package com.explore.service.Impl;
import com.explore.common.ServerResponse;
import com.explore.dao.*;
import com.explore.pojo.*;
import com.explore.service.ICampusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transactio... |
package com.jinns.optimize.jvm.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
@RestController
@Slf4j
@RequestMapping("/jvm")
public class JvmController {
@GetMapping("/test")
public String test(@RequestParam("id")String id ,@RequestParam("name")String name){
... |
package com.test;
import java.util.HashSet;
import java.util.Set;
import com.test.base.Solution;
/**
* 官方给定的answer, 比较人性化的一个方案,而且效率高
* 解题思路:
* 1,将第一段"较长的段落",加入set,并计算出当前最大值
* 2,往下遍历,若有遇到相同的,则将之前的抛弃掉,并抛出set;
*
* 算法复杂度:
* n*O(log(n))
*
* @author YLine
*
* 2018年7月19日 下午3:05:55
*/
public class SolutionB im... |
/*
* Merge HRIS API
* The unified API for building rich integrations with multiple HR Information System platforms.
*
* The version of the OpenAPI document: 1.0
* Contact: hello@merge.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.te... |
package test.mytatis.zsl.com.dao;
import test.mytatis.zsl.com.entity.User;
public interface UserDao {
User queryUserById(Integer id);
User queryUserByName(String name);
}
|
import com.offcn.pojo.TbItem;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.data.solr.core.SolrTemplate;
import org.springframework.data.solr.core.query.Criteria;
import org.s... |
/*
* Merge HRIS API
* The unified API for building rich integrations with multiple HR Information System platforms.
*
* The version of the OpenAPI document: 1.0
* Contact: hello@merge.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.te... |
package com.company;
import java.text.DecimalFormat;
public class HighSchool extends SchoolClass {
@Override
public Double chargeFees(Student student) {
DecimalFormat decimalFormat = new DecimalFormat("#.##");
if (student.getGrade().toString().equals("GRADE9")) {
fee = 100 * 2.00;... |
/*
* @(#) DbsqlInfo.java
* Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved.
*/
package com.esum.wp.ims.dbsqlinfo;
import com.esum.wp.ims.dbsqlinfo.base.BaseDbsqlInfo;
/**
*
* @author heowon@esumtech.com
* @version $Revision: 1.2 $ $Date: 2009/01/15 09:23:12 $
*/
public class DbsqlInfo extends Base... |
package com.izasoft.jcart.security;
import java.util.ArrayList;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.izasoft.jcart.JCartException;
import com.izasoft.jcart.domain.Permis... |
package com.bayamp.arrays.programs;
public class ReverseAnArray {
public static void main(String[] args) {
long[] arr1={-25896, -3560, -124, 1, 387, 4700, 56420 };
long[] arr3 = reverseArray(arr1);
for(int a=0;a<arr3.length;a++){
System.out.print("\n"+arr3[a]);
}
}
public static long[] reverseArra... |
package dao;
import models.Product;
import org.sql2o.Connection;
import org.sql2o.Sql2o;
import org.sql2o.Sql2oException;
import java.util.List;
public class Sql2oProductDao implements ProductDao {
private final Sql2o sql2o;
public Sql2oProductDao(Sql2o sql2o) {
this.sql2o = sql2o;
}
@Overr... |
package ObjMarker;
public class Marker {
float length=10;
float width=15;
String color="red";
void write()
{
System.out.println("hello");
}
public static void main (String args[])
{
Marker m=new Marker();
float f=m.width;
float k=m.length;
String g=m.color;
m.write();
System.out.print... |
package com.example.selfhelpcity.bean.db;
import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import lombok.Data;
@Data
@Entity
public class CommuityBean {
@Id
private long id;
/**
* fy_id : 1
* user_id : 1
* title : 环境优美安静
* zujin : 1800.0
* address : 湖南... |
package com.yea.core.loadbalancer;
import java.util.Collection;
/**
* This interface allows for filtering the configured or dynamically obtained
* List of candidate servers with desirable characteristics.
*
* @author stonse
*
* @param <T>
*/
public interface INodeListFilter<T extends BalancingNode> {
pu... |
package co.edu.poli.sistemasdistribuidos;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Optional;
/**
* Clase que recibe y procesa las peticiones del cliente
*/
public class Servidor {
private static final String RUTA_ARCHIVO = "./datos.txt";
private static void c... |
package com.lrms.bo.impl;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.lrms.bo.PatientFecalysisBo;
import com.lrms.dao.PatientFecalysisDa... |
package pkgb;
public class MyRuntimeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public MyRuntimeException() {
super("MyRuntimeException's message");
}
}
|
import javax.swing.table.DefaultTableModel;
import java.util.Vector;
public class SessionTableModel extends DefaultTableModel {
public void addSessionRow(Session s) {
Vector<Object> entity = new Vector<>(2);
entity.addElement(s.getSessionName());
entity.addElement(s.getSessionId());
... |
/*
* Generated by the Jasper component of Apache Tomcat
* Version: jetty/9.3.7.v20160115
* Generated at: 2020-03-23 09:50:49 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.a... |
package com.gxtc.huchuan.im.ui;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.... |
package com.project.universitystudentassistant.utils;
public class AppStringFormatter {
public static String replaceSymbols(String value){
return value.replace("|", ",")
.replace("�", "'")
.replace("\"", "");
}
public static String replaceZeros(int number){
... |
package info.javierferia.app.misSitios;
import info.javierferia.app.misSitios.db.BaseDatos;
import info.javierferia.app.misSitios.db.SitiosDB;
import info.javierferia.app.misSitios.utils.SUtil;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import andr... |
package com.igs.exception;
import com.hl.util.LogUtils;
/**
* 类描述:构建请求参数时错误
* 创建人:heliang
* 创建时间:2015/10/21 17:04
* 修改人:8153
* 修改时间:2015/10/21 17:04
* 修改备注:
*/
public class ErrorReq implements ErrorBundle {
private String backMsg = "请求参数异常!";
private Exception e;
private String met... |
/*
* 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.online.spring.web.model;
public class Suppliers {
int supplierID;
String companyName;
String contactName;
String contactJobTitle;
String username;
String password;
public Suppliers() {
}
public Suppliers(int supplierID, String companyName, String contactName, String contactJobTitle, String user... |
package com.uchain.cryptohash;
public class PointProxy {
private BinaryData data;
public BinaryData getData() {
return data;
}
public void setData(BinaryData data) {
this.data = data;
}
public static Object readResolve(BinaryData data) {
return Point.app... |
package com.metoo.module.app.test;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springfra... |
package es.neifi.model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class PostgreSQLConnection {
private final static String URL ="jdbc:postgresql://localhost:5433/gestiongym";
private final static String USER ="postgres";
pri... |
/**
*
*/
package com.jspmyadmin.app.common.controllers;
import java.io.IOException;
import java.sql.SQLException;
import com.jspmyadmin.app.common.beans.InstallBean;
import com.jspmyadmin.app.common.logic.InstallLogic;
import com.jspmyadmin.framework.connection.ConnectionFactory;
import com.jspmyadmin.framework.co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.