text stringlengths 10 2.72M |
|---|
package stringhandling;
public class Intern {
public static void main(String args[])
{
String s="hello";
String s2=new String ("hello");
//System.out.println(s==s2);
String s1=s2.intern();
System.out.println(s1==s);
}
}
|
package gil.server.controllers;
import gil.server.http.HTTPProtocol;
import gil.server.http.Request;
import gil.server.http.Response;
import java.util.function.BiFunction;
public class ParametersController {
public static BiFunction<Request, Response, Response> get =
(request, response) -> {
... |
/*
* 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 bioui;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
/**
*
* @author Jacquelyn
*/
class QueUI extends JF... |
package be.openclinic.archiving;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Types;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
import org.apache.pdfbox.util.operator.SetHorizontalTextScalin... |
package br.com.lucro.manager.service;
import br.com.lucro.manager.model.FileHeaderCielo;
import br.com.lucro.manager.model.FileOperationResumeOutstandingBalanceCielo;
/**
*
* @author Georjuan Taylor
*
*/
public interface FileOperationResumeOutstandingBalanceCieloService {
/**
* Read line data, format and sa... |
package fr.simplon.medecine.model;
public class Creneau {
}
|
package com.gaoshin.onsalelocal.lon.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gaoshin.onsalelocal.lon.dao.LonDao;
import com.gaoshin.onsalelocal.lon.service.Lon... |
package com.yh;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.Surfa... |
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
class Graph{
public int V;
public int[] color;
public int[] d ;
public int[] pi ;
Queue<Integer> queue = new LinkedList<>();
public LinkedList<Integer> adj[];
Graph(in... |
package com.mastek.farmToShop.entities;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import java... |
package com.framgia.fsalon.utils.formatter;
import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
import java.util.List;
/**
* Created by THM on 8/24/2017.
*/
public class ColNameIAxisValueFormatter implements IAxisValueFormatter {
private f... |
package org.huangfugui.ibatis.mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* Created by huangfugui on 2017/7/22.
*/
@Repository
public interface LabelRecordMapper {
/**
* 用户打标签后记录用户记录
* 暂时有无自定义输入先分开,打第一轮
* @param userId
* @param pi... |
package me.d2o.statemachine.aspects;
import java.lang.reflect.Method;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import me.d2o.stat... |
package com.henry.sendmail;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import javax.mail.internet.MimeMessage;
import org.apache.velocity.app.VelocityEngine;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import or... |
package behavioral.state;
/**
* @author Renat Kaitmazov
*/
public final class HighSpeedState implements State {
/*--------------------------------------------------------*/
/* Instance variables
/*--------------------------------------------------------*/
private final CeilingFanPullChain pullChai... |
package com.college.staff;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframew... |
import java.util.*;
class shaurya
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("enter the string");
String s=sc.nextLine();
s=s.toLowerCase();
System.out.println("enter the number of patterns you wanna find");
in... |
package zad1;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Map;
public class RUSServer {
//initialize socket and input stream
private Socket socket = null;... |
package com.foodaholic.interfaces;
import com.foodaholic.items.ItemCat;
import java.util.ArrayList;
public interface CategoryListener {
void onStart();
void onEnd(String success, String message, ArrayList<ItemCat> arrayListCat);
}
|
package ProjectStarterCode.model;
public class Board {
/**
* Constitutes the Board made out of tiles
* in which the snake will move
* and which will contain the food
*/
public Tile[][] tiles;
/**
* Constructs a board with tiles with 9 rows and 9 columns
*/
public Board()... |
package notifications;
/**
* Created by David on 10/04/2017.
*/
public interface INotification {
}
|
package server.controllers;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.Moshi;
import com.squareup.moshi.Types;
import org.antlr.v4.runtime.misc.ParseCancellationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOri... |
package com.kecode._1_basic;
import java.util.Scanner;
public class demo {
public static void main(String[] args) {
//1、要求用户输入两个数a和b,如果a能被b整除或者a加b大于1000,则输出a;否则输出b。
Scanner scanner = new Scanner(System.in);
System.out.println("请输入a: ");
int a = scanner.nextInt();
System.ou... |
package at.ac.tuwien.sepm.groupphase.backend.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.util.Objects;
@Entity
@Table(name = "tax_rate")
public class TaxRate {
@I... |
/*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.zxt.compplatform.formengine.engine;
/**
* 条件工厂
*
* @author 007
*/
public class ConditionFactory {
/**
* 根据不同的字符串返回不同的表单转化器实体
*
* @param str
* @return
*/
public static IPageTransFer creator(String str) {
if (str.equals("listPage")) {
return new ListPageTransFer();
} else if (str.eq... |
import java.util.*;
/**
* Created by Adolph on 2017/8/27.
* 班级学生成绩管理一
*/
public class chapter5_18 {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.println("请输入学生的人数:");
int renshu = in.nextInt();
System.out.println("请输入课程的数目");
int ... |
package fr.unice.polytech.isa.polyevent.cli.commands;
import fr.unice.polytech.isa.polyevent.cli.framework.Command;
import fr.unice.polytech.isa.polyevent.cli.framework.CommandBuilder;
import fr.unice.polytech.isa.polyevent.cli.framework.Context;
import fr.unice.polytech.isa.polyevent.stubs.DemandePrestataire;
import ... |
/*
* 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.ag.beanI;
import com.ag.model.Location;
import com.ag.model.Venue;
import com.xag.util.NoMatchFoundException;
import java.... |
package co.sblock.events.listeners.player;
import java.util.concurrent.ThreadLocalRandom;
import co.sblock.Sblock;
import co.sblock.chat.Language;
import co.sblock.events.Events;
import co.sblock.events.listeners.SblockListener;
import co.sblock.micromodules.FreeCart;
import co.sblock.micromodules.Godule;
import co.s... |
package name.arbitrary.y2014.qualification;
import name.arbitrary.CodeJamBase;
public class C_MinesweeperMaster extends CodeJamBase {
public C_MinesweeperMaster(String fileName) {
super(fileName);
}
public static void main(String[] args) {
new C_MinesweeperMaster(args[0]).run();
}
... |
package com.openfarmanager.android.dialogs;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.AdapterView;
import android.w... |
package kuntosali.test;
// Generated by ComTest BEGIN
import static org.junit.Assert.*;
import org.junit.*;
import kuntosali.*;
// Generated by ComTest END
/**
* Test class made by ComTest
* @version 2020.07.29 15:57:33 // Generated by ComTest
*
*/
@SuppressWarnings({ "all" })
public class AsiakasTest {
// Ge... |
package lesson2;
/**
* Created by Admin on 09.02.2015.
*/
public class test3 {
public static void main(String[] args) {
int x = 157;
if (x % 10 == 7) {
System.out.println("Является");
} else {
System.out.println("Не является");
}
}
}
|
package com.trump.auction.pals.api.model.alipay;
import com.cf.common.utils.ServiceResult;
import lombok.Data;
@Data
public class AlipayPayResponse extends ServiceResult {
private String payBody;
private String outTradeNo;
public AlipayPayResponse(String code) {
super(code);
}
publ... |
package Demo;
public class Session1_Polymorphism {
public static void main(String[] args) {
// TODO Auto-generated method stub
B obj = new B();
obj.m1();
}
}
class A{
void m1(){
System.out.println("In A-M1");
}
}
class B extends A{
void m1(){
System.out.println("In B-M1");
}
}
class C extends A{
... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.commons.TreeNode;
import org.giddap.dreamfactory.leetcode.onlinejudge.FlattenBinaryTreeToLinkedList;
/**
* Recursive solution.
*
* Follow the pre-order traversal to move the left subtree to right.
*/
publ... |
package com.willcode4coffee.webservice.implementation;
import org.example.superfoodsservice.SuperFoodsService;
public class SuperFoodsServiceSOAPImpl implements SuperFoodsService {
/**
*
*/
public String getSuperFoodList(String healthQuery) {
if(healthQuery.equalsIgnoreCase("BloodPressure")){
return ... |
package pkgb.util;
public class Helper {
public static String doHelp(){
return "I am modb, doing something with pkg.Helper";
}
}
|
package com.stylefeng.guns.rest.order.util;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.net.ftp.FTPClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.io.BufferedReader;
import ... |
package com.wenyuankeji.spring.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factor... |
package gui.tree;
import gui.ClipboardHelper;
import gui.ComponentTools;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Event;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.util.Enum... |
package FirstProject.Playground;
public class College {
private Student student;
private int basicFees;
College(Student student, int basicFees){
this.student = student;
this.basicFees = basicFees;
}
}
|
public class Myfavoritesubjects {
public static void main(String[] args) {
System.out.println("My favorite subjects are \n\t Chemistry\n\t Math\n\t Computer Programming\n\t");
}
}
|
package com.thousand.petdog.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android... |
package com.sun.tools.xjc.generator.annotation.spec;
import javax.xml.bind.annotation.XmlElementRef;
import com.sun.codemodel.JAnnotationWriter;
import com.sun.codemodel.JType;
public interface XmlElementRefWriter
extends JAnnotationWriter<XmlElementRef>
{
XmlElementRefWriter name(String value);
XmlEl... |
package entity;
import java.sql.Date;
public class Corso {
private int id_corso;
private String nome_corso;
private Date data_inizio;
private Date data_fine;
private String Descr;
private int id_prof;
public int getId_prof() {
return id_prof;
}
public void setId_prof(int id_prof) {
this.id_prof = id_prof;
}
publi... |
package com.Game;
public class GameEngine extends AbstractGameRule{
public GameEngine()
{
}
/* This method starts the game and it gets executed till the end(result gets out)
* */
public void startGame(Player player)
{
// Play the game once
do {
player.markBox(curre... |
package cn.edu.ncu.collegesecondhand.adapter.interf;
import cn.edu.ncu.collegesecondhand.entity.CartBean;
/**
* Created by ren lingyun on 2020/4/20 2:57
*/
public interface CartCheckListener {
void isChecked(CartBean cartBean);
void isNotChecked(CartBean cartBean);
}
|
package fudan.database.project.dao.impl;
import fudan.database.project.dao.DAO;
import fudan.database.project.dao.DailyRecordDAO;
import fudan.database.project.entity.DailyRecord;
import java.util.List;
public class DailyRecordDAOJdbcImpl extends DAO<DailyRecord> implements DailyRecordDAO {
@Override
public ... |
package com.baizhi.config;
import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import com.baizhi.cache.RedisCacheManager;
import com.baizhi.shiro.realm.UserRealm;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.spring.web.ShiroFilterFac... |
package future.test;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public ... |
package com.its.dao;
import java.util.List;
import com.its.entities.Rol;
public interface RolDao {
public List<Rol> list();
}
|
//package com.union.express.web.oauth.security;
//
//import org.springframework.security.oauth2.common.exceptions.InvalidClientException;
//import org.springframework.security.oauth2.provider.ClientDetails;
//import org.springframework.security.oauth2.provider.NoSuchClientException;
//import org.springframework.securit... |
package com.example.apprunner.Organizer.menu3_check_payment.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android... |
// LANGUAGE: Java
// AUTHOR: Gleb Ermolaev
// GITHUB: https://github.com/Ermolaeff
//
//This script takes the name of the user as an input
//and greets him after that.
import java.util.Scanner;
public class Hello_World {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
... |
package com.algaworks.algamoney.api.data.entity;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* @author jsilva on 07/11/2019
*/
@Entity
@Table(name = "permission")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Bu... |
package myMath;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.function.Predicate;
import javax.management.RuntimeErrorException;
import myMath.Monom;
/**
* This class represents a Polynom with add, multiply functionality, it also should support the following:
* 1. Riemann's Integral: http... |
package com.qx.wechat.comm.sdk.request.msg.action;
import java.util.List;
import com.qx.wechat.comm.sdk.request.msg.PassiveMsgType;
public class PassiveGroupCreationActionMsg extends PassiveActionMsg{
private static final long serialVersionUID = 2765534130813027698L;
public PassiveGroupCreationActionMsg() {
t... |
package com.nbu.barker;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
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.widget.Toast;
import org.w3... |
package com.siokagami.application.mytomato.bean;
/**
* Created by siokagami on 16/12/28.
*/
public class UserProfileQuery extends BaseQuery {
public String nickname;
public int sex;
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
... |
package com.mycompany.myapp;
import android.content.*;
import android.opengl.GLSurfaceView.*;
import com.mycompany.myapp.util.*;
import java.nio.*;
import javax.microedition.khronos.egl.*;
import javax.microedition.khronos.opengles.*;
import static android.opengl.GLES20.*;
public class AirHockeyRenderer implements R... |
package com.amazonaws.xray.strategy;
import java.util.ArrayList;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.amazonaws.xray.emitters.Emitter;
import com.amazonaws.xray.entities.Entity;
import com.amazonaws.xray.entities.Segment;
import com.amazonaws.xray.entities.S... |
package exercicios.aula09.q1;
import java.util.ArrayList;
public abstract class Funcionario {
protected String nome;
protected String CPF;
public Funcionario(String nome, String CPF) {
this.nome = nome;
this.CPF = CPF;
}
public abstract double getRemuneracao();
public String getNome() {
return nom... |
package com.dmtrdev.monsters.sprites.armors.ground;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Shape2D;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gd... |
package visitor;
import controller.Game;
/**
* Visitor used to add score to a game.
* When a hittable object is hit, and therefore a score is to be added to the game,
* this class is used to communicate the value to be added, in order to maintain
* class privacy.
*
* @author Gabriel Chaperon
*/
public class Ad... |
package com.tide.demo04;
import java.util.ArrayList;
public class Demo06ArrayListPrint {
public static void main(String[] args) {
ArrayList<Integer> array=new ArrayList<>();
array.add(100);
array.add(120);
array.add(50);
array.add(55);
array.add(65);
array.a... |
package com.example.hante.newprojectsum.meterialdesign;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import and... |
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTVerificationException;
import com.auth0.jwt.interfaces.DecodedJWT;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.apache.commons.lang3.time.DateFormatUtils;
impor... |
package Attributes;
public class Number extends Attribute {
int num;
boolean init=false;
public Number(int n) {
super(false);
init=true;
num=n;
}
public Number(){
super(true);
}
@Override
public String toString(){
if(!init){
return "<... |
package car;
public class Goods extends Car {
private double goodCapacity;
public Goods(int number, String brand, double fee, double goodCapacity) {
super(number, brand, fee);
this.goodCapacity = goodCapacity;
}
public double getGoodCapacity() {
return goodCapacity;
}
public... |
package com.talleres.proyectotalleresandroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.squareup.picasso... |
package org.reactome.web.nursa.client.details.tabs.dataset;
/**
* @author Fred Loney <loneyf@ohsu.edu>
*/
public class GseaHoveredEvent extends NursaPathwayHoveredEvent<String> {
public static Type<PathwayLoader> TYPE = new Type<PathwayLoader>();
public GseaHoveredEvent(String stId) {
super(stId);
... |
package com.edasaki.rpg.particles;
import org.bukkit.ChatColor;
public enum CosmeticRarity {
COMMON(ChatColor.WHITE + ChatColor.ITALIC.toString() + "Common Effect"),
RARE(ChatColor.AQUA + ChatColor.ITALIC.toString() + "Rare Effect"),
EPIC(ChatColor.LIGHT_PURPLE + ChatColor.ITALIC.toString() + "Epic Effect... |
package com.turios.modules.preferences;
import com.turios.persistence.Preferences;
public class BaseModulePreferences {
protected final Preferences preferences;
public BaseModulePreferences(Preferences preferences) {
super();
this.preferences = preferences;
}
}
|
package cn.jiucaituan;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import cn.jiucaituan.common.DateUtil;
import cn.jiucaituan... |
package com.hm.cms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author Merlin
* @Title: CMSApplication
* @ProjectName gradle-learning
* @Description: TODO
* @date 2020/8/2015:17
*/
@SpringBootApplication
public class HmCmsApplica... |
package com.logicbig.example.injectingcollection.map.jconfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class MapInjectionExample {
@Bean
... |
package com.example.mmr.medic;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Dialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.view.View;... |
package Keywords;
import java.util.List;
import java.util.Properties;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import com.relevantcodes.extentreports.ExtentTest;
import com.relevantcodes.extentreports.LogStatus;
import AdditionalSetup.Objects;
import AdditionalSetup.ResultUpdatio... |
package br.com.fatec.proximatrilha.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 org.springframework.security.core.GrantedAuthority;... |
package org.eclipse.wb.swt;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.util.Scanner;
import javax.swing.JOptionPane;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
i... |
package search.binary;
public class Main {
public static void main(String[] args) {
BST bst = new BST();
bst.put("3", "헤헤");
bst.put("5", "헤헤");
bst.put("1", "헤헤");
bst.put("2", "세크스");
bst.put("0", "헤헤");
int a = bst.size();
System.out.println(a);
bst.print();
}
}
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] nums = input.split(" ");
String[] as = nums[0].split("/");
String[] bs = nums[1].split("/");
... |
public class ProblemSets {
public long maxSets(long E, long EM, long M, long MH, long H) {
long min = 0;
long max = H + MH + 1;
while(min < max) {
long mid = (min + max)/2;
if(possible(E, EM, M, MH, H, mid)) {
min = mid + 1;
} else {
... |
public class Department
{
public static void depinfo()
{
}
} |
package com.example.jobbay;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
... |
package step_definitions;
import BDDTest.SeleniumUtils;
import BDDTest.SeleniumUtils.FindOption;
import BDDTest.SeleniumUtils.SeleniumValidateOption;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
public class TestingImages {
private SeleniumUtils seleniumUtils;
private String startPageUrlD... |
package api.algorithm.selection;
import java.util.List;
import api.algorithm.Algorithm;
import api.model.individual.Individual;
public abstract class SelectionAlgorithm extends Algorithm{
private int numberOfSelected;
public SelectionAlgorithm(int numberOfSelected) {
this.numberOfSelected = numberOfSelected;
... |
package com.cbsystematics.edu.internet_shop.repository;
import com.cbsystematics.edu.internet_shop.entity.Product;
public interface IProductRepository extends GenericRepository<Product> {
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package josteo.viewmodels;
import josteo.infrastructure.DomainBase.*;
import java.util.*;
import josteo.model.paziente.*;
import josteo.application.*;
import josteo.infrastructure.helpers.*;
/**
*
* @author cristian... |
package ru.goodroads.utils;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import org.apache.commons.codec.binary.Base64;
public class ZIP {
public static byte[] compress(String data, String fileName) {
if (data == null || ... |
package me.ewriter.chapter4;
import android.animation.ObjectAnimator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import an... |
package com.cs.rest.status;
import com.cs.payment.devcode.DCInvalidAuthorizationCodeException;
/**
* @author Hadi Movaghar
*/
public class DCInvalidAuthorizationCodeMessage extends DevcodeErrorMessage {
private static final long serialVersionUID = 1L;
public DCInvalidAuthorizationCodeMessage(final String ... |
package com.n26.atrposki.endpoints;
/*
* @author aleksandartrposki@gmail.com
* @since 06.05.18
*
*
*/
import com.n26.atrposki.domain.AggregateStatistics;
import com.n26.atrposki.domain.Transaction;
import com.n26.atrposki.statistics.StatisticsService;
import com.n26.atrposki.transactions.TransactionDTO;
import co... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package jp.ac.hal.Model;
public class CorporationAccount
{
private String corporationAccountId;
private String corporationAccountName;
private int corporationId;
private String passwd;
public String getCorporationAccountId() {
return corporationAccountId;
}
public void setCorporationAccountId(String corporat... |
package demo.oops;
class Briyani extends Food {
@Override
public void prepare() {
System.out.println("Briyani prepared");
System.out.println("Briyani ready");
}
}
class Friedrice extends Food{
String salt;
public Friedrice(String salt){
this.salt= salt;
}
@Override
public void... |
package com.xcafe.bank.config;
import com.xcafe.bank.service.repository.AccountRepository;
import com.xcafe.bank.service.repository.MySqlAccountRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Co... |
/*
* 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 servicios;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.