text stringlengths 10 2.72M |
|---|
package httpClient;
import com.atlassian.tutorial.constant.Urls;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.HttpClientBuilder;
import org.junit.Test;
public cla... |
package com.maspain.snake.entity;
import com.maspain.snake.graphics.Sprite;
import com.maspain.snake.level.PixelCoordinate;
public class SnakeFood extends SnakeSegment {
public SnakeFood(PixelCoordinate position) {
super(position, Sprite.snakeFoodSprite);
}
}
|
package com.duanxr.yith.easy;
import java.util.ArrayList;
import java.util.List;
/**
* @author 段然 2021/5/11
*/
public class ArmstrongNumber {
/**
* Given an integer n, return true if and only if it is an Armstrong number.
*
* The k-digit number n is an Armstrong number if and only if the kth power of ea... |
package org.simpleflatmapper.csv.parser;
public class UnescapeCellPreProcessor extends CellPreProcessor {
private final TextFormat textFormat;
public UnescapeCellPreProcessor(TextFormat textFormat) {
this.textFormat = textFormat;
}
public final void newCell(char[] chars, int start, int end,... |
package com.ak.profile_management.concepts;
public class Location {
String name;
public Location(String name) {
super();
this.name = name;
}
public Location() {
super();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
package com.tencent.mm.modelvoiceaddr;
import com.tencent.mm.e.b.c.a;
import com.tencent.mm.sdk.platformtools.x;
class f$1 implements a {
short[] eqH;
final /* synthetic */ f eqI;
f$1(f fVar) {
this.eqI = fVar;
}
public final void s(byte[] bArr, int i) {
int i2 = 0;
x.d("... |
package training.preview_data;
import routines.DataOperation;
import routines.TalendDataGenerator;
import routines.DataQuality;
import routines.Relational;
import routines.DataQualityDependencies;
import routines.Mathematical;
import routines.SQLike;
import routines.Numeric;
import routines.TalendStringUtil;
import ro... |
package response.helpers.classes;
import java.util.List;
public class Error {
private List<String> errors;
public Error() {
super();
}
public Error(List<String> errors) {
this();
this.errors = errors;
}
public List<String> getErrors() {
return errors;
}
... |
package com.fepoc.nextgen.ds;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class ptenp0m0 {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
if (!args[0].equals(null)) {
if (args[0].substring(0, 1).equals(... |
package com.mx.profuturo.bolsa.model.service.candidates.dto;
import java.util.ArrayList;
import com.mx.profuturo.bolsa.model.vo.common.BasicCatalogVO;
public class GetVacantResponseBean {
private boolean success;
private ArrayList<BasicCatalogVO> data = new ArrayList<BasicCatalogVO>();
public boolean isSucces... |
package concurrent_test;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* Description:
*
* @author Baltan
* @date 2018/9/30 10:06
*/
public class ReentrantLockWithFairnessPolicyTest {
// private static final Lock LOCK = new ReentrantLock();
private static... |
package com.example.rnztx.donors.feeds.intro;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.example.rnztx.donors.R;
import com.... |
package ba.bitcamp.LabS09D03.predavanje;
public class Engine {
Truck next;
public void attach(Truck other) {
this.next = other;
}
public Truck getNext() {
return next;
}
}
|
package com.sample.bitnotifier.utils;
public class Constants {
}
|
package scriptinterface.execution.parseerrors;
import java.util.LinkedList;
/**
* Occurs, when the a string to parse is not a word of the language.
*
* @author Andreas Fender
*/
public class SyntaxNotAccepted extends SyntaxError {
LinkedList<?> expected;
public SyntaxNotAccepted(LinkedList<... |
package com.tencent.mm.ui.contact;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.platformtools.ai;
class SelectContactUI$11 implements OnClickListener {
final /* synthetic */ SelectContactUI ulL;
SelectContactUI$11(SelectContactUI sel... |
public class CalculationException extends Exception{
public CalculationException(String message) {
super(message);
}
public CalculationException(Throwable throwable) {
super(throwable);
}
public CalculationException(String message, Throwable throwable) {
super(message, throwa... |
package com.yekong.rxmobile.rx;
import com.google.gson.Gson;
/**
* Created by baoxiehao on 16/1/18.
*/
public class RxAction {
private static final Gson sGson = new Gson();
public String type;
public Object data;
private RxAction(String type, Object data) {
this.type = type;
this.d... |
package DesktopApp;
import static java.net.URLEncoder.encode;
import javax.json.Json;
import javax.json.JsonBuilderFactory;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
/**
* Η κλάση addUser δημιουργεί το GUI της εισαγωγής νέου χρήστη και καλεί τον client
* για την μετέπειτα κλήση του webSer... |
public class CompanyDemo
{
public static void main(String[] args)
{
Employee bob = new Employee("Bob", "123-A", "12/23/2000");
Employee bob2 = new Employee("BOB2", "123-B", "12/9/2008");
ProductionWorker bill = new ProductionWorker("Bill", "234-B", "2/28/1994", 1, 12);
System.out.println(bill.toString... |
package org.art.soft.tasks.photocollection;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
/**
* Created by artur.skrzydlo on 2017-11-16.
*/
public class Photo {
private String name;
private String placeTaken;
private LocalDateTime dateOfCreation;
public Photo(String na... |
public class MRecursivo{
//Atributos de clase
private char[][] arreglo;
private int areaFinal = 1; //Inicada con 1 por el mayor numero posible si es que no existiese triangulo formado
//Construimos la matriz para usar en esta clase
public MRecursivo(char[][] matriz)
{
arreglo = matriz;
}
//Metodo... |
package com.cs4125.bookingapp.ui.main;
import android.content.Context;
import android.widget.Toast;
public class Utilities {
public static void showToast (Context context, String message) {
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
}
|
package generic;
import java.util.ArrayList;
import java.util.List;
public class generic {
public class Fruit {
public void printout(){
System.out.println("this is fruit");
}
}
public class Apple extends Fruit{
@Override
public void printout(){
System.out.println("this is apple");
}
}
public clas... |
package com.company.c4q.unit08practice;
public class BigDiff {
public static void main(String[] args) {
System.out.println(difference(new int[]{8}));
}
public static int difference(int[] ints) {
if(ints.length == 1) return 0;
int smallest = ints[0];
int largest = ints[0]... |
package comm.example;
import java.io.*;
import java.sql.SQLException;
import comm.example.model.Employee;
import comm.example.service.EmployeeService;
import comm.example.service.EmployeeServiceImpl;
public class FilestreamWithDB {
public static void main(String[] args) throws SQLException, IOException {
try {
... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... |
package com.gcipriano.katas.salestaxes.receipt;
import java.util.ArrayList;
import java.util.List;
public class BulletPointReceiptBuilder implements Receipt
{
private String taxTotal;
private String total;
private List<PresentableProduct> products = new ArrayList<>();
@Override public void addProduct(Present... |
int main() {
printInt(0);
return 0;
}
|
package micronaut.starter.kit;
public class ProcessMetadataValuesNode {
}
|
package com.github.ganity.oauth2.shiro;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ShiroOAuth2Configuration {
}
|
package ewaMemory.memoryTable.beans;
import FacebookConnector.Score;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
public class MemoryTable {
priv... |
package zm.gov.moh.app;
import com.crashlytics.android.Crashlytics;
import io.fabric.sdk.android.Fabric;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import zm.gov.moh.app.view.HomeActivity;
import zm.gov.moh.cervicalcancer.CervicalCancerModule;
import zm.gov.moh.c... |
package com.jidouauto.mvvm.http.exception;
/**
* @author leosun
*/
public class CodeException extends BaseException {
public CodeException(int code) {
super(code);
}
public CodeException(int code, String message) {
super(code, message);
}
public CodeException(int code, String me... |
package fr.cp.reseau.actor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import fr.cp.reseau.api.GetReseau;
public class ReseauCalcul {
private final static ActorSystem SYSTEM = ActorSystem
.create("reseauSystem");
... |
package thsst.calvis.editor.controller;
import javafx.scene.control.Tab;
import javafx.scene.input.KeyCode;
import thsst.calvis.configuration.model.engine.*;
import thsst.calvis.configuration.model.exceptions.*;
import thsst.calvis.editor.view.AssemblyComponent;
import thsst.calvis.editor.view.ConsoleTextArea;
import... |
package com.commercetools.pspadapter.payone.transaction.common;
import com.commercetools.pspadapter.payone.domain.ctp.CustomTypeBuilder;
import com.commercetools.pspadapter.payone.domain.ctp.PaymentWithCartLike;
import com.commercetools.pspadapter.payone.domain.ctp.TypeCacheLoader;
import com.commercetools.pspadapter.... |
package x.format;
import x.ctrl.SourceCodeFile;
public interface CodeSnippet {
String toSourceString(SourceCodeFile file);
} |
package com.lins.myzoom.utils;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
/**
* @ClassName MD5Utils
* @Description TODO
* @Author lin
* @Date 2021/2/2 15:18
* @Version 1.0
**/
public class MD5Utils {
public static String code(String str... |
package org.jfree.data.test;
import static org.junit.Assert.*;
import org.jfree.data.DataUtilities;
import org.jfree.data.KeyedValues;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.junit.*;
/**
* A Test Suite for the function getCummulativePercentage from DataUtilities class
*
* @author Group... |
package com.janfranco.datifysongbasedmatchapplication;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
... |
package data;
//A task class is what is needed to be done
public class Task {
private String mTodo;
public Task(String todo) {
mTodo = todo;
}
}
|
package cn.canlnac.onlinecourse.presentation.presenter;
import android.support.annotation.NonNull;
import javax.inject.Inject;
import cn.canlnac.onlinecourse.data.exception.ResponseStatusException;
import cn.canlnac.onlinecourse.domain.CommentList;
import cn.canlnac.onlinecourse.domain.interactor.DefaultSubscriber;
... |
package cd.com.a.model;
import java.io.Serializable;
public class SelectedCardInfoDto implements Serializable {
private String card_bin;
private int install_month;
private String card_corp_name;
private String interest_free_install;
public SelectedCardInfoDto() {
}
public SelectedCardInfoDto(String card_bi... |
package com.allianz.ExpenseTracker.Reports;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import com.allianz.ExpenseTracker.Objects.ObjectsExpenseReport;
import com.allianz.ExpenseTracker.Panels.PnlB... |
package lt.kvk.i11.radiukiene.utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import lt.kvk.i11.radiukiene.contr... |
package zm.gov.moh.core.repository.database.entity.derived;
import androidx.room.*;
import com.squareup.moshi.Json;
import org.threeten.bp.LocalDateTime;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
@Entity
public class Client {
@ColumnInfo(name = "patient_id")
@Json(name = "patient_id")
... |
package com.qunchuang.carmall.service.impl;
import com.qunchuang.carmall.domain.Admin;
import com.qunchuang.carmall.domain.privilege.Privilege;
import com.qunchuang.carmall.domain.privilege.PrivilegeItem;
import com.qunchuang.carmall.domain.privilege.Role;
import com.qunchuang.carmall.domain.privilege.RoleItem;
import... |
/**
* 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.techelevator;
import org.junit.Test;
import org.junit.Assert;
public class KataStringCalculatorTest {
@Test
public void empty_string_returns_zero() {
// arrange
final String emptyString = "";
final int expectedNumber = 0;
// act
int output = KataStringCalculator.add(emptyString);
// assert
... |
/**
*
*/
package died.guia06;
/**
* @author yamil
*
*/
public class RegistroAuditoriaException extends Exception {
public RegistroAuditoriaException(String mensaje) {
super (mensaje);
}
}
|
package jneiva.hexbattle.componente;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Dialog;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import jneiva.hexbattle.Constantes;
import jneiva.hexbattle.ControladorEstrutura;
import jneiva.hexbattle.Ti... |
package com.meroapp.meroblog.dao;
import java.util.List;
import com.meroapp.meroblog.model.Feedback;
public interface FeedbackDao {
public void insertFeedback(Feedback fb) ;
public List<Feedback> getAllFeedback();
}
|
package com.smxknfie.jms.demo01;
import javax.jms.*;
public class Chat implements MessageListener {
private TopicSession session;
private TopicPublisher publisher;
private TopicConnection connection;
private String userName;
public Chat(String topicFactory, String topicName, String userName) {
}
@Override
... |
package com.gmail.merikbest2015.ecommerce.controller;
import com.gmail.merikbest2015.ecommerce.domain.Perfume;
import com.gmail.merikbest2015.ecommerce.domain.User;
import com.gmail.merikbest2015.ecommerce.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.se... |
package de.rwth.i9.palm.persistence;
import java.util.List;
import java.util.Map;
import de.rwth.i9.palm.model.EventGroup;
public interface EventGroupDAO extends GenericDAO<EventGroup>, InstantiableDAO
{
/**
* Trigger batch indexing using Hibernate search powered by Lucene
*
* @throws InterruptedException
... |
package com.tencent.mm.plugin.honey_pay.ui;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.protocal.c.amn;
class HoneyPayMainUI$5 implements OnClickListener {
final /* synthetic */ HoneyPayMainUI klC;
final /* synthetic */ amn klF;
HoneyPayMainUI$5(HoneyPayMainU... |
package my.application.controller;
import my.application.entity.DailyBalance;
import my.application.entity.Meal;
import my.application.entity.User;
import my.application.helper.ContextHelper;
import my.application.helper.DailyBalanceHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... |
/**
*/
package contain.impl;
import contain.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc -->
* An implementation of t... |
package servlet;
import java.sql.Date;
public class ValoriGlicemici {
public ValoriGlicemici(int mattina, int pomeriggio, int sera, String email, Date data) {
super();
this.mattina = mattina;
this.pomeriggio = pomeriggio;
this.sera = sera;
this.email = email;
this.data = data;
}
pu... |
package communication.packets.request.admin;
import communication.enums.PacketType;
import communication.packets.AuthenticatedRequestPacket;
import communication.packets.Packet;
import communication.packets.response.DownloadFileResponsePacket;
import communication.wrapper.Connection;
import main.Conference;
import use... |
package com.example.custom;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.AdapterView.OnItemSelectedListener;
... |
package com.tencent.mm.ipcinvoker;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningAppProcessInfo;
import android.content.Context;
import android.os.Process;
import android.util.Log;
import com.tencent.mm.ipcinvoker.h.b;
import java.io.FileInputStream;
import java.util.List;
import junit.... |
package leetcode;
import java.text.DecimalFormat;
import java.util.Random;
/**
* @Author: Mr.M
* @Date: 2019-02-26 20:34
* @Description: https://leetcode-cn.com/problems/sqrtx/solution/
**/
public class T69x的平方根 {
// public static int mySqrt(int x) {
// if (x == 0 || x == 1) {
// return x;
// }
// int l = 1,... |
package com.ev.srv.demopai.service;
import com.evo.api.springboot.exception.ApiException;
import com.ev.srv.demopai.model.GeneralProperties;
import java.util.Map;
import com.ev.srv.demopai.model.RequestWrapperGeneralProperties;
import com.ev.srv.demopai.model.RequestWrapperInbox;
import com.ev.srv.demopai.model.Reques... |
package com.cnk.travelogix.supplier.mappings.services;
import com.cnk.travelogix.supplier.mappings.country.model.SupplierCountryMappingModel;
/**
* The Interface SupplierCountryMappingService.
*/
public interface SupplierCountryMappingService extends SupplierMappingService<SupplierCountryMappingModel>
{
} |
package foundation.privacybydesign.ideal.common;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
import java.io.InputStream;
public class IDealResponse extends IDealMessag... |
package de.raidcraft.skillsandeffects.pvp.effects.debuff;
import de.raidcraft.skills.api.character.CharacterTemplate;
import de.raidcraft.skills.api.combat.EffectType;
import de.raidcraft.skills.api.effect.EffectInformation;
import de.raidcraft.skills.api.effect.types.ExpirableEffect;
import de.raidcraft.skills.api.ex... |
/*
*/
package com.cleverfishsoftware.loadgenerator.sender.jms.spring;
import com.cleverfishsoftware.loadgenerator.MessageSender;
/**
*
* @author peter
*/
public class SpringJMSMessender implements MessageSender {
@Override
public void send(String payload) throws Exception {
throw new UnsupportedO... |
package org.ah.minecraft.armour.mobs;
import java.util.ArrayList;
import java.util.List;
import org.ah.minecraft.armour.utils.ArmourUtil;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
import org.bukkit... |
/**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2007, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free softw... |
package knx;
import esir.dom11.nsoc.model.DataType;
import org.kevoree.annotation.*;
import org.kevoree.framework.AbstractComponentType;
import tuwien.auto.calimero.link.KNXNetworkLinkIP;
/**
* Created by IntelliJ IDEA.
* User: michel
* Date: 09/01/12
* Time: 12:07
* To change this template use File | Settings |... |
package net.lin.www;
import com.google.gson.Gson;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.File;
/**
* Created by Lin on 1/13/16.
*/
public class YelpCrawler
{
static String startUrl = "";
static String category = "";
static Strin... |
package com.movietoy.api.domain.movieInfo.Object;
import lombok.Data;
@Data
public class Genres {
/*장르명*/
private String genreNm;
}
|
package com.example.jkl.service;
import com.example.jkl.pojo.Car;
import java.util.List;
public interface CarService {
Integer addCar(Car car);
Integer deleteCar(Integer id);
List<Car> findAllCar();
Integer deleteCarList(List<Integer> ids);
}
|
package com.project.linkedindatabase.service.model.skill;
import com.project.linkedindatabase.domain.skill.Endorsement;
import com.project.linkedindatabase.jsonToPojo.EndorsementPoJo;
import com.project.linkedindatabase.service.BaseService;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Li... |
package br.com.caelum.financas.teste;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import br.com.caelum.financas.modelo.Conta;
import br.com.caelum.financas.modelo.Movimentacao;
import br.com.caelum.financas.util.JPAUtil;
public class TesteTodasAsMovimentacoesD... |
package com.tencent.mm.plugin.luckymoney.ui;
import android.view.View;
import android.view.View.OnClickListener;
class LuckyMoneyDetailUI$15 implements OnClickListener {
final /* synthetic */ LuckyMoneyDetailUI kVo;
LuckyMoneyDetailUI$15(LuckyMoneyDetailUI luckyMoneyDetailUI) {
this.kVo = luckyMoneyD... |
package com.epam.bar.entity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* The representation of Cocktail
*
* @author Kirill Karalionak
* @version 1.0.0
*/
@EqualsAndHashCode(callSuper = true)
@Data
@Builder(setterPrefix = "with")
public class Cocktail extends Entity {
pri... |
package dev.felicity.felicity;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.content.Intent;
import android.widget.CompoundButton;
import android.widget.EditText;
imp... |
package com.fnsvalue.skillshare.daoimpl;
import java.util.HashMap;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.fnsvalue.skillshare.dao.LoginDAO;
import com.fnsvalue.skills... |
/* 1: */ package com.kaldin.user.adminprofile.action;
/* 2: */
/* 3: */ import com.kaldin.user.adminprofile.DAO.EmailSettingDAO;
/* 4: */ import com.kaldin.user.adminprofile.form.EmailSettingForm;
/* 5: */ import javax.servlet.http.HttpServletRequest;
/* 6: */ import javax.servlet.http.HttpServl... |
package org.sid.dao;
import org.sid.entities.Employe;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
public interface EmployeRepository extends JpaRepository<Employe, Long> {
public Page<Employe> findByN... |
public interface AbstractGasStationView {
void registerListener(GasStationUIEventListener listener);
public void addCar();
public void fillMainFuelPool();
public void showStats();
public void endWorkDay();
}
|
package com.bvan.javastart.lessons7_8.storing;
/**
* @author bvanchuhov
*/
public class NullExample {
public static void main(String[] args) {
String s = "";
if (s != null) {
System.out.println(s.length());
}
}
public static void printLength(String s) {
if (s... |
package gui;
import java.awt.*;
import javax.swing.*;
public class SecondGui extends JFrame {
private JLabel label;
private JButton button;
private JTextField textfield;
public SecondGui() {
setLayout(new FlowLayout());
label = new JLabel("Hi");
add(label);
textfield = new JTextField(15);
a... |
package com.github.manage.result;
import com.github.manage.result.dtos.rsp.RspPageData;
import lombok.Data;
import java.util.List;
/**
* @ProjectName: spring-cloud-examples
* @Package: com.github.manage.result
* @Description: 列表返回结果集
* @Author: Vayne.Luo
* @date 2019/01/23
*/
@Data
public class PageResult<T> e... |
package com.walkerwang.algorithm.swordoffer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* 输入一个字符串,按字典序打印出该字符串中字符的所有排列。例如输入字符串abc,
* 则打印出由字符a,b,c所能排列出来的所有字符串abc,acb,bac,bca,cab和cba。 结果请按字母顺序输出。
输入描述:
输入一个字符串,长度不超过9(可能有字符重复),字符只包括大小写字母。
*递归体:从每个子串的第二个字符开始依次与第一个字符交换,然后继续处理子... |
package com.filiereticsa.arc.augmentepf.localization;
import android.util.Pair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
/**
* Created by ARC© Team for AugmentEPF project on 25/05/2017.
*/
public class FloorAccess {
public static final... |
package servlets;
import javax.servlet.AsyncContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.concur... |
package zen.teste;
import java.util.Scanner;
public class Principal {
public static void main(String[] args) {
// Classe TESTE
Controller ctrl = new Controller();
Scanner sc = new Scanner(System.in);
boolean continuar = true;
while(continuar) {
ctrl.menu();
System.out.print("DIGITE A ... |
/*
* Copyright (C) 2010 ZXing 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 applicable law or agreed t... |
/*
* created 08.10.2005
*
* Copyright 2009, ByteRefinery
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* $Id... |
package problemas;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Map.Entry;
import java.util.Scanner;
import javax.management.openmbean.OpenDataException;
public class SafeSecret {
ArrayList<Tupla<Integer, Charac... |
package com.beiyelin.account.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import static com.beiyelin.commonsql.constant.Repository.*;
/**
* @Description: 账户
* @Author: newmann
* @Date: Created ... |
package com.edu.miusched.controller;
import com.edu.miusched.domain.Entry;
import com.edu.miusched.domain.Student;
import com.edu.miusched.domain.Student;
import com.edu.miusched.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
im... |
package com.tencent.mm.q.a;
import android.content.Context;
import com.tencent.mm.plugin.fts.a.d.e;
import com.tencent.mm.plugin.fts.a.d.e.b;
public final class a extends com.tencent.mm.plugin.fts.a.d.a {
public final e a(Context context, b bVar, int i) {
return new b(context, bVar, i);
}
public ... |
package com.ibiscus.myster.model.survey.data;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Entity(name = "DiscreteResponse")
@DiscriminatorValue("DISCRETE")
public class DiscreteResponse extends Response {
@Column(name = "choice_id")
private ... |
package com.espendwise.manta.web.forms;
import java.io.Serializable;
public class DeliveryScheduleForm implements Serializable {
private String scheduleId;
private String scheduleName;
private String nextDelivery;
private String intervalHour;
private String cutoffTime;
public String getSche... |
package com.example.appdev;
import android.content.Intent;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.