text stringlengths 10 2.72M |
|---|
package com.example.lilja.somethingtodointurku;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andr... |
package academico.primitive.data.types;
public class ComandoRepeticaoDoWhile {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
System.out.println("Iury ");
}
}
}
|
import java.io.FileInputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.net.*;
public class ServidorArchivos {
... |
package fr.mb.volontario.business.impl;
import com.google.common.collect.Lists;
import fr.mb.volontario.business.contract.EmailService;
import fr.mb.volontario.business.contract.MissionManager;
import fr.mb.volontario.dao.contract.*;
import fr.mb.volontario.dao.impl.MissionDAOImpl;
import fr.mb.volontario.model.Mail;
... |
package com.acme.banking.dbo.service;
import com.acme.banking.dbo.domain.Account;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
public class ProcessingTest {
@Test
public void shouldAccountsChangeStatesWhenTransfer() {
final Account mockFromAccount = mo... |
package controllers.books;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import javax.persistence.EntityManager;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.serv... |
package com.store.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com... |
package plp.expressions1.parser;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
imp... |
package br.com.Falcao.PontoInteligente.api.entitys;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import jav... |
package round.first.templete;
import round.first.binaryTree.TreeNode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Stack;
public class binaryTreePostorderTraversal {
public static void main(String[] args) {
TreeNode root = new TreeNode(1);
root.left = new TreeNode(2... |
package com.yahoo.algos;
import java.util.Random;
public class ShuffleArray {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] array = {26,3,67,2,77,33,4};
shuffle(array);
}
public static void shuffle(int[] array) {
int size = array.length-1;
Ra... |
package com.fleet.mybatis.plus.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fleet.mybatis.plus.entity.User;
import java.util.Map;
public interface UserService extends IService<User> {
Page<User> listPage(Page<U... |
package view;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.ParseException;
import java.text.SimpleDateFormat;... |
package com.android.internal.util.fantasy;
import java.util.Calendar;
public class FantasyColor {
public static int getBackgroundColor(){
int default_color = 0xff9E9E9E;
Calendar mCalendar = Calendar.getInstance();
int mHours = mCalendar.get(Calendar.HOUR_OF_DAY);
if(mHours >= 5 && mHours < 6){
return 0... |
package com.youthchina.domain.qingyang;
import com.youthchina.dto.util.NationDTO;
import java.sql.Timestamp;
public class Country {
/*create table SYS_COUNTRY
(
COUNTRY_ABBRE varchar(10) not null comment '国家简称'
primary key,
COUNTRY_CHN varchar(100) not null comment '中文描述',
COUNTRY_ENG varchar(100) not null ... |
package package1;
/**********************************************************************
* This class creates enum variables for the Tic Tac Toe game.
* Either X, O, or empty
*
* @author Jarod Collier and Ben Burger
* @version 6/12/18
*********************************************************************/
pub... |
package com.lqs.hrm.service;
import java.util.Date;
import java.util.List;
import com.lqs.hrm.entity.EntryCount;
/**
* 入职统计Service接口
* @author Administrator
*
*/
public interface EntryCountService {
/**
* 根据入职统计id查询
* @param ecId
* @return
*/
EntryCount get(Integer ecId);
/**
* ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.comprarador.controller;
import com.comprarador.entities.Subcategorias;
import java.util.List;
import java.util.logging.Logger;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax... |
package ru.job4j.todo.service;
import ru.job4j.todo.model.Category;
import ru.job4j.todo.model.Task;
import ru.job4j.todo.model.User;
import java.util.List;
import java.util.function.Predicate;
public interface Service {
boolean addTask(Task task, String[] cIds);
List<Task> getTasks(Predicate<Task> condition... |
package ctci.TreesandGraphs;
import ctci.LinkedList.List;
import java.util.ArrayList;
import java.util.LinkedList;
/**
* Created by joetomjob on 8/20/19.
*/
public class ListOfDepths {
static void createLevelListDFS(TreeNode root, ArrayList<LinkedList<TreeNode>> lists, int level) {
if (root == null) re... |
package fr.nashani.musishare.User;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
import android.support.annotation.NonNul... |
package jp.co.tau.web7.admin.supplier.vo;
import java.util.List;
import jp.co.tau.web7.admin.supplier.dto.NewsInfoDTO;
import jp.co.tau.web7.admin.supplier.dto.VsmRoleDTO;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author huyendao
*
*/
@Getter
@Setter
public class VSM16010XVO extends MasterBaseVO {
... |
package opmap.model.architecture;
import java.io.Serializable;
import java.util.Objects;
public class EXNode implements Comparable<EXNode>, Serializable {
private static final long serialVersionUID = 4664378299375410058L;
private int id;
private String name;
private int resources;
private double speedup;
pr... |
package com.finix.bean;
import java.util.ArrayList;
import java.io.Serializable;
public class TicketCounterBean implements Serializable {
private int ticket_counter_person_id;
private String ticket_counter_person_name;
private String ticket_counter_person_mobile;
private String ticket_counter_person_email;
priv... |
package com.zhao.zk.zkclient;
import org.I0Itec.zkclient.IZkDataListener;
import org.I0Itec.zkclient.ZkClient;
public class GetNodeData {
public static void main(String[] args) throws Exception {
String path = "/zkclient-node";
ZkClient zkClient = new ZkClient("119.45.52.68:2181");
boolean... |
package app;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* @author Arkadiusz
* class is adding numbers using recursion
*/
public class Logic {
public static void main(String[] args) {
List<Integer> list = new ArrayList<>();
StringBuilder builder = new String... |
package tests;
import lib.CoreTestCase;
import lib.ui.SearchPageObject;
import lib.ui.factories.SearchPageObjectFactory;
import org.junit.Test;
public class HomeworkEx18 extends CoreTestCase
{
@Test
public void testCheckTitleAndDescriptionTogether(){
SearchPageObject SearchPageObject = SearchPageOb... |
import java.util.Scanner;
public class VotingAge {
//Voting age If loop
public static void main(String[] args)
{
Scanner scc = new Scanner(System.in);
System.out.println("Enter you Age :");
int age = scc.nextInt();
if(age>=18)
{
System.out.println("You are Eligible to Vote ");
}
else
S... |
package com.webexteams.auto.config;
import java.util.concurrent.Executors;
import javax.servlet.ServletContextListener;
import javax.validation.constraints.NotNull;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.beans.factory.annotation.Autowired;
import... |
package littleservantmod.profession;
import littleservantmod.LittleServantMod;
import littleservantmod.api.profession.AttachProfessionEvent;
import littleservantmod.client.util.IIconHolder;
import littleservantmod.client.util.IconHolderDynamic;
import littleservantmod.client.util.IconHolderVanilla;
import net.minecraf... |
/*
* Copyright (c) 2011 by Paul Seiferth, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.common.libxtreemfs;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.xtreemfs.common.ReplicaUpdatePo... |
package com.erjiguan.apods.mvp.model;
import com.erjiguan.apods.base.OnLoadDataListener;
import com.erjiguan.apods.mvp.model.bean.BluetoothStatusBean;
public interface IMainModel {
void registerBtStatusListner(OnLoadDataListener<BluetoothStatusBean> listener);
void unRegisterBtStatusListner(OnLoadDataListen... |
package com.tencent.mm.modelmulti;
public class b$a {
final String dYN;
final int dYO;
final int dYP;
final int dYQ;
final int dYR;
public b$a(String str, int i, int i2, int i3, int i4) {
this.dYN = str;
this.dYO = i;
this.dYP = i2;
this.dYQ = i3;
this.d... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
package com.accp.domain;
import java.util.ArrayList;
import java.util.List;
public class StaffExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StaffExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void... |
package com.tencent.mm.ar;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.kernel.g;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
public final class c implements e {
private static c ecx;
private boolean dFt = false;
private int ecw =... |
package org.drooms.strategy.runaway;
import java.io.Serializable;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicInteger;
import org.drooms.api.Move;
/**
* Player move suggestions including rating of that move.
*/
public class MoveSuggestion implements Serializable {
private final Move ... |
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Random;
public class MD5_SHA_1_Huawei {
private static final Random RANDOM = new SecureRandom();
public static void main(String[] args) throws NoSuchAlgorithmException {
... |
package com.devcamp.currencyconverter.services.impl;
import com.devcamp.currencyconverter.constants.Qualifiers;
import com.devcamp.currencyconverter.model.entities.Currency;
import com.devcamp.currencyconverter.model.entities.Hotel;
import com.devcamp.currencyconverter.model.views.HotelView;
import com.devcamp.currenc... |
package ai;
import java.util.HashMap;
import game.TextOutput;
import state.Initialisable;
import util.Dijkstra;
import graph.*;
import java.util.*;
import ai.Board.PlayerInfo;
public class SimpleDetectiveAI extends AI {
int [][] distanceMatrix;
boolean distanceComputed = false;
@Override
public Move getMove(... |
package com.konusarakogren.email.sqldatabase;
import android.view.View;
public interface ProfilePhotoInterface {
void sentPositin(int position);
}
|
package com.kaibo.book.mapper;
import com.github.pagehelper.Page;
import com.kaibo.book.mapper.entity.BookInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author kaibo
* @date 2018/9/26 13:39
* @GitHub:https://github.com/yuxuelian
... |
package src.test.java.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import src.test.java.base.Base;
public class YourPersonalInformationPage extends Base{
By yourPersonalInformatioMsg = By.xpath("/html/body/div/div[2]/div/div[3]/div/div/h1");
By oldPasswordField = By.id("o... |
package com.Barclay.adapters;
import java.util.ArrayList;
import com.Barclay.classess.Mytransaction;
import com.Barclay.classess.offerList;
import com.Barclay.hackatron.R;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.B... |
package hiq.classic.codetest;
public class Simulator {
private int[][] room;
private String commands;
private Car car;
public Simulator(int sizeX, int sizeY, String commands, Car car) {
this.setRoom(new int[sizeX][sizeY]);
this.commands = commands;
this.car = car;
}
public String startSimulation() {... |
/**
* @Author LinhNDHSE61828
* @Create on Apr 14, 2016 10:37:48 AM
*/
import java.util.Scanner;
import java.util.Vector;
import java.util.Collections;
public class SpeakerList extends Vector<Speaker> {
Scanner sc = new Scanner(System.in);
public SpeakerList() {
super();
}
public int find... |
package x.xml;
import x.ctrl.SourceCodeFileFormatter;
import java.util.List;
public class SourceCodeFileFormatter4XmlDefault implements SourceCodeFileFormatter {
@Override
public List<String> createOutputLines() {
return null;
}
} |
package com.tongji.android.recorder_app.Fragment;
import android.app.Activity;
import android.graphics.Color;
import android.support.design.widget.CollapsingToolbarLayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.... |
package com.javarush.task.task19.task1918;
/*
Знакомство с тегами
*/
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Solution {
public static void main(String[] args) throws IOException {
Buf... |
package persistence;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import persistence.Shop;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2015-02-28T08:17:30")
@StaticMetamodel(Administrator.class)
public class ... |
package com.ferdz.infectedplayers.handler;
import java.util.Random;
import org.bukkit.ChatColor;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.entity.Zombie;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByE... |
package it.univaq.rtv.Model.FactoryMappa;
import it.univaq.rtv.Model.FactoryCitta.ICitta;
import it.univaq.rtv.Model.Percorso;
import java.io.IOException;
import java.util.ArrayList;
public class Europa extends AbstractMappa {
/**
* @throws IOException
*/
public Europa() throws IOException {
... |
package com.example.rodoggx.deltachallenge.di;
import com.example.rodoggx.deltachallenge.view.PostActivity;
import dagger.Component;
/**
* Created by RodoggX on 2/2/2018.
*/
@Component(modules = PostModule.class)
public interface PostComponent {
void inject(PostActivity postActivity);
}
|
package com.testengine.bean;
public class Category implements java.io.Serializable{
public int id;
public String categoryname,status;
public String getCategoryname() {
return categoryname;
}
public void setCategoryname(String categoryname) {
this.categoryname = categoryname;
}
public String getStatu... |
/**
* Subclass of Shape
*/
public class ShapeO extends Shape {
//set a color index for this Tetris shape
public static final int COLOR = 5;
/**
* Constructor
* Set the coordinates of the blocks in a way that would form this figure
*/
public ShapeO (){
/... |
//package Tests.day16;
//
//import Tests.AbstractTest;
//import day16.Task1;
//import org.junit.jupiter.api.Assertions;
//import org.junit.jupiter.api.Test;
//
//import java.io.File;
//
//class Day16Task1Test extends AbstractTest {
//
// @Test
// void test1() {
// File file = new File("src/test/resources/D... |
package org.b3log.symphony.api;
import org.b3log.latke.Keys;
import org.b3log.latke.logging.Level;
import org.b3log.latke.logging.Logger;
import org.b3log.latke.model.Role;
import org.b3log.latke.model.User;
import org.b3log.latke.service.LangPropsService;
import org.b3log.latke.service.ServiceException;
import org.b3... |
package com.csc214.rvandyke.multithreadedapplication;
import android.app.ActivityOptions;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
import android.util.Log;
/*
Rebecca Van Dyke
rvandyke@u.rochester.edu
CSC 214 Assignment 9
TA:Julian Weiss
*/
public class PrimeNumberHandl... |
/*
* Minesweeper Project
* by Group3 : Arnaud BABOL, Guillaume SIMMONEAU
*/
package Controler.Exceptions;
/**
*
* @author simonneau
*/
public class UnexistingFlagException extends RuntimeException{
/**
*
* @param flag
*/
public UnexistingFlagException(String flag){
super("The ... |
package day28_arrays_Lab;
public class Question10 {
public static void main(String[] args) {
int[] x = {2,2};
int[] y = {2,3};
int[] z = {3,3};
int[] k = {2,3,5,65};
System.out.println(checkTwoAndThree(x));
System.out.println(checkTwoAndThree(y));
System.out.println(checkTwoAndThree(z));
System.ou... |
package com.shravya.daoimpl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.sh... |
package com.github.ovchingus.core;
import java.io.File;
import java.io.IOException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileTime;
import java.util.*;
import java.util.stream.Stream;
public class CacheController {
private CacheController() {
... |
import javax.swing.*;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.DocumentFilter;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.Socket;
import java.util.Scanner;
import java.util.concurrent.LinkedBlockingQueue;
i... |
package xu.qiwei.com.jpushtest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.widget.RadioButton;
import android.widget.RadioGroup;
public class RadioGroupTestActivity extends AppCompatActivity {
private RadioGroup test_radiogroup;
... |
package com.mapper;
import com.bean.IntervalPlanLst;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
import java.util.Map;
public interface IntervalPlanLstMapper extends Mapper<IntervalPlanLst> {
List<IntervalPlanLst> getIntervalPlanLst(@Param("interva... |
package com.e6soft.activiti.controllers.form;
import java.util.Map;
import org.activiti.editor.constants.ModelDataJsonConstants;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.Model;
import org.apache.commons.lang3.StringUtils;
import org.codehaus.jackson.map.ObjectMapper;
import ... |
package com.lti.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.persistence.Query;
import com.lti.entity.Account;
import com.lti.entity.Transact... |
package com.espendwise.manta.model.view;
// Generated by Hibernate Tools
import com.espendwise.manta.model.ValueObject;
/**
* GroupView generated by hbm2java
*/
public class GroupView extends ValueObject implements java.io.Serializable {
private static final long serialVersionUID = -1;
public static final ... |
package geeksforgeeks.mustdo.String;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Comparator;
/**
* Created by joetomjob on 5/23/19.
*/
public class SortTheString {
public static String sortstring(String s){
StringBuffer s1 = new StringBuf... |
package Controller;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframe... |
package fr.atlasmuseum.contribution;
//classe qui gere l'affichage dans la vue contribution list
public class ContribElementList {
private String mChampAModifier; // ex: ajout_titre, ou modif_titre
private String mTitre; // ex:Titre
private String mValue; // nouvelle valeur donnée par l... |
package com.ecommerce.micrommerce.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.w3c.dom.Text;
import javax.persistence.*;
import java.awt.*;
@Data
@NoArgsConstructor
@RequiredArgsConstructor
@Entity
@Table(name = "robot")
public ... |
package ru.otus.spring.barsegyan.domain;
public enum ChatMessageType {
USER_MESSAGE,
SERVICE_MESSAGE,
}
|
package br.com.drogaria.teste;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import br.com.drogaria.dao.FuncionarioDAO;
import br.com.drogaria.domain.Funcionario;
public class FuncionarioDAOTest {
@Test
@Ignore
public void salvar() {
Funcionario funcionario = new Funcio... |
package edu.progmatic.messageapp.dto;
import edu.progmatic.messageapp.modell.Topic;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
public class CreateMsgDto {
private String text;
private long topicId;
public String getText() {
return text;
}
... |
package com.vilio.plms.service.test;
import com.vilio.plms.exception.ErrorException;
import com.vilio.plms.service.base.BaseService;
import com.vilio.plms.service.quartz.PaidInfoDeleteService;
import com.vilio.plms.util.SpringContextUtil;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
... |
/*
* (c) 2015 by Harry Chan
* All rights reserved. No part of this document may be reproduced or
* transmitted in any form or by any means, electronic, mechanical,
* photocopying, recording, or otherwise, without prior written
* permission of Harry Chan.
*/
package com.techathon.healthtec.app;
import android.con... |
package com.cs4125.bookingapp.controllers;
import com.cs4125.bookingapp.services.interceptor.FilterManager;
import com.cs4125.bookingapp.services.interceptor.LogFilter;
import com.cs4125.bookingapp.services.interceptor.Target;
import com.cs4125.bookingapp.services.UserService;
import org.springframework.beans.factory.... |
package com.box.androidsdk.content.auth;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnDismissListener;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.net.Uri;
import android.net.htt... |
/*******************************************************************************
* Copyright (C) 2010 Daniel Murphy and Peter Brewer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, eithe... |
package org.abratuhi.mql;
import java.util.Map;
/**
* <p>
* Comparison class represents a simple check on the value of a particular
* column.
* </p>
* <p>
* Comparison consists of a column name, a comparison operator and a value. Only
* comparison operators from the {@link Comparison.ComparisonOperator}
* enu... |
package ch22.ex22_04;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import static org.junit.Assert.*;
import org.junit.Test;
public class AttrTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Ex... |
package com.smxknife.quartz.demo5;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import java.time.LocalDateTime;
public class MyJob implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
System.out.printl... |
package View;
import Server.Server;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;
import java.io.FileInputStream;
public class SolutionDisplayer extends FatherDisplayer {
private int[] solution;
// Setter for the solution
public void setSolution(int[] sol) {
... |
package multiplayer.server;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.ArrayList;
import java.util.List;
import org.lwjgl.input.Keyboard;
import org.lwjgl.util.vector.Vector2f;
import engine.events.Emitter;
import engine.events.Event;
import engine.events.EventManager;... |
/**
* The WaveGameRevisit program implements an application that
* presents the user with a game of "dodge the bullets and enemies'
* like nature. The objective is to reach as high a score as possible.
*
* @author Aaron Gore
* @version 1.0
* @since 2019-06-01
*/
package wavegamerevisit;
/**
* The ID cl... |
package com.shagaba.kickstarter.rest.controller.profile;
import java.util.List;
import com.shagaba.kickstarter.rest.domain.profile.PersonalInformation;
public interface PersonalInformationController {
public PersonalInformation create(PersonalInformation personalInformation);
public List<PersonalInform... |
package jp.personal.server.web.json;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class ErrorJson implements Serializable {
private static final long serialVersionUID = 1L;
private int code;
private String msg;
}
|
package jsettlers.common.action;
import java.util.Objects;
import jsettlers.common.movable.EMovableType;
import jsettlers.common.position.ShortPoint2D;
public class ChangeMovableRatioAction extends PointAction {
private final EMovableType moveableType;
public ChangeMovableRatioAction(EActionType action, EMovable... |
import java.util.Scanner;
public class ConstructorOverloading
{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
Add ob = new Add();
System.out.print("Enter first Number : ");
int x = scan.nextInt();
System.out.print("Enter second Number : ");
int y = scan.nextInt(... |
/*
* Copyright 2014-2016 See AUTHORS file.
*
* 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 Management.HumanResources.test;
import CanFactory.CanFactory;
import Presentation.Protocol.IOManager;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 故事线2的测试
*
* @author 陈垲昕
* @since 2021/10/30 2:14 下午
*/
public class CompanyManagementTest {
public ... |
package com.apress.chapter03.model;
/*
* Descripción: Entidad de negocio de la clase Autor.
* Autor: Carlos Ernesto Guevara Aguilar.
* F. Creación: 5 de Diciembre de 2016.
* F. Cambio: 5 de Diciembre de 2016.
* Comentarios:
*/
/**
* Entidad de negocio de la clase Autor.
* @author caguevar
*
*/
public clas... |
package com.lin.dao.impl;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.lin... |
package com.jdroid.android.images;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfe... |
import java.util.*;
public class Example2_23// cost of driving
{
public static void main(String[] args)
{
// Create a scanner object
Scanner input = new Scanner(System.in);
//Prompt the user to enter the assumed variables
System.out.print(" Enter the driving distance : ");
double distance = input.nextDouble();
... |
package org.newdawn.slick.tests;
import java.util.ArrayList;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.Color;
import org.newdawn.slick.Game;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
... |
package entity.utils;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import entity.bike.Bike;
import entity.db.ECOBIKEDB;
public class BikeHandler {
public static Bike assignFromDB (ResultSet res) throws SQLException {
return... |
// Generated code from Butter Knife. Do not modify!
package com.kobotan.android.Vshkole.adapters;
import android.view.View;
import butterknife.ButterKnife.Finder;
import butterknife.ButterKnife.Injector;
public class SubjectsListAdapter$ViewHolder$$ViewInjector<T extends com.kobotan.android.Vshkole.adapters.SubjectsL... |
package backtracking;
import java.util.*;
public class PathMoreThanKLength {
static class Node {
int v;
int weight;
Node(int v, int weight) {
this.v = v;
this.weight = weight;
}
int getV() {
return v;
}
int getWeight() {
return weight;
}
}
static clas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.