text stringlengths 10 2.72M |
|---|
package org.hibernate.benchmarks.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Target;
@Inherited
@Target( ElementType.TYPE )
public @interface BenchmarkQueries {
BenchmarkQuery[] value();
}
|
package com.pointinside.android.app.util;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import com.pointinside.android.app.ui.GoogleMapActivity;
import com.pointinside.android.app.widget.GoogleMapOverlay;
import com.pointinside.android.app.widge... |
package gil.server;
import java.io.IOException;
import java.net.InetAddress;
public class PingTestServer {
public static String sendPingRequest(String ipAddress) throws IOException
{
InetAddress inetAddress = InetAddress.getByName(ipAddress);
System.out.println("Sending Ping Request to " + ipA... |
/*
* Copyright 2002-2014 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 io.pivotal.racquetandroid.fragment;
import com.squareup.otto.Bus;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.annotation.Config;
import org.robolectric.shadows.support.v4.SupportFragmentTestUtil;
i... |
package com.masters.service;
import com.masters.dao.AdvertRepository;
import com.masters.dao.CategoryRepository;
import com.masters.dao.CompanyRepository;
import com.masters.dao.UserRepository;
import com.masters.entity.Advert;
import com.masters.entity.Category;
import com.masters.entity.Company;
import com.masters.e... |
package com.esum.comp.smail;
import com.esum.framework.core.component.code.ComponentCode;
public class SMailCode extends ComponentCode {
public static final String ERROR_UNKNOWN_ERROR = "SMAIL99";
public static final String ERROR_INVALID_ADDRESS = "SMAIL01";
public static final String ERROR_UNSUPPORTED_... |
/*
* 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 Runner;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(features = "classpath:features",
glue = "StepDef",
tags ="",
plugin = {"pretty","html:target/html/report.html"},
monochrome = true,... |
package Ex1;
public class Retangulo extends Quadrilatero implements Diagonal {
public Retangulo (String nome, double base, double altura) {
super(nome,base,altura);
}
@Override
public double diagonal() {
return Math.sqrt(Math.pow(this.base,2) + Math.pow(this.altura,2));
}
@Override
publi... |
package com.Social.Movement3;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransactio... |
import java.util.*;
public class StringExpressionValue {
public int calculate(String s) {
String nonBlank = s.replace(" ", "");
Deque<Integer> nums = new ArrayDeque<>();
Deque<Character> operator = new ArrayDeque<>();
for (int index = 0; index < nonBlank.length(); ) {
i... |
package com.projeto.atribuicaoreferencia;
import colecoes.ImprimirTexto;
import javax.swing.*;
public class Main {
public static void main(String[] args) {
ImprimirTexto texto = new ImprimirTexto();
//Demonstração curso DIO Estrutura de dados
//Nas variáveis o java copia o valor para ca... |
package com.himanshu.springboot2.angular;
import com.himanshu.springboot2.angular.orders.service.CustomerService;
import com.himanshu.springboot2.angular.orders.service.UserRoleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframewor... |
package org.antran.saletax.internal;
import org.antran.saletax.api.IAmount;
import org.antran.saletax.api.ICart;
import org.antran.saletax.api.ICartCalculator;
import org.antran.saletax.api.ICartItem;
import org.antran.saletax.api.ITaxPolicy;
public class DefaultSaleTaxCalculator implements ICartCalculator
{
... |
/**
* All rights Reserved, Designed By www.tydic.com
* @Title: ItemServiceImpl.java
* @Package com.taotao.rest.service.impl
* @Description: TODO(用一句话描述该文件做什么)
* @author: axin
* @date: 2019年2月14日 下午9:48:21
* @version V1.0
* @Copyright: 2019 www.hao456.top Inc. All rights reserve... |
package com.bnade.wow.controller;
import com.bnade.wow.entity.Wowtoken;
import com.bnade.wow.repository.WowtokenRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
impor... |
package com.ftf.phi.network;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.OutputStream;
public class Restful {
private Route baseRoute;
public Restful(){
baseRoute = new Route();
}
public void packet(JSONObject data, OutputStream writer) throws JSONExc... |
package com.beans;
// Generated Nov 15, 2012 12:05:33 AM by Hibernate Tools 3.2.1.GA
import java.util.Date;
/**
* TblProject generated by hbm2java
*/
public class TblProject implements java.io.Serializable {
private int projectId;
private String projectName;
private String projectImage;
priv... |
package solo;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import it.unimi.dsi.fastutil.objects.ObjectList;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.AffineTransform;
import java.awt.geom.Arc2D;
im... |
import java.util.Scanner;
public class CurrencyConverter {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double money = Double.parseDouble(scan.nextLine());
String inputCurrency = scan.nextLine();
String outputCurrency = scan.nextLine();
i... |
package kr.co.shop.batch.member.repository.master;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import kr.co.shop.batch.member.model.master.MbMember;
import kr.co.shop.batch.member.repository.master.base.BaseMbMemberDao;
@Mapper
public interface MbMemberDao ex... |
package com.hackathon.androidserver;
import android.Manifest;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter... |
/* AbstractWebApp.java
Purpose:
Description:
History:
Wed Mar 15 17:28:15 2006, Created by tomyeh
Copyright (C) 2006 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
*/
packa... |
package com.imthe.god.util;
import com.google.common.base.Strings;
import com.imthe.god.base.APIMetadata;
import org.apache.commons.codec.binary.Base64;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.me... |
package ru.job4j;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
*Test.
*
*@author Alexandr Sedykh
*@version $ld$
*@since 05.02.18
*/
public class CalculateTest {
/**
*Test echo.
*... |
package com.lsjr.zizi.mvp.home.session.adapter;
import android.content.Context;
import android.net.Uri;
import android.view.Gravity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.andview.adapter.ABaseRefreshAdapter;
import ... |
package com.pack.dao;
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.Repository;
import com.pack.entity.Admin;
import com.pac... |
package com.github.kemonoske.drophub.ui;
import com.github.kemonoske.drophub.core.HubClient;
import com.github.kemonoske.drophub.core.HubServer;
import com.github.kemonoske.drophub.core.Parcel;
import com.github.kemonoske.drophub.ui.components.UndecoratedStage;
import javafx.application.Application;
import javafx.appl... |
package application.model;
public class Song implements Comparable<Song> {
private String name;
private String artist;
private String album;
private int year;
public Song(String name, String artist, String album, int year) {
super();
this.name = name;
this.artist = artist;
this.album = album;
this.y... |
package com.example.buildpc.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annot... |
package com.example.Bank_App_5.models;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class SavingsAccount extends BankAccount {
public SavingsAccount() {
super();
}
public SavingsAccount(double openBalance) {
super(openBalance, 0.01);
}
public SavingsAcc... |
package com.model.service.impl;
import com.model.dao.BrandDao;
import com.model.dao.impl.BrandDaoImpl;
import com.model.data.Brand;
import com.model.service.BrandService;
public class BrandServiceImpl extends ServiceImpl<Brand> implements BrandService {
private BrandDao brandDao;
public BrandServiceImpl() {
this.... |
package com.zhicai.byteera.service.serversdk;
public abstract class BaseHandlerClass {
public void handle(byte[] buffer){
onSuccess(buffer);
}
public abstract void onSuccess(byte[] buffer);
}
|
package ur.api_ur.api_data_obj;
/**
* Created by redjack on 15/10/30.
*/
public class URLocationSpot {
public enum LocType {
NORMAL,
FULL_AREA,
SPECIFIC_AREA,
BEACON;
public String stateValue() {
return String.valueOf(this.ordinal());
}
publi... |
package org.elasticsearch.plugin.zentity;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import io.zentity.common.Json;
import io.zentity.common.StreamUtil;
import joptsimple.internal.Strings;
import org.apache.http.Consts;
import org.apache.http.entity.ContentTyp... |
package com.GestiondesClub.entities;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import... |
package baseDriverClass;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.openqa.selenium.WebDriver;
public class BaseWebDriver {
pub... |
import java.io.*;
class Skolebok extends Bok
{
private int klassetrinn;
private String skolefag;
public Skolebok(){}
public Skolebok( String f, String t,int sider, double p, int kt, String fag )
{
super( f, t, sider, p );
klassetrinn = kt;
skolefag = fag;
}
public String toString()
... |
package employeeScheduler.model;
import java.time.DayOfWeek;
import java.util.ArrayList;
/**
* Model representing the characteristics of schedule.
*/
public class ScheduleModel {
private ArrayList<Shift> shifts;
private ArrayList<EmployeeModel> employeePreferences;
private Integer scheduleDaysNumber;
... |
package com.easyclean.easyclean;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import a... |
package com.brainacademy.dao;
public class Main {
public static void main(String[] args) {
User user = new User();
user.setId(1L);
user.setAge(29);
user.setEmail("some@mail.net");
user.setName("Vasya");
UserDao userDao = new UserDao();
userDao.save(user);
... |
package model;
public class movieBean {
private String movie_id; //영화아이디(고유값)
private String movie_name; //영화제목
private String movie_class; //등급
private String movie_genre; //장르
private String movie_url; //영화포스터url
private int movie_audience; //관객수
public String getMovie_id() {
return movie_id;
... |
public class FizzBuzz {
private String[] listNumbers;
public FizzBuzz() {
listNumbers = new String[100];
generatePositions();
}
public int getLength() {
return listNumbers.length;
}
private void generatePositions(){
for(int i =0; i < listNumbers.length;i++){
... |
public class Return {
public static void main(String[] args) {
add1(2,2);
add2(2,4);
System.out.println(add2(2,4));
}
static void add1(int num1, int num2){
System.out.println(num1 + num2);
}
static int add2(int num1,int num2){
return num1 + num2;
}
}
|
package component.AI;
import message.CMessage;
import message.Message;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.geom.Vector2f;
import org.newdawn.slick.state.StateBasedGame;
import component.CJBox2D;
import component.Component;
import entity.EntityContainer;
import entity.Player;
public abst... |
package algo;
/**
* Created by orca on 2018/12/27.
*
*/
public class Main {
public static void printMatrix(int[][] matrix){
int i;
for( i = 0 ;i<matrix.length;i++){
for(int j = 0 ;j<matrix[i].length;j++){
System.out.print(matrix[i][j]+" ");
}
... |
package com.lsm.boot.shiro.controller;
import com.lsm.boot.shiro.model.User;
import com.lsm.boot.shiro.util.ShiroUtils;
import com.lsm.boot.shiro.vo.Result;
import com.lsm.boot.shiro.vo.ResultCode;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AccountException;
... |
package com.ihq.capitalpool.userserver.Controller;
import com.ihq.capitalpool.common.RestResult;
import com.ihq.capitalpool.userserver.Entity.User;
import com.ihq.capitalpool.userserver.Entity.UserTemp;
import com.ihq.capitalpool.userserver.Service.UserService;
import org.springframework.beans.factory.annotation.Autow... |
package math;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
public class Pow {
@Test
public void test_pow() {
Set<PostStatType> postStatTypes = new HashSet<>();
postStatTypes.add(PostStatType.TEXT);
postStatTypes.add(PostStatType.LARGE_TEXT);
postStat... |
package com.cakupan.xslt.example;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.File;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import ... |
package com.example.demo;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ExameRepository extends CrudRepository<Exame, Long> {
}
|
package com.example.shoji.bakingapp.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import android.suppo... |
package pkgbexportedqualified;
public class BFromModuleButExportedQualified {
public String doIt(String input) {
return "from pkgbexportedqualified.BFromModuleButExportedQualified, " + input;
}
}
|
package com.ledungcobra.entites;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "COURSE_REGISTRATION_SESSION")
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIn... |
package com.merrisonhotel.dao;
import java.util.List;
import com.merrisonhotel.model.Customer;
public interface CustomerDao {
public Boolean add(Customer customer);
public List<Customer> getCustomers();
public Customer getModelFromConsole();
}
|
package com.ider.ytb_tv.ui.views;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextClock;
/**
* Created by ider-eric on 2016/4/5.
*/
public class GoClock extends TextClock {
public GoClock(Context context) {
super(context);
... |
/**
* Created with IntelliJ IDEA.
* Description:
* User: 张先生
* Date: 2021-04-24
* Time: 9:59
*/
public class TextDemo {
private float f=1.0f;
int m=12;
static int n=1;
public static void main(String args[]){
TextDemo t=new TextDemo();
}
/*
class Test{
pu... |
import java.util.Scanner;
public class As5Q10
{
public static void main(String[] args)
{
int i=0;
Scanner sc=new Scanner(System.in);
System.out.println("Who is the inventor of JAVA?");
for(i=1;i<=3;i++)
{
String a=sc.nextLine();
if(a.equalsIgnoreC... |
package de.tuberlin.dima.minidb.qexec;
import de.tuberlin.dima.minidb.core.DataTuple;
import de.tuberlin.dima.minidb.core.DataType;
import de.tuberlin.dima.minidb.parser.OutputColumn.AggregationType;
public class G10GroupByOperator implements GroupByOperator {
private PhysicalPlanOperator child;
private int[] grou... |
package aliens;
public class Main {
public static void main(String[] args) {
//Creazione giocatore
Giocatore g1 = new Giocatore("Phil", 30);
Giocatore g2 = new Giocatore("Tiri", 30);
//Creazione gruppo alieni
Alieno a1 = new Alieno("Marziano", 15);
Alieno a2 = new Alieno("Venusiano", 8);
Alieno a3... |
package com.forever.service;
/**
* @Description:
* @Author: zhang
* @Date: 2019/6/18
*/
public interface IHelloService {
public String hello(String name);
}
|
package com.huy8895.dictionaryapi.helper;
import com.huy8895.dictionaryapi.model.enums.HtmlTag;
import com.huy8895.dictionaryapi.model.word.Category;
import com.huy8895.dictionaryapi.model.word.Part;
import org.jsoup.nodes.Element;
import org.springframework.stereotype.Component;
@Component
public class ElementHelper... |
package ru.krivocraft.tortoise.core.search;
import ru.krivocraft.tortoise.core.model.Track;
import java.util.List;
import java.util.function.Consumer;
final class AddIfNotAdded implements Consumer<Track.Reference> {
private final List<Track.Reference> references;
AddIfNotAdded(List<Track.Reference> referenc... |
package com.example.bootcamp.commons;
public class ResponseMessage {
public static final String OK = "ok";
public static final String SUCCESS = "Success";
public static final String FAILED = "Failed";
public static final String DATA_VALIDATION_ERROR = "Data Validation Error";
public static final String INTERNAL_... |
package id.barkost.waris;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
i... |
package com.xwj.point;
public interface HelloService {
public void sayHello(String name);
}
|
package tw.org.iii.AbnerJava;
public class Try_Catch_Finally {
public static void main(String[] args) {
// TODO Auto-generated method stub
Finally obj1 = new Finally();
obj1.m1();
}
}
//-----try-catch-finally共有3大結構
//-----1.try - catch -----catch可多個
//-----2.try - catch -----catch可多個 - finally
//-----3.... |
package calTracker.demo.calTracker.Services;
import calTracker.demo.calTracker.Models.Snack;
import calTracker.demo.calTracker.Repos.SnackRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class SnackService {
... |
package pl.bykowski.springbootdata;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.combobox.ComboBox;
import com.vaadin.flow.component.datepicker.DatePicker;
import com.vaadin.flow.component.html.Image;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.f... |
package fr.apocalypse.gestionpersonnage;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.suppo... |
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class user_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactor... |
package projetos.testes;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import cdp.projetos.Produtividade;
public class ProdutividadeTest {
private Produtividade minhaProd;
@Before
public void setUp() throws Exception {
minhaProd = new Produtividade("patentes", 20);
}
@... |
import java.util.*;
/*
* 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.
*/
/**
*
* @author Enneacle
*/
public class ArrayTest {
public static int[] whatHappens(int A[]... |
package org.isc.certanalysis.service;
import org.isc.certanalysis.domain.NotificationGroup;
import org.isc.certanalysis.repository.NotificationGroupRepository;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transac... |
package com.github.iam20.core;
import com.pi4j.wiringpi.SoftPwm;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class MachineController extends Thread {
private String control;
private static final int PIN_NUMBER = 1;
public MachineController(String control) {
this.control = control;
}
@Override
public voi... |
package calculating.methods.composite.formuls;
import java.util.function.Function;
/**
* Created by Ольга on 19.11.2016.
*/
public class Rectangle {
private Double segmentStart;
private Double segmentEnd;
private int numberOfSegments;
private Function<Double, Double> func;
public Rectangle(Dou... |
import java.util.Scanner;
public class BMR_Finder {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double BMR_W, BMR_M; //BMR for both women and man
double weight, height;
int age;
System.out.println("Please input your weight in pounds");
weight = sc.nextDoubl... |
package com.cinema.biz.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cinema.biz.dao.SimDeviceMapper;
import com.cinema.biz.model.SimDevice;
import com.cinema.biz.model.base.TSimDevice... |
package org.point85.domain.file;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import org.point85.domain.polling.PollingClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Class to connect to a file share server and poll f... |
package tui;
public class UserTUI {
}
|
package com.meetingapp.android.activities.notification;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.support.annotation.NonNull... |
package payhelper;
public class PayTester {
public static void main(String[] args) {
Pay p = new Pay("transit", 15, "MRT", "cash");
Pay p1 = new Pay("food", 60, "breakfast", "cash");
}
}
|
package main.java.ru.meeting.spring.controller;
import main.java.ru.meeting.db.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... |
package ejercicio17.a17_bibliotecabd;
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) {
super.onCreate... |
package com.chess;
import java.util.ArrayList;
import com.chess.Pieces.*;
public class Board {
private Square[][] squares;
private boolean whitePlays;
private ArrayList<Piece> wCaptured, bCaptured;
private ArrayList<Move> mHistory;
private ArrayList<Square[][]> moveHistory;
private String[]... |
package slimeknights.tconstruct.smeltery.item;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.uti... |
package com.lenovohit.hcp.test.appointment;
import static org.junit.Assert.*;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import com.lenovohit.core.manager.GenericManager;
import com.lenovohit.hcp.base.model.Department;
import com.lenovohit.hcp.base.model.Dictionary;
import com.... |
/*
* Welcome to use the TableGo Tools.
*
* http://vipbooks.iteye.com
* http://blog.csdn.net/vipbooks
* http://www.cnblogs.com/vipbooks
*
* Author:bianj
* Email:edinsker@163.com
* Version:5.8.0
*/
package com.lenovohit.hwe.base.model;
import java.math.BigDecimal;
import javax.persistence.Column;
import ja... |
package task;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedList;
import status.Status;
public class New_Feature extends Task{
//SUBATAREAS?
public New_Feature(String nombreTask, String descripcionTask, int complejidad,
LinkedList<Task> dependencias, Ar... |
package com.spreadtrum.android.eng;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;
public class engineeringmodel extends PreferenceActivity {
public void onCreate(Bundle savedInstanceState) {
super.o... |
package com.jvschool.dao.api;
import com.jvschool.model.RoleEntity;
public interface RoleDAO {
RoleEntity getRoleByName(String nameRole);
void addRole(RoleEntity role);
}
|
package ServerCode;
import SharedCode.Operations;
import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
public class Server extends UnicastRemoteObject {
protected Server() t... |
package com.swethasantosh.countriescapitals;
import android.content.Intent;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.FrameLayout;
... |
package com.git.cloud.resmgt.common.model;
public enum DeviceStatusEnum {
DEVICE_STATUS_BUILDING("BUILDING"), // 构建中
DEVICE_STATUS_CHANGING("CHANGING"), // 扩容中
DEVICE_STATUS_RECYCLEING("RECYCLEING"), // 回收中
DEVICE_STATUS_ONLINE("ONLINE"), // 已上线
DEVICE_STATUS_OFFLINE("OFFLINE") // 已下线
;
privat... |
package com.pmm.sdgc.model;
import javax.persistence.Embeddable;
import java.io.Serializable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
/**
*
* @author acg
*/
@Embeddable
public class UserTempla... |
package com.semanticsquare.thrillio.entities;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import com.semanticsquare.thrillio.constants.BookGenre;
import com.semanticsquare.thrillio.managers.BookmarkManager;
public class BookTest {
@Test
public void testIsKidFr... |
package bunge;
import bunge.cord.network.BinaryStream;
import bunge.cord.network.protocol.ConnectionPacket;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
/**
* Created by ASUS on 19/02/2018.
*/
public class Test {
public static void main(String[] args){
... |
package com.nextLevel.hero.SYSTEM.controller;
import java.util.Iterator;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.sp... |
package be.odisee.se4.hetnest.domain;
import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "BROUWSELS")
@Data
@RequiredArgsConstructor
@No... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.