text stringlengths 10 2.72M |
|---|
package com.ims.dto;
import java.io.Serializable;
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(... |
package com.javaneversleep.tankwar;
import java.awt.Image;
public enum Direction {
UP("U", 0, -1, 4),
DOWN("D", 0, 1, 8),
LEFT("L", -1, 0, 1),
RIGHT("R", 1, 0, 2),
LEFT_UP("LU", -1, -1, 5),
RIGHT_UP("RU", 1, -1, 6),
LEFT_DOWN("LD", -1, 1, 9),
RIGHT_DOWN("RD", 1, 1, 10);
private f... |
/*
* Copyright (c) 2012-2013 by Lukas Kairies, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.utils;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOExce... |
package algorithm;
import com.google.gson.Gson;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
/**
* Author: fangxueshun
* Description:
* Date: 2017/10/24
* Time: 23:20
*/
public class ClassroomPlanningSolutionsTest {
@Test
public void solution(... |
import java.util.Scanner;
public class Main{
public static void main(String [] args){
Scanner scan = new Scanner(System.in);
}
} |
package org.apache.pig.backend.stratosphere.executionengine.contractsLayer;
import org.apache.pig.impl.io.SPigFileInputFormat;
import org.apache.pig.impl.io.SPigTextInputFormat;
import eu.stratosphere.pact.common.contract.GenericDataSource;
public class PigDataSource extends GenericDataSource<SPigTextInputFormat> {
... |
package fr.atlasmuseum.search.module;
import java.util.List;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import fr.atlasmus... |
package com.liuhy.springproxy;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by liuhy on 2017/2/19.
*/
public class TestSpringManualProxy {
@Test
public void testProxy() {
String ... |
package javalab3;
import java.util.*;
public class IdentityMatrix_19BS0127 {
public static void main(String[] args) {
System.out.println(" Solved by Reg No. : 19BDS0127");
System.out.println(" ---------");
int i,j;
Scanner test=new Scanner(System.in);
System.out.p... |
public class MergeSort {
public void mergeSort(int[] arr) {
mergeSort(arr, 0, arr.length - 1);
}
// 합병 정렬
private void mergeSort(int[] arr, int start, int end) {
if(start < end) {
int middle = (start + end) / 2;
// 분할
mergeSort(arr, start, middle);
mergeSort(arr,middle+1, end);
... |
package game.model;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Diese Klasse speichert bis zu 10 Highscores zu einem Starfield.
*
* @author Nikolaj
*/
public class HighscoreList implements Serializable {
private static final long serialVersionUID = -540584146513677462L;
/** ... |
package H04;
import java.awt.*;
import java.applet.*;
public class H045_Dobbelsteen extends Applet {
public void init () {
}
public void paint (Graphics g) {
setBackground(Color.white);
g.setColor(Color.black);
g.drawRoundRect(110, 70, 170, 170, 10, 10);;
g.fillOval(130,... |
package com.sudipatcp.backtracking;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class LetterPhone {
Map<String, String> phone = new HashMap<String, String>() {{
put("2", "abc");
put("3", "def");
put("4", "ghi");
put("5", "jkl");
put("... |
package micronaut.starter.kit;
import org.dom4j.Element;
import org.dom4j.Node;
import javax.inject.Singleton;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
@Singleton
public class FormulasNode {
HashMap<String, FormulasBean> map;
public FormulasNode() {
... |
package com.tencent.tencentmap.mapsdk.a;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class w {
private static String a = "fdea30d4-c4f3-11e7-ae5f-6c0b84... |
package GameFrame;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.function.Function;
/*
* @author Guihution
* 2020/5/26 12:10
*/
@SuppressWarnings("warning")
pub... |
package at.fhj.swd.presentation.exceptions;
import at.fhj.swd.exceptions.FhjWs2014Sd12PseException;
/**
* Denotes the top-level-exception-base-class for all presentation-layer-exceptions.
* */
public class PresentationLayerException extends FhjWs2014Sd12PseException {
private static final long serialVersionUID =... |
package slepec.hra.prikazy;
import slepec.hra.Hra;
import slepec.hra.planek.HerniPlan;
import slepec.hra.planek.prostor.Prostor;
import slepec.hra.planek.prostor.vec.Vec;
import slepec.hra.planek.prostor.vec.VecKlic;
/**
* Pomoci PrikazOdemkni lze odemknout danou mistnost, paklize ma od ni hrac klic
*
... |
package com.takshine.wxcrm.domain;
import java.util.List;
import com.takshine.wxcrm.model.ScheduleModel;
/**
* 日程
* @author 刘淋
*
*/
public class Schedule extends ScheduleModel{
/**
* 调用sugar接口传递的参数
*/
private String viewtype = null;//视图类型 myview , teamview, focusview, allview
private String title = null;/... |
package controllers;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.ServletException;
import java.io.IOException;
import models.User;
import models.Product;
public class S... |
package testRouleTaBoule.window;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;
import testRouleTaBoule.elements.*;
public class GenerateurCoordCarte {
public static Element[][] element = new Element[30][30];
public static ElementBoule laBoule = null;
public static in... |
package ro.redeul.google.go.lang.psi.processors;
import com.intellij.psi.PsiElement;
import com.intellij.psi.ResolveState;
import com.intellij.psi.scope.BaseScopeProcessor;
import ro.redeul.google.go.lang.psi.toplevel.GoTypeNameDeclaration;
import ro.redeul.google.go.lang.psi.toplevel.GoTypeSpec;
import ro.redeul.goog... |
/*
*Purpose:-create a Player Object having Deck of Cards, and having ability to Sort by Rank and maintain the
* cards in a Queue implemented using Linked List.
*
*@Author:-Arpana Kumari
* Version:1.0
* @Since:-12 May 2018
*/
package com.bridgeit.DeckOfCardUsingQueue;
import java.util.LinkedLis... |
package net.minecraft.util.datafix.fixes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.datafix.IFixableData;
public class CookedFishIDTypo implements IFixableData {
private static final ResourceLocation WRONG = new ResourceLocation("cooked_fished");
... |
package iut.cours1.projet.dummy;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
imp... |
package zystudio.cases.javabase;
import java.util.Enumeration;
public class CaseEnumeration {
public static void work() {
}
public static class MyBean {
}
public static class MyEnumerator implements Enumeration<MyBean> {
@Override
public boolean hasMoreElements() {
return false;
}
@Override
p... |
package java_Programs;
public class Amstrong {
public static void main(String[] args) {
int num=371, temp=0, amstrongnumber=0; int check=0;
check=num;
while(num>0)
{
amstrongnumber=num%10;
num=num/10;
temp=temp+(amstrongnumber*amstrongnumber*amstrongnumber);
}
if(temp==check)
... |
package kademlia.monitor;
public enum MonitorType {
PING,
FIND_NODE,
REPLY_NODE,
SEND;
}
|
package entities.pages;
import entities.components.BaseComponent;
import entities.components.TitleComponent;
import org.openqa.selenium.By;
import utils.TestGlobalsManager;
import static org.testng.Assert.assertTrue;
public class PaymentAndReviewCheckoutPage extends BasePage {
private TitleComponent titleCompone... |
package com.steatoda.commons.fields;
import java.text.ParseException;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import com.go... |
package com.pineapple.mobilecraft.tumcca.activity;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import... |
package mk.petrovski.weathergurumvp.ui.base;
import android.support.annotation.NonNull;
import javax.inject.Inject;
import mk.petrovski.weathergurumvp.data.DataManager;
import mk.petrovski.weathergurumvp.data.remote.helper.CompositeDisposableHelper;
/**
* Base class that implements the Presenter interface and provid... |
import java.util.regex.Pattern;
public class RegexDemo
{
public static void main(String[] args)
{
System.out.println(Pattern.matches("\\d*", "245")); // true
}
} |
package org.sacc.SaccHome.util;
import io.minio.BucketExistsArgs;
import io.minio.ListObjectsArgs;
import io.minio.MinioClient;
import io.minio.Result;
import io.minio.errors.*;
import io.minio.messages.Item;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmExc... |
package com.smxknife.cache.redis;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import java.util.Objects;
/**
* @author smxknife
* 2020/7/22
*/
public class _02_JedisPool {
public static void main(String[] args) {
GenericOb... |
package tom.graphic.DataView;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyVetoException;
import java.beans.VetoableChangeListener;
import java.io.PrintStream;
import java.util.EventObject;
import javax.infobus.InfoBus;
import javax.infobus.InfoBusDataConsu... |
package com.tencent.mm.ui.conversation.a;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.bg.d;
import com.tencent.mm.model.au;
import com.tencent.mm.model.bc;
import com.tencent.mm.model.c;
import com.tencent.mm.p... |
package com.tencent.mm.ui.chatting;
import com.tencent.mm.R;
import com.tencent.mm.ui.base.h;
class ChattingUI$1 implements Runnable {
final /* synthetic */ ChattingUI tLZ;
ChattingUI$1(ChattingUI chattingUI) {
this.tLZ = chattingUI;
}
public final void run() {
h.a(this.tLZ, this.tLZ... |
import javax.swing.ButtonModel;
import javax.swing.JOptionPane;
/*
* 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.
*/
/**
*
* @author aluno
*/
public class JFrameQuestao extends javax... |
package aps_pota;
public class RadixSort extends AlgOrd{
public RadixSort(String nome) {
super(nome);
}
public int NumDigitos(int[] vet){//retorna a quantidade máxima de digitos em um array.
int dig=0;
this.comparacoes++;
for (int i = 0; i < vet.length; i++) {
int temp = String.valueOf(vet[i]).length... |
/*
* Copyright (C) 2019 TopCoder Inc., All Rights Reserved.
*/
package com.tmobile.percy.editor;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.FileEditorPolicy;
import com.intellij.openapi.fileEditor.WeighedFileEditorProvider;
import com.intellij.openapi.project.Project;
i... |
package application;
import java.util.Calendar;
import java.util.TimeZone;
public class Exercise05 {
public static void main(String[] args) {
//Write a Java program to get the current time in New York
Calendar calNY = Calendar.getInstance();
calNY.setTimeZone(TimeZone.getTimeZone("America/New_York"));
... |
package server.by.epam.fullparser.service;
/**
* Exception handler of service layer.
*/
public class ServiceException extends Exception{
public ServiceException(String message){
super(message);
}
public ServiceException(String message,Throwable cause){
super(message,cause);
}
}
|
package com.qy.zgz.kamiduo.vbar;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
public class WriteLog {
//日志记录方法
public static voi... |
package com.hesoyam.pharmacy.user.repository;
import com.hesoyam.pharmacy.user.model.Role;
import org.springframework.data.jpa.repository.JpaRepository;
public interface RoleRepository extends JpaRepository<Role, Long> {
Role findByRoleName(String name);
}
|
package Main;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
/**
* UserInputUtil class is used to userInput so it can be manipulated
* @author Philip Evans
*
*/
public class UserInputUtil
{
/**
* These class variables are Strings that was be passed onto other methods
... |
package ru.itis.javalab.listeners;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import ru.itis.javalab.config.*;
import ru.itis.javalab.services.*;
import ru.itis.javalab.services.PostServiceImpl;
import ru.itis.javalab.service... |
package com.fleet.jpush.entity;
import java.io.Serializable;
import java.util.Map;
public class JPush implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 目标平台: "all","android","ios","winphone"
*/
private String platform;
private String title;
private Stri... |
package com.ducph.consoledrawing.model;
import com.ducph.consoledrawing.util.Utils;
import lombok.Data;
@Data
public class Line implements Entity {
private int x1;
private int y1;
private int x2;
private int y2;
public Line(int x1, int y1, int x2, int y2) {
if (x1 != x2 && y1 != y2) {
... |
package com.epam.jmp.module.concurency;
import com.epam.jmp.module.concurency.bus.*;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicBoole... |
package c523.spark_streaming_eg;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import kafka.serializer.StringDecoder;
import org.apac... |
// Sun Certified Java Programmer
// Chapter 5, P337_3
// Flow Control, Exceptions, and Assertions
class Tester337_3 {
public static void main(String[] args) {
switch (new Integer(4)) {
case 4:
System.out.println("boxing is OK");
}
}
}
|
/*
* 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 forms;
import classes.Livro;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.sw... |
package com.mavi.webirssi.layout;
import java.util.List;
import com.mavi.IRCConnectionManager;
import com.mavi.IRCMessage;
import com.vaadin.event.FieldEvents.BlurEvent;
import com.vaadin.event.FieldEvents.BlurListener;
import com.vaadin.event.FieldEvents.FocusEvent;
import com.vaadin.event.FieldEvents.Focus... |
package com.xiaoxiao.tiny.frontline.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xiaoxiao.pojo.XiaoxiaoLeaveMessage;
import com.xiaoxiao.pojo.vo.XiaoxiaoLeaveMessageVo;
import com.xiaoxiao.tiny.frontline.feign.RedisCacheFeignClient;
import com.xiaoxiao.tiny.f... |
package de.fu_berlin.inf.archnemesis.core.chralx;
public class ChralxUtil {
}
|
package rx.vincent.com.rx;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Action1;
import rx.functions.Func1;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanc... |
/*
* 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 laptinhmang;
import java.awt.Toolkit;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorE... |
package com.tencent.mm.plugin.fav.a;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import com.tencent.mm.kernel.c.a;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import com.tencent.mm.pluginsdk.ui.applet.q;
import com.tencent.mm.y.g;
public interface ab extends ... |
package cn.edu.zucc.music.repository;
import cn.edu.zucc.music.entity.BornEntityItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import java.util.List;
public interface BornRepository extends Ne... |
package day8;
public class Task1 {
public static void main(String[] args) {
StringBuilder numbers = new StringBuilder();
for (int i = 0; i <= 20000;i++) {
numbers.append(i).append(" ");
}
System.out.println(numbers);
}
}
|
package com.tencent.mm.ui.base;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.inputmethod.InputMethodManager;
import com.tencent.mm.sdk.platformtools.x;
class MMTagPanel$6 implements OnClickListener {
final /* synthetic */ MMTagPanel txS;
MMTagPanel$6(MMTagPanel mMTa... |
package com.dollarapi.demo.repository;
import com.dollarapi.demo.model.Dollar;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.Optional;
@Repository
public interface DollarRepository extends JpaRepository<Dollar, ... |
package psk.com.mediaplayerdemo.utils;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
/**
* Created by Prashant Kashetti on 9/7/16.
*/
public class TimeUtils {
public static String getDuration(long duration){
return String.format(Locale.ENGLISH,"%02d:%02d",
TimeUnit.MILL... |
package com.example.tagebuch.model.pojo;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.PrimaryKey;
import androidx.swiperefreshlayout.widget.CircularProgressDrawable;
@Entity(tableName = "pensamientos",
foreignKeys =
{@Fo... |
package headfirst.com.projectapplication;
import android.app.AlertDialog;
import android.app.SearchManager;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.support.design.widget.NavigationView;
import androi... |
package com.iuce.control;
import java.util.List;
import com.iuce.entity.Diary;
public interface IDiaryOperations {
//add
//remove
//list
//edit
public boolean addDiary(Diary diary);
public boolean removeDiary(int id);
public boolean updateDiary(int id, Diary diary);
public List<Diary> list... |
package DAO;
import java.util.List;
import org.hibernate.Criteria;
import model.BookInfo;
public class BookInfoDAO extends hibernateDAO implements IBookInfoDAO {
@Override
public void SaveBookInfo(BookInfo book) {
// TODO Auto-generated method stub
if(book == null) return;
super.saveObject(book);
}
@O... |
package com.netbanking.model;
public class AuthorizePIIPendingRequestModel {
String requestStatusString;
public String getRequestStatusString() {
return requestStatusString;
}
public void setRequestStatusString(String requestStatusString) {
this.requestStatusString = requestStatusString;
}
public String getR... |
package cn.itcase.demo1;
public class Employee {
String name;
public void work()
{
System.out.println("employee is working!!!");
}
}
|
package com.woowtodo.entities;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.User;
public class CurrentWoowUser extends User {
private static final long serialVersionUID = 2211964161401958350L;
private WoowUser user;
public CurrentWoowUser... |
package kimmyeonghoe.cloth.domain.notice;
import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class AdminNotice {
private int noticeNum;
private String title;
private String content;
@JsonFormat(pattern... |
package in.dailyhunt.internship.userprofile.endpoints;
import in.dailyhunt.internship.userprofile.client_model.response.UserResponse;
import in.dailyhunt.internship.userprofile.security.services.UserPrinciple;
import in.dailyhunt.internship.userprofile.services.interfaces.UserService;
import org.springframework.beans.... |
package com.example.iutassistant.Presenter;
import com.example.iutassistant.Model.IdentityModel;
import com.google.firebase.database.DataSnapshot;
public interface FireBaseIdentityPresenter {
public void useFireBaseIdentityModel(IdentityModel identityModel);
}
|
package la.opi.verificacionciudadana.adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.astuetz.PagerSlidingTabStrip;
import java.util.List;
import la... |
package com.google.android.gms.analytics.internal;
public interface ah {
void mB();
}
|
import java.util.Arrays;
import java.util.HashMap;
//两数之和
class _1{
public int[] twoSum(final int[] nums, final int target) {
final int[] indexs = new int[2];
final HashMap<Integer, Integer> hash = new HashMap<Integer, Integer>();
for (int i = 0; i < nums.length; i++) {
if (!ha... |
package com.chat.zipchat.Service;
import com.chat.zipchat.BuildConfig;
import com.ihsanbal.logging.Level;
import com.ihsanbal.logging.LoggingInterceptor;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.internal.platform.Platform;
import retrofit2.Retrofit;
import retrofit... |
package br.com.higornucci.contracheque.dominio.real;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Locale;
public class Real {
private BigDecimal valor;
public Real(BigDecimal valor) {
this.valor = valor.setScale(2, BigDecimal.ROUND_HALF_EVEN);
}
public Real mu... |
package com.example.healthmanage.ui.activity.my.aboutus;
import com.example.healthmanage.base.BaseViewModel;
public class AboutUsViewModel extends BaseViewModel {
}
|
package test.main;
import java.sql.Connection;
import java.sql.PreparedStatement;
import test.util.DBConnect;
/*
* member 테이블에서
* 회원번호가 801 번 회원의 정보를 삭제하는 기능을 완성해 보기
* hint
* new DBConnect().getConn();
*/
public class MainClass05 {
public static void main(String[] args) {
//삭제할 회원의 번호
int num=806... |
package staff.menu;
import java.io.IOException;
import java.net.MalformedURLException;
import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableLi... |
import javax.swing.*;
import java.awt.*;
/**
* Created by TAWEESOFT on 4/21/16 AD.
*/
public class LightButton extends JButton {
public LightButton(String text) {
super(text);
setForeground(Color.red);
}
public void paint(Graphics g){
g.setColor(Color.pink);
g.fillRect(0... |
package com.classcheck.panel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTree;
import javax.swing.event.TreeSelectio... |
package de.zarncke.lib.math;
import static de.zarncke.lib.math.Intervals.EMPTY;
import static de.zarncke.lib.math.Intervals.of;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import junit.framework.TestCase;
import de.zarncke.lib.coll.L;
import de... |
/*
* Copyright (c) 2019 LINE Corporation. All rights reserved.
* LINE Corporation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.libedi.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.libedi.demo.domain.Parent;
/**
* ParentRepository
*
* @aut... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package br.ita.sem2dia1.AprofundandoClassesJava.escola;
//passo 1 programamos de forma estruturada para comparar
//passo 2 programamos de forma O.O para comparar
public class VerificadoraDeNotas {
/* Exemplo de como seria estruturado:
* Classe movida para dentro de Aluno
*
public static int mediaAl... |
package communication.packets.request;
import communication.enums.PacketType;
import communication.enums.RequestResult;
import communication.packets.Packet;
import communication.packets.RequestPacket;
import communication.packets.ResponsePacket;
import communication.packets.response.LoginResponsePacket;
import communi... |
package com.rofour.baseball.service.manager;
import com.rofour.baseball.dao.manager.bean.CityOrderConfBean;
import java.util.List;
public interface CityOrderConfService {
int insert(CityOrderConfBean bean);
int updateCostValue(CityOrderConfBean bean);
int del(CityOrderConfBean bean);
List<CityOrderConfBean> ... |
package com.nt.service;
import java.util.Calendar;
import org.springframework.stereotype.Service;
@Service
public class WishService {
public String generateWishMsg(String uname){
int hour=0;
Calendar cal=null;
cal=Calendar.getInstance();
hour=cal.get(Calendar.HOUR_OF_DAY);
if(hour<12)
return "G... |
package br.com.rsinet.hub_bdd.teste;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.ex... |
package com.tencent.mm.plugin.backup.b;
import com.tencent.mm.plugin.backup.b.c.b.2;
import com.tencent.mm.plugin.backup.f.c;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import junit.framework.Assert;
class c$b$2$1 implements Runnable {
final /* synthetic */ c gSE;
f... |
package com.gerray.fmsystem.ManagerModule.Profile;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.gerray.fmsystem.R;... |
package com.wisape.android.util;
import android.net.Uri;
import static android.content.ContentResolver.SCHEME_FILE;
/**
* Created by LeiGuoting on 18/6/15.
*/
public class FrescoUriUtils {
public static Uri fromFilePath(String path){
return new Uri.Builder().scheme(SCHEME_FILE).authority("").path(path)... |
package com.qihoo.finance.chronus.storage.h2.plugin.dao.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import javax.transaction.Transactional;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils;
impor... |
package chinese.parser.implementations.map;
import include.learning.perceptron.PackedScoreMap;
import include.linguistics.chinese.CTagInt;
import chinese.pos.CTag;
@SuppressWarnings("serial")
public final class CTagIntMap extends PackedScoreMap<CTagInt> {
public CTagIntMap(final String input_name, final in... |
package com.example.usersessionmanagement;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.Menu;
import android.view.... |
package fr.lteconsulting.outil;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Outils
{
public static void callJsp( String name, ServletContext context, ... |
package gui;
import bbdd.GestionBDFactory;
import java.awt.Color;
import java.awt.Toolkit;
import java.util.List;
import java.util.Vector;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableColumn;
import model.Clientes;
pub... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.