text stringlengths 10 2.72M |
|---|
package jneiva.hexbattle;
import jneiva.hexbattle.tiles.Celula;
public class PlanoDeAcao {
public Celula alvoMovimento;
public Celula alvoAtaque;
}
|
package Main;
import GUI.ProgramGUI;
import Tools.Constants;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
//java --module-path C:\javafx-sdk-13.0.2\lib --add-modules javafx.controls,javafx.fxml,javafx.graphics,j... |
/*
* 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 pe.gob.onpe.adan.model.adan;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import javax.p... |
package dao;
import helper.JdbcHelper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import model.KhachHang;
public class KhachHangDAO {
public void insert(KhachHang model) {
String sql = "INSERT INTO KhachHang (MaKH, HoTen, Ngay... |
package problem_solve.basic.baekjoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class BaekJoon4949 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Stri... |
package fanli.selfcode.linkedList;
import javax.imageio.ImageTranscoder;
import java.util.ArrayList;
import java.util.Arrays;
public class ReverseList {
public static void main(String[] args) {
Node n1 = new Node(1);
Node n2 = new Node(2);
Node n3 = new Node(3);
Node n4 = new Node... |
// 4. 实现一个方法,传入数字数组,按由小到大的顺序输出
public class four{
public static void main(String[] args) {
int[] numAry = new int[]{5, 6, 3, 7, 1, 2, 4};
int[] result = new int[]{};
result = sortAry(numAry);
for (int k = 0; k < result.length; k ++) {
System.out.println(result[k]);
}
}
public... |
abstract class UIElement
{
UI ui;
float coordinateX;
float coordinateY;
abstract void render();
abstract void update();
}
|
package br.com.conexao;
public class Conexao {
}
|
public class HelloGitHub {
public static void main(String[] args) {
int in=1;
while ( in <= 10 )
{
System.out.println("Hello GitHub, I'm developer 2! Count is "+in);
in++;
}
}
}
|
package nl.rug.oop.flaps.simulation.view.panels;
import lombok.Getter;
import lombok.extern.java.Log;
import nl.rug.oop.flaps.aircraft_editor.view.panels.aircraft_info.interaction_panels.FuelConfigPanel;
import nl.rug.oop.flaps.simulation.controller.AirportSelectionController;
import nl.rug.oop.flaps.simulation.contro... |
/*
* 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 pboulang.pkg10117185.latihan42.tabungan;
/**
*
* @author user
* Nama : Andhyka Widariyanto
* NIM : 10117185
* Kelas: PBO... |
/*
* 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 OS;
/**
* Created by wei on 2/14/2017.
*/
public class Dispatcher{
//ControlBlock[] runningQueue;
//... |
package com.tencent.mm.plugin.offline.ui;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import com.tencent.mm.platformtools.y;
import com.tencent.mm.plugin.o... |
package com.tencent.mm.ui.chatting.viewitems;
import android.text.Html;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mm.R;
import com.tencent.mm.kernel.g;
... |
package com.tencent.mm.plugin.auth;
import com.tencent.mm.model.av.a;
import com.tencent.mm.model.z;
import com.tencent.mm.protocal.i.f;
import com.tencent.mm.protocal.i.g;
class PluginAuth$1 implements a {
final /* synthetic */ PluginAuth gQX;
PluginAuth$1(PluginAuth pluginAuth) {
this.gQX = pluginA... |
package rs.aleph.android.example12.activities.Activities.model;
public class Jelo {
private String image;
private String name;
private String description;
private String kategorija;
private float rating;
public Jelo() {
}
} |
package mapmaker.obj;
public class LinkMap {
}
|
package croco.com.yumingluan;
import java.util.LinkedList;
import java.util.List;
import croco.com.yumingluan.bean.Company;
import croco.com.yumingluan.sercice.priseServrices;
import croco.com.yumingluan.sercice.webServrices;
public class App {
public static void main(String[] args) {
String company_lis... |
package beansPersistencia;
import java.util.List;
import javax.annotation.Resource;
import javax.ejb.Asynchronous;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.SystemException;
import javax.transac... |
import edu.uci.ics.crawler4j.crawler.CrawlConfig;
import edu.uci.ics.crawler4j.crawler.CrawlController;
import edu.uci.ics.crawler4j.fetcher.PageFetcher;
import edu.uci.ics.crawler4j.robotstxt.RobotstxtConfig;
import edu.uci.ics.crawler4j.robotstxt.RobotstxtServer;
import java.util.ArrayList;
import java.util.List;
im... |
package com.xiaodao.log.listen;
import com.xiaodao.feign.system.client.SysLogininforClient;
import com.xiaodao.feign.system.client.SysOperLogClient;
import com.xiaodao.admin.entity.SysLogininfor;
import com.xiaodao.admin.entity.SysOperLog;
import com.xiaodao.log.event.SysLogininforEvent;
import com.xiaodao.log.event.S... |
package com.fpmislata.banco.persistence.dao.implementacion.hibernate;
import com.fpmislata.banco.business.domain.CuentaBancaria;
import com.fpmislata.banco.business.domain.MovimientoBancario;
import com.fpmislata.banco.core.BusinessException;
import com.fpmislata.banco.persistence.dao.MovimientoBancarioDAO;
impo... |
package com.tencent.mm.plugin.game.e;
import android.graphics.Bitmap;
import android.view.View;
import com.tencent.mm.sdk.platformtools.c;
import com.tencent.mm.sdk.platformtools.x;
class e$4 extends e$b {
final /* synthetic */ int aEd;
final /* synthetic */ int aEe;
final /* synthetic */ e kdq;
final... |
package com.test.data.domain;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.voodoodyne.jackson.jsog.JSOGGenerator;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;
import org.neo4j.ogm.annotation.typeconversion.Dat... |
import java.io.IOException;
import java.util.Scanner;
public class ScannerExample {
public static void main(String[] args) throws IOException {
System.out.print("당신의 이름을 입력하세요 : ");
Scanner sc = new Scanner(System.in);
String name = sc.nextLine();
System.out.print("당신의 나이는요? : ");
int age = sc.nextInt();... |
package com.ybh.front.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Product_VPS_ADSLExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table FreeHost_Product_VPS_ADSL
*
* @mbg.genera... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
import java.math.BigDecimal;
import java.util.Date;
/**
* TTaskMaterial generated by hbm2java
*/
public class TTaskMaterial implements java.io.Serializable {
private TTaskMaterialId id;
private MMaterial MMaterialByOutmateria... |
package com.tencent.matrix.iocanary.b;
import com.tencent.matrix.d.b;
import java.lang.reflect.Field;
import java.lang.reflect.Proxy;
public final class a {
private static volatile Object bra;
public volatile boolean bqZ;
private final com.tencent.matrix.c.c.a brb;
public a(com.tencent.matrix.c.c.a a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package herramientas;
import java.io.*;
import java.sql.*;
import java.util.Calendar;
/**
*
* @author Administrador
*/
public class insertadocumentoORCL
{
public static void main(String [] args ) {
... |
// GameState that shows logo.
package com.neet.gamestates;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import com.neet.handlers.GameStateManager;
import com.neet.handlers.ImageLoader;
import com.neet.handlers.Keys;
import com.neet.handlers.Mouse;
import com.nee... |
package piefarmer.immunology.gui;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.util.ResourceLocation;
public class GuiButtonAddDisease extends GuiButton{
public stati... |
package cn.sunzhichao.mall.controller.portal;
import cn.sunzhichao.mall.common.Const;
import cn.sunzhichao.mall.common.ResponseCode;
import cn.sunzhichao.mall.common.ServerResponse;
import cn.sunzhichao.mall.pojo.User;
import cn.sunzhichao.mall.service.IProductService;
import cn.sunzhichao.mall.vo.ProductDetail... |
package com.example.tabtest;
import android.app.Activity;
public class MyInfoActivity extends Activity {
}
|
package com.gcit.training.library.dao;
import static org.junit.Assert.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import org.junit.Before;
import org.junit.Test;
import com.gcit.training.library.Borrower;
public class BorrowerDAOTest {
private Conne... |
public class Member implements Comparable<Member> {
private int memberId;
private String memberName;
public Member() {}
public Member(int memberId, String memberName) {
this.memberId = memberId;
this.memberName = memberName;
}
public int getMemberId() {
return memberId;
}
public void s... |
package com.guru99.demo.pages_objects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class HomePage extends BasePage{
private By usernameField = By.name("uid");
private By passwordField = By.name("password");
private By loginField = By.name("btnLogin");
public HomePage(WebDriver dr... |
package com.mideas.rpg.v2.game.classes;
import com.mideas.rpg.v2.game.Joueur;
import com.mideas.rpg.v2.game.item.stuff.Stuff;
import com.mideas.rpg.v2.game.shortcut.SpellShortcut;
import com.mideas.rpg.v2.game.spell.Spell;
import com.mideas.rpg.v2.game.spell.SpellManager;
import com.mideas.rpg.v2.game.spell.list.Death... |
package com.ntxdev.zuptecnico.entities;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ntxdev.zuptecnico.R;
import com.ntxdev.zuptecnico.api.Zup;
import java.util.Map;
/**
* Created by igorlira on 7/30/15.
*/
p... |
package com.example.admin.hocdatabinding;
import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.example.admin.hocdatabinding.databinding.ActivityMainBinding;
import model.User;
public class MainActivity extends AppCompatActivity {
@Ove... |
package Shapes;
public class Rectangle extends Quadrilateral implements Measurable {
protected double length;//protected property for length
protected double width;//protected property for width
public Rectangle(double length, double width){//define a constructor that accepts 2 numbers for length and wid... |
package com.example.ecommerce.Model;
public class Balance {
private String sid,date,sellingAmount,invoiceNumber,products;
public Balance() {
}
public Balance(String sid, String date, String sellingAmount, String invoiceNumber, String products) {
this.sid = sid;
this.date = date;
... |
package com.darkania.darkers.extras;
import java.io.File;
import java.io.IOException;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukki... |
package com.tencent.mm.pluginsdk.model.app;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.pluginsdk.model.app.g.a;
class g$4 implements ... |
package com.anderson.slave_2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Slave2Application {
public static void main(String[] args) {
SpringApplication.run(Slave2Application.class, args);
... |
package logic.treinamento.bean;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.sql.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
i... |
package zystudio.cases.androidmechanism;
import android.app.Activity;
import android.content.Context;
import zystudio.mylib.utils.LogUtil;
/**
* 想看看到底那个Context 都是什么类..
*/
public class CaseContextKinds {
private static CaseContextKinds sInstance;
private Activity mActivity;
private CaseContextKinds() {... |
package com.boot.web.mq;
import org.boot.utils.mq.ActiveMqSendUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.boot.WebStart;
@RunWith(SpringRunn... |
package interviewbit.backtracking;
import java.util.ArrayList;
public class LetterPhone {
public ArrayList<String> letterCombinations(String a) {
ArrayList<String> s =new ArrayList<String>();
return s;
}
}
|
package day10_ControlStatement_Part4;
public class oddNumber {
public static void main(String[] args) {
for(int i=5; i<=140; i+=1) {
if (i%2!=0) {
System.out.print(i+ " ");
}
}
}
}
|
package org.yipuran.gsonhelper;
import java.io.Reader;
import java.io.StringReader;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import com.google.gson.Gson;
import com.... |
// **********************************************************************
// This file was generated by a TAF parser!
// TAF version 3.2.1.6 by WSRD Tencent.
// Generated from `/data/jcetool/taf//upload/opalli/pitu_meta_protocol.jce'
// **********************************************************************
package NS_... |
//You have an empty sequence, and you will be given queries. Each query is one of these three types:
//
//1 x -Push the element x into the stack.
//2 -Delete the element present at the top of the stack.
//3 -Print the maximum element in the stack.
//Input Format
//
//The first line of input contains an integer,... |
package com.tencent.mm.plugin.wenote.model.nativenote.c;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.Spanned;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.wenote.model.a.b;
import com.tencent.mm.plugin.wenote.model... |
package com.lec.ex04;
//TestClass로부터 상속받고 ,i11를 구현 받는다 (처음 파일 만들떄 이렇게했다)
public class TestChildClass extends TestClass implements I11 {
@Override
public void m11() {
System.out.println("상수i11=" + i11);
}
}
|
package com.cloudogu.smeagol.wiki.infrastructure;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.TimeUnit;
@Configuration
public class PullChang... |
package org.iptc.extra.core.eql.tree.extra;
import org.iptc.extra.core.eql.tree.nodes.Relation;
public enum EQLRelation {
CONTAIN ("="),
EXACT ("=="),
NOT_EQUAL ("<>"),
LT ("<"),
LTE ("<="),
GT (">"),
GTE (">="),
ADJ ("adj"),
ALL ("all"),
ANY ("any"),
WITHIN ("within");
private final String r... |
package com.musala.edu.patterns.abstractfactory.model;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.LinkedList;
import java.util.List;
import org.junit.Test;
/**
* The <code>TestDessert</code> consists of tests on the {@link Dessert} derived
... |
package org.training.issuetracker.dao.interfaces;
import java.util.List;
import org.training.issuetracker.dao.entities.Issue;
/**
* Interface, providing access to the issues and their data
* @author Dzmitry Salnikau
* @since 03.01.2013
*/
public interface IssueDAO {
/**
* @return List of all issues
*/
pu... |
package 异常;
public class 执行顺序 {
boolean testEx() throws Exception{
boolean ret=true;
try{
ret=testEx1();
}catch (Exception e){
System.out.println("testEx,catch exception");
ret=false;
throw e;
}finally {
System.out.println(... |
package com.tencent.mm.plugin.game.gamewebview.jsapi.biz;
import com.tencent.mm.plugin.game.gamewebview.ipc.GameProcessActivityTask.a;
import com.tencent.mm.plugin.game.gamewebview.jsapi.biz.GameJsApiSendAppMessage.SendAppMessageTask;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.ui.widget.snackbar.... |
package controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRe... |
class Solution {
public int[] sortedSquares(int[] A) {
int res[] = new int[A.length];
for(int i =0; i<A.length;i++)
{
res[i]=(int)Math.pow(A[i],2);
}
Arrays.sort(res);
return res;
}
}
|
package edu.wayne.cs.severe.redress2.entity.refactoring.formulas.rdi;
import edu.wayne.cs.severe.redress2.controller.HierarchyBuilder;
import edu.wayne.cs.severe.redress2.controller.metric.CodeMetric;
import edu.wayne.cs.severe.redress2.controller.metric.DITMetric;
import edu.wayne.cs.severe.redress2.entity.TypeDeclar... |
package com.tencent.mm.plugin.record.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.R;
import com.tencent.mm.g.a.fz;
import com.tencent.mm.plugin.record.ui.FavRecordDetailUI.2.2;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.platform... |
package Chapter9;
public class Exercise9_7 {
static boolean contains(String src, String target) {
return src.indexOf(target) != -1;
}
public static void main(String args[]) {
System.out.println(contains("12345", "23"));
System.out.println(contains("12345", "67"));
}
}
|
import java.util.concurrent.CountDownLatch;
/**
* @author QianHuaSheng
* @version V1.0
* @description
* @date 2018/11/6
*/
public class CountDownLatchTest {
public static void main(String[] args) {
CountDownLatch countDownLatch1=new CountDownLatch(1);
CountDownLatch countDownLatch2=new CountDownLatch(1);
T... |
package csci152.lesson8_tests;
import csci152.adt.Stack;
import csci152.adt.Queue;
import csci152.impl.ArrayStack;
import csci152.impl.ArrayQueue;
public class Main {
public static void main(String[] args) {
Stack<Integer> stack = new ArrayStack();
/* #1 */
for(int i = 0; i<10; i++) ... |
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
char d = in.next().charAt(0);
int x = in.nextInt();
... |
package com.example.algorithm.matchengine;
import java.util.List;
/**
* Date: 2019年07月28日 10:22 <br/>
*
* 交易撮合引擎
*
* @author lcc
* @since 1.0.0
*/
public class TradeMatchEngine {
private SellerOrderQueue sellerOrderQueue;
private BuyerOrderQueue buyerOrderQueue;
public List<Tra... |
package backjoon.condition;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Backjoon2884 {
private static final int ALARM_MIN = 45;
public static void main(String[] args) throws IOException {
BufferedReader br ... |
package com.yorkwang.controller;
import java.io.File;
import java.util.List;
import com.jfinal.core.Controller;
import com.jfinal.kit.StrKit;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.upload.UploadFile;
import com.yorkwang.model.UploadImage;
import com.yorkwang.service.UploadImageService;
import com... |
package Main;
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.i... |
package com.tencent.mm.plugin.gallery.ui;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
class AlbumPreviewUI$8 implements AnimationListener {
final /* synthetic */ AlbumPreviewUI jCE;
private Runnable jCJ = new 1(this);
AlbumPreviewUI$8(AlbumPreviewUI... |
package com.action;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.List;
import java.util.Map;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
imp... |
package com.tencent.mm.plugin.sns.model;
import com.tencent.mm.sdk.platformtools.x;
class ar$8 implements Runnable {
final /* synthetic */ ar nrO;
ar$8(ar arVar) {
this.nrO = arVar;
}
public final void run() {
if (this.nrO.nrJ != null) {
x.i("MicroMsg.SnsVideoService", "d... |
package nl.rug.oop.flaps.aircraft_editor.controller.listeners.infopanel_listeners;
import lombok.extern.java.Log;
import nl.rug.oop.flaps.aircraft_editor.view.frame.EditorFrame;
import nl.rug.oop.flaps.simulation.model.aircraft.AircraftType;
import nl.rug.oop.flaps.simulation.model.trips.Trip;
import nl.rug.oop.flaps.... |
package com.xxx;
import java.io.IOException;
import java.util.List;
import org.apache.http.HttpHost;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.... |
package com.a1tSign.techBoom.data.dto.item;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@AllArgsConstructor
@Getter
@Setter
@EqualsAndHashCode
public class CategoryDTO {
String title;
}
|
package cn.ehanmy.hospital.di.component;
import dagger.Component;
import com.jess.arms.di.component.AppComponent;
import cn.ehanmy.hospital.di.module.MyStoreModule;
import com.jess.arms.di.scope.ActivityScope;
import cn.ehanmy.hospital.mvp.ui.activity.MyStoreActivity;
@ActivityScope
@Component(modules = MyStoreMo... |
package edu.stuy.starlorn.menu;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import edu.stuy.starlorn.graphics.DefaultHook;
import edu.stuy.starlorn.graphics.Screen;
public class Settings extends DefaultHook {
private ... |
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
public class AdminUI {
public JFrame frame;
private DataManager dm=new DataManager();
private LoginControl control= new LoginControl... |
package DataImport;
import Utility.DBUtil;
import Entity.Pair;
import com.sangupta.bloomfilter.impl.InMemoryBloomFilter;
import org.json.JSONObject;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.*;
impo... |
package com.spring.spring.locator;
public class Moderna implements IVaccination {
public Moderna() {
}
@Override
public void vaccinate(String name) {
System.out.println("Opt for:" + name);
}
}
|
package com.tradeshift.todo.entity;
public class Task {
//Task Id - PK
private Long taskId;
//To Do Task message
private String task;
//Complete flag to mark the task as complete.
private Long complete;
//user who created the task
private Long creatorId;
//user to whom the task is assigned.
private ... |
package jbyco.analysis.patterns.instructions;
/**
* The interface for abstraction of instructions.
*/
public interface AbstractInstruction {
}
|
package br.com.allerp.libsoft.service.user;
import java.util.List;
import org.apache.wicket.spring.injection.annot.SpringBean;
import org.springframework.stereotype.Service;
import com.googlecode.genericdao.search.Filter;
import com.googlecode.genericdao.search.Search;
import br.com.allerp.libsoft.dao.use... |
package org.wuqinghua.thread;
/**
* 需要使用完整的synchronized,保证业务的原子性
* Created by wuqinghua on 18/2/10.
*/
public class DirtyRead {
private String username = "admin";
private String password = "123";
public synchronized void setValue(String username, String password) {
this.username = username;
... |
package finggui;
import java.io.*;
public class FileOutput {
public static void makeBatch(String fingCommand) {
try {
String changeDirectoryToFingCommand = "cd c:\\Program Files (x86)\\overlook fing 2.1\\bin";
String fingCommandLine = fingCommand;
File file = new File("c:\\fingtest.bat");... |
package zystudio.cases.graphics.touch;
import zystudio.demo.R;
import zystudio.demo.views.TestTouchLayout;
import zystudio.demo.views.TestTouchView;
import android.app.Activity;
/**
* 现在已经不了解CaseForTouch1是作什么的了,但是CaseForTouch2是用来了解
* dispatchTouchEvent,onInterruptTouchEvent,onTouchEvent 在父ViewGroup与子view之间的关系的
* <... |
/*
* Copyright (C) 2011 Inderjeet Singh
*
* 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... |
/*
* VPC3PartyConnection.java
*
* Version 1.0
*
* ----------------- Disclaimer ------------------------------------------------
*
* Copyright � 2007 Dialect Payment Technologies - a Transaction Network
* Services company. All rights reserved.
*
* This program is provided by Dialect Payment Technologies on th... |
package com.vult.tf.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.Toast;
import com.google.ads.AdRequest;
import com.google.ads.AdView;
import com.vult.TF4.R;
import com.vult.tf.utils.Utils;
... |
package android.support.v4.view;
import android.view.WindowInsets;
final class aq extends ap {
final WindowInsets xp;
aq(WindowInsets windowInsets) {
this.xp = windowInsets;
}
public final int getSystemWindowInsetLeft() {
return this.xp.getSystemWindowInsetLeft();
}
public f... |
package jp.co.tau.web7.admin.supplier.entity;
import java.time.LocalDateTime;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import jp.co.tau.web7.admin.supplier.mappers.common.annotation.PrimaryKey;
im... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
package javaPractice1;
public class FindSumOfElements {
public static void main(String[] args) {
int[] num= {10,20,30,40};
int sum=0;
for(int i=0;i<num.length;i++) {
sum=sum+num[i];
}
System.out.println(sum);
}
}
|
/*
* Copyright (C) 2019-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
package com.hesoyam.pharmacy.appointment.events;
import com.hesoyam.pharmacy.util.notifications.EmailClient;
import com.hesoyam.pharmacy.util.notifications.EmailObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.ster... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.