text
stringlengths
10
2.72M
package exercises.chapter6.ex2; import exercises.chapter6.ex2.nested.Integer; //import java.lang.Integer; /** * @author Volodymyr Portianko * @date.created 14.03.2016 */ public class Exercise2 { public static void main(String[] args) { new Integer(); } }
package com.jpeng.demo.adapter; import android.content.Context; import android.provider.ContactsContract; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageVie...
package com.itheima.day_06.demo_01; import java.util.Comparator; import java.util.TreeSet; public class TreeSetDemo { public static void main(String[] args) { TreeSet<Student> set = new TreeSet<>(new Comparator<Student>() { @Override public int compare(Student s1, Student s2) { int ageDiff = s1.getAge()...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class BruteCollinearPoints { private List<LineSegment> lines; public BruteCollinearPoints(Point[] points) { check(points); Point[] ps = Arrays.copyOf(points, points.length); this.lines = new ArrayList<>...
package egovframework.com.job.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import egovframework.adm.cfg.mem.service.MemberSearchService; import egovframework.com.snd.controller.SendSmsMailManageController; import egov...
package com.shadow.testLog4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Created by qq65827 on 2015/1/3. */ public class test { protected static final Logger logger = LoggerFactory.getLogger(test.class); public static void main(String[] args) { logger.info("shadow"); } }
/* NodeInfo.java Purpose: Description: History: Mon Mar 26 17:33:45 2007, Created by tomyeh Copyright (C) 2007 Potix Corporation. All Rights Reserved. {{IS_RIGHT This program is distributed under LGPL Version 2.1 in the hope that it will be useful, but WITHOUT ANY WARRANTY. }}IS_RIGHT */ package org...
package at.ac.fhcampuswien.bouncingballs.controllers; import at.ac.fhcampuswien.bouncingballs.balls.InfectableBalls; import at.ac.fhcampuswien.bouncingballs.params.InfectableBallsParams; import at.ac.fhcampuswien.bouncingballs.params.SimulationValues; import javafx.event.ActionEvent; import javafx.fxml.FXML; import jav...
package Arrays; import java.util.Scanner; public class ArrayOperation { private ArrayOperation(){ } private static ArrayOperation ao; static{ ao = new ArrayOperation(); } public final static ArrayOperation getInstance(){ return ao; } int[] readElement() { Scanner in = new Scanner(System.in); S...
package com.pwq.mavenT; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; /** * Created by BF100500 on 2017/3/21. */ public class TestThreadFactory { public static void main(String[] args) { System.out.println(Thread.currentThread()...
package interview; import org.junit.After; import org.junit.Before; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.PageFactory; public class PageObject { ChromeDriver driver; @Before public void setUp() { System.setProperty("webdriver.chrome.driver", "./driver...
package us.team7pro.EventTicketsApp.Repositories; import org.springframework.data.jpa.repository.JpaRepository; import us.team7pro.EventTicketsApp.Domain.User; public interface UserRepository extends JpaRepository<User, Integer> { public User findById(long id); public User findByEmail(String email); }
package com.dassa.vo; import java.util.ArrayList; public class MapImageData { private ArrayList<String> imgList; private ArrayList<ShopItemVO> list; public MapImageData() { super(); // TODO Auto-generated constructor stub } public MapImageData(ArrayList<String> imgList, ArrayList<ShopItemVO> list) { super(...
package org.bsns.server.board.file.fileauth; import java.sql.SQLException; import java.util.List; import javax.annotation.Resource; import org.apache.log4j.Logger; import org.bsns.server.common.Condition; import org.bsns.server.domain.FileAuthVO; import org.springframework.stereotype.Service; @Service(v...
package L5_ExerciciosFuncoes.L5_Main; import java.util.Scanner; public class Exercicio_05 { public static void main(String[] args) { System.out.println("Digite o valor do produto"); Scanner myScanner = new Scanner(System.in); float valorProduto = myScanner.nextFloat(); System.out.p...
package cn.e3mall.redis; import org.junit.Test; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; public class Redis { @Test public void testRedis() throws Exception{ Jedis jedis=new Jedis("95.169.31.254",6379); jedis.set("aa", "1"); String string = jedis.get("aa"); System.out.printl...
package com.daikit.graphql.meta.custommethod; import java.util.List; /** * GraphQL dynamic method argument {@link List} of entities meta data * * @author Thibaut Caselli */ public class GQLMethodArgumentListEntityMetaData extends GQLAbstractMethodArgumentMetaData { private Class<?> foreignClass; // *-*-*-*-*-...
package kr.co.wisenut.search.model; import java.util.ArrayList; public class Category { String label; ArrayList<String> entries; public String getLabel() { return label; } public void setLabel(String label) { this.label = label; } public ArrayList<String> getEntries() { return entries; ...
package com.moped.snake.resources; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import com.moped.snake.R; import android.content.Context; class LocalFieldLoader implements FieldLoader { private final Context context; public LocalFieldLoader(final Context contex...
/* * 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 hoangduc.dtos; import java.io.Serializable; /** * * @author ADMIN */ public class ProductDTO implements Serializable{ ...
package net.tascalate.nio.channels; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.CompletionHandler; import java.nio.channels.FileLock; import java.nio.file.OpenOption; import java.nio.file.Path; import java.nio.file.attribute.FileAttribute; import java.util.Set; import java.util.con...
import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JButton; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.util.ArrayList; import net.miginfocom.swing.MigLayout; import ja...
package com.zc.pivas.configfee.service; import com.zc.pivas.docteradvice.entity.SynDoctorAdviceBean; import com.zc.pivas.configfee.bean.ConfigFeeChargeBean; import java.util.List; /** * ้…็ฝฎ่ดน่ฎก็ฎ—ๆœๅŠกๆŽฅๅฃ * * @author kunkka * @version 1.0 */ public interface ConfigFeeChargeService { /** * ้…็ฝฎ่ดน่ง„ๅˆ™่ฎก็ฎ—...
/** * */ package eu.fbk.dycapo.util; import java.text.NumberFormat; import java.text.ParseException; import java.util.Locale; import android.util.Log; import com.google.android.maps.GeoPoint; /** * @author riccardo * */ public abstract class GeoGuard { private static final String TAG = "GeoPointBuilder"; ...
package com.trump.auction.goods.dao; import com.trump.auction.goods.domain.MerchantInfo; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; /** * Created by ็ฝ—ๆ˜พ on 2017/12/21. */ @Repository public interface MerchantInfoDao { /** * ๆˆๅŠŸ็ป“ๆžœ่ฟ”ๅ›ž >...
package be.mxs.common.util.pdf.general.oc.examinations; import com.itextpdf.text.pdf.PdfPTable; import com.itextpdf.text.pdf.PdfPCell; import java.sql.SQLException; import java.util.Hashtable; import java.util.Vector; import java.util.Collections; import be.mxs.common.util.pdf.general.PDFGeneralBasic; import be.open...
package com.meehoo.biz.core.basic.annotation; import java.lang.annotation.*; /** * Created by zc on 2018/1/5 0005. */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Log { String value() default "ๆ—ฅๅฟ—่ฎฐๅฝ•ๅผ€ๅง‹"; int paramNum() default 0; // ๆ˜ฏๅฆๆœ‰ๅ‚ๆ•ฐ๏ผŒ0 ๆฒกๆœ‰ ๅคงไบŽ0็š„ๆ˜ฏๅ…ทไฝ“ๅ‚ๆ•ฐ็š„ๆŽ’ๅบ ...
package fr.ecole.eni.lokacar.dao; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.u...
package com.ar.ui; import com.ar.ui.header.HeaderPanel; import com.ar.ui.menu.Menu; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.*; public class HomeUI extends UI { public VerticalLayout mainContent; @Override protected void init(VaadinRequest request) { setTheme("...
package com.oreilly.mvc_example.controllers; import org.junit.jupiter.api.Test; import org.springframework.ui.Model; import org.springframework.validation.support.BindingAwareModelMap; import static org.junit.jupiter.api.Assertions.*; class HelloControllerTest { @Test void sayHello() { HelloControl...
package c.bwegener.bookstore; import android.content.ContentValues; import android.content.Context; import android.content.res.AssetManager; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import java.io.BufferedR...
package modnlp.tc.clasify; import modnlp.tc.parser.*; import modnlp.tc.dstruct.*; import modnlp.tc.evaluation.*; import modnlp.tc.util.*; import java.util.Set; import java.util.Enumeration; import java.util.Iterator; /** * Document-size normalised Naive Bayes classifier for documents * represented as Boolean vector...
package com.bicjo.sample.user; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.springframework.hateoas.EntityLinks; import org.springframework.hateoas.ExposesResourceFor; import org.springframework.hateoas.Resources; import org.springframework.http.HttpStatus; import org.sp...
package tests.android; import baseplatformANDROID.BaseTest; import baseplatform.DataClass; import objects.android.MainViewDR; import org.testng.annotations.*; import static java.lang.System.getProperty; import static org.testng.Assert.assertTrue; public class AddNameInputFieldTest extends BaseTest { private Mai...
package com.wrathOfLoD.Models.Map.AreaEffect; import com.wrathOfLoD.Models.Entity.Entity; import com.wrathOfLoD.VisitorInterfaces.AreaEffectVisitor; /** * Created by luluding on 4/16/16. */ public class InstantDeathAreaEffect extends AreaEffect{ public InstantDeathAreaEffect(String name){ super(name); ...
package com.cww.pojo; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Date; public class Note { private Integer id; private Date date; private Integer order; private Integer themes; private Integer comsumerId; private String desc; public Integer getComsumerId() { ...
package com.ar.ui.views.error; import com.vaadin.data.Item; import com.vaadin.data.fieldgroup.FieldGroup; import com.vaadin.data.util.ObjectProperty; import com.vaadin.data.util.PropertysetItem; import com.vaadin.data.validator.StringLengthValidator; import com.vaadin.server.DefaultErrorHandler; import com.vaadin.serv...
package application; import javafx.scene.input.KeyCode; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; public class Box { public Rectangle rect; public XShape xshape; public OShape oshape; public boolean hasShape; public boolean highlighted; public Box() { xshape = new XShape(); osha...
package com.zjf.myself.codebase.dialog; import android.text.Spanned; import android.view.Gravity; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.zjf.myself.codebase.R; import com.zjf.myself.codebase.util.CallBack; import com.zjf.myself.codebase.util.DesityUtil; pu...
package org.mytvstream.converter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public abstract class Converter extends Thread implements IConverter { private final Logger logger = LoggerFactory.getLogger(Converter.class); protected boolean closed = false; public void close() { if (isAlive(...
package com.lmz.javabase; public class InAndOut { }
package com.example.canyetismis.coursework2; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.Build; import android.os.IBinder; import android.support....
package com.mycompany.task_1; public class Child extends Parent { public static void child() { System.out.println("ะกั‚ะฐั‚ะธั‡ะตัะบะธะน ะฑะปะพะบ ะบะปะฐััะฐ Child"); } /*public void childA() { System.out.println("ะะต ัั‚ะฐั‚ะธั‡ะตัะบะธะน ะผะตั‚ะพะด ะบะปะฐััะฐ Child"); }*/ Child(String s...
package mulitThread.chapter02.t2_2_16.p1; public class ThreadA extends Thread { MyService service; public ThreadA(MyService service) { this.service = service; } public void run() { try { this.service.testMethod(); } catch (InterruptedException e) { // TODO Auto-generated catch block ...
package com.getkhaki.api.bff.persistence.repositories; import com.getkhaki.api.bff.persistence.models.OrganizationDao; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Optional; import java.util.UUID; @Repository p...
package com.getkhaki.api.bff.persistence; import com.getkhaki.api.bff.domain.models.OrganizationDm; import com.getkhaki.api.bff.persistence.models.DomainDao; import com.getkhaki.api.bff.persistence.models.EmailDao; import com.getkhaki.api.bff.persistence.models.OrganizationDao; import com.getkhaki.api.bff.persistence....
package com.yeebar.aer; import org.json.JSONException; import org.json.JSONObject; import java.util.UUID; /** * Created by JD on 2016/4/25. */ public class Resource { private String resourceName; private int resourceId; private int downloadMark = 0; private int addMask = 0; private String datab...
package com.example.covidtracer.Model; import java.util.ArrayList; import io.realm.RealmObject; import io.realm.annotations.PrimaryKey; /** * This class handles the object that will be stored in realm. * It contains all the necessary methods to get and set data for that realm object * Since objects are stored as ...
package com.breakpoint.constans; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import lombok.Data; import java.io.Serializable; /** * ่ฟ”ๅ›žๅฏน่ฑก * * @author :breakpoint/่ตต็ซ‹ๅˆš * @date : 2017/11/15 */ @Data @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) public class ResponseResult<D> { ...
package com.example.elearning.web; import com.example.elearning.entities.*; import com.example.elearning.entities.Module; import com.example.elearning.metier.IElearning; import com.example.elearning.repositories.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Pa...
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations; import org.giddap.dreamfactory.leetcode.onlinejudge.RotateImage; public class RotateImageImpl implements RotateImage { @Override public void rotate(int[][] matrix) { final int n = matrix.length; final int layers = n / 2; ...
package main.java.main; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.stage.Stage; import main.java.constant.Constants; import main.java.constant.NameConstants; import main.java.handler.LogHandler; import main.java.pane.MainMenu; import main.java.pane....
package com.ak.texasholdem.cards; public enum Suit { DIAMONDS("KรRร“", '\u2666'), CLUBS("TREFF", '\u2663'), HEARTS("Kร–R", '\u2665'), SPADES("PIKK", '\u2660'); private String hunName; private char symbol; private Suit(String hunName, char symbol) { this.hunName = hunName; this.symbol = symbol; } public...
package com.example.welcome.myregistration; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Bu...
package ejercicio.interfaces; public class CajeroProdubanco implements CajeroInterfaz{ @Override public void solicitarTarjeta(String numero) { // TODO Auto-generated method stub System.out.println("Bienvenido a Produbanco"); System.out.println("Por favor ingrese su tarjeta"); } @Override p...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package acme_banking_system.data_access; import acme_banking_system.exceptions.BusinessException; import acme_banking_system.exceptions.DataLayerException; import java.sql.Connection; import java.sql.PreparedStatement; ...
/* * 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 hw8; import java.io.File; import java.io.FileNotFoundException; import static java.lang.System.exit; import java.uti...
package com.skilldistillery.venue.client; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import com.skilldistillery.venue.entities.Venue; public class VenueClient { public static void main(String[] args) { Entit...
package com.icanit.app_v2.activity; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.FrameLayout; ...
package com.app.controller; import java.util.ArrayList; import java.util.List; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import or...
package com.zxt.compplatform.workflow.dao; import java.util.List; public interface PidaidWorkFlowDao { /** * * @param processDefId ่ฟ‡็จ‹ๅฎšไน‰id * @param activityDefId ๆดปๅŠจๅฎšไน‰id * @return List 1๏ผŒ่ฟ‡็จ‹name 2๏ผŒๆดปๅŠจname */ public List pidaidfindfn(int processDefId, int activityDefId); }
package com.hfjy.framework.init; import java.io.File; import com.hfjy.framework.cache.CacheAccess; import com.hfjy.framework.common.util.ConvertUtil; import com.hfjy.framework.common.util.StringUtils; import com.hfjy.framework.database.base.DBConnectionPool; import com.hfjy.framework.database.base.DBSessionFa...
package com.krish.iw; public class FizzBuzz { public static void main(String[] args) { printFizzBuzz(100); } private static void printFizzBuzz(int num) { for (int i = 1; i <= num; i++) { if (i == 0) System.out.print(i + " "); else if (i % (3 * 5) == ...
package main; public class DualRole { public interface IParent { public void feedBaby(); public void takeBabyForWalk(); } public interface IWorker { public void commuteToWork(); public void accomplishTaskAtWork(); } public class WorkingParent implements IParent, IWorker { private int energyLevel; ...
package view; import java.awt.EventQueue; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; import controller.ComparaImagensController; import model.Relatorio; import javax.s...
package Controladores; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ButtonGroup; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JRad...
package com.example.my_attend; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.widget.ListView; import com.example.Class.GetAllParams; import com.example.Class.Person; import com.example.firstprogram.R; import com.example.firstprogram.myAdapter.CardsAdapter; impor...
package com.bridgelabz.book; import java.util.ArrayList; import java.util.Date; public class MainBook { ArrayList<Book> books = new ArrayList<>(); public void loadBooks() { Book book1 = new Book("Rich Dad Poor Dad", "Shubham", 2000, new Date()); Book book2 = new Book("Java Basics", "Varad", 1000, new Date())...
package com.pyr0g3ist.knowmasu.entity.enums; public enum TestType { CHOICE, INPUT }
package com.lenovohit.hwe.treat.web.his; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.we...
/** * This code finds first circular tour that visits all petrol pumps * Reference: https://www.geeksforgeeks.org/find-a-tour-that-visits-all-stations/ * example: {4, 6}, {6, 5}, {7, 3} and {4, 5} * {4, 6}, {6, 3}, {7, 11} and {4, 5} */ class PetrolPump { int petrol; int distance; pu...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.explorer.client.thumbs; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt...
package com.ecjtu.hotel.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation...
package com.esum.comp.dbc.jdbc.common; import java.util.LinkedList; import java.util.List; /** * Holds information about a parsed SQL statement. */ public class ParsedSQL { private String actualSql; private String originalSql; private List<String> parameterNames = new LinkedList<String>(); private List<i...
package com.yg.dao; import java.util.List; public interface BaseMapper<T> { Integer save(T entity); Integer delete(Integer id); Integer update(T entity); T get(Integer id); List<T> findAll(); }
package com.proyecto.proyecto.rest; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.DeleteMa...
package co.udea.registro.api; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class RegistroApiApplication { public static void main(String[] args) { SpringApplication.run(RegistroApiApplication.class, a...
/** * HTTPๅŠŸ่ƒฝๆœๅŠก. */ package xyz.noark.network.http;
import java.util.Scanner; /** * Kaydee Gilson * Final Project * PigGame Class: this class contains the methods that actually play the game of pig. */ public class PigGame { //instance data private PigPlayer player1; private PigPlayer player2; public static final int GOAL = 100; public static boolean ...
package play.domain.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import lombok.Data; @Entity @Data public class CachePath { @Id @GeneratedValue private Integer id; private Integer type; private String key; private String value; ...
package queue; public class Operasi { private Node FRONT; private Node REAR; public void enqueue(int data) { Node newNode = new Node(data); if(isEmpty()) { FRONT = newNode; REAR = newNode; } else { REAR.setNext(newNode); REAR = newNode; } } public int dequeue() { Node temp = null; ...
package com.raydevelopers.sony.match.utils; import android.animation.ObjectAnimator; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.media.Image; import android.preference.PreferenceManager; import android.provider.ContactsContract; import android...
package com.designurway.idlidosa.ui.home_page.fragments; import android.Manifest; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.os.Bundle; impo...
/* * Copyright 2002-2018 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.gxc.stu.back.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class PageController { @RequestMapping("/index.html") public String backIndex(){ re...
package com.edasaki.rpg.mobs.spells; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import com.edasaki.rpg.SakiRPG; import com.edasaki.rpg.mobs.MobData; public class SlowMobSpell extends MobSpell { private int duration, tier; private long cooldown; private String msg = nul...
// This section is for use at end of the mouse handling practical sheet /** To hold an off-screen image area. For double buffered painting.*/ private Image buffer; /** For drawing onto buffer. */ private Graphics bufferG; /** Redraw the drawing panel using an off-screen image for double buf...
package AbstractNotes; //public class Accountant extends Employee { // public String work() { // return "Crunching numbers"; // } // // Employee bob = new Accountant(); //}
package org.vaadin.peter.contextmenu.client; import java.util.Set; import org.vaadin.peter.contextmenu.client.ContextMenuState.ContextMenuItemState; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.l...
package com.penglai.haima.dialog; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.penglai.haima.R; import com.penglai.haima.base.BaseActivity; import com.penglai.haima.bean.WithdrawDetailBean; /** * Created by on 2019/11/5. * ๆ–‡ไปถ่ฏดๆ˜Ž๏ผš */ public class WithdrawInf...
package com.zhaoyan.ladderball.dao.account; import com.zhaoyan.ladderball.domain.account.db.Administrator; public interface AdministratorDao { /** * ๆ นๆฎ่ดฆๅทๅ’Œๅฏ†็ ๆŸฅ่ฏข */ Administrator getAdministrator(String userName, String password); /** * ๆ นๆฎ่ดฆๅทๆŸฅ่ฏข */ Administrator getAdministrator(Stri...
package com.rk.jarjuggler.service; import java.util.Comparator; public class WorkItemComparator implements Comparator<WorkItem> { public int compare(WorkItem workItem1, WorkItem workItem2) { int level1 = workItem1.getParent().getLevel(); int level2 = workItem2.getParent().getLevel(); ...
package com.example.emergents; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import androi...
package trees; class SpiralNode { int data; SpiralNode left, right; public SpiralNode(int value) { data = value; left = right = null; } } public class SpiralTraverse { SpiralNode root; void printspiral(SpiralNode node) { int height = getHeight(node); int i; boolean ltr = false; for (i = 1; i <= ...
package mx.infornet.smartgym; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bund...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.lifespeedtechnologies.OpenTracker; import java.util.HashMap; import org.OpenNI.*; /** * * @author dean */ public class DepthDriver extends Driver { private OpenTrackerDemo parent; public DepthDriver...
import java.io.File; import com.opensymphony.xwork2.ActionSupport; public class FileUploadAction extends ActionSupport{ private File fileUpload; private String fileType; private String fileName; public File getFileUpload() { return fileUpload; } public void setFileUpload(File fileUpload) { this.fileUpload ...
package com.sh.offer.array; import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @Auther: bjshaohang * @Date: 2021/1/17 */ public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String input1 = scan.nextLine...
package com.test; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; import com.test.base.Solution; /** * BFS๏ผŒ้ๅކๆ‰€ๆœ‰็š„ๅฏ่ƒฝ * * ไฝฟ็”จ int[1<<N][N]๏ผŒๅš้‡ๅค่ฎก็ฎ—่ฟ‡ๆปคใ€้‡็‚นใ€‘ * * xไธบ๏ผšstate๏ผŒๅฝ“ๅ‰็ป่ฟ‡็š„็‚น็š„ไฝ็ฝฎ๏ผŒๅŠ๏ผŒไธชๆ•ฐ * yไธบ๏ผšhead๏ผŒๅฝ“ๅ‰็š„็‚น็š„ไฝ็ฝฎ * * @author YLine * * 2019ๅนด9ๆœˆ12ๆ—ฅ ไธ‹ๅˆ3:23:13 */ public class SolutionB implements ...
package com.jia.bigdata.mr.wordcount; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Reducer; import java.io.IOException; import java.util.stream.StreamSupport; /** * @author tanjia * @email 378097217@qq.com * @date 2019/7/15 2:09 */ public class Word...