text stringlengths 10 2.72M |
|---|
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URLDecoder;
import java.util.ArrayList;
public class RunCmdService {
public static String runCmd(String compiler, String filePath, ArrayList<String> args) {
String a = "";
for(String s:args) {a+=s+" ";}
String path = compiler +... |
package com.example.q.a2ndweek;
import android.app.Activity;
import android.os.AsyncTask;
import android.support.v4.app.Fragment;
import android.util.Log;
import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http... |
/*
* 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.notix.utils;
/**
*
* @author jibin
*/
import org.springframework.stereotype.Component;
@Component
public class UserCo... |
package com.java.app.utils;
import java.text.SimpleDateFormat;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apac... |
package sample.Emulator;
import java.util.ArrayList;
public class StartRobotState {
private double currentAngle;
private double tv;
private double ty;
private double tx;
private double yVelocityFromNavX;
private ArrayList<Integer> encoders = new ArrayList<>();
public StartRobotState(doubl... |
package com.eatme.eatmeserver.business.repository;
import com.eatme.eatmeserver.business.entity.Player;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import java.util.List;
public interface PlayerRepository {
void createOrUpdate(Player player);
@NonNull Player findById(... |
package com.sharezone.vo;
public class OrderDetailsVo {
private Integer OrderDetailsId;
private Integer userId;
private Integer workspaceId;
private Integer active;
private int SignUpId;
private String Firstname;
private String Lastname;
private String Gender;
private String Email;
private String SUPassw... |
package compilador.estruturas;
public class Fila<T> {
/**
* O <code>No</code> que está no início da fila.
*/
private No<T> inicio;
/**
* O <code>No</code> que está no fim da fila.
*/
private No<T> fim;
/**
* O tamanho da fila.
*/
private int tamanho;
public Fila() {
this.inicio = null;
t... |
/*
* 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.eagle.order.shiro;
import com.eagle.order.filter.AuthFilter;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.web.filter.authc.LogoutFilter;
import org.apache.sh... |
package com.pluralsight.calengine;
/**
*added to github on 07/26/17
*Updated 8/8/17
*/
public class Divider extends CalculateBase implements MathProcessing {
public Divider() { }
public Dividier(double leftVal, double rightVal) {
super(leftVal, rightVal);
}
@Override
public void cal... |
/**
* Copyright 2010 CssWeb Microsystems, Inc. All rights reserved.
* CssWeb PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
* @(#)ActivityManager.java 下午01:02:57 2010-11-28
*/
package com.cssweb.android.base;
import java.util.Stack;
import android.app.Activity;
/**
* 建立Activity堆栈,便于统... |
import java.util.Scanner;
public class PointsInsideTheHouse {
//Write a program to check whether a point is inside or outside the house below.
//The point is given as a pair of floating-point numbers, separated by a space.
//Your program should print "Inside" or "Outside".
public static void main(String[] args... |
/**
* 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.bytedance.ies.bullet.kit.rn.pkg.iconfont;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Typeface;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContex... |
package io.hessian.rpc.server;
import io.hessian.rpc.core.SerializeUtils;
import io.hessian.rpc.core.ServiceInvokeException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
/**
* Created by manbu on 7/3/16.
*/
public class PerformanceUtil {
... |
package view;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import javax.swing.*;
import entity.UserInfo;
import service.UserService;
/**
* 个人信息面板
*
* @author 张丹
*
*/
public class UserInfoView extends JPanel implements ActionListener {
... |
/*
* Copyright 2002-2013 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package de.comsystoreply.spring.core.bootcamp;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.WebApplicationInitializer;
import org.spri... |
package com.tencent.mm.plugin.account;
public final class a$j {
public static final int abc_action_bar_home_description = 2131230720;
public static final int abc_action_bar_home_description_format = 2131230721;
public static final int abc_action_bar_home_subtitle_description_format = 2131230722;
public... |
package com.github.io24m.validate4java.validator.empty;
import com.github.io24m.validate4java.ValidateMetadata;
import java.util.Map;
/**
* @author lk1
* @description
* @create 2021-02-01 10:39
*/
public class EmptyConfigValidator extends EmptyValidator {
private Map<String, EmptyConfig> cfg;
public Emp... |
package com.tencent.mm.plugin.exdevice.model;
import com.tencent.mm.g.a.y;
import com.tencent.mm.sdk.b.b;
import com.tencent.mm.sdk.b.c;
class e$21 extends c<y> {
final /* synthetic */ e iup;
e$21(e eVar) {
this.iup = eVar;
this.sFo = y.class.getName().hashCode();
}
public final /* s... |
package com.fireblaze.foodiee.activities;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget... |
package it.polito.tdp.poweroutages.model;
import java.time.LocalDate;
public class NercData {
private Nerc n;
private LocalDate data;
public NercData(Nerc n, LocalDate data) {
super();
this.n = n;
this.data = data;
}
public Nerc getN() {
return n;
}
public void setN(Nerc n) {
this.n = n;
}
... |
package com.jzx.validate.example.service;
import com.jzx.validate.core.message.Message;
import com.jzx.validate.example.domain.User;
public interface ExampleService {
/**
* 验证方法
*
* @param user
* @return
* @throws Exception
* @see
*/
public Message validateExample(User user) throws Exception;
}
|
package in.theforloop.binaryTree;
/**
* @author Shubham
*/
public class Data {
private int key;
public int getKey() {
return key;
}
public void setKey(int key) {
this.key = key;
}
public Data(int key) {
this.key = key;
}
@Override
public String toString... |
package com.tao.servlet;
import java.io.IOException;
import java.util.ArrayList;
import javax.ejb.Init;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import cn.itcast.commons.CommonUtils;
imp... |
package fr.bodysplash.bwish.web;
import java.util.Locale;
import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;
import freemarker.template.Configuration;
public class ApplicationBWish extends org.restlet.Application{
private Configuration configurationFreemarker;
@Overri... |
package com.tencent.mm.plugin.appbrand.k;
import com.tencent.mm.plugin.appbrand.k.j.a;
import com.tencent.mm.sdk.platformtools.x;
import java.util.Timer;
import java.util.TimerTask;
class j$2 extends TimerTask {
final /* synthetic */ a glq;
final /* synthetic */ j glr;
final /* synthetic */ com.tencent.mm... |
package Model;
import java.util.ArrayList;
import java.util.Vector;
import forwardSearch.Algorithm;
public class RuleNode {
private ArrayList<Coordinates> lhs = new ArrayList<Coordinates>();
private String lhsCharacter;
private String rhs = "";
private boolean hasLHSChar = false;
public RuleNode(String single... |
package com.tencent.mm.plugin.appbrand.jsapi.live;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import com.tencent.mm.plugin.appbrand.jsapi.base.a;
import com.tencent.mm.plugin.appbrand.jsapi.coverview.CoverViewContainer;
import com.tencent.mm.plugin.appbrand.jsapi.h;
import com.ten... |
package com.example.android.android_me.ui;
import android.content.Intent;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.GridView;
import com.example.android.android... |
import java.awt.*;
import java.awt.event.*;
class Home extends Frame
{
Home()
{
this.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});
}
public void paint(Graphics g)
{
int x[]={375,275,475};
int y[]={125,200,200};
int n=3;
this.setB... |
package co.com.test.stepdefinitions;
import co.com.test.questions.ElTitulo;
import co.com.test.tasks.EntrarPortafolio;
import cucumber.api.java.Before;
import cucumber.api.java.ast.Cuando;
import cucumber.api.java.es.Entonces;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.GivenWhe... |
package com.pybeta.daymatter.tool;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/***
* 序列化
... |
package com.e6soft.form.service;
import java.util.Map;
import com.e6soft.core.service.BaseService;
import com.e6soft.form.model.BusinessBaseTemplate;
public interface BusinessBaseTemplateService extends BaseService<BusinessBaseTemplate,String> {
public String buildByBusinessFormTemplateId(String businessFormTe... |
package org.nishkarma.common.restful.util;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import javax.ws.rs.core.Response;
... |
package dao;
import bean.movie;
import java.util.List;
public interface movieDao {
public List<movie>findMovie(String name);
public List<movie>findMoviebyType(String type);
public movie findMoviebyMid(Integer id);
public movie findMoviebyDeccription(String description);
public int getCountbyType(String type,String hql... |
package com.hx.config;
import com.alibaba.fastjson.JSON;
import com.hx.entity.SysLog;
import com.hx.entity.SysUser;
import com.hx.model.BusinessStatus;
import com.hx.utils.IpUtils;
import com.hx.utils.ServletUtils;
import com.hx.utils.StringUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
i... |
package Model;
import java.util.Date;
public class Funcionario {
String cargo;
Date dataDeAdmissao;
double salario;
Pessoa pessoa;
}
|
package com.example.grademe.domain;
public class Teacher extends User{
}
|
package com.estilox.application.entityModel;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persis... |
package com.dahua.design.behavioral.state;
public class BadState implements GameState{
@Override
public void playGame() {
System.out.println("消极时刻,无心比赛");
}
@Override
public GameState next() {
return new GoodState();
}
}
|
package gr.athena.innovation.fagi.core.function.literal;
import gr.athena.innovation.fagi.core.function.IFunction;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.jena.rdf.model.Literal;
import gr.athena.innovation.fagi.core.function.IFunctionOneParameter;
/*... |
package ca.mohawk.jdw.shifty.server.net.event.impl;
/*
I, Josh Maione, 000320309 certify that this material is my original work.
No other person's work has been used without due acknowledgement.
I have not made my work available to anyone else.
Module: server
Developed By: Josh Maione (000320309)
*/
i... |
/*
* This software is licensed under the MIT License
* https://github.com/GStefanowich/MC-Server-Protection
*
* Copyright (c) 2019 Gregory Stefanowich
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... |
package org.bofur;
import java.util.ArrayList;
import org.bofur.adapter.ArrayListAdapter;
import org.bofur.adapter.SearchResultAdapter;
import org.bofur.bean.Degree;
import org.bofur.dao.DaoFactory;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
im... |
package simple.mvc.repository;
import java.util.List;
import simple.mvc.jpa.Role;
import simple.mvc.jpa.User;
public interface UserRepository {
User getUserByUsernameAndPassword(String username, String password);
User getUserById(Long id);
User createUser(User jpa);
void createRoles(L... |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
/**
* Created by guusd on 9/23/2017.
* FTC 2017, FTCunits
* Basis motor... |
package Kap2;
import javax.json.bind.annotation.JsonbPropertyOrder;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
@JsonbPropertyOrder({"id", "datum", "kunde", "positionen"})
public class Bestellung {
private int id;
private LocalDate datum;
private Kunde kunde;
private... |
package com.sula.util;
import java.io.IOException;
import org.apache.http.Header;
import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.HttpResponseFactory;
import org.apache.http.HttpVersion;
import org.apache.http.conn.ClientConnectionOperator;
import org.apache.http.conn... |
package gui.left_panel;
public interface PanelElements {
String USER_PROFILE = "User Profile";
String STATISTICS = "Statistics";
String BETS_HISTORY = "Bets History";
String BET_REGISTRY = "Bet Registry";
String NOTIFICATIONS = "Notifications";
}
|
package com.tencent.mm.plugin.game.model;
interface aq$b {
void onComplete();
}
|
package com.javakg.stroistat.controllers;
public class EditorController {
}
|
package com.sagunpandey.spookyspidersmash.audio;
import android.media.SoundPool;
public class Sound {
private int soundId;
private SoundPool soundPool;
private int playId;
private boolean loaded = false;
public Sound(SoundPool soundPool, int soundId) {
this.soundId = soundId;
th... |
package ru.innopolis;
public class School {
private final int id;
private final String name;
private final String region;
private final String city;
private final int id_schoolType;
public School(int id, String name, String region, String city, int id_schoolType) {
this.id = id;
... |
package com.example.retail.users;
import com.example.retail.users.profiles.UserProfileGender;
import java.io.Serializable;
public class SignUpRequestBody implements Serializable {
private String userName;
private String password;
private String userProfile_GivenName;
private Integer userProfile_A... |
package Session;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import Client.ClientInterface;
import Server.Server;
import java.rmi.Naming;
/**
* Implementiert die Methoden des Session Interfaces und stellt die Verbidnung zwischen Nutzer
* und Server da. Das Erzeugen eine... |
/**
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.service.manager.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
impor... |
import java.util.ArrayList;
import java.util.Scanner;
public class UserInterface {
private TodoList list;
private Scanner scanner;
public UserInterface(TodoList list, Scanner scanner) {
this.list = list;
this.scanner = scanner;
}
public void start() {
while(true) {
... |
package com.nv95.ficbook;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.text.Html;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;... |
/*
* 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... |
/*
* Copyright (c) 2015 Juan Carlos Gonzalez.
*
* This file is part of themoviedb-api.
*
* themoviedb-api 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
* any later... |
package com.javastudio.tutorial.spring;
import com.javastudio.tutorial.spring.model.Product;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;... |
package br.com.pcmaker.service.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.spring... |
package com.example.lab5.room.database;
import androidx.room.Relation;
import com.example.lab5.ToDo;
import java.util.List;
public class CategoryWithToDo {
public int id;
public String title;
@Relation(parentColumn = "id", entityColumn = "category_id")
public List<ToDo> toDoList;
}
|
package com.greenfox.orientationnormalexam.services;
import com.greenfox.orientationnormalexam.repositories.WebShopItemRepository;
import org.springframework.stereotype.Service;
@Service
public class WebShopItemServiceImp implements WebShopItemService{
private WebShopItemRepository repo;
public WebShopItemServic... |
package model.beans;
import java.io.File;
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;
/**
* 系统信息类
*/
public class SystemBean {
private String osName;
private long maxMemory;
private long totalMemory;
private long freeMemory;
private long di... |
package projectEuler;
public class PE1SumFactorsOf3and5 {
static void theEasyWay( long n) {
long sum = 0;
for (int i = 0; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
sum += i;
}
}
System.out.println(sum + "");
}
static void theEfficientWay(long target) {
System.out.println("" + (sumDivisible... |
package io.x666c.glib4j;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.image.BufferStrategy;
import java.awt.... |
package beertab.entities;
public class CustomerTable {
private int customerId;
private int table;
private String Customer;
private String Beverage;
private int quantity;
private int cost;
public int getCustomerId() {
return customerId;
}
public void setCustomerId(int cu... |
package edu.cnm.deepdive;
public class Euler1 {
public static void main(String[] args) {
System.out.println(Sum(1000));
}
public static int Sum(int total) {
int sum = 0;
for (int i = 0; i < total; i++) {
if (i % 5 == 0 || i % 3 == 0)
sum += i;
}
return sum;
}
} |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
public class MsgReceiver extends Thread {
private InputStream in;
private... |
package com.dsdelivery.sistema.entregas.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.dsdelivery.sistema.entregas.entities.Orders;
public interface OrderRepository extends JpaRepository<Orders, ... |
package com.github.mikewtao.webf;
import com.alibaba.fastjson.JSONArray;
public class JsonViewResolver extends ViewResolve {
@Override
public Object renderView(Object obj, Object param) {
String data = JSONArray.toJSONStringWithDateFormat(obj,param.toString());
return data;
}
}
|
package cn.imooc.vo;
import lombok.Data;
/**
* 前台传参
*/
@Data
public class Params {
//mysql \ es
private String type;
private String keyword;
}
|
package br.com.jdrmservices.controller;
import static br.com.jdrmservices.util.Constants.VIEW_DASHBOARD;
import static br.com.jdrmservices.util.Constants.VIEW_INDEX;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.s... |
package biorimp.optmodel.space.feasibility;
import biorimp.optmodel.mappings.metaphor.MetaphorCode;
import biorimp.storage.entities.Register;
import biorimp.storage.repositories.RegisterRepository;
import edu.wayne.cs.severe.redress2.entity.AttributeDeclaration;
import edu.wayne.cs.severe.redress2.entity.MethodDeclara... |
package zx.soft.restlet_demo;
import java.util.HashSet;
import java.util.Set;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster;
public class WriteDataIndoRedisUsingJedis {
private static Jedis jedis;
private static Set<HostAndPort> jedisClusterNodes... |
package A_Ex1_WithoutPom;
import static org.testng.Assert.assertTrue;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.Assert;
import org.testng.Reporter;
import org.testng.annotations.Test;
import util.BaseTest;
/**
1.login with correct un ... |
/**
* 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.ibeiliao.pay.account.impl.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 银行信息表
*
* <pre>
* 自动生成代码: 表名 t_bank, 日期: 2016-07-25
* id <PK> int(11)
* name varchar(45)
* status tinyint(4)
* seq int(4)
* create_time ... |
package LessonsJavaCore_6.Salary;
import java.util.Scanner;
public class EmployeeSalaryHour implements Salary {
Scanner scanner = new Scanner (System.in);
@Override
public void Salary ( ) {
System.out.println ( "Ведіть зарплату в в годину " );
int a = scanner.nextInt ();
... |
package day05ifelseif;
import java.util.Scanner;
public class IfElseStatement04 {
public static void main(String[] args) {
/*
Type java code by using if-else if() statement,
if both of the two integers are positive, output will be the sum of them.
If both of the two integers are negative, output will be the... |
package boj1546;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main1 {
public static void main(String[] args) throws NumberFormatException, IOException {
... |
package Keming.Find18;
import net.openhft.chronicle.map.ChronicleMap;
import net.openhft.chronicle.map.ChronicleMapBuilder;
public class ChronicleMapTest {
interface PostalCodeRange {
int minCode();
void minCode(int minCode);
int maxCode();
void maxCode(int maxCode);
}
Chronicle... |
package java.util;
public class home1 {
}
|
public class UBoot extends Schiff{
public UBoot(Punkt p, Richtung.Orientierung o)
{
super(p,o);
this.laenge = 3;
}
}
|
package com.study.security.demospringsecurityform.form;
import com.study.security.demospringsecurityform.account.AccountRepository;
import com.study.security.demospringsecurityform.common.SecurityLogger;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Contr... |
package com.github.quark.common.core.validator;
import com.github.quark.common.core.exception.BusinessException;
import com.github.quark.common.core.model.ICode;
import com.github.quark.common.core.model.R;
import lombok.extern.slf4j.Slf4j;
import javax.validation.ConstraintViolation;
import javax.validation.Validati... |
package com.example.demo.service.UserServiceImp;
import com.example.demo.dao.UserMapper;
import com.example.demo.domain.Page;
import com.example.demo.domain.User;
import com.example.demo.service.UserService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.ster... |
package lesson15.task1;
public class User {
private String login = "qwerty";
private String password = "111111";
public class Query {
public void printToLogg() {
System.out.println("User is " + User.this);
System.out.println("login is " + login);
System.out.prin... |
package com.yougou.merchant.api;
import static org.junit.Assert.assertTrue;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
imp... |
package net.sssanma.mc.firework;
import net.sssanma.mc.ECore;
import net.sssanma.mc.IComponent;
import net.sssanma.mc.utility.Savable;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.YamlConfiguration;
import jav... |
package com.tencent.mm.plugin.voip.ui;
import com.tencent.mm.plugin.voip.ui.g.2;
import com.tencent.mm.sdk.platformtools.al.a;
import com.tencent.mm.sdk.platformtools.x;
class g$2$1 implements a {
final /* synthetic */ 2 oSS;
g$2$1(2 2) {
this.oSS = 2;
}
public final boolean vD() {
x... |
package com.example.demo;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.hibernate.Session;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Repository
public class RegistartionDAO {
@PersistenceCon... |
package com.GraphData;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... |
package com.drzewo97.ballotbox.panel.controller.committee;
import com.drzewo97.ballotbox.core.model.role.Role;
import com.drzewo97.ballotbox.core.model.role.RoleRepository;
import com.drzewo97.ballotbox.core.model.user.UserRepository;
import com.drzewo97.ballotbox.core.model.committee.CommitteeRepository;
import com.d... |
package com.freak.printtool.service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.freak.printtool.hardware.module.MainActivity;
/**
* 开机启动广播
*
* @author Freak
* @date 2019/8/13.
*/
public class BootCompleteReceiver extends BroadcastReceiver ... |
/*
* Copyright 2015 The Apache Software Foundation.
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.