text stringlengths 10 2.72M |
|---|
package edu.uci.ics.sdcl.firefly.report.predictive;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Vector;
import edu.uci.ics.sdcl.firefly.Answer;
import edu.uci.ics.sdcl.firefly.Microtask;
import edu.uci.ics.sdcl... |
package com.appsolute.todolist;
import java.util.Date;
import io.realm.RealmObject;
public class ToDoItem extends RealmObject {
private String id;
private Date date;
private String content;
private boolean isImportant;
private boolean isDDay;
private Date dueDate;
private b... |
package code.logic.comparasioninstructions;
import code.SpecyficValue;
import code.Type;
import code.logic.Comparasion;
import errors.BadArgumentsError;
import errors.BadTableUsingException;
import errors.BadTypeError;
import errors.NotInicializedVariableException;
import errors.ZeroDivideException;
public... |
package dentistrymanager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.Date;
import java.sql.SQLException;
import java.sql.Time;
import java.util.ArrayList;
import java.util.Calendar;
import javax.swing.JFrame;
import javax.swing.JPanel;
import j... |
package ku.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* iterator allows to modify values and keys while iterating over Arrays and Objects.
* Many collections and data structures provide an Iterator so
* we can iterate over all the elements in the collection
* without knowing t... |
package com.pine.template.config.model;
import androidx.annotation.NonNull;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.pine.template.config.BuildConfig;
import com.pine.template.config.ConfigApplication;
import com.pine.template.config.ConfigKey;
import com.pine.template.config.... |
package com.thoughtstream.aepf.zk;
import com.thoughtstream.aepf.beans.Event;
import com.thoughtstream.aepf.beans.QueuedEvent;
import com.thoughtstream.aepf.beans.Watermark;
import com.thoughtstream.aepf.handlers.*;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.leade... |
package com.mycompany.rest.service.test;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.Produces;
import actor.*;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Joel
*/
@Path("actors")
public class NewDatabaseRest {... |
package com.guptas.android.datahelper;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import com.firebase.client.ValueEventListener;
import com.guptas.android.R;
/**
* Created by sakshiagarwal on 08/04/16.
*/
public class MatchDataHelper {
private static MatchDataHelper instance;
pr... |
package com.polsl.edziennik.desktopclient.controller.admin.teachers;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import com.polsl.edziennik.desktopclient.controller.admin.AdminAction;
import com.polsl.edziennik.desktopclient.view.admin.AdminMainView;
import com.polsl.edziennik.desktopcli... |
package com.jamaco.ribus;
import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
impor... |
package bookexercises.chapter1.fundamentals.one;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
/**
* Write a program that reads in lines from standard input with each line containing
* a name and two integers and then uses printf() to print a table with a column of
* the names, the int... |
package com.tencent.mm.t;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.text.Span... |
package com.question.dao;
import com.question.model.Title;
import org.springframework.stereotype.Repository;
@Repository
public interface TitleDao {
/**
* 获取对应问题id的题目
* @param questionId
* @return
*/
Title getTitle(int questionId);
/**
* 获取题目总数
* @return
*/
... |
package com.eatme.eatmeserver.business.entity;
public enum PlayerAction {
NO_ACTION,
MOVE_LEFT,
MOVE_UP,
MOVE_RIGHT,
MOVE_DOWN,
}
|
package com.tencent.mm.ui.chatting.g;
import com.tencent.mm.ui.chatting.g.h.1;
class h$1$1 implements Runnable {
final /* synthetic */ 1 tYJ;
h$1$1(1 1) {
this.tYJ = 1;
}
public final void run() {
if (this.tYJ.tYI.tXZ != null) {
this.tYJ.tYI.tXZ.y(this.tYJ.tXV, this.tYJ.t... |
package ch02.ex02_15;
public class Vehicle {
private double velocity; // 現在のスピード
private double direction; // 現在の方向
private String owner; // 所有者
private long idNum;
private static long nextID = 0;
public Vehicle() {
idNum = nextID++;
}
public... |
package com.shankar1190.deltadrain;
/*
* @author: shankar1190
*/
import com.google.gson.Gson;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.vi... |
package com.jaysyko.sykodoro;
import android.os.Bundle;
import android.app.Activity;
public class TaskList extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_task_list);
}
}
|
package com.example.places.model.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.time.LocalTime;
@AllArgsConstructor
@Data
public class IntervalDto {
private String from;
private String to;
}
|
package real;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class TestNewTours {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome... |
package br.ufs.livraria.enumeration;
public enum UsuarioTipo {
USUARIO(0, "Usuário"), FUNCIONARIO(1, "Funcionário"), CLIENTE(2, "Cliente");
private final int valor;
private final String descricao;
private UsuarioTipo(int valor, String descricao) {
this.valor = valor;
this.descricao = descricao;
}
public i... |
package com.tencent.mm.plugin.voiceprint.model;
import android.os.Message;
import com.tencent.mm.plugin.voiceprint.model.p.b;
import com.tencent.mm.sdk.platformtools.ag;
class p$b$1 extends ag {
final /* synthetic */ p oFC;
final /* synthetic */ b oFD;
p$b$1(b bVar, p pVar) {
this.oFD = bVar;
... |
package com.web.mapper;
import com.web.pojo.TbComment;
public interface TbCommentMapper {
int deleteByPrimaryKey(Integer id);
int insert(TbComment record);
int insertSelective(TbComment record);
TbComment selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(TbComment record);
i... |
package com.swipejobs.worker.service.impl;
import com.swipejobs.worker.model.Worker;
import com.swipejobs.worker.service.WorkerService;
import com.swipejobs.worker.util.JsonUtil;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mockito;
import org.springframework.be... |
package client;
import client.interfaces.MessageListener;
import client.interfaces.ClientGUIListener;
import gui.ClientGUI;
import gui.ConnectGUI;
import message.*;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import java.awt.*;
import java.util.ArrayList;
/**
*
* @... |
package basics;
import java.util.Locale;
import java.util.Scanner;
/**
* Simple triangle area calculator.
*
* @author Aga
*
*/
public class TriangleArea {
static double halfCircumferenceOfTriangle(double lengthA, double lengthB, double lengthC) {
return (lengthA + lengthB + lengthC) / 2;
}
public static ... |
package com.tencent.mm.plugin.aa.ui;
public interface a$a {
void We();
}
|
package com.tuitaking.array;
/*
给你 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。
在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。
找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。
说明:你不能倾斜容器,且 n 的值至少为 2。
示例:
输入:[1,8,6,2,5,4,8,3,7]
输出:49
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/container-with-most-water
著作权归领扣网络所有。商业转载请联系官方授权... |
package com.mjwall;
import okhttp3.Call;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class OkHttpTest {
class MyResponse {
... |
package com.maweiming.wechat.bot.model.initialization;
import com.alibaba.fastjson.annotation.JSONField;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* maweiming.com
* Copyright (C) 1994-2018 All Rights Reserved.
*
* @author CoderMa
... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
package task2_recommend;
import java.io.IOException;
import java.util.Map;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apa... |
package co.nos.noswallet.kyc;
import android.util.Log;
import javax.inject.Inject;
import co.nos.noswallet.MainActivity;
import co.nos.noswallet.base.BasePresenter;
import co.nos.noswallet.kyc.done.DoneFragment;
import co.nos.noswallet.kyc.emailAddress.EmailAddressFragment;
import co.nos.noswallet.kyc.homeAddress.Ho... |
package gr.athena.innovation.fagi.learning;
import gr.athena.innovation.fagi.core.function.literal.AbbreviationAndAcronymResolver;
import gr.athena.innovation.fagi.core.normalizer.AdvancedGenericNormalizer;
import gr.athena.innovation.fagi.core.normalizer.BasicGenericNormalizer;
import gr.athena.innovation.fagi.core.s... |
import java.util.LinkedList;
public class Conta {
private static final int TAM = 100; // Constante do tamanho da lista de contas do Jackut
private String nome;
private String login;
private String senha;
private MensagemSimples[] caixaDeEntradaSimples;
private MensagemSecreta[] caixaDeEntrada... |
package com.service.distribution.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.distribution.DistributionDao;
import com.pojo.DistributionRecord;
import com.service.distribution.Distribut... |
package com.javaneversleep.tankwar;
import org.junit.jupiter.api.Test;
import java.awt.Image;
import static org.junit.jupiter.api.Assertions.assertTrue;
class TankTest {
@Test
void getImage() {
for (Direction direction : Direction.values()) {
Tank tank = new Tank(0, 0, false, direction)... |
package blind75.week1.validpalindrome;
public class Solution {
public static void main(String[] args) {
}
public boolean isPalindrome(String s) {
var sb = new StringBuilder();
for (var character : s.toCharArray()) {
if (Character.isAlphabetic(character) || Character.isDigit(ch... |
package com.and.blf.popularmovies.utils;
import android.content.Context;
import android.net.Uri;
import android.support.annotation.NonNull;
import com.and.blf.popularmovies.R;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java... |
package com.vilio.plms.dao;
import com.vilio.plms.pojo.MessageInfo;
import java.util.List;
import java.util.Map;
/**
* 类名: MessageInfoDao<br>
* 功能:推送信息表Dao<br>
* 版本: 1.0<br>
* 日期: 2017年8月17日<br>
* 作者: wangxf<br>
* 版权:vilio<br>
* 说明:<br>
*/
public interface MessageInfoDao {
//插入推送信息表
public int inser... |
package com.example.ComicToon.Models.ModelRepositories;
import java.util.List;
import com.example.ComicToon.Models.UserModel;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface UserRepository extends MongoRepository<UserModel, String>{
public UserModel findByusername(String userna... |
package com.noyan.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class AmigoscodeCourseApplication {
public static void main(String[] args) {
SpringApplication.run(AmigoscodeCourseApplication.class, args);... |
package nowcoder.剑指offer;
import java.util.LinkedList;
/**
* @Author: Mr.M
* @Date: 2019-03-09 12:37
* @Description: 孩子们的游戏(圆圈中最后剩下的数) 约瑟夫圈
**/
public class T46孩子们的游戏 {
public static int LastRemaining_Solution(int n, int m) {
LinkedList<Integer> list = new LinkedList<Integer>();
int bt = 0;
for (int i = ... |
package com.graphic.RNCanvas;
import java.util.Stack;
public class CanvasDrawingStateManager {
private final Stack<CanvasDrawingState> states = new Stack<CanvasDrawingState>();
private void setUpNewState() {
this.states.push(new CanvasDrawingState());
}
private void setUpNewState(CanvasDr... |
//package bufmgr;
//
//import java.util.LinkedList;
//
//import global.PageId;
//
//public class BufferHt {
//
// public static final int ARR_SIZE = 128;
// private LinkedList<HTObject> table = new LinkedList[ARR_SIZE];
//
// public BufferHt() {
// //init vals in array
// for(int i=0; i < ARR_SIZE... |
package com.example.user.myapplication.Game;
import android.os.Bundle;
import com.example.user.myapplication.R;
/**
* Created by Acrylon3 on 11/04/2017.
*/
public class ComputerGame extends FiveDiceGame {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... |
package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.widget.verticalviewpager;
import android.os.Bundle;
import android.support.v4.view.a;
import android.support.v4.view.a.b;
import android.support.v4.view.a.f;
import android.view.View;
import android.view.accessibility.Acce... |
package com.lyj.project;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;
/**
* 시/도별 감염현황 데이터 중 오른쪽 줄
*/
public class CovidRightAreaItemView extends LinearLayout {
private TextView tv_areaNam... |
/*
Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.
If target is not found in the array, return [-1, -1].
You must write an algorithm with O(log n) runtime complexity.
Input: nums = [5,7,7,8,8,10], target = 8
Output: [3,4]
*/
class Solution... |
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int lastAnswer = 0;
int n = in.nextInt();
int q = in.nextInt();
int x, y, query;
ArrayList<Integer>[] seqList ... |
import java.io.*;
/**
* Created by Roni on 3/24/2016.
*/
public class Writer {
public static void main(String[] args) {
try (
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("res/file"));
FileWriter fileWriter = new FileWriter("res/file");
) {
... |
package org.collections;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
public class LinkedList<E> implements List<E> {
private final Node<E> first = new Node<>(null);
private Node<E> last = first;
private int size = 0;
@Override
pub... |
/*
* 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 agreed to in writing, software
* distr... |
package com.tiandi.logistics.entity.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombo... |
package com.tencent.mm.plugin.collect.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.collect.b.m;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.wallet_core.ui.e;
class Colle... |
package Q3;
public class C extends B{
public C() {
System.out.println("C");
}
public static void main(String[] args) {
A a = new A();
A a1 = (A)new A();
// A a2 = (B)new A();
// A a3 = (C)new A();
//
//
//
// B a4 =(B) new A();
// B a5 =(C) new A();
//
//... |
package com.wllfengshu.mysql.model.vo;
import lombok.Data;
/**
* 连接该mysql服务器的用户对象
*/
@Data
public class UserVO {
private String ip;
private String port;
private String username;
private String password;
}
|
package com.csc214.rvandyke.multithreadedapplication;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.wid... |
package com.pez.audio_player_application.database;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.text.TextUtils;
import android.util.Log;
import com.pez.audio_player_application.AudioPlayerApplication;
impor... |
package com.yifei.bean;
public class statisticForSensor{
private Integer total;
private Integer max;
private Integer min;
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public Integer getMax() {
return max;
}
public void setMa... |
package dino.task;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
* Tasks that need to be done before a specific date/time
* e.g., submit report by 11/10/2019 5pm
* It is a subclass of Task
*/
public class Deadline extends Task {
private LocalDate by;
/**
* Constructs a ... |
package com.tfjybj.integral.model.ColleagueResult;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
* @program: integralV3.0-sprint1.0
* @description: 项目组内Task数据
* @author: 谷浩樟
* @create: 2019-09... |
package com.goShopp.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.validator.constraints.Not... |
package view;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.text.NumberFormat;
import java.util.List;
import javax.swing.*;
import org.jfree.chart.ChartColor;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.Categ... |
package judge.ecosys;
import com.google.gson.GsonBuilder;
import org.knowm.xchart.SwingWrapper;
import org.knowm.xchart.XYChart;
import org.knowm.xchart.XYChartBuilder;
import org.knowm.xchart.XYSeries;
import org.knowm.xchart.style.Styler;
import java.io.IOException;
import java.net.URISyntaxException;
import java.n... |
package net.chrisrichardson.eventstore.examples.customersandorders.order;
import io.eventuate.AggregateRepository;
import io.eventuate.EntityWithIdAndVersion;
import net.chrisrichardson.eventstore.examples.customersandorders.common.domain.Money;
import java.util.concurrent.CompletableFuture;
public class OrderServic... |
package com.example.entity;
import java.util.Collection;
import javax.persistence.DiscriminatorValue;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
/**
*
* @author Binnur Kurt <binnur.kurt@gmail.com>
*/
@Entity
@DiscriminatorValue("developer")
public class Developer extends Employe... |
package Json;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.charset.Charset;
import org.json.JS... |
/**
* Tipos de erros referente aos VOs.
*/
@Vetoed
package br.ufla.lemaf.ti.lemaf4j.common.errors;
import javax.enterprise.inject.Vetoed;
|
package com.training.day20.compare;
public class B {
public static void main(String[] args) {
A a = new A() {
@Override
public void m1() {
System.out.println("implemented");
}
};
a.m1();
}
}
|
/*
* Informações sobre a criação do arquivo.
* Autor: Mário de Araújo Carvalho
* E-mail: mariodearaujocarvalho@gmail.com
* GitHub: https://github.com/MarioDeAraujoCarvalho
* Ano: 13/5/2017
* Entrar em contado para maiores informações.
*/
package com.synckware.fastframeworkapp.view.activities;
import... |
package test.main;
import test.mypac.Weapon;
public class MainClass05 {
public static void main(String[] args) {
//익명클래스를 이용해서 1회용 Weapon type 의 참조값 얻어내서 메소드 호출하기
useWeapon(new Weapon() {
@Override
public void attack() {
System.out.println("고양이를 공격해요!");
}
});
}
public static void useWeapon(W... |
package de.thm.swtp.studiplaner.model;
public class Termin {
private String date;
private String entry;
public Termin(String date, String entry) {
this.date = date;
this.entry = entry;
}
public void setDate(String date) {
this.date = date;
}
public String getDate() {
return d... |
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
/*
* Calendar class that creates a calendar of specific dimensions
*/
public class Calendar{
static JLabel lblMonth, lblYear;
static JButton btnPrev, btnNext;
static JTab... |
package com.e6soft.api.port;
import java.io.Serializable;
import java.util.List;
/**
* @author 陈福忠
*
*/
public class BuyReturnDto implements Serializable {
/**
*
*/
private static final long serialVersionUID = -569083164576731542L;
/**
* 0表示成功,1表示失败回退修改。2表示拒保
*/
private Integer status;
private St... |
package test;
public class Test4 {
/**用数组创建栈 */
public static class Stack<E> {
//初始化栈的最大容量为100
private static final int totall = 100;
private Object[] datas;
//n记录目前堆栈顶端的变量
private int n;
//初始化堆栈,此时为一个空栈
public Stack() {
this.n = 0;
this.datas = new Object[totall];
}... |
package com.tencent.tencentmap.mapsdk.a;
import java.io.IOException;
public class pt extends IOException {
public pt(String str) {
super(str);
}
}
|
package com.aitest.web.entity;
public class PermissionEntity {
public int permissionId;
public String permissionName;
public String description;
public String createdTime;
public String modifiedTime;
public int getPermissionId() {
return permissionId;
}
public void setPermissionId(int permissionId) {
t... |
/**
* User: Alexandr
* Date: 07.10.2014
*/
public class Main {
public static void main(String[] args) {
/*
Следующие 3 строки создают дерево:
1
/ \
2 3
/ \ / \
2_1 2_2 3_1 3_2
*/
... |
/**
* https://www.codewars.com/kata/582e0e592029ea10530009ce
*/
public class DuckDuckGoose {
public static String duckDuckGoose(Player[] players, int goose) {
goose -= 1;
return players[(goose%players.length)].name;
}
}
|
package com.example.androidwear.models;
import java.io.Serializable;
/**
* Created by Rik Van Belle on 24/11/2017.
*/
public class Beer implements Serializable {
private String name;
private double alcoholPercentage;
private String description;
private String urlImage;
public Beer(... |
package com.example.jinliyu.shoppingapp_1.data;
/**
* Created by jinliyu on 4/15/18.
*/
public class Subcategory {
String subcateId;
String subcateNanme;
String subcateDescription;
String subcateImage;
public Subcategory(String subcateId, String subcateNanme, String subcateDescription, String s... |
package arrays;
import java.util.ArrayList;
import java.util.HashSet;
public class ComplementPair {
private int complementNumber;
public ArrayList<HashSet<Integer>> result;
private int[] hashTable;
public ComplementPair(int complementNumber){
this.complementNumber=complementNumber;
result= new ArrayList<Hash... |
package uk.gov.justice.artemis.manager.connector;
import java.util.Iterator;
import java.util.List;
public interface ArtemisConnector {
List<MessageData> messagesOf(final String host, final String port, final String brokerName, final String destinationName) throws Exception;
long remove(final String host, f... |
package com.tencent.mm.pluginsdk.model.app;
import com.tencent.mm.g.a.hd;
import com.tencent.mm.k.g;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.bi;
class ao$3 extends c<hd> {
final /* synthetic */ ao qAR;
ao$3(ao aoVar) {
this.qAR = aoVar;
this.sFo = hd.class.getNa... |
package br.com.teste.agenda.service.command;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.teste.agenda.dto.command.TelefoneCommandDto;
import br.com.teste.agenda.entity.Telefone;
import br.com.teste.agenda.repository.TelefoneRepository;
im... |
/*
* created 12.03.2005
*
* $Id: TableEditPart.java 678 2008-02-17 22:52:09Z cse $
*/
package com.byterefinery.rmbench.editparts;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.commands.operations.IUndoableOperation;... |
package kr.ac.kopo.rest;
import java.util.List;
import javax.inject.Inject;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annota... |
package com.tencent.mm.plugin.wenote.ui.nativenote;
class NoteEditorUI$34 implements Runnable {
final /* synthetic */ String qhJ;
final /* synthetic */ NoteEditorUI qur;
NoteEditorUI$34(NoteEditorUI noteEditorUI, String str) {
this.qur = noteEditorUI;
this.qhJ = str;
}
public fina... |
package my.app.platform.domain;
/**
* @author 夏之阳
* 创建时间:2016-05-04 21:37
* 创建说明:登录记录
*/
public class LoginRecord {
/**
* 用户id
*/
private String uid;
/**
* 登陆时间
*/
private String date;
/**
* 登陆ip地址
*/
private String ip_address;
public String getUid() {
... |
package Numbers;
public class AddNumbersWithoutSymbol {
public static void main(String[] args) {
int a = 80;
int b = 30;
int c = a - (-b);
System.out.println(c);
int sub = a + (~a + b);
System.out.println(sub);
//---------------------------------------------------------------------------------------
S... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.monash.assg1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.net.MalformedURLException;
impo... |
import java.io.*;
import java.math.BigInteger;
import java.util.Scanner;
import java.util.Vector;
public class Experiment10 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
BigInteger p,q,n,z,encrypt_mess;
Vector encrypt_messages = new Vector<... |
/* Copyright 2008 Kjetil Valstadsve
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 agreed to in ... |
package com.tdp.bean;
public class BeanTipoActividad {
int id_tipo_actividad;
String descripcion_actividad;
public int getId_tipo_actividad() {
return id_tipo_actividad;
}
public void setId_tipo_actividad(int id_tipo_actividad) {
this.id_tipo_actividad = id_tipo_actividad;
}
public String getDe... |
/**
* Paintroid: An image manipulation application for Android.
* Copyright (C) 2010-2013 The Catrobat Team
* (<http://developer.catrobat.org/credits>)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publishe... |
package gov.virginia.dmas.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.per... |
package Collections.Sets.Challenge;
import java.util.Set;
public final class Star extends HeavenlyBody {
public Star(String name, double orbitalPeriod) {
super(name, orbitalPeriod);
}
@Override
public Set<? extends HeavenlyBody> getSatellites() {
return null;
}
@Override
... |
package com.tencent.mm.plugin.voiceprint.ui;
import com.tencent.mm.plugin.voiceprint.ui.a.a;
class VoiceTipInfoView$2 implements a {
final /* synthetic */ VoiceTipInfoView oGQ;
VoiceTipInfoView$2(VoiceTipInfoView voiceTipInfoView) {
this.oGQ = voiceTipInfoView;
}
public final void bJd() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.