text stringlengths 10 2.72M |
|---|
package com.shashi.customer.resources;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.MatrixParam;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import j... |
package com.cbs.edu.spring_annotations;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan(basePackages = {"com.cbs.edu.spring_annotations"})
public class ComponentScanConfig {
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DAO;
import Bean.Section;
import Utility.DBConn;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.logging.Level;
import java... |
package ru.gb.jtwo.lesson_3.homework_3;
public class Person {
public String phone;
public String email;
public Person(String phoneNumber, String email) {
this.phone = phoneNumber;
this.email = email;
}
}
|
package com.imooc.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
@Conf... |
package oberon;
import file.FileUtils;
import file.RTFFile;
import gui.comp.FileChooser;
import gui.db.TableView;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import javax.swing.JFileChooser;
import javax.swing.SwingUtilit... |
package com.logzc.webzic.compass.service;
import com.logzc.webzic.annotation.Service;
/**
* Created by lishuang on 2016/7/19.
*/
@Service
public class UserService {
}
|
package images;
public class RGB {
public static final RGB BLACK = new RGB(0,0,0);
public static final RGB WHITE = new RGB(1,1,1);
public static final RGB RED = new RGB(1,0,0);
public static final RGB GREEN = new RGB(0,1,0);
public static final RGB BLUE = new RGB(0,0,1);
private double red, green, blue;
... |
/*
* Copyright 2002-2022 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... |
/*
* 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 BLL;
import java.awt.Frame;
import java.text.NumberFormat;
import java.util.Locale;
import javax.swing.JOptionPane;
/**
*
*... |
package com.jfronny.raut.api;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.Ingredient;
import net.minecraft.recipe.Recipe;
import java.util.function.Predicate;
public class RecipeContentRemovalPredicate implements Predicate<Recipe<?>> {
private final ItemStack content;
public RecipeConte... |
package com.uchain.core.producerblock;
import com.uchain.cryptohash.BinaryData;
import com.uchain.cryptohash.PublicKey;
import com.uchain.main.ConsensusSettings;
import com.uchain.main.Witness;
public class ProducerUtil {
/**
* 获取给定时间点的生产者
*
* @param timeMs time from 1970 in ms
* @return
... |
package com.example.demo.blog.service.impl;
import com.example.demo.blog.entity.Article;
import com.example.demo.blog.mapper.ArticleMapper;
import com.example.demo.blog.service.IArticleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p... |
package com.gxtc.huchuan.ui.live.list;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.view.View;
import com.gxtc.commlibrary.base.BaseTitleActivity;
import com.gxtc.huchuan.R;
import com.gxtc.huchuan.adapter.BaseT... |
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.NotFoundException;
public interface ExecContainerCmd extends BaseExecCmd<ExecContainerCmd, String> {
@Override
public String exec() throws NotFoundException;
public static interface Exec extends DockerCmdExec<ExecContainerCmd, String> ... |
package com.example.parcial3capas.repositories;
import com.example.parcial3capas.domain.Departamento;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface DepartamentoRepo extends JpaRepository<Departamento, Integer> {
Departamento findByDepartamento(String depart... |
package com.needii.dashboard.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
/**
* The persistent class for the admins database table.
*
*/
@Entity
@Table(name="wards")
@NamedQuery(name="War... |
package com.hcl.neo.eloader.network.handler;
public abstract class TransportFactory {
public abstract Transporter createTransporter();
}
|
package com.deepak.proxy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.ann... |
package com.meehoo.biz.web.controller.basic.setting;
import com.meehoo.biz.core.basic.param.HttpResult;
import com.meehoo.biz.core.basic.service.setting.IProvinceCityAreaService;
import com.meehoo.biz.core.basic.vo.setting.ProvinceCityAreaSelectVO;
import com.meehoo.biz.core.basic.vo.setting.ProvinceSelectVO;
import i... |
package com.springboot.racemanage.controller.restful;
import com.springboot.racemanage.controller.restful.restfulDO.ResultDO;
import com.springboot.racemanage.dao.LogDao;
import com.springboot.racemanage.po.*;
import com.springboot.racemanage.service.*;
import org.springframework.beans.factory.annotation.Autowired;
i... |
/*
* Copyright 2002-2022 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.ggtf.xieyingwu.cloudphoto.utils;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Log;
import java.io.File;
/**
* Created by xieyingwu on 2017/5/22.
*/
p... |
package com.eot3000.groups;
import com.eot3000.BasicsPlugin;
import org.bukkit.OfflinePlayer;
import java.util.ArrayList;
import java.util.List;
public class Bank {
private static ArrayList<Bank> banks = new ArrayList<>();
private static ArrayList<String> names = new ArrayList<>();
private int... |
package com.example.jv.fotoroom;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.util... |
package com.techelevator;
public class VendingMachineCLI {
public static void main(String[] args) {
Printer.splashScreen();
FileIO.loadCsv();
Inventory.buildInventory();
SalesReport.loadRunningSalesMap();
MainMenu.run();
}
} |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package tk.paarshvchitra.textilepro.textilepro;
/**
* Created by PRIYANKA on 08-12-2014.
*/
public interface NavigationDrawerCallbacks {
void onNavigationDrawerItemSelected(int position);
}
|
package com.imagsky.exception;
public class UnsupportedModuleBizException extends BaseException {
private static final long serialVersionUID = 1L;
private String unsupportedModuleBizCode = null;
public UnsupportedModuleBizException(String unsupportedModuleBizType) {
super("App Code \"" + unsupportedModu... |
package Revise.graphs;
public class SurroundedRegionIslandProblem {
public void solve(char[][] board) {
if (board == null || board.length == 0)
return;
int m = board.length;
int n = board[0].length;
for (int i = 0; i < m; i++) {
//check for left end
... |
package employeeScheduler.model;
import java.util.ArrayList;
/**
* Object created by schedule builder. It contains structure of defined work shifts combined with employees.
*/
public class ResultingSchedule {
private ArrayList<Integer>[][] result;
private ArrayList<EmployeeSchedule> employeesSchedules;
... |
package org.desertworkz;
import java.net.InetSocketAddress;
import com.sun.net.httpserver.HttpServer;
public class Main {
public static void main(String[] args) throws Exception {
// test data
Handlers.addCounterService("accounts", new String[]{"C1"});
Handlers.addCounterService("collect... |
package com.sda.geometry;
public abstract class FlatShape {
double width;
double height;
public FlatShape(double width, double height) {
this.width = width;
this.height = height;
}
void printDimensions (double width, double height){
System.out.println(String.format("FlatSh... |
package hibernate_test;
import hibernate_test.entity.Employee;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
/** В данном классе реализовано удаление работника(-ов) в соответствии с параметрами запроса.
* Для примера, я удалял работника по имени */
public... |
package lab4;
import akka.actor.*;
import akka.japi.pf.ReceiveBuilder;
import akka.routing.RoundRobinPool;
import java.time.Duration;
import java.util.Collections;
public class RouterActor extends AbstractActor {
private ActorRef storageActor;
private SupervisorStrategy strategy;
private ActorRef testerA... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jearl.logback;
import ch.qos.logback.classic.Level;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
import org.slf4j.Marker;
/**
*
* @author can
*/
public class LogService implements Log {
pri... |
package com.microservice.studentservice.service;
import com.microservice.studentservice.entity.Student;
import com.microservice.studentservice.feignClients.CustomFeignClient;
import com.microservice.studentservice.repository.StudentRepository;
import com.microservice.studentservice.request.StudentRequest;
import com.m... |
package com.application.operations;
import java.beans.PropertyVetoException;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.sql.SQLException;
import java.util.List;
import com.appl... |
/**
* #dynamic-programming #math #todo
*
* <p>Solution 1: DP a0 <= a1 <= ... <= am <= bm <= b(m-1) <= ... <= b0 <= b0 >= b1 >= .. >= bm
*
* <p>Solution 2: math 1 -- n 1 2 3 x x x | x x x x | x x x x x x x x 2 * m + n-1 (position)
*
* <p>-> C(2m+n-1, n-1)
*
* <p>Method basic: dp[i][x][y] -- so cach tao duoc 2 d... |
package com.smart.droidies.tamil.natkati.library;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.res.Resourc... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webui.common.identities.ext;
import pl.edu.icm.unity.exceptions.IllegalIdentityValueException;
import pl.edu.icm.unity.server.utils.UnityMessageSource;
import pl.edu.... |
package org.dajlab.mondialrelayapi.soap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>
* Classe Java pour ret_WSI2_DetailPointRelais complex type.
*
* <p>
* Le fr... |
/*
* 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 agh.musicapplication.mappservices;
import agh.musicapplication.mappservices.interfaces.GradeCoutingServiceInterface;
import ja... |
package com.mercadolibre.bootcampmelifrescos.model;
import lombok.*;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name="product")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(exclude = {"seller", "purchaseOrderProducts"})
@ToString(exclude = {"purchase... |
package com.zantong.mobilecttx.chongzhi.dto;
/**
* 充值订单列表请求实体
* @author Sandy
* create at 16/6/1 下午7:34
*/
public class RechargeOrderDTO {
private String userId; //用户ID
private int currentIndex; //当前页
private int orderStatus; //订单状态
public String getUserId() {
return userId;
}
pu... |
package com.wangcheng.base;
/**
* description:
*
* @author WangCheng
* create in 2019/3/7 11:51
*/
public class ShortTest {
public static void main(StringTest[] args) {
test01();
}
private static void test01() {
short num = 1;
//num = num + 5;编译报错
num += 5;
Sy... |
package com.davivienda.sara.reintegros.general.helper;
import com.davivienda.sara.constantes.CodigoError;
import com.davivienda.sara.reintegros.general.ReintegrosHelperInterface;
import com.davivienda.sara.reintegros.general.ReintegrosGeneralObjectContext;
import com.davivienda.sara.tablas.reintegros.session.Reintegro... |
package dz.Hanimall.Lar;
import dz.Hanimall.Lar.inputs.KeyManager;
import dz.Hanimall.Lar.worlds.World;
public class Master {
private Game game;
private World world;
public Master(Game game){
this.game = game;
}
public KeyManager getKeyManager(){
return game.getKeyManager();
}
public int g... |
package com.example.sborick.raintoday.Alerts;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Created by sborick on 1/24/2017.
*/
public class WeatherData... |
import java.io.File;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir le chemin du répertoire que vous souhaitez lister :");
String chemin = sc.nextLine();
File fic... |
/*
* The MIT License
*
* Copyright 2017, Juliano Macedo.
* See LICENSE file for details.
*
*/
package haversine;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.... |
package randomNameGenerator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
/**
* Generates random names.
* @author Patrick Murphy
*
*/
public class NameGenerator {
private Random rand = new Random();
private int maxLength;
pr... |
package com.beike.wap.service.impl;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.beike.wap.dao.MWapTypeDao;
import com.beike.wap.entity.MWapType;
import com.beike.wap.service.MWapTypeService;
/**
* Title : GoodsServiceImp... |
package pl.edu.agh.to2.controllers;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.*;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.AnchorPane;
import org.apache.logging.log4j.LogManager;
imp... |
package car_rent.rent;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class DeleteOptionServlet extends HttpServlet {
@Override
protected void doGet(H... |
package org.wxy.weibo.cosmos.network.api;
import org.wxy.weibo.cosmos.bean.ByMeBean;
import org.wxy.weibo.cosmos.bean.CommentsShowBean;
import org.wxy.weibo.cosmos.bean.CreateBean;
import org.wxy.weibo.cosmos.bean.DestroyBean;
import org.wxy.weibo.cosmos.bean.MentionsBean;
import org.wxy.weibo.cosmos.bean.ReplyBean;
i... |
/*
* 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.mycompany;
import javax.ejb.Singleton;
import javax.interceptor.Interceptors;
/**
*
* @author kerch
*/
@Singleton(mapp... |
class varArray
{
public void m1(int arr[])
{
for(int x:arr)
{
System.out.println(x);
}
}
public static void main(String[]args)
{
varArray o = new varArray();
int n1[] = {10};
int n2[] = {10,20};
int n3[] = {1,2,3,4,5};
... |
package com.sjzy.data.monitor;
import com.alibaba.druid.pool.DruidDataSource;
import com.sjzy.data.monitor.common.Constants;
import com.sjzy.data.monitor.db.DBMailHelper;
import com.sjzy.data.monitor.mail.SendMailSmtp;
import com.sjzy.data.monitor.pojo.JobInfoDemo;
import com.sjzy.data.monitor.pojo.SHDemo;
import com... |
package com.hty.spring5.core.function;
import com.hty.spring5.core.model.ResultWrapper;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerRespon... |
package in.vamsoft.excersise2;
import java.util.ArrayList;
import java.util.List;
import in.vamsoft.excersise1.shape1.Circle;
public class CircleListTest {
public static void main(String[] args) {
List<Circle> circles = new ArrayList<>();
while (Math.random() > 0.01) {
circles.add(new Circle(10*Math.r... |
package me.libme.baidu.mapdata.searchindex.impl.place;
import me.libme.baidu.mapdata.searchindex.impl.ReferencePoint;
import me.libme.baidu.mapdata.searchindex.impl.place.response.BaiduPlaceResponse;
import me.libme.baidu.mapdata.searchindex.keyword.KeywordSearch;
import me.libme.baidu.mapdata.searchindex.keyword.Sear... |
package com.edgit.server.security.authentication;
import java.io.Serializable;
import java.util.Hashtable;
import java.util.Properties;
import java.util.StringTokenizer;
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Att... |
package com.codigo.smartstore.webapi.generators;
import java.io.Serializable;
import java.util.Properties;
import org.hibernate.HibernateException;
import org.hibernate.MappingException;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.id.enhanced.SequenceStyleGenerator;
import o... |
package graphics_control.drawables;
/**
* Drawable interface.
*/
public interface Drawable {
void draw();
}
|
import java.util.Arrays;
class Solution {
public int solution(int[] people, int limit) {
int answer = 0;
int cnt = 0;
int weight = 0;
int i = 0;
Arrays.sort(people);
while(cnt != people.length) {
if(i <= people.length-1 && weight + people[i] <= li... |
package vape.springmvc.services;
import java.util.List;
import vape.springmvc.entity.ProductosPrecio;
public interface ProductosPrecioServices {
public List <ProductosPrecio> getProductosPrecio();
}
|
package edu.ua.lccmarc2json;
import java.math.BigDecimal;
import java.util.Comparator;
public class NumbersDescribedByTopicComparator implements Comparator<String> {
@Override
public int compare(String numbersDescribedByFirstTopic, String numbersDescribedBySecondTopic) {
// Extract the numerical component of... |
public class Diemthi {
public static void main(String[] args) {
float dtoan = 7F, dly = 7F, dhoa = 8F;
int hstoan = 2, hsly = 1, hshoa = 1;
float diemtb;
diemtb = (dtoan * hstoan + dly * hsly + dhoa * hshoa)/4;
System.out.println("Điểm toán = " + dtoan + ", Hệ số = " + hst... |
package com.test.single;
/**
* KMP算法,在不匹配时,找规律,让模式串多滑动几位
*
* n : 主串长度
* m : 模式串长度
*
* 简介:遇到坏字符时,主串不再重新匹配,而是将模式串,直接从某个字符串开始匹配
* 时间复杂度:最坏 = n * m; 最好 = n
* 空间复杂度:m
*
* @author YLine
*
* 2019年4月8日 上午11:34:30
*/
public class SolutionKMP implements SingleModelSolution
{
@Override
public int mat... |
package br.com.devweb.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web... |
package com.alex;
import com.alex.exceptions.PetIsDeadException;
import com.alex.pets.Bunny;
import com.alex.plants.Clover;
import org.junit.Assert;
import org.junit.Test;
public class Bunnytest {
@Test
public void testBunnyHaveCorrectName() {
Bunny bunny = new Bunny("Bugz", "Shinshilla... |
package kui.eureka_recommend.entity;
import java.util.Objects;
public class Interest {
private int id;
private int n_no;
private floa... |
import java.io.*;
import java.util.*;
public class Main {
static BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer st;
static PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
public static void main(String... |
/*
* @lc app=leetcode.cn id=41 lang=java
*
* [41] 缺失的第一个正数
*/
// @lc code=start
class Solution {
public int firstMissingPositive(int[] nums) {
// <=0的数 n+1;
int N = nums.length;
for (int i = 0; i < N; i++){
if(nums[i] <= 0){
nums[i] = N + 1;
}
... |
package com.example2.util;
import java.util.List;
import com.example2.models.User;
public interface Accessor {
public abstract List<User> getAllUsers();
public abstract User getUser(String userName);
public abstract boolean saveUser(User user);
} |
package OOP.Constructors;
public class Main {
public static void main(String[] args) {
// Box myBox = new Box();
// System.out.println(myBox.getSquare()); //250
// Peredaem parametri pri initializatsii
Box myBox = new Box(10,20,30);
System.out.println(myBox.getSquare());
... |
package systemplus.com.br.cadastrodepessoas;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
i... |
package com.soldevelo.vmi.scheduler.service;
import com.soldevelo.vmi.config.acs.model.HostParams;
import com.soldevelo.vmi.logging.entities.Node;
public interface NodeSelector {
Node selectUdpNode(HostParams hostParams);
Node selectHttpDownloadNode(HostParams hostParams);
Node selectHttpUploadNode(Hos... |
package items;
import board.blockingobject.Player;
import board.square.Square;
import board.square.effect.Effect;
import util.parameters.ItemUseParameter;
public abstract class Item implements Effect
{
/**
* Uses an item
* @param sq
* The square to use this item on
* @param param
* ... |
/**
* General utility classes for use in unit and integration tests.
*/
@NonNullApi
@NonNullFields
package org.springframework.test.util;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
package com.example.contentobserverexample;
import android.content.ContentResolver;
import android.content.Context;
import android.database.ContentObserver;
import android.os.Handler;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.widget.TextView;
pub... |
package org.ordogene.algorithme.models;
import java.util.Objects;
import org.ordogene.file.models.JSONEntity;
public class Entity {
private final String name;
private int quantity;
private int maxQuantity;
public Entity(String name, int quantity) {
this(name, quantity, quantity);
}
private Entity(Strin... |
package ca.brocku.cosc3p97.bigbuzzerquiz.messages.host;
import android.util.Log;
import ca.brocku.cosc3p97.bigbuzzerquiz.messages.common.Request;
import ca.brocku.cosc3p97.bigbuzzerquiz.messages.common.Sender;
import ca.brocku.cosc3p97.bigbuzzerquiz.models.Host;
/**
* Responsible for handling the incoming ready re... |
package pl.kate.pogodynka.model;
import com.fasterxml.jackson.annotation.*;
import lombok.Data;
import javax.annotation.Generated;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"main",
"description",
"icon"
})
@G... |
package com.logzc.webzic.collection;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
/**
* Created by lishuang on 2016/8/3.
*/
public class ListTest {
@Test
public void testNull(){
List<String> stringList=new ArrayList<>();
stringList.add("lishuang");
... |
/*
* 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 model;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable... |
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.RequestDispatcher;
import javax.servlet.http.*;
public class Login extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse res) // object of HttpServletResponse interface is response whic... |
package com.example.controlecigarro;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class Inicial extends AppCompatActivity {
Button charuto,cigarro... |
package com.jushu.video.api;
/**
* @author 大奉
* @date 2020/1/10 11:44
* @blame 大奉
*/
public class Pages {
public static final String KEY_PAGE = "page.pageNo";
public static final String KEY_PAGESIZE = "page.pageSize";
public static int MAX_RECORDS = 1000000; // 100w
public static int DEFAULT_PAGES... |
package PresentationLayer.ActionListener;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class NavButtonListener implements ActionListener {
private JPanel jPanel;
private CardLayout cardLayout;
private String page;
public NavB... |
package com.lwc.auth.api;
import com.lwc.auth.bo.AuthBo;
import com.lwc.auth.fallback.AuthApiFallback;
import com.lwc.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.security.jwt.Jwt;
import org.springframework.web.bind.annota... |
package com.uapp.useekr.fragments.create_transaction_pages;
import android.content.Intent;
import android.support.design.widget.TextInputEditText;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import com.uapp.useekr.R;
import com.uapp.useekr.fragments.BaseFragment;
import co... |
package com.example.calculator;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivityOther extends AppCompatActivity {
TextView textView;
String firstArgument = "";
String secondArgument = "";
b... |
package com.yash.lambda;
@FunctionalInterface
public interface ComputeInterface {
public int compute(int no1,int no2);
}
|
package cn.okay.officialwebsitetest.otherlevelpagetest;
import cn.okay.page.officialwebsite.OffciaHomePage;
import cn.okay.page.officialwebsite.fourthpage.FourthPage;
import cn.okay.page.officialwebsite.secondpage.ParentPage;
import cn.okay.page.officialwebsite.thirdpage.ThirdPage;
import cn.okay.testbase.OffcialAbstr... |
package controllers;
import com.google.inject.Inject;
import model.User;
import play.mvc.Controller;
import play.mvc.Result;
import repositories.UserRepository;
import services.UserService;
/**
* Created by lamdevops on 6/24/17.
*/
public class UserController extends Controller{
private final UserRepository u... |
package se.kth.iv1350.amazingpos.controller;
import se.kth.iv1350.amazingpos.integration.*;
import se.kth.iv1350.amazingpos.model.*;
/**
* This is the application’s only controller class. All
* calls to the model pass through here.
*/
public class Controller {
private AccountingSystem accountingSystem;
priv... |
package com.ibisek.outlanded;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnCl... |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* _12_IntegerToRoma
*/
public class _12_IntegerToRoman {
private static Map<Integer, String> map;
private static List<Integer> sList = new ArrayList<>();
static {
sList.add(1000);
sLis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.