text stringlengths 10 2.72M |
|---|
package com.online.spring.web.model;
public class Suppliers_Address {
int supplierID;
String companyName;
String contactName;
String contactJobTitle;
String username;
String password;
int addsupplierID;
String address;
String city;
String state;
String country;
int postalcode;
String phoneoffice;
Strin... |
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Pat... |
package com.eshop.controller;
import java.sql.SQLException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.... |
package com.example.shucheng_fu.calculator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.shucheng_fu.calculator.R;
import java.text.DecimalFormat;
import java.util.regex.Pattern;
... |
/** An interface to indicate what shapes are regular polygons and to
* provide the formula for calculating the area
*/
public interface RegularPolygon {
/** Returns the number of angles of the polygon */
int getNumberAngles();
/** Returns the length of a side */
double getSideLength();
/** One wa... |
package org.vanilladb.comm.protocols.rb;
import org.vanilladb.comm.protocols.beb.Broadcast;
import net.sf.appia.core.AppiaEventException;
import net.sf.appia.core.Channel;
import net.sf.appia.core.Session;
public class ReliableBroadcast extends Broadcast {
// We must provide a public constructor for TcpCompleteSe... |
package com.git.cloud.resmgt.common.dao;
import java.util.List;
import java.util.Map;
import com.git.cloud.cloudservice.model.po.CloudServicePo;
import com.git.cloud.common.dao.ICommonDAO;
import com.git.cloud.common.exception.RollbackableBizException;
import com.git.cloud.resmgt.common.model.po.RmHostResPo;
... |
//Считывает адрес файла и выводит его содержимое на экран
package Tasks;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Task56 {
public static void main(String[] args) throws IOException {
... |
package cn.bjfu.beans;
import lombok.*;
/**
* Created by jxy on 2021/4/22 0022 10:08
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
public class MarketingUserBehavior {
private Long userId;
private String behavior;
private String channel;
private Long timeStamp;
}
|
/*
* 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 File;
import Module.SessionLogin;
import Module.koneksi;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.Ac... |
package com.ngocdt.tttn.service.impl;
import com.ngocdt.tttn.dto.DiscountDTO;
import com.ngocdt.tttn.dto.DiscountDetailDTO;
import com.ngocdt.tttn.dto.ProductDTO;
import com.ngocdt.tttn.entity.Discount;
import com.ngocdt.tttn.entity.DiscountDetail;
import com.ngocdt.tttn.entity.DiscountDetailKey;
import com.ngocdt.ttt... |
package com.maliang.core.expression;
import com.mongodb.BasicDBObject;
public interface Expression {
public BasicDBObject generateQuery();
}
|
package com.minipig.controller;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class IndexCon {
private static Logger logger = Logger.getLogger(IndexCon.class);
@RequestMapping("/index")
... |
package com.aliam3.polyvilleactive.model.user;
import com.aliam3.polyvilleactive.model.gamification.Badge;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import net.minidev.json.annotate.JsonIgnore;
im... |
package state3;
/**
* Main
* @author Ali
*/
public class StateDesignPattern {
public static void main(String[] args) {
ProjectCurrentState chain = new ProjectCurrentState();
/**
* Afiseaza starea curenta
*/
chain.pull();
/**
* Schimbarea starii
... |
package org.izv.pgc.firebaserealtimedatabase.connectivity;
public interface ResponseConnectivityListener {
void onResponse(boolean resultado);
}
|
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Task3 {
public static void main(String[] args) {
List<... |
package com.imdongh.mvpdemo01.base;
public interface CallBack<T> {
/**
* 数据请求成功
* @param data
*/
void onSucc(T data);
/**
* 使用网络API接口请求方式时,虽然请求成功但由于 message 的原因无法正常返回数据
* @param message
*/
void onFail(String message);
/**
* 请求数据失败,指在请求网络API时,出现网络连接,缺少权限,内存泄漏等问题导... |
package com.alibaba.druid;
import com.alibaba.druid.util.FnvHash;
public enum DbType {
other(1 << 0),
jtds(1 << 1),
hsql(1 << 2),
db2(1 << 3),
postgresql(1 << 4),
sqlserver(1 << 5),
oracle(1 << 6),
mysql(1 << 7),
mariadb(1 << 8),
derby(1 << 9),
hive(1 << 10),
h2(1 << ... |
package three_CustomEvent_using_Asynchronous;
import org.springframework.context.ApplicationEvent;
public class CustomEvent extends ApplicationEvent {
public CustomEvent(Object source){
super(source);
System.out.println("Custom event contructor is called");
}
@Override
public String toString() {
... |
package org.didierdominguez.controller;
import org.didierdominguez.bean.Account;
import org.didierdominguez.bean.Customer;
import org.didierdominguez.bean.Deposit;
import org.didierdominguez.bean.MonetaryAccount;
import org.didierdominguez.util.Verifications;
public class ControllerDeposit {
private static Contro... |
package kr.co.wisenut.editor.service;
import kr.co.wisenut.editor.model.FormVO;
public interface EditorService {
public int getMaxRuntime() throws Exception;
public int saveSceneInfo(FormVO vo) throws Exception;
public int deleteSceneInfo(FormVO vo) throws Exception;
public int getNewScnId() throws Exc... |
package com.twins.designpattern.singleton.hungry;
/**
* Created on 2019/3/10
*/
public class HungrySingletonTest {
public static void main(String[] args) {
Thread t1 = new Thread(new ExecutorThread());
Thread t2 = new Thread(new ExecutorThread());
t1.start();
t2.start();
... |
package com.sirma.itt.javacourse.test;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.sirma.itt.javacourse.MathUtil;
/**
* @author simeon
*/
public class TestMathUtil {
/**
* Test method for
* {@link com.sirma.itt.javacourse.MathUtil#generateRandomNumberWithRange(int, int)}.
... |
package se.kth.iv1350.amazingpos.integration;
import se.kth.iv1350.amazingpos.model.*;
import java.util.ArrayList;
import java.util.List;
/**
* This dummy implementation of external inventory system.
*
* Contains all calls to the data store with performed sales;
*/
public class InventorySystem {
private List<... |
package net.skoumal.forceupdate.provider;
import android.app.Application;
/**
* Created by gingo on 26.9.2016.
*/
public class CarretoVersionProvider extends JsonHttpVersionProvider {
private static final String URL_ADDRESS = "http://carreto.pt/tools/android-store-version/?package=";
public Car... |
package utils;
public class Utils {
/*
* Gets the current time system time
*/
public long time() {
return System.currentTimeMillis();
}
}
|
package com.spring.models;
import com.spring.models.User;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
import org.modelmapper.ModelMapper;
public class UserDTO {
private String username;
private String email;
privat... |
package com.sciencepie.mm.activity;
import com.sciencepie.mm.R;
import com.sciencepie.mm.fragment.CommonFragmentPagerAdapter;
import com.sciencepie.mm.fragment.TestFragment;
import com.sciencepie.mm.listener.CommonCallback;
import com.sciencepie.mm.view.MyScrollHeaderView;
import android.app.Activity;
import android.... |
/**
* Diese Datei gehört zum Android/Java Framework zur Veranstaltung "Computergrafik für
* Augmented Reality" von Prof. Dr. Philipp Jenke an der Hochschule für Angewandte
* Wissenschaften (HAW) Hamburg. Weder Teile der Software noch das Framework als Ganzes dürfen
* ohne die Einwilligung von Philipp Jenke außerhal... |
package com.example.demo.adapter;
import java.util.List;
import java.util.ArrayList;
public class DispatcherServlet {
public static List<HandlerAdapter> handlerAdapters = new ArrayList<HandlerAdapter>();
//objlkdfla fldfjadfd33eearfafafafafdfssssSS
public DispatcherServlet() {
handlerAdapters.add(new Annotation... |
package de.pqrent.jpa.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
class ItemCount {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
private ... |
package ejercicio08;
import java.util.ArrayList;
import java.util.Scanner;
/**
*
* @author Javier
*/
public class Ejercicio08 {
public static void rellenar(ArrayList <Integer> numeros) {
Scanner entrada = new Scanner(System.in);
for (int i = 0; i < 8; i++) {
System.out.print("Introd... |
package com.evature.evasdk.evaapis.crossplatform.flow;
import com.evature.evasdk.evaapis.crossplatform.EvaLocation;
import com.evature.evasdk.util.DLog;
import java.io.Serializable;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
public class FlightFlowElement extends FlowElement ... |
public class solve {
final static private String GOAL_STATE = "012345678";
public static void main(String[] args) {
String initailState = "103245678";
long startTime = System.currentTimeMillis();
SearchTree search = new SearchTree(new Node(initailState), GOAL_STATE);
// search.aStar(1);
search.aStar(2);
... |
package no.nav.vedtak.felles.integrasjon.person;
import static java.lang.String.format;
import static java.util.stream.Collectors.joining;
import java.net.URI;
import java.util.List;
import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLError;
import no.nav.vedtak.exception.IntegrasjonException;
public class... |
package com.example.rihaf.diabetesdietexpert;
/**
* Created by rihaf on 12/15/2016.
*/
public class DataProvider {
private Double tb;
private Double bb;
private Double imt;
private String kategori;
private Integer umur;
private String jk;
private String aktivitas;
public Double getT... |
import java.util.Scanner;
public class AnoBissexto {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Digite o ano: ");
int ano = input.nextInt();
if (ano < 0){
System.out.println(ano+" nao e um ano valido");
} else {
if ((ano%4==0) && ((... |
package com.nishanth.asian_countries;
import android.os.AsyncTask;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import j... |
package com.application.swplanetsapi.infrastructure.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.MongoDbFactory;
import com.mongodb.DB;
@Configuration
public class MongoConfig {
p... |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.sql.PreparedStatement;
/**
* Class to Create and Manage a SQLite Database
*/
public class Database {
protected Connection connection;
protected Statement... |
/*
* 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 by.bytechs.xfs.deviceStatus.pinStatus;
import at.o2xfs.xfs.pin.PINEncStat;
import by.bytechs.xml.entity.deviceStatus.ComponentXml;
/**
* @author Romanovich Andrei
*/
public enum PINEncryptStatus {
WFS_PIN_ENCREADY(1, "Крипто-модуль PIN готов к работе"),
WFS_PIN_ENCNOTREADY(1, "Крипто-модуль PIN не г... |
package de.trispeedys.resourceplanning.delegate.requesthelp;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import de.trispeedys.resourceplanning.execution.BpmVariables;
import de.trispeedys.resourceplanning.util.exception.ResourcePlanningException... |
package sorcier.dao.hibernate4;
import static org.junit.Assert.*;
//import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.spri... |
package com.witness.view.explosion_view;
import android.graphics.Bitmap;
import android.graphics.Rect;
public class FallingParticleFactory extends ParticleFactory {
public static final int PART_WH = 8;
@Override
public Particle[][] generateParticles(Bitmap bitmap, Rect rect) {
int w = rect.width... |
package cn.v5cn.v5cms.front.controller;
import cn.v5cn.v5cms.entity.Column;
import cn.v5cn.v5cms.entity.Site;
import cn.v5cn.v5cms.service.ColumnService;
import cn.v5cn.v5cms.util.SystemConstant;
import cn.v5cn.v5cms.util.SystemUtils;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory... |
package com.sunjob.yudioj_springboot_framemark.service;
import com.sunjob.yudioj_springboot_framemark.mapper.Role2UserMapper;
import com.sunjob.yudioj_springboot_framemark.vo.Role2User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;... |
package co.qingmei.pm.biz;
import co.qingmei.pm.dao.TaskMapper;
import co.qingmei.pm.entity.Task;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class TaskBiz {
@Autowir... |
package ru.yandex.artists;
import android.os.IBinder;
import android.support.test.espresso.Root;
import android.support.test.espresso.ViewInteraction;
import android.support.test.espresso.matcher.BoundedMatcher;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.WindowManager;
impo... |
package by.pvt.herzhot.loader;
import by.pvt.herzhot.dao.exceptions.DaoException;
import by.pvt.herzhot.dao.impl.DaoImpl;
import by.pvt.herzhot.managers.CommandManager;
import by.pvt.herzhot.managers.EntityManager;
import by.pvt.herzhot.pojos.Entity;
import by.pvt.herzhot.services.exceptions.ServiceException;
import b... |
/**
* Sencha GXT 3.0.1 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* licensing@sencha.com
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.explorer.client.toolbar;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event... |
package com.test3;
import java.io.*;
import javax.sound.sampled.*;
public class TestAudio {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
AePlayWave apw=new AePlayWave("d:\\111.wav");
Thread t=new Thread(apw);
t.start();
}
}
class AePlayWave impleme... |
/*
* Copyright (c) 2013-2014, Neuro4j.org
*
* 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 applicab... |
package at.sync.model;
import java.util.UUID;
/**
* POI - Point of Interest
* Represents a Building, Station, Place,..
*/
public class POI extends Entity implements IExternalReferenceable {
private UUID id;
private String name;
private POIType poiType;
private double radius;
private String extRe... |
import java.util.Scanner;
public class main{
float promedio;
String grado;
float costo;
int reprobadas;
public int getReprobadas() {
return reprobadas;
}
public void setReprobadas(int reprobadas) {
this.reprobadas = reprobadas;
}
public float getCosto() {
... |
/*
* 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.example.jordi.printerpartner.activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.jordi.printerpartner.R;
import com.unforce.imagen.collection.PrinterStatus;... |
package com.lmz;
public class ListTest {
public static void main(String[]args){
//通过循环将0~4 之间的5 个数放到的数组data[]中
int[]data=new int[5];
for(int i=1;i<5;i++){
data[i]=i;
System.out.println(data[i]);
}
String[]str=new String[3];
str[0]="小明";
... |
package Lecture3;
import jdk.dynalink.beans.StaticClass;
import java.util.Scanner;
import java.util.Random;
public class Homework {
public static void main(String[] args) {
//Question 1
/*
Scanner userInput = new Scanner(System.in);
System.out.println("Is the temperature high, low, or ... |
package oop;
public class Bathroom {
private int walls;
private int toilets;
private int showers;
private int baths;
private int mirror;
private Area area;
public int getWalls() {
return walls;
}
public Area getArea() {
return area;
}
public void setArea(Area area) {
... |
package com.dmtrdev.monsters.utils;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.utils.Disposable;
import com.dmtrdev.monsters.DefenderOfNature;
public class MusicManager implements Disposable {
private Music mMusic;
private final Options mOptions;
public MusicManager(final Options pOpti... |
package com.union.express.web.stowagecore.stowage.service;
import com.union.express.commons.query.BaseJpaService;
import com.union.express.web.stowagecore.stowage.jpa.dao.IStowageRepository;
import com.union.express.web.stowagecore.stowage.model.Stowage;
import org.springframework.stereotype.Service;
import org.spring... |
package hibernate_test;
import hibernate_test.entity.Employee;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import java.util.List;
/** Класс для получения списка работников, удовлетворяющих запросу.
* Для примера я получал список всех работников с имене... |
package com.codingchili.instance.model.skills;
import com.codingchili.core.context.CoreRuntimeException;
/**
* @author Robin Duda
*/
public class SkillNotLearnedException extends CoreRuntimeException {
public SkillNotLearnedException(SkillType skill) {
super("Skill not learned " + skill.name());
}
}... |
package cn.mccreefei.web.config;
import com.alibaba.druid.pool.DruidDataSourceFactory;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.annotation.MapperScan;
im... |
package com.qumla.service.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
import com.qumla.domain.image.Image;
import com.qumla.service.impl.ImageDaoMapper;
public class ImageDaoTest extends AbstractTest {
@Before
pub... |
package net.lvcy.card.entity.number;
public interface BlackCard extends NumberCard{
}
|
package calculator.parser;
import calculator.MathContext.EvaluationContext;
abstract public class AbstractParser implements MathExpressionParser {
protected void skipTransparentCharacters(EvaluationContext context) {
context.skipWhitespaces();
}
protected boolean confirm(EvaluationContext contex... |
package buttley.nyc.esteban.magicbeans.entitysystem.components;
/**
* Created by Tara on 3/1/2015.
*/
public class Component {
}
|
package controller;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import model.Employee;
import service.EmployeeService;
import service.EmployeeServiceImpl;
@ManagedBean
@SessionScoped
public class EmployeeController {
private String ... |
package com.neuedu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neuedu.pojo.Boys;
import java.util.List;
public interface BoyMapper extends BaseMapper<Boys> {
List<Boys> selectList();
}
|
/**
* Contains mock request and response types for the imperative HTTP client
*/
@NonNullApi
@NonNullFields
package org.springframework.web.testfixture.http.client;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
/*
* Copyright 2014 Victor Melnik <annimon119@gmail.com>, and
* individual contributors as indicated by the @authors tag.
*
* 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... |
/**
*
* @author Matthew Clayton
* @version January 3, 2015
* @assign.ment Shopping Cart
* @descrip.tion This class represents a shopping cart,
* containing varying items of different names and prices
* associated with ItemV2MC objects. This class allows the user
* to continue adding items as he or she sees f... |
package dao;
import java.util.List;
import vo.deptVO;
public interface myDAO {
public String getDeptName(int deptno);
public List<deptVO> getList();
public int dataCount();
public deptVO getData(int deptno);
}
|
package com.cpro.rxjavaretrofit.entity;
/**
* Created by lx on 2016/6/20.
*/
public class TaskDetailFormEntity {
// 任务ID
private Integer taskId;
// 当前角色ID
private String memberRoleId;
// 是否是我参与的
private String isMine;
// 任务类型
private String taskType;
// 图片前缀
private String htt... |
package mod3wk1hw2;
import java.util.*;
public class HashsetToArray {
public static void main(String[] args) {
HashSet<String> hash = new HashSet<String>();
hash.add("alex");
hash.add("ben");
hash.add("caesar");
hash.add("dillon");
hash.add("eunice");
System.out.println("HashSet h... |
package com.cs.devcode;
import com.cs.payment.Currency;
import com.cs.payment.DCEventType;
import com.cs.payment.DCPaymentTransaction;
import com.cs.payment.Money;
import com.google.common.base.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
im... |
public class DebitCard implements Payment {
@Override
public void paymentmethod() {
System.out.println(" Payment Through dabitCard");
}
}
|
package com.tu.redis;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* @Description
* @Classname RedisApplication redis 服务的启动类
* @Date 2019/4/28 14:05
* @Cre... |
package nxpense.controller;
import nxpense.domain.Tag;
import nxpense.dto.TagDTO;
import nxpense.dto.TagResponseDTO;
import nxpense.exception.CustomErrorCode;
import nxpense.exception.RequestCannotCompleteException;
import nxpense.helper.TagConverter;
import nxpense.message.CustomResponseHeader;
import nxpense.service... |
package samples;
import gui.Gradient;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.ItemEvent;
impor... |
/*
* 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 io.github.minhaz1217.onlineadvising.models;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;... |
package mx.com.gm.sga.servicio;
import datos.ClienteDao;
import dominio.Cliente;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
public class ClienteServiceImpl implements ClienteServiceRemote, ClienteService{
@Inject
private ClienteDao clienteDao;
... |
package edu.vt.jsonviewgenerator.factory;
import android.content.Context;
import android.content.Intent;
import android.graphics.RectF;
import android.net.NetworkInfo;
import android.net.Uri;
import android.util.Pair;
import android.view.LayoutInflater;
import android.view.View;
import com.mobsandgeeks.saripaar.Valid... |
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class Fibbonaci {
private static int seeds;
public static void main(String[] args) throws IOException {
File input = new File("C:\\Users\\Carlos\\Desktop\\fibonacci_hard.in");
FileReader in = new FileReade... |
/* Group.java
Purpose:
Description:
History:
2001/10/23 23:50:54, Create, Tom M. Yeh.
Copyright (C) 2001 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.idom;
... |
package br.com.infoCenter.excecao;
public class ProdutoException extends Exception {
private static final long serialVersionUID = 1L;
public ProdutoException() {
super();
}
public ProdutoException(String mensagem) {
super(mensagem);
}
}
|
package com.project.services;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.project.entities.Product;
import com.project.entities.Review;
import com.project.entities.User;
import com.project.repos... |
package com.esum.framework.core.resource;
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
public class BaseTestCase extends AbstractDependencyInjectionSpringContextTests {
protected String[] getConfigLocations() {
return new String[] { "classpath:/context/resource_context.xml" };
... |
package com.example.consumer.entity;
public class MessageTest {
private String messageNo;
private String messageName;
private String messageNumber;
private String messageContext;
public MessageTest() {
}
public MessageTest(String messageNo, String messageName, String messageNumber, S... |
package com.huaxiao47.just4fun.ui.home.live;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class HomeLiveViewModel extends ViewModel {
// TODO: Implement the ViewModel
}
|
package com.chandlerobaker.alcchallenge.android.journalapp;
import com.chandlerobaker.alcchallenge.android.journalapp.utilities.Utils;
import org.junit.Test;
import java.util.Date;
import static org.junit.Assert.assertEquals;
/**
* Example local unit test, which will execute on the development machine (host).
*
... |
package com.myspring.service;
import java.util.List;
import com.myspring.bean.Job;
public interface JobService {
/**
* 获取所有的job数量
* @return
*/
int getCountJobs();
/**
* 获取所有job信息
* @Title: getJobs
* @Description: TODO(方法简要描述,必须以句号为结束)
* @author: Administrator
* @since: (开始使用的版... |
package strategy;
//Concrete strategy
public class Rooster implements Animal {
public String attack(String target) {
return "To peck " + target + "!!!";
}
}
|
package com.tibco.as.util.convert.impl;
import java.nio.ByteBuffer;
public class BytesToInteger extends AbstractBlobConverter<Integer> {
@Override
protected Integer convert(ByteBuffer buffer) {
return buffer.getInt();
}
}
|
package msip.go.kr.cop.web;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation... |
package jp.ac.kyushu_u.csce.modeltool.dictionary.dict.column;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import jp.ac.kyushu_u.csce.modeltool.base.dialog.MultiInputDialog2;
import jp.ac.kyushu_u.csce.modeltool.dictionary.Messages;
import jp.ac.kyushu_u.csce.modeltool.di... |
package org.test.ht;
import java.util.Arrays;
import java.util.Deque;
import java.util.List;
public class DFS {
private static class Graph {
int val;
List<Graph> children;
public Graph(int val) {
this.val = val;
}
}
public static void dfs(Graph graph) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.