text stringlengths 10 2.72M |
|---|
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.*;
class Calculator extends JFrame implements ActionListener
{
final int WIDTH = 400;
final int HEIGHT = 500;
protected int operator;
protected double a, b, r;
protected JTextField jtf;
JButton badd, b... |
package no.nav.vedtak.felles.integrasjon.dokarkiv;
import java.net.URI;
import jakarta.ws.rs.core.UriBuilder;
import jakarta.ws.rs.core.UriBuilderException;
import no.nav.vedtak.exception.TekniskException;
import no.nav.vedtak.felles.integrasjon.dokarkiv.dto.TilknyttVedleggRequest;
import no.nav.vedtak.felles.inte... |
package br.com.rafagonc.tjdata.repositories;
import br.com.rafagonc.tjdata.models.ESAJCaptcha;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
i... |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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
*
* ... |
package io.codex.cryptogram.encoding;
import org.apache.commons.codec.binary.Hex;
/**
* 十六进制编码器
*
* @author 杨昌沛 646742615@qq.com
* 2018/10/17
*/
public class HexEncoder implements Encoder {
public String algorithm() {
return "Hex";
}
public String encode(byte[] data) {
... |
package common.util;
public class GeoUtil {
public static float oneMileLat = 0.0145f;
public static float[] oneMileLngTable = {
0.0144f, 0.0144f, 0.0144f, 0.0144f, 0.0145f, 0.0145f, 0.0145f, 0.0145f,
0.0146f, 0.0146f, 0.0146f, 0.0147f, 0.0147f, 0.0148f, 0.0149f, 0.0149f,
0.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DataAccess;
import Entity.Account;
import Utility.SQLHelper;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayL... |
package com.codehunte.tis91d.restcontrollers;
import com.codehunte.tis91d.model.Person;
import com.codehunte.tis91d.services.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/person"... |
package diplomski.autoceste.repositories;
import diplomski.autoceste.models.Discount;
import org.springframework.data.jpa.repository.JpaRepository;
import java.time.LocalDate;
import java.util.List;
public interface DiscountRepository extends JpaRepository<Discount, Long> {
List<Discount> findByStartDateLessTha... |
package com.example.kevpreneur.smartshopper;
import android.content.Intent;
import android.net.wifi.hotspot2.pps.Credential;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
im... |
package com.jalsalabs.ticklemyphonefull;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public class AntiTheftContact extends Activity {
static EditText alternativeemail;
s... |
package calendar;
import enums.TestConstants;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class CalendarTest {
public static void main(String[] args) throws Inter... |
import javax.swing.JOptionPane;
public class Conta implements BancoInterface {
private String numero;
private double saldo;
private String dataAbertura;
private Titular titular;
private Banco banco;
public static int proximoNumero = 1;
//Método Construtor da Classe
public Conta(Titular titular, Banco banco) ... |
package net.acomputerdog.BlazeLoader.api.chat;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.ChatComponentText;
/**
* API for chat-related functions.
*/
public class ApiChat {
/**
* Sends a raw chat to a command user.
*
* @param user The command user to send the chat ... |
package io.rong.imkit;
import android.app.Activity;
/**
* Created by Bob on 2018/6/19.
*/
public class MainActivity extends Activity {
}
|
package aaa.assignment1.tests;
import aaa.Agent;
import aaa.PredatorRandom;
import aaa.PreySimple;
import aaa.State;
import aaa.StateSimple;
import aaa.assignment1.algorithms.IterativePolicyEvaluation;
/**
* TEST 3 (Assignment 1.2)
* Tests the Iterative Policy Evaluation against the random predator's policy and the... |
package DataStructure.Stack;
public class App {
public static void main(String[] args) {
Stack theStack = new Stack(10); // a is size of stack or array implementation of stack
theStack.push('h');
theStack.push('e');
theStack.push('l');
theStack.push('l'); // this is most r... |
package com.example.mdt;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Sensor;
import android.hardware.Sens... |
package Hackathon;
import java.util.Scanner;
public class Library {
public static void library() {
int i = Stats.getIntel();
Scanner input = new Scanner(System.in);{
for (int j = 0; j < 3; j++) {
if(i <= 0) {
int a = (int)(Math.random() * 5);
int b = (int)(Math.random() * 5);
Syste... |
package io.breen.socrates.model.wrapper;
import io.breen.socrates.model.event.*;
import io.breen.socrates.submission.Submission;
import io.breen.socrates.util.Observable;
import io.breen.socrates.util.*;
import io.breen.socrates.util.Observer;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.Mu... |
package org.tudresden.ecatering.model.accountancy;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apa... |
package com.vicutu.persistence.query.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.vicutu.persistence.query.CriterionLikeMatchMode;
... |
package me.libraryaddict.disguise.disguisetypes.watchers;
import org.bukkit.entity.Llama;
import me.libraryaddict.disguise.disguisetypes.AnimalColor;
import me.libraryaddict.disguise.disguisetypes.Disguise;
import me.libraryaddict.disguise.disguisetypes.MetaIndex;
public class LlamaWatcher extends ChestedHor... |
package uk.nhs.hee.web.platform.services.channel;
import java.util.Arrays;
import java.util.List;
import java.util.function.BiPredicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.jcr.Session;
import javax.jcr.security.Privilege;
import org.hippoecm.hst.container.RequestContextP... |
package com.fszuberski.tweets.authorizer.core.domain;
import lombok.*;
@Setter
@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor
public class TokenAuthorizerContext {
private String type;
private String authorizationToken;
private String methodArn;
}
|
package sr.hakrinbank.intranet.api.mapping;
import org.modelmapper.PropertyMap;
import sr.hakrinbank.intranet.api.dto.RelationshipCrossSellOfficerDto;
import sr.hakrinbank.intranet.api.model.RelationshipCrossSellOfficer;
/**
* Created by clint on 6/6/17.
*/
public class RelationshipCrossSellOfficerToDtoMap extends ... |
package com.daexsys.automata.world.tiletypes.pulsers;
import com.daexsys.automata.Tile;
import com.daexsys.automata.world.TileCoord;
import com.daexsys.automata.world.WorldLayer;
import com.daexsys.automata.world.tiletypes.TilePulser;
import com.daexsys.automata.world.tiletypes.TileType;
public class WaterTilePulser ... |
public class WildcardMatching1 {
public boolean isMatch(String s, String p) {
int sl = s.length() , pl = p.length() , i=0 , j=0;
int start = -1 , s_start = 0;
while(i < sl){
if(i<sl && j <pl && ( s.charAt(i)==p.charAt(j) || p.charAt(j) == '?' )){
i++;j++;
}else if(p.charAt(j) == '*'){
start = j... |
package com.wq.user.dao;
import java.util.List;
import java.util.Map;
public interface WqUserDao
{
List<Map<String, Object>> queryOne(Map<String, Object> param);
List<Map<String, Object>> getUserList(Map<String, Object> param);
}
|
package com.lojaDeComputadorV3.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Tabl... |
package Dao.dao;
import Dao.model.SaleGoodsClickNumber;
import java.util.List;
public interface SaleGoodsClickNumberMapper {
void deleteByPrimaryKey(Integer sgclicknumberid);
void insert(SaleGoodsClickNumber record);
void insertSelective(SaleGoodsClickNumber record);
SaleGoodsClickNumber selectByP... |
package com.classichu.titlebar.helper;
import android.support.v7.widget.PopupMenu;
import android.view.View;
/**
* Created by louisgeek on 2017/2/28.
*/
public class ClassicTitleBarMenuHelper {
private static PopupMenu mPopupMenu;
public static void initMenu(View anchorView, int menuResId) {
//
... |
package com.lenovohit.hcp.base.manager.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.stereotype.Service;
import com.lenovohit.hcp.appointment.model.RegInfo;
import com.lenovohit.hcp.base.model.HcpUser;
import ... |
package com.needii.dashboard.dao;
import com.needii.dashboard.model.ShippersLikeCount;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... |
package com.mykarsol.appconnectivity;
/*
* 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.
*/
import DataObjects.Candidate_Profile_Object;
import DataObjects.Placement_Details_Object;
impor... |
package com.xianzaishi.wms.tmscore.manage.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.xianzaishi.wms.tmscore.vo.DistributionBoxStatuVO;
import com.xianzaishi.wms.tmscore.vo.DistributionBoxStatuDO;
import com.xianzaishi.wms.tmscore.vo.DistributionBoxStatuQuer... |
package xyz.javista.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;
import xyz.javista.config.AuditorAwareImpl;
import ... |
package com.navegg.challenge.CRUDApi.config;
import com.navegg.challenge.CRUDApi.model.Category;
import com.navegg.challenge.CRUDApi.model.Item;
import com.navegg.challenge.CRUDApi.model.Url;
import com.navegg.challenge.CRUDApi.repository.ItemRepository;
import com.opencsv.CSVReader;
import com.opencsv.CSVReaderBuilde... |
package com.revolut.moneytransfer.repository;
import com.google.inject.Inject;
import com.revolut.moneytransfer.config.WebConfig;
import com.revolut.moneytransfer.enums.TransactionStatus;
import com.revolut.moneytransfer.exceptions.InsufficientBalanceException;
import com.revolut.moneytransfer.model.CreditTransactionR... |
package org.test.ht;
public class RegularExp {
public boolean isMatch(String s, String p) {
if (p.length() == 0) {
return s.length() == 0;
}
if (p.charAt(p.length() - 1) == '.') {
if (s.length() >= 1 && p.length() >= 1) {
return this.isMatch(s.sub... |
package com.egova.baselibrary.util;
import android.view.Gravity;
import android.widget.Toast;
import com.egova.baselibrary.application.EgovaApplication;
import es.dmoral.toasty.Toasty;
public class ToastUtil {
public static void showNormal(String message) {
Toast toast = Toasty.info(EgovaApplication.ge... |
package DataStructures.linkedlists;
import java.util.Comparator;
import java.util.List;
import java.util.PriorityQueue;
/**
* Created by sydgsk9 on 5/15/2017.
*/
public class MergeKListPQ {
public ListNode mergeKListsUsingPQ(List<ListNode> lists) {
ListNode prev = new ListNode(-1);
ListNode hea... |
/**
* Copyright (C) 2008 Atlassian
*
* 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 t... |
package com.emed.shopping.service.admin.store.impl;
import com.emed.shopping.base.BaseService;
import com.emed.shopping.base.BaseServiceImpl;
import com.emed.shopping.dao.model.admin.store.ShopStoreGrade;
import org.springframework.stereotype.Service;
/**
* @Author: 叶飞
* @Date: create in 2018/1/26 0026 下午 3:44
* ... |
package oop;
import java.util.Scanner;
public class swatch extends watch implements gender,qualities{
//public class swatch extends inventory implements gender,qualities{
public void show(){
System.out.println("========================================================");
System.out.prin... |
package com.example.funcionariocadastro;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.... |
package com.metaco.api.contracts;
import com.google.gson.annotations.SerializedName;
public class HistoryCriteria {
@SerializedName("from")
public Integer from;
@SerializedName("to")
private Integer to;
@SerializedName("freq")
private String freq;
@SerializedName("orderAsc")
private Bo... |
package com.ymhd.mifen.myself;
import com.example.mifen.R;
import com.ymhd.mifen.adapter.MyGridViewAdapterforcollection_hsitory;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import ... |
package StackCalculator.Command;
import StackCalculator.ConfigParser;
import StackCalculator.Exceptions.CommandNotFound;
import StackCalculator.Exceptions.WrongConfigFileFormat;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;
import java.... |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2011 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... |
import java.util.LinkedList;
/**
* This class provides a simple text interface to the connect 4 engine.
*
* @author Jesper Kristensen
* @see ComputerPlayer
*/
public class ConnectFour {
//private boolean normalBoard = true;
private boolean p = true;
private ConnectFourRules cfr;
private LinkedList<Conne... |
package myarraylist;
/**
* Represents basic unsorted array-based list.
*
* @author Letian Sun
* @version Jan. 2, 2015
* @param <E> is of any object type
*/
public class ArrayListUnsorted<E> extends AbstractArrayMyList<E> {
/**
* Constructs a unsorted array list with a default capacity
*/
... |
package com.edu.realestate.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.edu.realestate.model.City;
public class CityDaoJDBC extends AbstractDaoJDBC implements CityDao {
@Override
public void create(City eleme... |
package fr.unice.polytech.isa.polyevent.cli.framework;
public interface CommandBuilder<T extends Command>
{
String identifier();
default boolean match(String keyword)
{
return identifier().equals(keyword);
}
String describe();
default String help()
{
return describe();
... |
package cs414.a5.bawitt.common;
public interface CashPayment {
double getAmountDue() throws java.rmi.RemoteException;
double getChange() throws java.rmi.RemoteException;
} |
package com.gaoshin.stock;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.widget.LinearLayout;
public class MenuView extends LinearLayout {
private MenuGroupList groups;
private ChartBrowser context;
public MenuView(ChartBrowser context) {
super(context);
... |
package com.lti.CaseStudy.ComplaintManagement;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashSet;
im... |
package com.gome.manager.service;
import java.util.List;
import com.gome.manager.common.Page;
import com.gome.manager.domain.Professor;
/**
* 会议service接口.
* <pre>
* 修改日期 修改人 修改原因
* 2015年11月09日 caowei 新建
* </pre>
*/
public interface MeetingProfessorService {
/**
*
* 分页查询会议列表.
*
* @pa... |
package com.meehoo.biz.core.basic.ro.security;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* @author zc
* @date 2020-12-17
*/
@Setter
@Getter
public class SetDefinesRO {
private String roleId;
private List<String> menuDefineIds;
}
|
package com.cipher.c0753362_mad3125_midterm;
import android.content.Context;
import android.content.SharedPreferences;
public class SatelliteSharedPref {
public static final String isLogin = "isLogin";
public static final String emailId = "EmailID";
static final String PrefName = "Satellite1";
stat... |
package org.giddap.dreamfactory.topcoder;
/**
* http://community.topcoder.com/stat?c=problem_statement&pm=40&rd=2001
* <p/>
* Problem Statement
* <p/>
* Create a class called StringDup. Given a string made up of ONLY letters and
* digits, determine which character is repeated the most in the string ('A' is
* di... |
package com.codingchili.authentication.controller;
import com.codingchili.authentication.configuration.AuthContext;
import com.codingchili.authentication.model.*;
import io.vertx.core.Future;
import com.codingchili.core.listener.CoreHandler;
import com.codingchili.core.listener.Request;
import com.codingchili... |
package scc.storage;
import java.util.AbstractMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import javax.ws.rs.core.Resp... |
package com.alibaba.druid.bvt.pool;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.util.JdbcUtils;
public class TimeBetweenLogStatsMillisTest extends TestCase {
private DruidDataSource dataSource;
protected void setUp() thro... |
/* Treerow.java
Purpose:
Description:
History:
Tue Oct 22 14:45:31 2008, Created by Flyworld
Copyright (C) 2008 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
*/
package o... |
package pkgEnum;
//Comments to make the git submission work
public enum ePuzzleViolation {
DupRow, DupCol, DupRegion, InvalidValue, ContainsZero, MissingZero;
}
|
package exception.resources;/**
* Created by DELL on 2018/8/14.
*/
import java.io.IOException;
/**
* user is lwb
**/
public class TryResouces {
public static void main(String[] args){
//BufferedReader br = new BufferedReader();
TryResouces tryResouces = new TryResouces();
//tryRes... |
package com.dexvis.dex.wf;
import java.util.ArrayList;
import java.util.List;
import javafx.stage.Stage;
import com.dexvis.dex.exception.DexException;
import com.dexvis.javafx.scene.control.DexTaskItem;
public class ParallelJob implements DexJob
{
private Stage stage = null;
private List<DexTask> t... |
package co.sblock.events.listeners.block;
import org.apache.commons.lang3.tuple.Pair;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.block.BlockBreakEvent;
import co.sblock.Sblock;
import co.sblock.effects.Eff... |
package com.z.zz.zzz.emu;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.location.LocationManager;
import android.net.Uri;
import an... |
package com.tfg.evelyn.electroroute_v10;
/*
* Copyright (C) 2015 Google Inc. All Rights Reserved.
*
* 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/lic... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://wso2.com) All Rights Reserved.
*
* 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 re... |
package seedu.project.logic.commands;
import static java.util.Objects.requireNonNull;
import seedu.project.commons.core.Messages;
import seedu.project.logic.CommandHistory;
import seedu.project.logic.LogicManager;
import seedu.project.logic.commands.exceptions.CommandException;
import seedu.project.model.Model;
/**
... |
package com.pelephone_mobile.mypelephone.network.rest.pojos;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Gali.Issachar on 06/01/14.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class CurrentInvoiceStateItem extends Poj... |
package com.cyj.common.base;
/**
* @Description
* @Author cyj
* @Date 17/4/6
* @Version 1.0
*/
public class NewsBaseResponse<T> {
public T _embedded;
public T get_embedded() {
return _embedded;
}
public void set_embedded(T _embedded) {
this._embedded = _embedded;
}
}
|
package com.partnertap.cache;
import com.partnertap.cache.service.ServiceConfig;
import com.partnertap.cache.config.PartnertapCacheConfig;
import java.text.SimpleDateFormat;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import org.springframework.boot.SpringApplication;
import org.springframework.b... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009... |
package com.example.Web.Model.dto;
import com.example.Web.Model.Uloga;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
@Getter
@Setter
@AllArgsConstructor
public class RegistracijaDTO {
private String korisnickoIme;
private String ime;
private String p... |
package day4;
import java.io.IOException;
class NF{
void ageCheck(int age) throws Exception{
if(age > 18)
System.out.println("Eligible to vote!!!");
else
throw new NumberFormatException("You are not eligible to vote!!!");
}
void n() throws IOException {
System.out.println("Device erro... |
import java.util.Scanner;
import java.io.IOException;
class Result {
public static long mod(long n){
final long MOD = 1000000009;
if(n >= MOD)
return n % MOD;
if(n < 0)
return ((n % MOD) + MOD) % MOD;
return n;
}
public static long[] naive(long[] ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.eao.format.impl;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Query;
import org.inbio.ara.eao.format.*;
import javax.ejb.Stateless;
import org.inbio.ara.eao.BaseEAOI... |
package cn.jiucaituan.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
import java.util.*;
public class CF {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
HashMap<String,String> map=new HashMap<>();
for(int i=0;i<m;i++)
{
String s1=sc.next();
Str... |
package com.arthur.bishi.xiecheng0415;
import java.util.Scanner;
/**
* @title: No2
* @Author ArthurJi
* @Date: 2021/4/15 18:57
* @Version 1.0
*/
public class No2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int root = scanner.nextInt();
while (... |
package com.algaworks.algamoney.api.logic.bean;
import lombok.*;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddressDTO {
private String street;
private String number;
private String complement;
private String cp;
private String city;
private String state... |
package com.checklist.interfaces;
public interface OnTaskSelectedListener {
void onTaskSelected(String id);
}
|
package com.stk123.common.db;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import com.stk123.common.db.util.DBUtil;
public class Database {
private String dbConnectionName = null;
private String databaseName = null;
... |
package utilities;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.util.ArrayList;
import java.util.List;
public class ArrayListConverter {
public <T> ObservableList<T> objectListToObservableList(List<T> objectList) {
ObservableList<T> observableList = FXC... |
package com.allure.service.framework.security;
import lombok.NonNull;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import java.util.Collection;
/**
* Created by yang_shoulai on 7/20/2017.
*/
public class UserContextAuthen... |
package com.gxtc.huchuan.ui.circle.circleInfo;
import android.Manifest;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextVi... |
package model.data.rewardData;
import component.DAO;
public class PayJudgeData{
// Component
private DAO dao;
// Constructor
public PayJudgeData() {this.dao = new DAO("Payjudge", "payjudgeID", new Object[] {null, "", "", ""});}
// Getter & Setter
public String getPayJudge() {return this.dao.getString("payJu... |
package com.tsuro.tile.tiletypes;
import com.google.gson.annotations.SerializedName;
import com.tsuro.tile.ITile;
import com.tsuro.tile.Location;
import com.tsuro.tile.Path;
import com.tsuro.tile.TsuroTile;
import java.util.List;
import java.util.stream.Collectors;
import lombok.AllArgsConstructor;
import lombok.NonN... |
package com.atguigu.java4;
import org.junit.Test;
/*
抛 :throw
格式 : throw 异常类的对象;
*/
public class ThrowTest {
@Test
public void test(){
//编译时异常 : 必须处理
try {
setAge(-5);
} catch (MyException e) {
e.printStackTrace();
}
System.out.println("程序结束");
}
/**
* 年纪必须大于0
* @param age
*... |
//package com.socialteinc.socialate;
//
//import android.support.annotation.NonNull;
//import android.support.test.espresso.contrib.RecyclerViewActions;
//import android.support.test.rule.ActivityTestRule;
//import android.util.Log;
//import com.google.android.gms.tasks.OnCompleteListener;
//import com.google.android.g... |
package lde;
/**
*
* @author Iago Nogueira <sguergachi at gmail.com>
* @param <E>
*/
public interface ILde<E> {
public void add(E item, int pos);
public void add( E array[] );
public void addInicio(E item);
public void addFim(E item);
public E remove(int pos);
public ... |
package com.codigo.smartstore.webapi.domain;
public interface IQualifier {
/**
* Odczytuje wartość kodu
*
* @return
*/
public String getCode();
/**
* Odczytuje opis wartości kodu
*
* @return
*/
public String getDescription();
}
|
package airhockeygame;
import gameassets.Globals;
import maingui.StartScreen;
import javax.swing.SwingUtilities;
public class AirHockeyGame {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// Start the game
SwingUtilities.invokeLater(() -> ... |
//Java default API controls
import javafx.collections.ObservableList;
import java.util.InputMismatchException;
import javafx.scene.layout.GridPane;
import javafx.event.ActionEvent;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Node;
public class Board extends GridPane{
... |
package me.ewriter.art_chapter2.manager;
import android.os.IBinder;
import me.ewriter.art_chapter2.aidl.IBookManager;
/**
* Created by Zubin on 2016/6/22.
*/
public class BookManager {
private IBookManager mBookManager;
private IBinder.DeathRecipient mDeathRecipient = new IBinder.DeathRecipient() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.