text stringlengths 10 2.72M |
|---|
import java.util.*;
public class Mission08Patterson
{
public static void main (String[] args)
{
Scanner in = new Scanner(System.in);
double weightInPounds = 0.00;
double heightInInches = 0.00;
double bmi = 0.00;
boolean error = false;
//System.out.println(bmi);
... |
package com.groovybot.controller.response.impl;
import com.google.inject.Singleton;
import com.google.wave.api.Blip;
import com.google.wave.api.Event;
import com.google.wave.api.RobotMessageBundle;
import com.groovybot.controller.response.BlipHandlerResponseStrategy;
import com.groovybot.util.BlipUtils;
@Singleton
pu... |
package com.cg.javafillstack.collection.list;
import java.util.ArrayList;
import java.util.Collections;
public class TestD {
public static void main(String[] args) {
ArrayList<Double> al=new ArrayList<Double>();
al.add(5.6);
al.add(9.4);
al.add(2.9);
al.add(6.3);
al.add(3.2);
Collections.sort(al); ... |
package jupiterpa.warehouse;
import org.mapstruct.Mapper;
import jupiterpa.IFinancials;
import jupiterpa.ICompany.MDelivery;
import jupiterpa.IMasterDataDefinition.Material;
import jupiterpa.IWarehouse.MIssueGoods;
import jupiterpa.IWarehouse.MReceivedGoods;
import jupiterpa.IWarehouse.MStock;
import jupiterp... |
package com.septacore.ripple.preprocess;
public class PPUtil {
public static String hexToChar(String i, String j, String k, String l)
{
return Character.toString((char)Integer.parseInt("" + i + j + k + l, 16));
}
} |
class Solution {
public List<String> fizzBuzz(int n) {
List<String> sol = new ArrayList<>();
int fizz = 3;
int buzz = 5;
for(int i = 1; i <= n; i++){
if(i % fizz == 0 && i % buzz == 0) sol.add("FizzBuzz");
else if(i % fizz == 0) sol.add("Fizz... |
package com.tencent.mm.g.a;
public final class gm$a {
public int bPG;
public int bPH;
public String countryCode;
}
|
package com.pangpang6.books.concurrent;
public class JoinTest {
public static void main(String[] args) throws Exception {
System.out.println("main start");
Thread t1 = new Thread(new Task1());
Thread t2 = new Thread(new Task2());
t1.start();
t2.start();
System.out.println("main end");
... |
package com.tencent.mm.ui.conversation;
class g$a {
public String bgn;
public String content;
public int uon;
public String uoo;
final /* synthetic */ g uqa;
private g$a(g gVar) {
this.uqa = gVar;
}
/* synthetic */ g$a(g gVar, byte b) {
this(gVar);
}
}
|
package JZOF;
/**
* Created by yang on 2017/3/15.
*/
/*
输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。
假设输入的前序遍历和中序遍历的结果中都不含重复的数字。
例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。
*/
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}... |
package com.shidan.product.web.controller;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
impor... |
package assignment.easyaccount.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.text.Spanned;
import android.vi... |
package com.example.mammoetsurvey;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
... |
//package com.sprmvc.web.others;
//
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.EnableWebMvc;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Co... |
package com.mysql.cj.protocol.x;
import com.google.protobuf.ByteString;
import com.google.protobuf.Message;
import com.mysql.cj.MessageBuilder;
import com.mysql.cj.Messages;
import com.mysql.cj.protocol.Message;
import com.mysql.cj.protocol.Security;
import com.mysql.cj.util.StringUtils;
import com.mysql.cj.x.protobuf... |
package com.deep.plant;
import com.google.gson.annotations.SerializedName;
import java.text.DecimalFormat;
/**
* Created by Somnath-Laptop on 10-Dec-2016.
*/
public class Result {
@SerializedName("Time")
private String Time = "";
@SerializedName("Disease")
private String Disease = "";
@Seriali... |
package cn.edu.tju.entity;
import java.util.Date;
import java.util.List;
import cn.edu.tju.util.Dates;
public class Project extends GitHubEntity {
private int id;
private String name;
private String description;
private String language;
private List<Language> languages;
private List<Issue> issues;
private Lis... |
import BotSimple.BotSimple;
import BotSimple.TextHandler;
import org.telegram.telegrambots.meta.TelegramBotsApi;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession;
public class App {
public static void main(String[] args) {
... |
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.g.a.qk;
import com.tencent.mm.plugin.sns.g.i;
import com.tencent.mm.plugin.sns.lucky.a.g;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.storage.aa.a;
import java.io.IOException;
import java.nio.charset.Char... |
package cn.zhoudbw.service;
import cn.zhoudbw.model.Employee;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author zhoudbw
* 将service写成接口,通过子类去实现,这里给出,需要提供的服务
*/
@Service
public interface EmployeeService {
/**
* 这个方法,是为了得到所有的员工信息的。
* @return 返回一个存储了所有员工的列表
*/
... |
public class Kadai10 {
/**
* 課題10
* 指定した文字数以上の部分を削除して”…"に置き換えた文字列を返す
* @param s もとになる文字列
* @param size 文字数
* @return 指定した文字数以上の部分を削除して”…"に置き換えた文字列
*/
String replaceLongString(String s , int size) {
return null;
}
}
|
package ba.bitcamp.LaBS03D03;
public class MaximumNiz1000 {
public static void main(String[] args) {
int[] arr3 = new int[]{1, 2, 4};
arr3[1] = 5;
int[] arr = new int[] {1, 2, 4, 54, 43};
System.out.println(getMax(arr3));
System.out.println(getMax(arr));
System.out.println(nizUString(arr));
System.out.p... |
package vn.edu.techkids.controllers;
import java.awt.*;
public interface Controller {
void run();
void paint(Graphics g);
}
|
package com.mx.profuturo.bolsa.model.vo.Candidato;
import java.util.ArrayList;
public class ResumenCandidatosListVO {
private ArrayList<CandidatoResumenVO> resumenCandidatos;
private int paginaActual;
private int totalPaginas;
public ArrayList<CandidatoResumenVO> getResumenCandidatos() {
retur... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package leetcode.algorithms;
import java.util.HashMap;
public class _219_ContainsDuplicate2 {
public boolean containsNearbyDuplicate(int[] nums, int k) {
HashMap<Integer, Integer> set = new HashMap<Integer, Integer>();
for(int i = 0; i < nums.length; i++) {
if(set.con... |
package com.lnpc.common.rowset;
/**
* 行常量类
*
* @author changjq
*
*/
public class RowConstant {
/**
* 未选中
*/
public static final String UNCHECK_STATUS = "false";
/**
* 选中
*/
public static final String CHECKED_STATUS = "true";
/**
* 删除
*/
public static final String DELETE_STA... |
package org.jcarvajal.webapp.servlet.impl;
import java.util.HashMap;
import java.util.Map;
public class ViewAndModel {
private int code;
private String viewName;
private Map<String, String> model = new HashMap<String, String>();
public String getViewName() {
return viewName;
}
public void setViewName(Stri... |
package com.Li.data;
import android.content.Context;
import android.content.SharedPreferences;
/*
* 轻量级数据库,存储登陆和注册信息
*/
public class SharePreferenceUtil {
private SharedPreferences sp;
private SharedPreferences.Editor editor;
public SharePreferenceUtil(Context context, String file) {// 传入一个
... |
package com.tencent.mm.pluginsdk.model.app;
import com.tencent.mm.pluginsdk.model.app.al.1.3;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class al$1$3$1 implements Runnable {
final /* synthetic */ 3 qAG;
al$1$3$1(3 3) {
this.qAG = 3;
}
public final ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package com.rofour.baseball.controller.model;
import java.io.Serializable;
/**
* Created by Administrator on 2016-08-17.
*/
public class SelectSet implements Serializable {
private static final long serialVersionUID = -3193326252110672751L;
private String id;
private String text;
public String get... |
package assemAssist.model.exceptions;
/**
* Thrown to indicate that a method has been passed an illegal order as
* argument.
*
* @author SWOP Group 3
* @version 3.0
*/
public class IllegalOrderException extends IllegalArgumentException {
/**
* Initialises an IllegalOrderException with no detail message.
... |
package com.example.atos.myapplication.handler;
/**
* Created by Atos on 18/07/17.
*/
import android.util.Log;
import com.example.atos.myapplication.interfaces.CallBackInterface;
import com.example.atos.myapplication.interfaces.CallBackInterfaceDetail;
import com.example.atos.myapplication.interfaces.ConnectionInt... |
package engine;
import li3.Interface;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;
public class QueryEngineImpl implements Interface {
private Contribuidores contribuidores;
private Artigos artigos;
... |
package yue.temporal.page;
import java.util.ArrayList;
import java.util.List;
public class Paragraph2 {
// the relevant tag of the paragraph
private boolean relevant;
// the start position of the paragraph
private int startPoint;
// the end position of the paragraph
private int endPoint;
// the content
... |
/*
* Copyright (C) 2015 Miquel Sas
*
* 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, either version 3 of the License, or (at your option) any later
* version.
*
* This program is dis... |
package test.main;
/*
* 4. 논리 연산자
*
* - 논리값 boolean 을 연산할때 사용하는 연산자 이다.
* ||, &&, !
*/
public class MainClass04 {
public static void main(String[] args) {
System.out.println("main 메소드가 시작 되었습니다.");
// or 연산
boolean result1 = false || false; //false
boolean result2 = false || true; //true
boolean... |
package scraper.com.codingchallenge.scraper;
import java.util.ArrayList;
import java.util.List;
public class SpiderTest
{
public static void main(String[] args)
{
List<String> urlsToCrawl = new ArrayList<>();
urlsToCrawl.add("https://www.theguardian.com");
GuardianSpider spider = new GuardianSp... |
package com.facebook.react.modules.network;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import android.webk... |
package com.stem.wechat.inf;
import java.math.RoundingMode;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.sl... |
package com.charith.general.SwapTwoNumbersWithOutTemp;
public class Solution {
// TODO https://javarevisited.blogspot.com/2013/02/swap-two-numbers-without-third-temp-variable-java-program-example-tutorial.html
public static int[] swapTwoNumbers(int[] numbers) {
numbers[0] = numbers[0] + numbers[1];
... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Stack;
public class Main {
private static String S = "";
private static String T = "";
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStream... |
package com.example.user.myapplication.lockscreen.task;
import android.os.AsyncTask;
import com.example.user.myapplication.domain.Product;
import com.example.user.myapplication.util.Constants;
import org.springframework.http.ContentCodingType;
import org.springframework.http.HttpEntity;
import org.springframework.ht... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License... |
package xo.client.command;
import java.util.List;
/**
* User: Alexander Rudenko
* Date: 07.12.14
*/
public class ListChatCommand implements ChatCommand {
@Override
public String getName() {
return ":list";
}
@Override
public String process(String request) {
String result = nu... |
package Algorithm;
/**
* Created by MSDK on 8/24/15.
*/
public enum QuestionState {
NORMAL, PERCENT_INC_DEC, NO_CALC, FRACTION
}
|
package com.cos.oauth2jwt.util;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;
import org.springframework.web.multipart.MultipartFile;
public class ImageUtil {
public static String SaveImage(String uploadFolder, MultipartFile profileImageFile) {
UUID u... |
package mx.com.azaelmorales.yurtaapp;
import android.app.DatePickerDialog;
import android.os.Bundle;
import android.support.design.widget.TextInputLayout;
import android.support.v4.app.Fragment;
import android.support.v7.widget.AppCompatSpinner;
import android.text.Editable;
import android.text.TextWatcher;
import and... |
package com.cranestylelabs.danhoffman.listviewsample.models;
public class ListItemData {
public String title;
public String description;
}
|
package net.d4rk.inventorychef.inventory.expandablelistview.storageplaceingredientlist.unused;
import android.view.View;
import android.widget.TextView;
//import com.thoughtbot.expandablerecyclerview.models.ExpandableGroup;
//import com.thoughtbot.expandablerecyclerview.viewholders.GroupViewHolder;
import net.d4rk.i... |
package ex01;
import java.awt.*;
import java.awt.event.*;
import java.util.Calendar;
public class DigitalWatch extends Frame {
private int hour; //時を入れる変数を宣言
private int minute; //分を入れる変数を宣言
private int second; //秒を入れる変数を宣言
boolean a = true;
Thread th;
pu... |
package com.example.roushan.railwayenquiry.Activities;
import android.app.DatePickerDialog;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;... |
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class puzzle {
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
//2. feed the arraylist to function and check
String[][] grid = st... |
package fi.jjc.graphics.resource;
import java.awt.Font;
import java.awt.Shape;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.image.BufferedImage;
import java.util.HashMap;
import java.util.Map;
import fi.jjc.graphics.GraphicsException;
import fi.jjc.graphics.image.Bitmap;
i... |
package com.test.data.repositories;
import com.test.data.domain.User;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.GraphRepository;
import org.springframework.data.repository.query.Param;
//import org.springframework.data.rest.core.annotation.RepositoryRestRe... |
/*
* 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 pkginterface;
import javax.swing.JOptionPane;
/**
*
* @author ESTUDIANTE
*/
public class Despegaravion {
public s... |
package com.accp.domain;
import java.util.ArrayList;
import java.util.List;
public class WorkcardExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public WorkcardExample() {
oredCriteria = new ArrayList<Criteria>();
}
publi... |
package com.goldgov.dygl.module.partyorganization.service.impl;
import java.math.BigInteger;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
... |
package Automation_QA_New.testcases;
import Automation_QA_New.paramcontainers.DriversProperties;
import Automation_QA_New.paramcontainers.GeneralProperties;
import Automation_QA_New.webdriver.Browsers;
import Automation_QA_New.webdriver.Driver;
import Automation_QA_New.webdriver.driverexts.WebDriverExt;
import org.apac... |
package log;
import java.io.File;
import java.io.IOException;
import java.util.logging.*;
/**
* Created by wenc on 2017/4/28.
* 用日志的设置
*/
public class LogSetting {
private static File logFile = new File("/Users/wenc/Documents/IdeaProject/werewolves/log/process.txt");
private static Logger logger= Logger.ge... |
package br.com.beblue.lojadisco.validacao;
import br.com.beblue.lojadisco.excecao.LojaDiscoExcecao;
import br.com.beblue.lojadisco.excecao.ValidacaoExcecao;
import br.com.beblue.lojadisco.mensagem.Mensageiro;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.InvocationTargetException;
... |
package top.wangruns.nowcoder.sword2offer;
/**
*
* 题目描述
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。
输入一个数组,求出这个数组中的逆序对的总数P。并将P对1000000007取模的结果输出。即输出P%1000000007
输入描述:
题目保证输入的数组中没有的相同的数字
数据范围:
对于%50的数据,size<=10^4
对于%75的数据,size<=10^5
对于%100的数据,size<=2*10^5
示例1
输入1,2,3,4,5,6,7,0
输出7
*
*/
public class P35_数组中的逆序对 {
... |
package LightProcessing.common.main;
//import java.util.logging.Level;
import LightProcessing.common.generation.WorldGeneration;
import LightProcessing.common.lib.*;
import LightProcessing.common.network.CommonProxy;
//import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.MinecraftForge;
imp... |
public enum DrinkTypes {
Coffee, Tea, nonDrink
} |
package leetcode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
// 给定一个可包含重复数字的序列,返回所有不重复的全排列。
//
//示例:
//输入: [1,1,2]
//输出:
//[
// [1,1,2],
// [1,2,1],
// [2,1,1]
//]
public class 全排列_II {
public static void main(String[] args) {
int[] nums = {1,1,2};
... |
package com.ysx.config;
import com.ysx.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
//这个类被spring容器托管,注入到容器中
//这是一个配置类,和beans... |
/*
* Copyright (C) 2018 Ilya Lebedev
*
* 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 agre... |
import java.util.*;
class WordSquares {
class TrieNode {
public TrieNode[] children;
public Set<Integer> index;
public TrieNode() {
this.children = new TrieNode[26];
this.index = new HashSet<>();
}
}
class Trie {
private TrieNode root;
... |
package test.queue;
import org.junit.Test;
import java.util.concurrent.DelayQueue;
/**
* Created by maguoqiang on 16/9/21.
*/
public class QueueTest {
@Test
public void delayQueue(){
DelayQueue queue=new DelayQueue();
}
}
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.query;
import com.koneksi.koneksidb;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLE... |
package salesTaxes.models;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.HashSet;
import java.util.Properties;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.LineIterator;
import salesTaxes.utils.NumericUtils;
public class ... |
package com.example.mybatis.merge.type;
import com.example.mybatis.merge.NodeMergeHandler;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.body.TypeDeclaration;
import java.util.Objects;
import java.util.Optional;
import org.springfr... |
package com.adachina.mqKafka.sample.api;
import com.adachina.mqKafka.sample.domain.Dog;
import com.adachina.mqKafka.handlers.BeanMessageHandler;
/**
* The message handler sample to handle the actual beans.
*
* @author Robert Lee
* @since Aug 21, 2015
*
*/
public class DogHandler extends BeanMessageHandler<Dog... |
package cn.canlnac.onlinecourse.data.repository;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Singleton;
import cn.canlnac.onlinecourse.data.entity.mapper.ChatEntityDataMapper;
import cn.canlnac.onlinecourse.data.entity.mapper.ChatListEntityDataMapper;
import cn.canlnac.onlinecourse.data.ent... |
package com.cee.webapp.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@C... |
package com.github.emailtohl.integration.core.auth;
import static org.junit.Assert.assertTrue;
import javax.inject.Inject;
import javax.inject.Named;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.security.authentication.AuthenticationProvider;
import or... |
package mum.lesson5.problme6;
public class PersonDeepClone implements Cloneable{
private String name;
private Computer computer;
public PersonDeepClone(String name, Computer computer) {
this.name = name;
this.computer = computer;
}
public String getName() {
return name;
}
public Computer getComputer... |
package com.example.exercisemenuservice;
public class Music {
private long id;
private String title;
private String artis;
public Music(long songID, String songTitle, String songArtis) {
id = songID;
title = songTitle;
artis = songArtis;
}
public long getID() {
... |
package com.tencent.mm.boot.svg.a.a;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import... |
package com.example.demo.service;
import com.example.demo.entity.App;
import com.github.pagehelper.PageInfo;
import java.util.List;
public interface AppService {
PageInfo<App> getAppList(int pageNo, int pageSize);
}
|
package adaptivex.pedidoscloud.Servicios;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.DataInputStream;
import ... |
package br.com.helpdev.quaklog.dataprovider.entity;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
@Data
@Builder
@Document(collection = "game")
public class GameEn... |
package com.demo.withdrawal.service;
import java.io.IOException;
import java.math.BigDecimal;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.Map;
import java.util.stream.Stream;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Servic... |
import java.awt.EventQueue;
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.*;
import java.nio.file.Files;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
p... |
package com.github.paulovictorpvc.hearthstoneapi.dto;
import java.util.ArrayList;
import java.util.List;
import com.github.paulovictorpvc.hearthstoneapi.model.Baralho;
import com.github.paulovictorpvc.hearthstoneapi.model.Classe;
public class BaralhoDto {
private Integer id;
private String nome;
private Classe c... |
package sforum.security;
import org.springframework.security.core.AuthenticationException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created by @ivan.
*/
public class AuthenticationFailureHan... |
package task6;
import java.util.*;
public class task6 {
public static void main(String[] args){
int k;
Scanner in = new Scanner(System.in);
System.out.println("Введите натуральное число k ");
k = in.nextInt();
if (k<1){
System.out.println("Введено невер... |
/*
* 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 form;
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.*;
import java.util.*;
import javax.swing.JOptionPan... |
execute(src, registers, memory) {
if ( src.isMemory() ) {
int size = memory.getBitSize(src);
String value = memory.read(src, size);
if ( size == 80 ) {
// convert 80 bit BCD to extended floating point
Converter convert = new Converter(value);
// value = 20... |
package com.secoo.bigdata.kaggle.talkingdata.domain;
import java.io.IOException;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger;
import org.junit.Test;
import com.google.gson.Gson;
public class DriverTrainTest {
Logger log = Logger.getLogger(getClass());
@Test
public... |
package lando.systems.ld36.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector3;
import com.badl... |
package Model;
import java.util.ArrayList;
import java.util.List;
public class Professor extends User {
private List<Course> COURSES_GIVEN = new ArrayList<>();
public Professor(String username){
this.username = username;
}
public List<Course> getCOURSES_GIVEN() {
return COURSES_GIVEN... |
package com.jim.multipos.di;
import com.jim.multipos.config.common.BaseAppModule;
import javax.inject.Singleton;
import dagger.Component;
/**
* Created by DEV on 27.07.2017.
*/
@Singleton
@Component(modules = {BaseAppModule.class }) //, MultiPosApiModule.class})
public interface BaseAppComponent {
// FirstConf... |
package com.tencent.mm.plugin.mmsight.ui;
import android.graphics.Point;
import android.widget.TextView;
class MMSightRecordViewTestUI$5 implements Runnable {
final /* synthetic */ MMSightRecordViewTestUI loN;
final /* synthetic */ TextView loR;
MMSightRecordViewTestUI$5(MMSightRecordViewTestUI mMSightRe... |
package com.jasoftsolutions.mikhuna.remote.listener;
import java.util.ArrayList;
import java.util.List;
/**
* Created by pc07 on 14/05/2014.
*/
public class ActionListenerManager {
private List<ActionListener> listeners;
public ActionListenerManager() {
listeners = new ArrayList<Actio... |
package com.example.inventoryservicemodule.model;
import lombok.Data;
import javax.persistence.*;
@Data
@Entity
public class InventoryItem {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(name = "product_code", nullable = false, unique = true)
private String productC... |
package com.vaadin.tutorial.crm.ui.views.customerlist;
import com.vaadin.tutorial.crm.backend.entity.Adresse;
import com.vaadin.tutorial.crm.backend.entity.Kunde;
import com.vaadin.tutorial.crm.backend.service.AllergeneService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import o... |
/*
* Copyright 2011 frdfsnlght <frdfsnlght@gmail.com>.
*
* 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 appl... |
package com.stackedtalent.portal.service;
public interface NotificationEmailService {
void sentEmail(Long candidateId);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.