text stringlengths 10 2.72M |
|---|
package de.cuuky.varo.command.varo;
import java.util.ArrayList;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import de.cuuky.varo.Main;
import de.cuuky.varo.command.VaroCommand;
import de.cuuky.varo.player.VaroPlayer;
import de.cuuky.varo.spa... |
package com.codecool;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class CsvStore extends Store {
private final File csvFile = new File("src/main/java/data/products.csv");
private List<Product> allProducts = new ArrayList<>();
@Override
public void storeProduct(Product... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Threads;
/**
*
* @author rm
*/
// Single Thread whic is sequanc is called main thread
public class My_word {
private int Docu = 0;
public static void main(String[] args) {
... |
package cn.v5cn.v5cms.service.impl;
import cn.v5cn.v5cms.service.SystemRoleService;
import cn.v5cn.v5cms.dao.SystemRoleDao;
import cn.v5cn.v5cms.entity.SystemRes;
import cn.v5cn.v5cms.entity.SystemRole;
import cn.v5cn.v5cms.util.PropertyUtils;
import com.google.common.base.Splitter;
import com.google.common.collect.Li... |
package Sekcja9.Lesson.Lesson123;
public class PhoneTestInterface {
public static void main(String[] args) {
ITelephone kornelPhone;
kornelPhone = new DeskPhone(928237434);
kornelPhone.powerOn();
kornelPhone.callPhone(928237434);
kornelPhone.answer();
System.out.pr... |
/*
* 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.yun.song.immediate.repository;
import com.yun.song.immediate.model.Answer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface AnswerRepository extends JpaRepository<Answer, Long> {
List<Ans... |
package com.artogrid.hessian.servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.servlet.DispatcherServlet;
public class CustomDispatcherServlet extends DispatcherServlet {
/**
*/
private static final long serial... |
package com.unicom.patrolDoor.dao;
import com.unicom.patrolDoor.entity.Knowledge;
import com.unicom.patrolDoor.entity.KnowledgeLog;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface KnowledgeLogMapper {
int deleteByPrimaryKey(Integer id);
int insert(KnowledgeLog record);
... |
import javax.naming.CompositeName;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.Random;
public class PlayScreen implements Screen {
public static Random random = new Random();
private World world;
private int centerX;
private int centerY;
... |
package com.lize.redis.service;
import redis.clients.jedis.Jedis;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class MyRedisLearn {
private Jedis jedis;
public static void main(String[] args){
MyRedisLearn redis = new MyRedisLearn();
... |
package com.sa45team7.stockist.service;
import java.util.Collection;
import java.util.Map;
import com.sa45team7.stockist.model.Product;
import com.sa45team7.stockist.model.ReportDTO;
import com.sa45team7.stockist.model.Supplier;
public interface ReportService {
/*
* jsp: get suppliers who have products
*/
Col... |
package utils;
import java.awt.Point;
public class PointUtils {
// calculate the euclidean distance between points
public static double distance( Point A, Point B ) {
return Math.sqrt( Math.pow( A.x - B.x, 2 ) + Math.pow( A.y - B.y, 2 ) );
}
} |
package 算法.动态规划算法;
import 算法._计时工具类.MyTimer;
/**
* Created by Yingjie.Lu on 2018/8/22.
*/
public class 斐波那契 extends MyTimer{
public static int digui(int n){
if(n==1||n==2){
return 1;
}else {
return digui(n-1)+digui(n-2);
}
}
/**
* 所有的运行都写在这里
*/... |
package me.pixka;
public class Testload {
}
|
package com.flipkart.DAO;
import java.util.List;
import com.flipkart.model.Course;
public interface CatalogDao {
//View Catalog
public List<Course> viewCatalog();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.eao.indicator;
import java.util.List;
import javax.ejb.Local;
import org.inbio.ara.eao.BaseLocalEAO;
import org.inbio.ara.persistence.indicator.Indicator;
/**
*
* @author gsulca
*/
@Local
pub... |
package com.esum.framework.common.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStr... |
package cs122b.moviequiz;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class GenerateQuestion {
private static String DB_PATH = "/data/data/cs122b.moviequiz/databases/... |
package patterns.behavioral.interpreter;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
/**
* 环境上下文
*/
public class Context
{
private final Map<String, BigDecimal> MAP = new HashMap<>();
public void addValue(String key, BigDecimal value)
{
assert null != k... |
package org.levelup.web;
import org.levelup.dao.ArticleDao;
import org.levelup.dao.RoleDao;
import org.levelup.dao.UserDao;
import org.levelup.model.Role;
import org.levelup.model.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.ContextRefreshedE... |
package com.aowin.frame;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import j... |
/*
* Copyright 2021 Vincenzo De Notaris
*
* 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 ag... |
package com.onightperson.hearken.listviewex.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.TextView;
import com.onightperson.hearken.R;
/**
* Created by liuba... |
package kxg.searchaf.weixin;
import java.io.IOException;
import org.apache.commons.httpclient.HttpException;
public class WeixinHelper {
private static Weixin wx;
public static void connect2Weixin() {
String LOGIN_USER = "xingang.af1@gmail.com"; // 此为上一任作者的用户名和密码,截止到我最后用发现还能用
String LOGIN_PWD = "fsm1021";
... |
import java.util.ArrayList;
import java.util.List;
import tools.ManipulaArquivo;
/**
*
* @author a1903691
*/
public class GeradorClasses {
public static String primeiraLetramaiscula(String s){
return String.valueOf(s.charAt(0)).toUpperCase() + s.substring(1,s.length());
}
public... |
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common.spring.security;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import ${package}.business.model.User;
public class Authent... |
package com.tch.test;
import java.util.Arrays;
public class Sort2 {
private static int[] array = {6,3,2,1,5,8,4,9,7};
public static void main(String[] args) {
/*quickSort(array, 0, array.length-1);
System.out.println(Arrays.toString(array));*/
/*Long long1 = 0l;
System.out.println(long1.longV... |
package benandfriends.stufftracker.utilities.adapters;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.RecyclerView;
import android.text.format.DateFormat;
import... |
package edu.uncc.cci.mobileapps;
public class StateCounter implements Comparable<StateCounter>{
String state;
Integer count;
public StateCounter(String state, Integer count) {
this.state = state;
this.count = count;
}
@Override
public int compareTo(StateCounter o) {
re... |
package DomiNations;
public class LandPiece {
}
|
package com.longfellow.interview;
import java.io.Serializable;
public class User implements Serializable {
/**
* Java的序列化机制是通过在运行时判断类的serialVersionUID来验证版本一致性的
* 在进行反序列化时,JVM会把传来的字节流中的serialVersionUID与本地相应实体(类)的serialVersionUID进行比较,
* 如果相同就认为是一致的,可以进行反序列化,否则就会出现序列化版本不一致的异常。(InvalidCastException)
... |
package arrayprograms;
public class LargestElement {
public static void main(String args[])
{
int a[]={10,20,30,40,50};
int k=a[0];
System.out.println(a.length);
for(int i=0;i<a.length;i++)
{
if(a[i]>k)
{
k=a[i];
}
}
System.out.println(k);
}
}
|
package com.mediafire.sdk.response_models.device;
import com.mediafire.sdk.response_models.ApiResponse;
public class DeviceGetStatusResponse extends ApiResponse {
private String async_jobs_in_progress;
private long device_revision;
public long getRevision() {
return device_revision;
}
pu... |
/*
* 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 move4math;
import conteudo.ConjuntoImagem;
import controle.Jogos;
import controle.Publico;
import java.io.IOException;
import ... |
package it.mindware.manageit;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Mostra una lista dei progetti memorizzati nel database, mostrando solo quelli di proprietà
* dell' uten... |
package com.getomnify.hackernews.fragments;
import android.content.Context;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefres... |
/*
* 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 mandelbrot.rendering.parameterscalculator;
import mandelbrot.rendering.iterationcalculator.IterationResultSimple;
/**
*
* @... |
package com.fearefull.dotaanalyser;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import and... |
package com.example.vplayer.fragment.event;
public class UpdateVideoStatusEvent {
}
|
/**
*
*/
package com.application.ui.adapter;
/**
* @author Vikalp Patel(VikalpPatelCE)
*
*/
import java.util.ArrayList;
import android.content.Context;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import and... |
package kickstart.model;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
//import org.hibernate.annotations.Type;
@Entity
@Table(name = "COMMENTS")
public class Commen... |
package com.lq.entity;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
//import javax.persistence.TableGenerator;
@En... |
/*
* This Java source file was generated by the Gradle 'init' task.
*/
// 애플리케이션 메인클래스
// 애플리케이션을 실행할때 이 클래스를 실행한다.
package com.eomcs.lms;
import java.util.Scanner;
import java.sql.Date;
public class App2 {
static Scanner scan;
public static void main(String[] args) {
scan = new Scanner(System.in);
M... |
package heylichen.leetcode;
public class MaxProfit {
public int maxProfit(int[] prices) {
if (prices == null || prices.length == 1) {
return 0;
}
int[] profits = new int[prices.length];
for (int i = 0; i < prices.length - 1; i++) {
profits[i] = prices[i + 1]... |
package com.example.vplayer.Notification;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.example.vplayer.service.MusicService;
import static com.example.vplayer.fragment.utils.Constant.ACTION_NEXT;
import static com.example.vplayer.fragment.utils.C... |
package com.hayukleung.analogclock;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.view.animatio... |
package Vista;
import Controlador.Controller;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Vista extends javax.swing.JFrame {
/**
* Creates new form Vista
*/
public Vista() {
this.setTitle("OpenBravo");
initComponents();
... |
/*
* 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 byui.cit260.privateEye.model;
import java.io.Serializable;
/**
*
* @author Justin
*/
import java.util.Objects... |
package com.smyc.kaftanis.lookingfortable;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.ProgressDialog;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Vie... |
package com.grandsea.ticketvendingapplication.model.bean;
import java.io.Serializable;
/**
* Created by Grandsea09 on 2017/10/19.
*/
public class AirportStationInfo implements Serializable {
private int id;
private int cityId;
private String name;
private String cityName;
}
|
package com.lounge.esports.webapps.website.security.authentication;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import java.util.Collection;
/**
* This class implements Spring Security’... |
package cs122b.moviequiz;
import android.view.View;
public class StatBasicController extends Basic_Controller {
public StatBasicController() {
super(R.layout.result);
}
@Override
protected void onShow() {
getButton(R.id.statsBackButton).setOnClickListener(new View.OnClickListener() {
... |
// Name: Nanako Chung
// Date: Feb 14th, 2017
// Description: I created a program that generates a random pattern using 2 chars that user entered
// allows for the use of Scanner class
import java.util.Scanner;
public class RandomPattern {
public static void main(String[] args) {
// calls the Scanner class
Scan... |
package ivankar.parking.repository;
import ivankar.parking.domain.Ticket;
import java.time.LocalDateTime;
/**
* Repository for storing parking tickets.
* <p>
* Created by Ivan_Kar on 10/18/2016.
*/
public interface TicketRepository {
/**
* Creates ticket.
*
* @param place place the tick... |
public class Solution{
public static int tallestHeight(ArrayList<Box> boxes){
//sort in decending order by height
Collections.sort(boxes,new BoxComparator());
int[] cache = new int[boxes.size()];
int maxHeight = 0;
for(int i=0;i<boxes.size();i++){
int height = createStack(boxes,i,cache);
maxHeight = Ma... |
package com.arquitecturajava.aplicacion.jpa;
import com.arquitecturajava.aplicacion.dao.GenericDao;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import java.io.Serializable;
im... |
package peer;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.util.HashMap;
import utils.CustomExceptions;
import utils.ErrorCode;
import utils.LogHandler;
public class H... |
package com.example.android.beatmymovies;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
impo... |
package com.xtv.video_in_box;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* Created by admin on ... |
package com.tanon.abedjinan.springbootvue.utils;
public class TodoDTO {
private Long value;
private String title;
private boolean completed;
public Long getValue() {
return value;
}
public void setValue(Long value) {
this.value = value;
}
public String getTitle() {
return title;
}
public void setTitl... |
package pp;
import security.provider.MyMD5;
import sun.misc.Unsafe;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
/**
* Created by IntelliJ IDEA.
* User: alsa
* Date: 09.12.11
* Time: 23:16
* To change thi... |
package morpion;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public cla... |
package com.xwolf.eop.system.service;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
* @author xwolf
* @date 2016-12-20 16:44
* @since V1.0.0
*/
public interface BaseService<T> {
JSONObject insert(T t);
JSONObject insertBatch(T t);
... |
//https://www.interviewbit.com/problems/kth-row-of-pascals-triangle/
import java.util.*;
public class Pascal{
public static ArrayList<Integer> getRow(int num){
ArrayList<Integer> row = new ArrayList<Integer>();
for(int i=0; i < num; i++) { // total number of rows is numRows
row.add(... |
package stepDefinitions;
import org.openqa.selenium.WebDriver;
import commons.PageFactoryManager;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import pageObject.LoginPage;
import runners.Hooks;
public class LoginSteps {
WebDriver driver;
privat... |
package com.wrathOfLoD.Views.ContentDisplayStructure;
import com.sun.prism.image.Coords;
import com.wrathOfLoD.Views.ItemDisplayView.Slot.Slot;
import java.awt.*;
import java.util.ArrayList;
/**
* Created by echristiansen on 4/9/2016.
*/
public class EquipmentDisplayStructure extends ContentDisplayStructure {
... |
package com.example.b.gameoflife;
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.FrameLayout;
import java.util.Timer;
public class MainActivity extends AppCompatActivity {
Pix... |
package pro.likada.util;
/**
* Created by Yusupov on 1/25/2017.
*/
public enum AgencyTypeEnum {
CONTRACTOR,
COMPANY,
PROVIDER,
CARRIER
}
|
package org.uth.jdgtest1.listeners;
import org.infinispan.client.hotrod.annotation.*;
import org.infinispan.client.hotrod.event.*;
@ClientListener
public class QuietEventLogListener
{
@ClientCacheEntryCreated
@ClientCacheEntryModified
@ClientCacheEntryRemoved
public void handleRemoteEvent( ClientEvent event )... |
package com.sunrj.application.controller;
import java.io.File;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.b... |
package com.bull.android.dialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.view.Display;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import a... |
package com.itfacesystem.domain.org.query;
import com.itfacesystem.domain.common.BaseQuery;
/**
* Created by wangrongtao on 15/10/13.
*/
public class ActionQuery extends BaseQuery {
private Long id;
private String name;
private String actionkey;
private String tag;
public Long getId() {
... |
/* XZHL1230_ClerkModify.java V01L01 Copyright@QINGDAO FUBO SYSTEM ENGINEERING CO.,LTD 2012 */
/*--------------------------------------------------------------------------------------------------------------------*/
/* ... |
package com.karzaassignment.capture;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import com.bumptech.glide.Glide;
import com.karzaassignment.R;
import com.karzaassignment.databinding.A... |
package utils;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import javax.swing.JOptionPane;
import javax.swing.Rep... |
package org.imo.lrit.ide.test.ui;
import java.math.BigInteger;
import java.util.GregorianCalendar;
import java.util.TimeZone;
import org.imo.lrit.ide.test.context.TesterContext;
import org.imo.lrit.ide.test.util.JSFUtil;
import org.imo.lrit.ide.test.util.MsgUtil;
import org.apache.log4j.Logger;
import org.imo.gisis.... |
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* Created by shukad on 09/12/15.
*/
public class DataMerger {
public List<HashMap> mergeAll(List<HashMap> invoices, HashMap<String, List> items,HashMap<String, List> subItems){
Iterator<HashMap> ... |
package filamentengine.editor;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import ... |
import java.lang.reflect.Field;
public class Test1 {
public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
String s = new String("abc");
//在这中间可以添加N行代码,但必须保证s引用的指向不变,最终将输出变成abcd
//解答,利用反射
//得到s的所有字段
Field value = s.getClass().getDeclar... |
package com.cs.casino.player;
import com.cs.validation.ValidationProperties;
import javax.annotation.Nonnull;
import javax.validation.constraints.Pattern;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import static java... |
package com.mredrock.freshmanspecial.ui.Fragment;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import an... |
package com.beike.dao.trx.partner;
import java.util.List;
import com.beike.entity.partner.Partner;
/**
* @ClassName: PartnerDao
* @Description: 分销商相关信息接口
* @author yurenli
* @date 2012-5-30 下午06:00:25
* @version V1.0
*/
public interface PartnerDao {
/**根据Id查询分销商信息
* @param id
*/
pu... |
package nl.ronaldvandenbroek.worldgen.processing;
import processing.core.PImage;
public interface IProcessingImageDrawer {
PImage draw(float[][] array);
}
|
package com.netcracker.DTO;
public class PassengerForRateDto {
private Long passengerId;
private String passengerName;
public PassengerForRateDto() {
}
public PassengerForRateDto(Long passengerId, String passengerName, Double passengerRating) {
this.passengerId = passengerId;
t... |
package br.assembleia.service.impl;
import br.assembleia.dao.MembroDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import br.assembleia.entidades.Membro;
import br.assembleia.enuns.EnumS... |
import java.util.Scanner;
public class M4_7GetterSetter {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
String name = read.nextLine();
int age = read.nextInt();
Student student = new Student();
student.name = name;
student.setAge(age... |
package com.javaee.ebook1.common.Enum;
public enum SessionAttribute {
USERNAME("username","user's username"),
PASSWORD("password","user's password"),
ROLE("role","user's role");
private String code;
private String desc;
SessionAttribute(String code, String desc) {
this.code = code;
... |
package com.dassa.vo;
import java.sql.Date;
public class EmployeeVO {
private int employeeIdx; //직원 인덱스번호
private String employeeName; //직원 이름
private String employeeRank; //직원 직급
private String employeePhone; //직원 전화번호
private String adress; //직원 주소
private String registrationNumber;
private String imageName;... |
package com.getomnify.hackernews.helpers;
import java.text.SimpleDateFormat;
import java.util.Locale;
/**
* Created by Sharukh Mohammed on 29/05/18 at 18:24.
*/
public class Utils {
public static SimpleDateFormat df = new SimpleDateFormat("d MMM, yyyy h:mmaa", Locale.ENGLISH);
}
|
package com.jwebsite.pub;
import java.io.*;
import javax.servlet.*;
public class EncodingFilter implements Filter
{
public void init(FilterConfig filterConfig) throws ServletException
{
System.out.println("** 过滤器初始化...") ;
}
public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) thr... |
package com.ctg.itrdc.janus.common.compiler;
import com.ctg.itrdc.janus.common.extension.SPI;
/**
* 动态源代码编译接口
*
* @author Administrator
*/
@SPI("javassist")
public interface Compiler {
/**
* Compile java source code.
*
* @param code
* Java source code
* @param classLoader
* T... |
package data;
public class OutlineDB implements IData
{
private static OutlineDB outlineDB = new OutlineDB();
private OutlineDB() {}
public static OutlineDB getOutlineDB()
{
return outlineDB;
}
@Override
public void saveData()
{
}
@Override
public void loadData()
{
}
}
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;
/**
* Created by Tyler on 09/02/2017.
*/
public class Main {
static BufferedReader br = new Buffere... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package me.stutiguias.cdsc.commands;
import java.util.HashMap;
import me.stutiguias.cdsc.init.Cdsc;
import me.stutiguias.cdsc.init.Util;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExec... |
package java_code;
public class TestCode {
public static void main(String[] args) {
int w = 10;
int[] p = {5,5,3,4,3};
int[] g = {400, 500, 200, 300, 350};
System.out.println(findNum(w, p, g));
}
public static int[] findNextNumber(int[] numbers) {
//找到逆序的界限
int index = findTransferNumber(numbers);... |
package io.jenkins.plugins.conduit;
import hudson.FilePath;
import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
... |
package ca.uot.scs2682.marvelcatalog.ui.comics;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import ca.uot.scs2682.marvelcatalog.R;
import ca.uot.scs2682.marve... |
/*
* AdminDaoImplJDBC.java
*
* Created on 2006Äê8ÔÂ1ÈÕ, ÏÂÎç2:51
*
* 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 to... |
package me.anmt.demo4j.apache.codec;
import org.apache.commons.codec.binary.Base64;
public class Base64KitDemo {
public static boolean isBase64(byte octet) {
return Base64.isBase64(octet);
}
public static boolean isBase64(String base64) {
return Base64.isBase64(base64);
}
public static b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.