text stringlengths 10 2.72M |
|---|
package com.human.ex;
public class quiz0228_11 {
public static void main(String[] args) {
//가위바위보
java.util.Scanner sc = new java.util.Scanner(System.in);
System.out.print("선택하시오(1: 가위 2: 바위 3: 보) : ");
int a = Integer.parseInt(sc.nextLine());
java.util.Random rn = new java.util.Random();
int ... |
package ejercicio3;
public class Persona {
private String nombre, edad, telefono, regalo;
public Persona(String nombre, String edad, String telefono, String regalo) {
this.nombre = nombre;
this.edad = edad;
this.telefono = telefono;
this.regalo = regalo;
}
pub... |
package com.github.silencesu.helper.http;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.silencesu.helper.http.request.param.extend.CookicesParams;
import com.github.silencesu.helper.http.request.param.extend.HeaderParams;
import com.git... |
package br.com.salon.carine.lima.dto;
import java.io.Serializable;
import br.com.salon.carine.lima.validations.DateFilterValidator;
@DateFilterValidator
public class FiltroDataAtendimentoDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String dataInicio;
private String da... |
package io.breen.socrates.test.python;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.breen.socrates.Globals;
import io.breen.socrates.file.python.Object;
import io.breen.socrates.util.Pair;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
i... |
package sonto.db;
import java.util.Map;
import sonto.models.Model;
public abstract class DBIface {
public String host;
public int port;
public String name;
public String user;
public String password;
public DBIface (String host, int port, String name, String user, String pas... |
/*
* 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 com.gsitm.login.controller;
import com.gsitm.login.service.LoginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;... |
package atm;
import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class Account extends JFrame{
public Container c;
public Font f;
pu... |
package day03wrapperclassconcatenatelogicaloperators;
import java.security.DomainLoadStoreParameter;
public class WrapperClass01 {
/*
Wrapper Class: Java created some objects whose values are coming from
primitive data types but the objects have methods as well
Wrapper C... |
/*
* 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 sd.com.br.gui.Cadastros;
import clientesemmaven.Conexoes;
import edu.ifpb.dac.Funcionario;
import ifpb.dac.service.DAOIT;
impo... |
package Main;
import java.util.Scanner;
/**
* Created by Samarth on 5/31/16.
*/
public class QuickSortInPlace {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int size = scanner.nextInt();
int[] array = new int[size];
for (int i = 0; i < siz... |
package com.dbs.portal.ui.component.view;
public class DefaultFreeGridView extends BaseFreeGridView{
public DefaultFreeGridView(int noOfColumn, int noOfRow) {
super(noOfColumn, noOfRow);
}
public DefaultFreeGridView(String caption, int noOfColumn, int noOfRow){
super(caption,noOfColumn,noOfRow);
... |
package elasticsearch.service.impl.abst;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse;
import org.elasticsearch.action.bulk.BulkRequestBuilder;
import org.elasticsearch.action.bulk.BulkResponse;
imp... |
package com.zemoso.training.repository;
import com.zemoso.training.entity.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import or... |
/*
* 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.goldenasia.lottery.data;
import com.goldenasia.lottery.base.net.RequestConfig;
/**
* Created by Sakura on 2016/10/10.
*/
@RequestConfig(api = "?c=game&a=ggc&op=detail")
public class GgcCardDetailCommand
{
private String sc_id;
public String getSc_id()
{
return sc_id;
}
publ... |
/*
* 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.fixit.core.dao.sql.impl;
import org.springframework.stereotype.Repository;
import com.fixit.core.dao.sql.UserStatisticsDao;
import com.fixit.core.data.sql.UserStatistics;
@Repository
public class UserStatisticsDaoImpl extends SqlDaoImpl<UserStatistics, String>
implements UserStatisticsDao {
public f... |
package com.example.gamedb.db.repository;
import android.app.Application;
import android.os.AsyncTask;
import com.example.gamedb.db.GameDatabase;
import com.example.gamedb.db.dao.PlatformDao;
import com.example.gamedb.db.entity.Platform;
public class PlatformRepository {
private PlatformDao mPlatformDa... |
package com.konew.musicapp.controller;
import com.konew.musicapp.model.LoginModel;
import com.konew.musicapp.model.RegisterModel;
import com.konew.musicapp.security.jwt.UserResponse;
import com.konew.musicapp.service.AuthorizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... |
package egovframework.adm.prop.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.Log... |
package KataProblems.week8.SimpleMaze;
public class SimpleMaze {
public static char[][] newMaze;
public static boolean pathFound;
public static boolean hasExit(String[] maze) {
int maxLength=0;
boolean singleK=false;
int rowPos=-1;
int colPos=-1;
pathFound=false;
... |
package com.example.gtraderprototype.model;
import android.content.Context;
import android.provider.ContactsContract;
import android.util.Log;
import com.example.gtraderprototype.entity.Difficulty;
import com.example.gtraderprototype.entity.GameInstance;
import com.example.gtraderprototype.entity.Player;
import java... |
package com.tushar.lms.book.serviceimpl;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotat... |
package cz.muni.pv239.marek.exercise5.fragments;
import android.app.ListFragment;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import cz.muni.pv239.marek.exercise5.R;
/**
* Created by Andy on 04-Jan-15.
*/
public class StepTitleFragment ext... |
package com.stk123.model.bo;
import com.stk123.common.util.JdbcUtils.Column;
import java.io.Serializable;
import com.stk123.common.util.JdbcUtils.Table;
import java.sql.Timestamp;
@SuppressWarnings("serial")
@Table(name="STK_EARNINGS_FORECAST")
public class StkEarningsForecast implements Serializable {
@Column(n... |
package game;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
public class Predictor {
Piece piece;
Piece piece2;
ArrayList<Piece> pieces = new ArrayList<Piece>();
int[][] prediction = new int[22][10];
int[][] staticb = new int[22][10];
//test
public void updatePrediction(Piec... |
/*
* Nice Numbers for Graph Labels
* by Paul Heckbert
* from "Graphics Gems", Academic Press, 1990
*/
/*
* label.c: demonstrate nice graph labeling
*
* Paul Heckbert 2 Dec 88
*/
/* main(ac, av)
int ac;
char **av;
{
double*locs, min, max;
int i, NTICK;
if (ac!=4) {
fprintf(stderr,... |
/**
*
*/
package com.oriaxx77.javaplay.threads.utilities.executors;
import java.util.concurrent.Executor;
/**
* A very simple non-asynchronous {@link Executor} implementation.
* The {@link #execute(Runnable)} method simply calls the passed
* command's run() method. The {@link #main(String[])} method ... |
package seedu.project.model.task;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.project.logic.commands.CommandTestUtil.VALID_DEADLINE_CP2106;
import static seedu.project.logic.commands.CommandTestUtil.VALID_DESCRIPTION_CP2106;
import static seedu.project.log... |
package com.github.dockerjava.core.command;
import com.github.dockerjava.api.command.CreateExecCmd;
import com.github.dockerjava.api.command.CreateExecResponse;
public class CreateExecCmdImpl extends BaseExecCmdImpl<CreateExecCmd, CreateExecResponse> implements CreateExecCmd {
public CreateExecCmdImpl(CreateExecCmd... |
package me.lordall.lordrp.command;
import me.lordall.lordrp.mysql.PlayerMysql;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerMoveEvent;
/**
* Create... |
/*
* 자바의 컬렉션프레임웍의 객체 중 데이터가 key-value의 쌍으로 되어 있는 형식을 전담하여
* 처리할 수 있는 객체를 Properties라 한다.
* 이 세상의 여러 형태의 데이터 형식 중 오직 key-value로 된 쌍만을 이해한다!!
* */
package study;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
public class PropTest {
p... |
package hw7.com.company.vehicles;
import hw7.com.company.details.Engine;
import hw7.com.company.professions.Driver;
public class Lorry extends Car {
private int capacity;
public Lorry(String carBrand, String carCaseType, int weight, int capacity, Engine engine, Driver driver) {
super(carBrand, carCas... |
/*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.json;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yahoo.cubed.util.Utils;
import lombok.Data;
import lombok.extern.slf4j.Sl... |
package com.flyingh.moguard;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ScrollView;
import android.widget.TextView;
... |
package lab5.abstracts;
import lab5.util.Validador;
import lab5.ids.ProdutoID;
import java.util.Objects;
/**
* Representação do produto no sistema
*
* @author Charles Bezerra de Oliveira Júnior - 119110595
*
*/
public abstract class Produto implements Comparable<Produto> {
/**
* nome do produto
*/... |
package com.codecool.tripplanner;
import android.app.Application;
import com.codecool.tripplanner.roomdatabase.DestinationRepository;
import com.codecool.tripplanner.roomdatabase.entity.Destination;
public class AddDestinationPresenter<V extends AddDestinationView> implements BasePresenter<V> {
private Destinat... |
package ru.mirea.pr3;
import java.lang.*;
public class Book{
private String authorname;
private String description;
private int pagesnums;
public Book(String c, String d,int p){
authorname = c;
description = d;
pagesnums=p;
}
public void setAuthorName(String authorname) ... |
package com.example.login.model;
public class UserInfo {
private String userId;
private String[] roles;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String[] getRoles() {
return roles;
}
... |
package com.example.g0294.tutorial.datastorage;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.List;
public class ContactDao {
private SQLiteDatabase db;
private ... |
package com.example.test;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequ... |
package com.handpay.obm.common.utils;
import java.io.*;
import java.nio.channels.Channels;
import java.nio.channels.FileChannel;
import java.nio.channels.ReadableByteChannel;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import j... |
package com.docker.storage.mongodb;
import java.util.Collection;
import com.docker.data.DataObject;
import com.docker.storage.DBException;
import org.bson.Document;
import org.bson.conversions.Bson;
import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCursor;
import com.mongodb.client.model.CountOp... |
public class Batman {
public static void main(String[] args) {
System.out.println("I will catch you");
// adding more stuff - yes he will catch him
// batmans car is cool
// michael and george were the best batman characters
}
}
|
package TesteSite;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
/**
*
* Classe teste.
* Pode-se melhorar muito a codificação e utiliz... |
/*
* Copyright (c) 2016. Osred Brockhoist <osred.brockhoist@hotmail.com>. All Rights Reserved.
*/
package com.flyingosred.app.perpetualcalendar.database.lunar;
public class Lunar {
private int mYear;
private int mMonth;
private int mDay;
private int mDaysInMonth;
private boolean mIsLeapMonth;
... |
package com.txstats.common.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* @author Vinod Kandula
*/
@SuppressWarnings("serial")
@ResponseStatus(value = HttpStatus.NO_CONTENT)
public class StaleTransactionException extends Exception {
}
|
package ke.co.edgar.alc4;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;... |
package com.elkadakh.others;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureRegi... |
package net.gupt.ebuy.service;
import net.gupt.ebuy.dao.RegistDao;
import net.gupt.ebuy.dao.RegistDaoImpl;
import net.gupt.ebuy.pojo.Customer;
/**
* 用户注册模块业务接口实现类
* @author glf
*
*/
public class RegistServiceImpl implements RegistService{
private RegistDao registDaoImpl = new RegistDaoImpl();
public boolean sub... |
package com.lesports.albatross.adapter.compertition;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.lesports.albatross.R;
import com.lesports.albatross.adapter.BaseListAdapter;
/**
* 直播流,使用gridview
* Created by zhouchenbin on 16/6/27.
*/
@Deprecated
public cla... |
package com.logzc.webzic.orm.jdbc;
import com.logzc.webzic.orm.db.DbConnection;
import com.logzc.webzic.orm.db.DbResults;
import com.logzc.webzic.orm.support.ConnectionSource;
import com.logzc.webzic.orm.util.OrmUtils;
import java.io.IOException;
import java.sql.*;
/**
* Created by lishuang on 2016/8/23.
*/
public... |
/*
* Lesson 29 Coding Activity 1
* A student wants an algorithm to find the hardest spelling
* word in a list of vocabulary. They define hardest by the longest word.
* Write the code to find the longest word stored in an array of Strings called list.
* If several words have the same length it should print the fir... |
package java2plant;
import java.io.File;
import java2plant.control.Controller;
import java2plant.control.ToCtrl;
import java2plant.model.ClassList;
/**
*
* @author arthur
*/
public class Java2Plant {
// TODO: clean up
private static File fInputDir;
private static File fOutputDir;
/**
* @pa... |
package com.example.photoshare;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toas... |
import org.apache.axis.AxisFault;
import javax.xml.rpc.ServiceException;
import java.net.MalformedURLException;
public interface UserCheckService {
boolean CheckIfRealPerson(User user) throws AxisFault, MalformedURLException, ServiceException;
}
|
/**
*
* @author Iago Nogueira <iagonogueira227@gmail.com>
*/
public class No {
private No next;
private int item;
public No ( int item ) {
this.item = item;
}
public No ( int item, No next ) {
this.item = item;
this.next = next;
}
public No getNext() {... |
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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 applica... |
/**
* <copyright>
* </copyright>
*
*
*/
package ssl.resource.ssl.grammar;
public class SslContainment extends ssl.resource.ssl.grammar.SslTerminal {
public SslContainment(org.eclipse.emf.ecore.EStructuralFeature feature, ssl.resource.ssl.grammar.SslCardinality cardinality, int mandatoryOccurencesAfter) {
su... |
package com.ws;
import java.util.Scanner;
/**
* @author shuo.wang
* @date 19-9-27
*/
public class ProcessDemo {
public static void main(String[] args) throws Exception{
Thread.sleep(20000);
ProcessBuilder pb = new ProcessBuilder("java", "-cp /home/shuowang/IdeaProject/study-demo/jdk-demo/src/m... |
package org.usfirst.frc.team548.robot;
import com.ctre.CANTalon;
import com.ctre.CANTalon.FeedbackDevice;
import com.ctre.CANTalon.TalonControlMode;
public class Shooter {
private static Shooter instance;
public static Shooter getInstance() {
if(instance == null) instance = new Shooter();
return ... |
package bychkov.sergey.audiobookplayer;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
impo... |
package pl.edu.pw.mini.taio.omino.app.utils;
public class ColorConverter {
public static javafx.scene.paint.Color awtToFx(java.awt.Color color) {
return javafx.scene.paint.Color.rgb(color.getRed(), color.getGreen(), color.getBlue());
}
public static java.awt.Color fxToAwt(javafx.scene.paint.Color ... |
package com.union.express.web.employee.jpa.dao;
import com.union.express.web.employee.model.Employee;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
* @author linaz
* @created 2016.08.08 13:54
*/
public inte... |
/*
Given an initial array nums = [4,5,8,2] and an integer k,
each time I call add(int val) method, it should return the current kth
largest number including this newly added integer val.
For example:
Input = [4,5,8,2], k = 3
k.add(3) // return 4 because 4 is the 3rd largest in [4,5,8,2,3]
... |
package com.regnant.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class GetDBConnection {
public static Connection getDBConnection() {
Connection connection=null;
try {
Class.forName("com.mysql.jdbc.Driver");
connection=DriverManager.getConnection("jd... |
package com.sailaminoak.saiii;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.fragment.app.FragmentTransaction;
import android.Manifest;
im... |
/**
* @Author: Asher Huang
* @Date: 2019-10-06
* @Description: PACKAGE_NAME
* @Version:1.0
*/
public class ThreadTest {
public static void main(String[] args) {
System.out.println("main线程1在运行");
MyThread myThread = new MyThread();
//启动线程,启动的方法是调用start()方法,而不是去调用run()方法
// 线程只能启动1... |
/*
* 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 applicable law or... |
package com.winksoft.idcardcer.net.mfs.app;
import java.nio.charset.Charset;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.CumulativeProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolDecoderOutput;
import java.nio.charset.Cha... |
package modele;
import geocache.UserEntity;
import utils.JpaDao;
public class UserDao extends JpaDao<UserEntity> implements DAOInterface{
private static UserDao instance;
public UserDao() {
super(UserEntity.class);
}
public static UserDao getInstance(){
if(instance == null) {
... |
package com.other;
public class AtoI {
public int atoi(String s) {
if(s== null) return 0;
int length = s.length();
if(length <1) return 0;
double result = 0;
char flag = '+';
int i=0;
if(s.charAt(0) == '-') {
flag = '-';
i++;
}else if(s.charAt(0)=='+') {
i++;
}
while(leng... |
package fundamentos.tarefas;
import java.util.Scanner;
public class Tarefa3 {
public static void main(String[] args) {
/*
* Criar um programa que leia o peso e
* a altura do usuário e imprima no
* console o IMC.
*/
Scanner entrada = new Scanner(System.in);
System.out.println("Informe seu Peso:... |
package org.squonk.execution.steps;
/**
* Created by timbo on 19/01/17.
*/
public interface StatusUpdatable {
void updateStatus(String status);
}
|
package com.limegroup.gnutella.gui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.BorderFactory;
impor... |
package com.zzp.seckill.entity;
/**
* @Description 用户信息
* @Author Garyzeng
* @since 2021.01.19
**/
public class User {
}
|
/*
* 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 entity;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import ja... |
package com.bigbang.myfavoriteplaces.database;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import com.bigbang.myfavoriteplaces.model.Location;
import java.util.List;
import io.reactivex.Flowable;
@Dao
public interface DAO {
@Ins... |
package Proyecto;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextArea;
import java.awt.Color;
import java.awt.SystemColor;
import java.awt.Font;
import java.awt.Toolkit;
import javax.swing.J... |
package com.xi.studyDemo;
/**
* Created by Administrator on 2016/3/8.
*/
class Person {
public Person(){
System.out.println("this is a Person");
}
protected int getPrice() {
return 30;
}
}
|
package model;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collections;
import exceptions.LoseException;
import processing.core.PApplet;
public class Logic {
private MainCharacter mc;
private ArrayList<Car> cars;
private ArrayList<Player> players;
private ArrayList<Car> lane1... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.metoo.foundation.domain;
/**
*
* <p>
* Title: LogType.java
* </p>
*
* <p>
* Description:日志类型枚举类型,系统未过多使用,可不比关注,特殊又需要的可以使用该类
* </p>
*
* <p>
* Copyright: Copyright (c) 2014
* </p>
*
* <p>
* Company: 沈阳网之商科技有限公司 www.koala.com
* </p>
*
* @author erikzhang
*
* @da... |
/**
* This class is generated by jOOQ
*/
package schema.tables.records;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record7;
import org.jooq.Row7;
import org.jooq.impl.UpdatableRecordImpl;
import schema.tables.StudentManualenrollme... |
package net.lantrack.framework.sysbase.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 登录信息
* @date 2019年1月17日
*/
public class LoginInfo implements Serializable {
/**
* 登录名
*/
private String loginName;
/**
* 账户是否被禁用(0否1是)
*/
private String ifForbidden="0";
/**
* 是否锁定(0否1... |
package com.entse.testcases;
import com.entse.base.Page;
import com.entse.pages.actions.SignInPage;
import com.entse.utilities.Utilities;
import org.testng.SkipException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.anno... |
package collection;
import org.junit.Before;
import org.junit.Test;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Iterator;
import java.util.Properties;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import sta... |
package com.example.blog;
import java.util.ArrayList;
import javax.servlet.annotation.WebServlet;
import com.example.blog.Broadcaster.BroadcastListener;
import com.example.blog.model.Post;
import com.example.blog.model.User;
import com.vaadin.annotations.Push;
import com.vaadin.annotations.Theme;
import com.vaadin.a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package network;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
*
* @author dimitriv
*/
public class Reservation implements Comparable<Reservation> {
Node sender;
Set<Node> bloc... |
package com.citibank.ods.entity.pl.valueobject;
import java.util.Date;
/**
* @author m.nakamura
*
* Representação da tabela de histórico de contrato.
*/
public class To3ProductAccountHistEntityVO extends
BaseTo3ProductAccountEntityVO
{
// Data de referência do registro no histórico
private D... |
package com.healthmarketscience.jackcess.scsu;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/*
* This sample software accompanies Unicode Technical Report #6 and
* distributed as is by Unicode, Inc., subject to the following:
*
* Copyright 1996-1997 Unicode, Inc.. All Right... |
package com.example.tecomca.mylogin_seccion05.Activities;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Patterns;
import android.view.View;
import android.widget.But... |
package com.test.base;
import java.util.List;
/**
* Given a binary tree and a sum, find all root-to-leaf paths
* where each path's sum equals the given sum.
*
* 有一个二叉树和目标值,有从 root-leaf的路径,满足,节点值的和等于目标值;全部找到
*
* @author YLine
*
* 2018年11月27日 下午7:36:54
*/
public interface Solution
{
public List<List<Int... |
/*
* 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 PO;
/**
*
* @author QueroDelivery
*/
public class estabelecimento {
private int cod_estab;
private String nom_estab... |
package pro.likada.rest.wrapper.autograph;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by abuca on 24.03.17.
*/
public class RPointWrapper {
@JsonProperty("Lat")
private Double latitude;
@JsonProperty("Lng")
private Double longitude;
public Double getLatitude() {
... |
package org.shujito.cartonbox.controller.task;
import java.io.InputStream;
import org.shujito.cartonbox.model.parser.GelbooruTagsParser;
import org.shujito.cartonbox.model.parser.XmlParser;
public class GelbooruTagsDownloader extends XmlDownloader
{
public GelbooruTagsDownloader(String url)
{
super(ur... |
/*
* Copyright 2002-2016 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 Bean;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Vector;
/**
* @author dmrfcoder
* @date 2019-04-15
*/
public class Memory {
private double memorySize;
private final Vector<Message> messageVector;
private volatile double curSize;
public double getMemoryPercentag... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.