text stringlengths 10 2.72M |
|---|
package Model.DAO;
import Model.Game;
import Model.GameSession;
import Model.PlaySession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.stereotype.Component;
import ... |
package com.jbico.myspringsecurity.web.controller;
public abstract class BaseWebController {
}
|
package com.needii.dashboard.model;
import javax.persistence.*;
/**
* The persistent class for the admins database table.
*
*/
@Entity
@Table(name="shippers_price_day")
@NamedQuery(name="ShippersPriceDay.findAll", query="SELECT s FROM ShippersPriceDay s")
public class ShippersPriceDay extends BaseModel {
priva... |
//논리연산
package com.eomcs.basic.ex05test;
public class Exam0310 {
public static void main(String[] args) {
//And연산 둘다 트루여야 트루
System.out.println(true && true);
System.out.println(true && false);
System.out.println(false && true);
System.out.println(false && false);
System.out.println("--... |
package com.younchen.younsampleproject;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... |
package org.valdi.entities.management.hooks;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.valdi.entities.iDisguise;
public class ScoreboardHooks {
public static boolean nametagEdit = false;
public static boolean coloredTags = false;
public static void setup() {
nametagE... |
package cttd.cryptography.demo;
import java.util.HashMap;
import java.util.Map;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTCreationException;
import com.auth0.jwt.exceptions.JWTVerificationException;
import com.au... |
package at.sync.app;
import at.sync.controller.OSMSyncController;
import at.sync.util.SyncLogger;
/**
* PostgisSync application
*/
public class boot {
public static void main(String[] args) {
// try {
// OSMSyncController.getInstance().fetchDataByRegion("Götzis");
// OSMSyncControl... |
package com.dbs.portal.ui.component.application;
import com.dbs.portal.ui.component.menu.MenuItem;
public interface IMenuApplication extends IApplication {
public boolean addFavouriteMenuItem(MenuItem item);
public boolean removeFavouritemMenuItem(MenuItem item);
}
|
package com.sunny.netty.chat.client.handler;
import com.sunny.netty.chat.protocol.response.MessageResponsePacket;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
/**
* <Description> <br>
*
* @author Sunny<br>
* @version 1.0<br>
* @taskId: <br>
* ... |
package org.sql2o.converters;
import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.map.ObjectMapper;
import org.postgresql.util.PGobject;
public class JsonNodeConverter implements Converter<JsonNode>
{
public JsonNode co... |
package com.xyt.service;
import java.io.Serializable;
import com.xyt.model.Usertbl;
import com.xyt.pageModel.User;
public interface UserService {
public void insertUser(User user);
public Serializable save(Usertbl t);
public boolean login(String userid);
}
|
package com.legaoyi.message.ext.service.impl;
import org.springframework.stereotype.Service;
import com.legaoyi.platform.ext.service.impl.DefaultMongoExtendServiceImpl;
/**
* @author gaoshengbo
*/
@Service("accStateLogExtendService")
public class AccStateLogExtendServiceImpl extends DefaultMongoExtendServiceImpl {... |
package org.hackerrank.test;
import java.util.ArrayList;
import java.util.List;
import static java.lang.System.out;
/**
* @author Created by Vitalij Radchenko on 01.05.18.
*/
public class OddNumbersTask {
/**
* Produce odd numbers from a range
* @param l left value of range
* @param r right val... |
/**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: Juan José(University of Almeria)
* License Type:... |
package com.example.km.genericapp.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import androi... |
package application;
import java.io.File;
public interface Factory {
public File openFile();
public void importFile();
}
|
package com.example.suneel.musicapp.Activities;
import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.content.ActivityNotFoundException;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Conte... |
package com.zxt.compplatform.codegenerate.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.dom4j.Document;
public class Codegenerate... |
package com.pdd.pop.sdk.http.api.request;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.response.PddAdCreativeCreateResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import com.pdd.pop.sdk.common.util.JsonUtil;
import... |
package com.bottomup.demo;
import java.math.BigInteger;
import java.net.MalformedURLException;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.Datat... |
package com.eomcs;
class Example {
public static void main(String[] args) {
System.out.frintln("이그젬플 0");
}
}
class Example2 {
public static void main2(String[] args) {
System.out.frintln("이그젬플 2");
}
}
class Example3 {
public static void main3(String[] args) {
System.ou... |
public class Ch12_08 {
}
|
package util;
import javax.servlet.http.HttpSession;
/**
* @author Andriy Yednarovych
*/
public class HttpSessionUtil {
public boolean requestConnection(HttpSession session) {
boolean ok = false;
String user = (String) session.getAttribute("user");
if (user != null) {
... |
package com.springboot.system.notificaition;
public interface MessageService {
Message createMessage(Message ms);
}
|
package me.ewriter.chapter4.pizzaaf;
/** 原料类供工厂使用 */
public class MozzarellaCheese implements Cheese {
public String toString() {
return "Shredded Mozzarella";
}
}
|
package com.goldenasia.lottery.data;
import com.goldenasia.lottery.base.net.RequestConfig;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* 追号撤单
* Created by Alashi on 2016/2/8.
*/
@RequestConfig(api = "?c=game&a=cancelTrace")
public class CancelTraceCommand {
@SerializedName("w... |
package prevoznaSredstva;
public class Avion extends Vozilo {
// avion je vozilo koje sadrzi putnike
// i koje ima jedinstveni serijski broj String, marku STRING,
// kao i klasu putnika koju
// koje prevozi STRING
private String serijskiBroj;
private String markaAviona;
private String klasaPutnika;
public A... |
package com.example.main.repository;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSour... |
package br.com.fiap.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name="T_Pat... |
package com.corejava.basic;
import java.io.File;
public class ListOutFilesWithSpecificExtensionOfADirectory {
public static void main(String[] args) {
String filePath="/home/rahul/Pictures/upload";
File folder=new File(filePath);
File files[]=folder.listFiles();
for(File file:files) {
if(file.g... |
package entities;
import engine.Values;
public class Fruit extends Entity {
private int points;
public enum FruitType {
NORMAL_BANANA,
SPECIAL_BANANA,
PINEAPPLE,
STRAWBERRY,
GRAPES,
WATERMELON
}
private FruitType fruitType;
public Fruit(float x, float y, EntityType entityType, ScrollableType scrolla... |
/*
* © Copyright 2016 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
* verbatim in the file “COPYING“. In applying this licence, CERN does not waive the privileges and immunities granted
* to it by virtue of its status as an Intergovernmental Organization or submit itsel... |
package com.example.gamedb.db.repository;
import android.app.Application;
import android.os.AsyncTask;
import com.example.gamedb.db.GameDatabase;
import com.example.gamedb.db.dao.ScreenshotDao;
import com.example.gamedb.db.entity.Screenshot;
public class ScreenshotRepository {
private ScreenshotDao mSc... |
package walke.base.tool;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.YuvImage;
import android.hardware.Camera;
import android.util.Log;
import java.io.ByteArrayOutputSt... |
package com.esum.router.logger.document;
import java.io.File;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.framework.core.event.log.DocumentLog;
import com.esum.framework.core.event.log.LoggingEvent;
imp... |
package com.itheima.day_01.animals;
public class Cat extends Animals {
public Cat() {
}
public Cat(String breed, String color) {
super(breed, color);
}
@Override
void eat() {
System.out.println("eating fish");
}
@Override
void bark() {
System.out.println("meow");
}
}
|
package com.example.administrator.panda_channel_app.MVP_Framework.base;
/**
* Created by Administrator on 2017/7/12 0012.
*/
public interface BaseView<T> {
void setPresenter(T t);
}
|
package com.justcode.hxl.viewutil.recycleview_util.layoutmanager.chipslayoutmanager.gravity;
import com.justcode.hxl.viewutil.recycleview_util.layoutmanager.chipslayoutmanager.layouter.AbstractLayouter;
import com.justcode.hxl.viewutil.recycleview_util.layoutmanager.chipslayoutmanager.layouter.Item;
import java.util.... |
package de.cuuky.varo.gui.admin.troll;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.inventory.ItemStack;
import de.cuuky.varo.gui.SuperInventory;
import de.cuuky.varo.gui.utils.PageAction;
impo... |
package com.zyx.test;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.zhou.redis.User;
import com.zyx.service.ListTaskQueueService;
import com.zyx.service.UserService;
public class redisTemplateT... |
package com.haut.searchofthetestinfo.controller;
import com.haut.searchofthetestinfo.po.InfoTest;
import com.haut.searchofthetestinfo.tools.ParseExcel;
import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springfram... |
class A1Q15
{
public static void main(String [] args)
{
int a=2,b=7,temp;
System.out.println("Before swapping" );
System.out.println("a = "+a+" b= "+b);
temp=a;
a=b;
b=temp;
System.out.println("After swapping");
System.out.println("a = "+a+" b= "+b);
}
} |
package se.rtz.csvtool.command.server;
import com.google.common.base.Objects;
import com.google.common.base.Strings;
import com.google.gson.JsonObject;
import se.rtz.tool.util.csv.RecordConverter;
import se.rtz.tool.util.csv.impl.CsvRecord;
public enum SupportedMimeTypes
{
TEXT("text/text", "", (header, record) -... |
/**
* Copyright 2018 RDP http://product.mftcc.cn/rdp/
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required b... |
package com.cloudinte.common.utils;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.... |
package com.example.demo.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.InvoiceRecord;
import com.example.demo.entity.InvoiceRecordParams;
import com.example.demo.entity.InvoiceRecordVO;... |
package communicator.messages.search;
import communicator.messages.Message;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by lasitha on 3/5/15.
*/
public class AckSearch extends Message{
/*
length SEROK no_files IP port hops filename1 filename2 ... ...
e.g., ... |
package loecraftpack.common.blocks.render;
import loecraftpack.common.blocks.BlockColoredBed;
import loecraftpack.common.blocks.TileColoredBed;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.tileentity.TileEnti... |
package bank.accounts;
import bank.customers.Customer;
import bank.movements.Transfer;
/**
*
* @author Castro
*/
public class InvestmentAccount extends Account implements Transfer {
/**
* the associated cost to maintain the account
*/
private double associatedCost;
/**
... |
package cn.springboot.controller;
import cn.springboot.mapper.BookMapper;
import cn.springboot.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
impo... |
package com.example.lesson_5_fedin;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class Activity5 ... |
package net.oneqas;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class OneqasMain
{
public static void main(String[] args)
{
SpringApplication.run(OneqasMain.class);
}
}
|
package com.example.aluno.helloup.utils;
import android.util.Log;
import java.io.IOException;
import java.util.Map;
import okhttp3.FormBody;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;
// Classe util... |
package web.id.azammukhtar.subico.Network;
import android.content.Context;
import android.net.ConnectivityManager;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retro... |
package org.rs.core.log;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Date;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.rs.core.annotation.ApiInfo;
import org.rs.core.beans.RsAccessLog;
import org.rs.core.security.... |
package com.gaby.facade.stu;
import com.gaby.stu.model.student.query.Request;
import com.gaby.stu.model.student.query.Response;
public interface StudentFacade {
Response query(Request request);
}
|
package RSA;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.security.*;
public class main {
public static void main(String[] args) throws InvalidKeyException, NoSuchAlgorithmException, NoS... |
public class ex_1_1_15 {
public static void main(String args[])
{
int N = 10000; //size of the a array
int[] a = new int[N];
for (int i = 0; i < N; i++)
a[i] = StdRandom.uniform(N);
//execute the function:
int M = N;
int[] b = new int[M];
b = histogram(a, M);
//Display the results:
for ... |
package com.sh.ori.feedmeplease.Recipes;
/**
* Created by omer on 18/05/2017.
*/
public class Ingredient {
public String name;
public Ingredient(String name){
this.name = name;
}
}
|
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
package com.sinodynamic.hkgta.dao.mms;
import java.io.Serializable;
import java.util.List;
import com.sinodynamic.hkgta.dao.IBaseDao;
import com.sinodynamic.hkgta.entity.mms.SpaRetreat;
public interface SpaRetreatDao extends IBaseDao<SpaRetreat>{
public Serializable addSpaRetreat(SpaRetreat spaRetreat);
public Sp... |
import java.util.*;
import java.io.*;
public class prob03 {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
//Scanner in = new Scanner(System.in);
Scanner in = new Scanner(new File("prob03-1-in.txt"));
int N = in.nextInt();
in.nextLine();
for (int idx = 0;... |
package communicator.messages;
/**
* Created by lasitha on 3/5/15.
*/
public class Error extends Message {
/*
length ERROR
0010 ERROR
length – Length of the entire message including 4 characters used to indicate the length. In xxxx format.
ERROR – Generic error message, to indicate that a given ... |
/* ------------------------------------------------------------------------------
* 软件名称:BB语音
* 公司名称:乐多科技
* 开发作者:Yongchao.Yang
* 开发时间:2016年3月3日/2016
* All Rights Reserved 2012-2015
* -------------------------------------------------------... |
/*
* 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 com.chess.Pieces;
import com.chess.*;
import java.util.ArrayList;
public class Pawn extends Piece{
public int[][] pieceEval={
{0,0,0,0,0,0,0,0},
{50,50,50,50,50,50,50,50},
{10,10,20,30,30,20,10,10},
{5,5,10,25,25,10,5,5},
{0,0,0,20,30,0,0,0},
{5,-5,-10,-5,-5... |
package com.dfire.core.event.listenter;
import com.dfire.common.constants.Constants;
import com.dfire.common.entity.HeraJob;
import com.dfire.common.entity.HeraJobMonitor;
import com.dfire.common.entity.HeraUser;
import com.dfire.common.service.EmailService;
import com.dfire.common.service.HeraJobMonitorService;
impor... |
package com.edasaki.rpg.commands.owner;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.HashMap;
import java.util.Map.Entry;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import com.edasaki.... |
package revolt.backend.controller;
//приймає дто з фронту..
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotatio... |
package com.petpet.c3po.adaptor.rules;
public class EmptyValueProcessingRule implements PreProcessingRule {
@Override
public boolean shouldSkip(String property, String value, String status, String tool, String version) {
if (value.equals("")) {
return true;
}
return false;
}
@Override
pub... |
package com.movieapp.anti.movieapp.Models;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by Anti on 2/18/2018.
*/
public class Credits implements Serializable {
// public ArrayList<Details> credits = new ArrayList<>();
public ArrayList<Cast> cast = new ArrayList<>();
public Arr... |
package com.kirer.voice.util;
import android.content.Context;
import android.util.Log;
import com.baidu.voicerecognition.android.Candidate;
import com.baidu.voicerecognition.android.VoiceRecognitionClient;
import com.baidu.voicerecognition.android.VoiceRecognitionConfig;
import java.util.List;
/**
* ... |
package com.example;
/**
*
* @author ecolban
*
*/
public interface BufferInterface {
/**
* Removes the first element from the buffer
*
* @return the number that was removed
*
* @throws InterruptedException
* if interrupted
*/
public byte remove() throws InterruptedException;
/**
... |
public class Book {
private int bookNumber;
private String bookName;
private String author;
private int ratePerUnit;
static String publisher="Orilley";
public Book() {
super();
// TODO Auto-generated constructor stub
}
public double findDiscount(){
double discount=0.1;
if(author.... |
package com.pbadun.database;
import java.util.ArrayList;
import com.pbadun.fragment.interfaces.IAsync;
import com.pbadun.model.RssItemModel;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.o... |
package org.didierdominguez.bean;
public class CreditCardPayment {
private Integer id;
private CreditCard creditCard;
private String type;
private String date;
private Double amount;
public CreditCardPayment(Integer id, CreditCard creditCard, String type, String date, Double amount) {
... |
package com.example.user.foodapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.LinearLayout;
import java.util.ArrayList;
import java.util.List;
public class MainAct... |
package com.zzwc.cms.common.bean.validator.group;
/**
* 更新数据 Group
*/
public interface UpdateGroup {
}
|
package com.dodoca.create_image.constants;
/**
* @description:
* @author: tianguanghui
* @create: 2019-07-09 17:33
**/
public class ActivityType {
/** 秒杀 */
public static final String SECKILL = "seckill";
/** 砍价 */
public static final String BARGAIN = "bargain";
/** 拼团 */
... |
public abstract class piece implements Runnable {
//Properties
public String strColour;
public int PiNum;
public boolean blnMove;
public int sint;
public boolean canMove = false;
public int intCount;
//Methods
public abstract int[][] checkMove(int intX,int intY,piece[][] object);
publi... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import USJavaAPI.USHttpsPostRequest;
import USJavaAPI.USL23IndependentRefund;
import USJavaAPI.USReceipt;
import USJavaAPI.Addendum1;
import USJavaAPI.Addendum2;
public class TestL23IndependentRefund
{
public st... |
package br.com.wasys.library.widget;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.DrawableRes;
import android.support.annotation.StringRes;
import android.view.Window;
import android.view.WindowManager;
/**
* Created by pascke on 20/09/16.
*/... |
package org.bindgen.processor.generators;
import java.util.Collection;
import java.util.List;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.TypeElement;
import org.bindgen.ContainerBinding;
import org.bindgen.processor.util.BoundClass;
import or... |
package FinalPrac;
import java.lang.invoke.VarHandle;
public class TreeS {
public static void main(String args[]) {
int[] arr = {50, 30, 70, 15, 7, 62, 22, 35, 87, 31};
TreeSort TS = new TreeSort(arr[0]);
System.out.println("정렬 전 : ");
printArray(arr);
TS.Sorting(arr);
... |
package com.gsccs.sme.plat.auth.model;
public class DictGroupT {
private String id;
private String code;
private String title;
private String val;
private String remark;
private String status;
public String getId() {
return id;
}
/**
* This method was generat... |
package Server;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.swing.JDialog;
import javax.swing.JFrame... |
package com.wukongzou.chinarentalbicyclemap.constant;
public class Constant {
public static final String LOG_TAG_APP = "app";
}
|
package com.train.amm.service;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Message;
import com.train.amm.LocalMusicAcitivity;
import com.tra... |
package controllers;
import actors.ClusterSystem;
import actors.GameActor;
import akka.actor.ActorRef;
import com.example.protocols.Commands;
import com.example.protocols.Queries;
import play.data.DynamicForm;
import play.data.Form;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.index;
public ... |
/*
* 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 eu.doppel_helix.kerberos.kerberostest2;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class SECPKG_FLAG_Map {
private static final Map<Integer, String> SEC_MAP;
static {
... |
package com.ass.modelQuery;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.ass.model.Category;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class CategoryReport {
@Id
private Category d... |
package cl.escalab.nparrado.spring.homework2_2.model;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@Data
@Entity
@Table(name = "item")
public class Item {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer idItem;
@NotNull
@Co... |
/*
* Copyright (c) 2015, Werner Klieber. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ve... |
package com.infoworks.lab.util.services;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.util.List;
import ... |
package com.citibank.newcpb.form;
import java.io.Serializable;
import java.util.ArrayList;
import com.citibank.newcpb.bean.ResultTableBean;
import com.citibank.newcpb.vo.DocumentsVO;
import com.citibank.newcpb.vo.StatusCpfCnpjVO;
public class DocumentsForm extends BaseForm implements Serializable {
p... |
package edu.colostate.cs.cs414.soggyZebras.rollerball.Client.menu.listdisplay;
import edu.colostate.cs.cs414.soggyZebras.rollerball.Game.Game;
/**
* a wrapper class used to display a game in the list of active games
*/
public class PastGameListDisplay {
public Game game;
private String myUsername;
publ... |
package main.java.oop.static1;
// 더하기만 하는 계산기를 만들어보자.
public class Calculator {
public Calculator(long x, long y) {
this.x = x;
this.y = y;
}
private long x;
private long y;
public long getTotal() {
return this.x + this.y;
}
}
|
package com.example.eventalert;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.