text stringlengths 10 2.72M |
|---|
package hu.mitro.web.servlet.contractservlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.ejb.EJB;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebSe... |
package com.cs.persistence;
import com.cs.item.PlayerItemId;
/**
* @author Joakim Gottzén
*/
public class NotFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;
public static final String NO_ENTITY_WITH_ID_FOUND = "No entity with id %d found";
public static final ... |
// Copyright 2019 The Cloud Robotics 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
package abilities;
import java.io.IOException;
import org.newdawn.slick.SlickException;
import actors.Effect;
import actors.Status;
public class FireballAbility extends Ability {
public FireballAbility(){
onCastEffects = new int[2][2];
onCastEffects[0][0] = Effect.EFFECT_CASTING_ABILITY;
onCastEffects[0][1]... |
package com.adi.interest;
public interface InterestService {
void addInterest(int u_id,int dept_id);
void removeInterest(int u_id,int dept_id);
void showInterest(int u_id);
} |
package com.atlassian.theplugin.idea.config.serverconfig;
import com.atlassian.theplugin.ConnectionWrapper;
import com.atlassian.theplugin.commons.ServerType;
import com.atlassian.theplugin.commons.cfg.JiraServerCfg;
import com.atlassian.theplugin.commons.cfg.ServerCfg;
import com.atlassian.theplugin.commons.cfg.Serve... |
package com.citibank.ods.modules.client.ipdocprvt.form;
import com.citibank.ods.modules.client.ipdocprvt.form.BaseIpDocPrvtDetailForm;
/**
* @author l.braga
*
*/
public class IpDocPrvtHistoryDetailForm extends BaseIpDocPrvtDetailForm
implements IpDocPrvtHistoryDetailable
{
// Data e Hora que... |
package org.spmin.customerrewards.services;
import org.spmin.customerrewards.models.Customer;
import org.spmin.customerrewards.models.Transaction;
import java.util.List;
public class PointsService {
// calculate points for an individual transaction and save to that transaction
// Every dollar spent over $1... |
package de.scads.gradoop_service.server.helper.gelly.io;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.graph.Edge;
import org.apache.flink.graph.Graph;
import org.apache.flink.graph.Vertex;
import org.gradoop.common.model.impl.id.GradoopId;
import org.gradoop.flink.model.api.epgm.LogicalGraph;
pu... |
package com.psl.training;
import java.util.Scanner;
public class CheckPrimes {
static Scanner scan = new Scanner (System.in);
static boolean isPrimeNumber( int num) {
int i,count=0;
for(i=2;i<=num/2;i++){
if(num%i==0)
count++;
}
if(count<2){
return true;
}
else{
return false;
}
}
publi... |
package com.hfjy.framework.net.http;
import java.io.IOException;
import java.util.Arrays;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import ja... |
package commonwealth.nations;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.Serializable;
import commonwealth.game.BufferedImageLoader;
import commonwealth.game.Game;
import commonwealth.game.Map;
public class Democracy extends ... |
package com.stocktrading.stockquote.serviceImpl;
import java.util.Map;
public interface TransactionService
{
Object service(Map<String, Object> params);
}
|
package com.dubboagent.context.trace;
import com.dubboagent.utils.GlobalIdGenerator;
import java.util.EmptyStackException;
import java.util.Stack;
/**
* Date:2017/11/23
*
* @author:chao.cheng
**/
public class DubboTrace implements AbstractTrace {
/**
* traceId的所有span
**/
private Stack<Abstract... |
/*
Copyright (C) 2013-2014, Securifera, Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and... |
package ua.training.controller.commands;
import ua.training.model.dao.mapper.DayRationMapper;
import ua.training.model.dao.mapper.DishMapper;
import ua.training.model.dao.mapper.UserMapper;
import ua.training.model.dao.service.implementation.DayRationServiceImp;
import ua.training.model.dao.service.implementation.Dish... |
package com.myth.springboot.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.myth.springboot.entity.*;
import com.myth.springboot.service.CourseService;
import com.myth.springboot.service.StudentService;
import com.myth.springboot.service.TeacherService;
import org... |
/*
* 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 Project2;
/**
*
* @author NURUL IMAN
*/
public class MainClassArray {
/**
* @param args the com... |
package com.kamus.bisindo.Common;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import com.google.android.material.tabs.TabLayout;
import com.kamus.bisindo.Dashboard;
import com.kamus.bisindo.MainActivity;
import com.kamus.bisindo.R;
import android.content.Intent;
impor... |
package edu.palindrome.driscoll.aidan;
import edu.jenks.dist.palindrome.*;
/**
* Write a description of class Palindrome here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class PalindromeChecker extends AbstractPalindromeChecker
{
public static void main(String[] args){
Sys... |
package com.andrstudy.androidlottietest;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.airbnb.lottie.LottieAnimationView;
import com.airbnb.lottie.LottieDrawable;
public class MainActivity extends AppCompatActivity {
// lottie 생성
private LottieAnimationView lottie;
... |
package swiss.kamyh.elo.gui.scorboard;
/**
* Created by Vincent on 10.06.2016.
*/
public interface ITimerized {
public void callbackTimer(ScoreboardItemTimed item);
public void timesUp();
}
|
package com.ipartek.formacion.nombreproyecto.pojo;
import static org.junit.Assert.*;
import java.util.HashMap;
import org.junit.Test;
public class HashMapTest {
@Test
public void test() {
HashMap<String, Persona> hmPersonas = new HashMap<String, Persona>();
assertEquals(0, hmPersonas.size())... |
package coolc.codegenerator;
import java.util.ArrayList;
import java.util.List;
public class InitializeMethodCode extends MethodCode
{
private List < String > _attributePointersCode;
public InitializeMethodCode(String classType)
{
super("initializeAttributes", classType);
this._attributePointersCode = new Ar... |
import java.util.LinkedList;
import java.util.Queue;
public class BreadthFirstTraversalOfBinaryTree {
public static void traverseLevelOrder(BinaryTree binaryTree) {
if (binaryTree.root == null) {
return;
}
Queue<Node> queue = new LinkedList<>();
queue.add(binaryTree.root);
while (!queue.is... |
package com.tms.lazytip;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.L... |
package br.com.estore.web.model;
public class BookBean {
/*
* ID_BOOK INT NOT NULL , TITLE BLOB , PRICE FLOAT , ISBN INT , NUMBER_PAGES
* INT , DESCRIPTION VARCHAR (300) , IMAGE_DIRETORY VARCHAR (500) , LIKEBOOK
* INT , ID_AUTHOR INT NOT NULL , ID_PUBLISHING_HOUSE INT NOT NULL ,
* ID_CATEGORY INT NOT NULL
... |
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(){
int number;
srand(time(0));
number = rand()%100 + 1; // Generates a random number between 1 and 100
printf("The number is %d", number);
return 0;
} |
package org.notice.gui.panels;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.RowFilter;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.event.ListSelectionEvent;
... |
package com.t11e.discovery.datatool;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import javax.sql.DataSource;
import javax.xml.stream.XMLStreamException;
import org.jmock.Expectations;
import org.jmock.Mockery;
impor... |
package com.Action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.struts2.ServletActionContext;
import com.dao.zzglDao;
import com.model.tree;
public class newtreeAc... |
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class Main {
public static void main(String[] args) {
ApplicationContext context =
new AnnotationConfigApplicationContext(SpringJdbcConfiguration.c... |
package com.example.findwitness;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class ChatSQLiteHelper extends SQLiteOpenHelper{
public static final int DATABASE_V... |
package com.delaroystudios.teacherassistant;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
package sfwinstaladorscript.createusers;
import java.awt.Cursor;
import java.util.ArrayList;
import java.util.List;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import org.jdesktop.application.Action;
import sfwinstaladorscript.Utils;
import sfwinstaladorscr... |
package com.test;
import java.util.HashMap;
/**
* https://leetcode.com/problems/perfect-squares/
*
* Given a positive integer n, find the least number of perfect square numbers
* (for example, 1, 4, 9, 16, ...) which sum to n.
*
* Example 1:
*
* Input: n = 12 Output: 3 Explanation: 12 = 4 + 4 + 4.
*
* E... |
package com.Premium.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.Premium.entity.AddressEntity;
@Repository
public interface AddressRepository extends JpaRepository<AddressEntity, Integer>{
}
|
package com.fudanscetool.springboot.service;
import com.fudanscetool.springboot.dao.FeedbackDAO;
import com.fudanscetool.springboot.pojo.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class FeedbackService... |
package at.ac.tuwien.sepm.groupphase.backend.datagenerator;
import at.ac.tuwien.sepm.groupphase.backend.entity.Category;
import at.ac.tuwien.sepm.groupphase.backend.entity.Customer;
import at.ac.tuwien.sepm.groupphase.backend.entity.Invoice;
import at.ac.tuwien.sepm.groupphase.backend.entity.InvoiceItem;
import at.ac... |
package by.bytechs.fileSystem;
import by.bytechs.fileSystem.interfaces.ScreenShot;
import org.springframework.stereotype.Service;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
/**
* @author Romanovich Andrei
*... |
package com.gaoshin.entity;
import java.util.Calendar;
import java.util.TimeZone;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.gao... |
package com.minhvu.proandroid.sqlite.database.receiver;
import com.minhvu.proandroid.sqlite.database.services.SignInService;
/**
* Created by vomin on 1/9/2018.
*/
public class SignInReceiver extends ALongRunningReceiver {
@Override
public Class getLRSClass() {
return SignInService.class;
}
}
|
package io.github.yanhu32.xpathkit.parser;
import io.github.yanhu32.xpathkit.utils.Strings;
import org.w3c.dom.Document;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPat... |
package com.karya.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="costcenter001mb")
public class Co... |
package com.BDD.blue_whale.service;
import java.util.List;
import java.util.Optional;
import org.springframework.stereotype.Service;
import com.BDD.blue_whale.entities.World_language;
@Service
public interface World_languageService {
public void addWorld_language(World_language world_language);
... |
package com.wenyuankeji.spring.dao;
import java.util.List;
import com.wenyuankeji.spring.model.BaseBusinessareaModel;
import com.wenyuankeji.spring.model.BaseConfigModel;
import com.wenyuankeji.spring.util.BaseException;
public interface IBaseConfigDao {
/**
* 查询基础设置表
* @param configcode 配置编码
* @return
* ... |
import java.io.*;
import java.util.*;
public class sortZeroOneTwo{
public static void main(String[] args){
/*
Swapping index 1 and index 0
Swapping index 2 and index 9
Swapping index 2 and index 8
Swapping index 2 and index 1
Swapping index 3 and index 7
Swa... |
package com.esum.comp.pull.handler;
import java.io.ByteArrayOutputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPConstants;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import org.apache.com... |
// **********************************************************
// 1. 제 목: 역량 분류
// 2. 프로그램명: UserAbilityBean.java
// 3. 개 요: 역량 분류
// 4. 환 경: JDK 1.4
// 5. 버 젼: 1.0
// 6. 작 성: jang dong jin 2007.12.10
// 7. 수 정:
// **********************************************************
package co... |
/**
* Package for junior.pack2.p5.ch4 Set.
*
* @author Gureyev Ilya (mailto:ill-jah@yandex.ru)
* @version 1
* @since 2017-06-01
*/
package ru.job4j.set; |
package com.codefundo.votenew;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.ProgressDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.... |
package com.a.roombooking.activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Butto... |
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.animation.PauseTransition;
import javafx.event.EventHandler;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordF... |
package com.rachelgrau.rachel.health4theworldstroke;
/**
* Created by rachel on 12/14/16.
*/
public class Utilities {
/* Returns a time string of the form "5:32PM" */
public static String getAmPmTimeString(int hr, int min) {
boolean isAM = false;
if (hr < 12) {
isAM = true;
... |
package de.hpi.is.ddd.evaluation;
import de.hpi.is.ddd.evaluation.utils.UnionFind;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.apache.commons.lang3.tuple.Pair;
import java.io.File;
import java.io.FileReader;
import java.util.*;... |
package mvc.com.my_mvc.Controller;
/**
* @date on 18:22 2018/8/12
* @author yuyong
* @Email yu1183688986@163.com
* @describe controller层
*/
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widg... |
package Test;
import Main.PlusMinus;
import org.junit.Assert;
/**
* Created by Samarth on 5/29/16.
*/
public class PlusMinusTest {
@org.junit.Test
public void plusMinusTest() {
double[] res = PlusMinus.plusMinus(new int[] {-4, 3, -9, 0, 4, 1});
Assert.assertTrue(res[0] == 0.5);
Asse... |
package org.point85.domain.plant;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import javax.persistence.AttributeOverride;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Convert;
im... |
package com.nps.hellow.service;
import android.annotation.TargetApi;
import android.app.IntentService;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Han... |
package com.oriaxx77.javaplay.java8features.stream;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import com.oriaxx77.javaplay.Example;
@Example("Parallel processing with streams"... |
/*
* 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 com.scf.core.context;
/**
* 唯一标示上下文
* @author wub
*
*/
public interface IdentityContext {
public Identity getIdentity... |
package modelo;
public abstract class ObjetoJuego {
protected String nombre;
protected Tablero tablero;
public String getNombre(){
return this.nombre;
}
public boolean esPersonaje(){
return (this instanceof Personaje);
}
public boolean esConsumible(){
return (this instanceof Consumible);
... |
package com.mingrisoft;
import java.util.*;
import java.io.*;
import java.math.*;
public class Test
{
static class Reader {
final private int BUFFER_SIZE = 1 << 16;private byte[] buffer;private int bufferPointer, bytesRead;
public Reader(){buffer=new byte[BUFFER_SIZE];bufferPointer=bytesRead=0;
... |
package com.legaoyi.protocol.down.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;
/**
* 提问下发
*
* ... |
/**
*
*/
package net.imagej.domains;
import net.imglib2.RealRandomAccessible;
/**
* @author Stephan Saalfeld <saalfelds@janelia.hhmi.org>
*
*/
public class ContinuousDomain<A, T> implements Domain<A, T>, RealRandomAccessible<A> {
/**
* Get a flattened {@link RealRandomAccessible} that provides
* ac... |
package com.citibank.ods.entity.pl.valueobject;
import java.math.BigInteger;
import com.citibank.ods.entity.pl.TplMrDocPrvtEntity;
/**
* @author m.nakamura
*
* Representação da tabela de Memória de Risco.
*/
public class TplMrDocPrvtMovEntityVO extends BaseTplMrDocPrvtEntityVO
{
/**
* @para... |
package eden.mobv.api.fei.stu.sk.mobv_eden.resources;
import android.app.Activity;
import android.content.Intent;
import android.support.constraint.ConstraintLayout;
import android.support.design.widget.FloatingActionButton;
import android.view.View;
import eden.mobv.api.fei.stu.sk.mobv_eden.R;
public class UploadMed... |
package com.example.faisal.models;
import com.example.faisal.configs.postgres.PostgresEnumType;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.UpdateTimestamp;
import org.springframework.data.jpa.domain.support.Auditing... |
package com.test.automation.repository;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.test.automation.common.SeHelper;
public class CommonRepo {
public static By username = By.xpath("//*[@id='UserName']");
public static WebElement UserName(SeHelper se) {
return se.element().... |
/*
* 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 userInterface.MunicipalCorpAdminWorkArea;
import Business.FedGoverment;
import Business.MunicipalCorporation.MunicipalCorporat... |
/*
* @(#) ErrorCodeService.java
* Copyright (c) 2006 eSumTech Co., Ltd. All Rights Reserved.
*/
package com.esum.wp.ims.errorcode.service.impl;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.esum.appframework.ex... |
package com.gaoshin.top;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.util.Log;
import common.util.web.JsonUtil;
public class PhoneListener extends BroadcastReceiver {
p... |
package com.taim.backendservice.service.transaction;
import com.taim.backendservice.model.Transaction;
import com.taim.backendservice.service.IBaseService;
public interface ITransactionService extends IBaseService<Transaction> {}
|
/*
* @(#)ChatServantFactoryjava 1.0 09/13/2000
*
*/
package org.google.code.netapps.chat.basic;
import org.google.code.servant.net.ServantFactory;
import org.google.code.servant.net.Servant;
/**
* This class represents a factory object for creation servants
* for serving chat conversation
*
* @v... |
package com.example.oscar.citiappdemo.domain;
import com.example.oscar.citiappdemo.data.remote.models.GetClientNameRequest;
import com.example.oscar.citiappdemo.data.remote.models.GetClientNameResponse;
import com.example.oscar.citiappdemo.data.repository.GetClientNameDataRepository;
import com.example.oscar.citiappde... |
package com.wangzhu.other;
import java.util.HashMap;
import java.util.Map;
/**
* Created by wang.zhu on 2021-03-28 23:59.
**/
public class LRUCacheInteger {
static class Node {
final int key;
int value;
Node next;
Node prev;
Node(final int key, int value) {
... |
package com.soa.beer.model;
import javax.annotation.PostConstruct;
import javax.ejb.Stateless;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@Stateless
public class ExpertBean {
private Map<String, List<String>> beers = new HashM... |
package fr.skytasul.quests.players;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import fr.skytasul.quests.BeautyQuests;
import fr.skytasul.quests.structure.Quest;
import fr.skytasul.quests.structure.pools.QuestPool;
import fr.skytasul.quests.utils.Utils;
... |
package ogm.arbitrage;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.telephony.TelephonyManager;
import android.util.Log;
import a... |
package main;
import creator.EmissorCreator;
import product.Emissor;
public class TestaEMissores {
public static void main(String[] args) {
EmissorCreator creator = new EmissorCreator();
Emissor emissor1 = creator.create(EmissorCreator.SMS);
emissor1.enviar("K19 Treinamentos");
Emissor emissor2 = c... |
package com.lenovohit.mnis.base.model;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "BASE_CONFIG")
public class Config extends AuditableModel {
private static final long serialVersionUID = -4408551405034621735L;
private String code;
private String value;
private String ... |
/*
* Copyright © 2017-2019 Cask Data, Inc.
*
* 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 agr... |
package assertsEj;
import java.io.File;
import java.nio.file.Paths;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
//ASSERTIONS son metodos TestNG para indicar si un TestCase falla o no, al indicarle unos resultados ... |
package com.zopa.quote.service;
import com.zopa.quote.model.Lender;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* Class responsible for fetching the best offers among the various lenders
*
*/
public class LenderEvaluator {
/**
* Method to fetch best... |
package hungergames.hungerg.Listener;
import hungergames.hungerg.HungerG;
import org.bukkit.GameMode;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import o... |
package cards;
/**
* Classe que define uma carta.
*
* @author Rui Guerra 75737
* @author Joao Castanheira 77206
*
*/
public class Card {
public String face, naipe;
public int val;
public Card(String face, String naipe){
this.face=face;
this.naipe=naipe;
if(face.equals("A"))
this.val=11... |
package com.si.ha.vaadin.security;
import org.apache.log4j.Logger;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import com.si.ha.events.EventBus;
import com.si.ha.vaadin.HomeView;
import com.si.ha.vaadin.MainUI;
import com.vaadin.server.FontAwesome;
import com.vaadin.u... |
package com.peerless2012.customerview;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.ViewGroup;
/**
* @Author peerless2012
* @Email peerless2012@126.com
* @HomePage http://peerless2012.github.io
* @DateTime 2016年6月3日 上午11:30:37
* @Ver... |
package com.hg.sb_helloworld;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.t... |
package com.grandsea.ticketvendingapplication.constant;
/**
* Created by Administrator on 2017/9/18.
*/
public class IntentKey {
//DestCityActivity.class 下面的
public static final String INTENT_DEPART_CITY_ID = "depart_city_id";
public static final String INTENT_DEST_CITY = "dest_city";
pub... |
package memCache.ring;
import common.Hash;
import common.Key;
import memCache.config.Settings;
import memCache.fileUtils.Cache;
import memCache.fileUtils.FileManager;
import memCache.fileUtils.Record;
import memCache.network.FileReceiver;
import memCache.network.FileTransmitter;
import memCache.network.Server;
import... |
package com.gxjtkyy.standardcloud.common.domain.dto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import java.util.Map;
/**
* API日志存储类
* @Package com.gxjtkyy.standardcloud.common.domain.dto
* @Author lizhenhua
* @Date 2018/7/3 15:23
*/
@Sette... |
package com.zjx.returnResult;
/**
* @program: common
* @description 统一返回结果
* @author: zhujingxing
* @create: 2021-01-13 09:42
**/
public class ReturnResult<T> {
private T data;
private Boolean success;
public ReturnResult(T t) {
this.data = t;
this.success = true;
}
public Re... |
// Copyright (C) 2016 The Android Open Source Project
//
// 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 ... |
package org.didierdominguez.bean;
public class CreditCard {
private Integer id;
private String cardNo;
private Customer customer;
private String expirationDate;
private Double creditLimit;
private Double amountOwed;
private Double amountPaid;
private Boolean authorization;
public C... |
/**
* $Id: ListEditor.java,v 1.4 2005/09/13 18:07:02 nicks Exp $
*
* Originally part of the AMATO application.
*
* @author Nick Seidenman <nick@seidenman.net>
* @version $Revision: 1.4 $
*
* $Log: ListEditor.java,v $
* Revision 1.4 2005/09/13 18:07:02 nicks
* Entry field (JTextArea) is now cleared when th... |
package kui.crawlingClient.entity;
public class News_souhu {
private String authorId;
private String authorName;
private String id;
private String title;
private String picUrl;
private String publicTime;
private String originalSource;
public String getAuthorId() {
return authorId;
}
public v... |
package company.classes;
import static company.classes.FunUtils.floatFromat;
/**
* Class triangle
*/
public class Triangle {
/**
* The first side of triangle
*/
protected double sideA;
/**
* The second side of triangle
*/
protected double sideB;
/**
* The third side of t... |
package org.appsugar.controller.account.dto;
import java.util.ArrayList;
import java.util.List;
import org.appsugar.entity.account.User;
/**
* 用户数据实体
* @author NewYoung
* 2016年2月29日下午2:08:43
*/
public class UserDto {
private Long id;
private String name;
private String loginName;
public UserDto(String na... |
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
boolean flag=false;
int n=sc.nextInt();
for(int i=0;i<n;i++){
int a=sc.nextInt();
for(int j=2;j*j<=a;j++){
if(a%j==0){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.