text
stringlengths
10
2.72M
package me.draimgoose.draimmenu.ingameeditor; import me.draimgoose.draimmenu.DraimMenu; import me.draimgoose.draimmenu.api.GUI; import me.draimgoose.draimmenu.openguimanager.GUIOpenType; import me.draimgoose.draimmenu.openguimanager.GUIPosition; import org.bukkit.ChatColor; import org.bukkit.command.Command; import or...
package exercises; import java.util.Scanner; public class AgeProgram { public static void main(String[] args) { // TODO Auto-generated method stub // Kane G int age; // int choice; Scanner input = new Scanner(System.in); do{ System.out.println("Please enter your age >>>...
/* * 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 org.control_estacionamiento.frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.S...
package com.ljm.domain; /** * @Project MyWebProject * @ClassName ShanhyA * @Description TODO * @Author random * @Date Create in 2018/4/23 9:47 * @Version 1.0 **/ public class ShanhyA implements Shanhy { @Override public void display() { System.out.println("ShanhyA.display()"); } }
package feifan.plugin.test.navigator; import org.eclipse.core.resources.IFile; public class MethodsTreeData { private IFile container; private String methodName; private String value; public MethodsTreeData() { } public MethodsTreeData(IFile container, String method, String value) { this.container = cont...
package kata.supermarket; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.List; import java.util.stream.Collectors; public class BOGOFDiscount implements Discount { @Override public AppliedOffer applyDiscount(Offer offer, List<Item> items) { List<Item> offerItemList = ite...
package com.japaricraft.japaricraftmod.mob.ai; import com.japaricraft.japaricraftmod.gui.FriendMobNBTs; import com.japaricraft.japaricraftmod.gui.InventoryFriendEquipment; import com.japaricraft.japaricraftmod.gui.InventoryFriendMain; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.item.EntityIt...
package com.cyou.paycallback.commservice.order; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.apache.log4j.Logger; import com.cyou.paycallback.datesource.JdbcDao; public class OrderDao extends JdbcDao { private static final Logger...
package com.gaoshin.points.server.bean; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class ItemList { private List<Item> list = new ArrayList<Item>(); public List<Item> getList() { return list; } public void setList(List<Item> list...
package ejercicio01; import java.util.Scanner; /** * * @author Javier */ public class Ejercicio01 { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here int hoyDia, hoyMes, hoyAno; int nacimientoDia, ...
package web.controllers; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet("/computer") public class ComputerCont...
/** * Main class. */ public class Main { /** * Entry point. * @param args */ public static void main(String[] args) { Queens queens = new Queens(); queens.findAllSolutions(); } }
package org.itst.service; import org.itst.domain.EquipmentRecordHistory; public interface EquipmentRecordHistoryService { public EquipmentRecordHistory getHistoryById(String id); public String getHistoryJsonByPage(int pageSize,int pageNow); public String getHistoryJsonByKeyWord(String key ,int pageSize,int pageNo...
/* * 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...
/** * This class is generated by jOOQ */ package schema.tables; import java.sql.Timestamp; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Schema; import org.jooq.Table; import org.jooq....
package fr.skytasul.quests.gui.templates; import java.util.Map; import java.util.Map.Entry; import java.util.function.Consumer; import java.util.function.Function; import org.bukkit.DyeColor; import org.bukkit.entity.Player; import org.bukkit.event.inventory.ClickType; import org.bukkit.inventory.Inventory; import or...
package com.mobi3.goodnite; import android.app.DatePickerDialog; import android.app.Dialog; import android.app.TimePickerDialog; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.database.sqlite.SQLiteDatabase; import android.support.v4.app.DialogFragme...
package com.newbig.im.common.utils; import java.lang.management.ManagementFactory; import java.net.InetAddress; import java.net.NetworkInterface; import java.security.SecureRandom; import java.util.Enumeration; import java.util.UUID; /** * 该UUID算法是基于时间算法的一个变体,用于生成基于时间的有序自增的UUID。 * * @author Jayn Leaew */ public c...
package com.hristofor.mirchev.outfittery.challenge.stylists.service; import com.hristofor.mirchev.outfittery.challenge.stylists.exceptions.InvalidStylistStatusTransitionException; import com.hristofor.mirchev.outfittery.challenge.stylists.exceptions.StylistNotFoundException; import com.hristofor.mirchev.outfittery.cha...
/* * 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 test.java.pepoker.practicas.test; import org.junit.Test; import static org.junit.Assert.*; import pepoker.practicasJava.Larges...
package com.cursodeandroid.whatsapp.model; public class Contact { private String userIdent; private String name; private String email; public Contact() { } public String getUserIdent() { return userIdent; } public void setUserIdent(String userIdent) { this.userIde...
package name.arbitrary.y2014.r3; import com.sun.tools.javac.util.Pair; import name.arbitrary.CodeJamBase; import java.util.*; import static com.google.common.base.MoreObjects.firstNonNull; // 21:52 - 23:34. 102 minutes, not difficult, just fiddly to implement. public class B_LastHit extends CodeJamBase { B_Last...
package com.javaee.ebook1.controller; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import javax.annotation.Resource; import static org.junit.jupiter.api.Assertions.*; @SpringBootTest class FileControllerTest { @Resource FileController controller; @Tes...
/* * Shania Jo RunningRabbit and Amira Ramirez Gonzalez */ package clueGame; /* Card Represents a card in the deck, can be a person, weapon, or room */ public class Card { private String cardName; private CardType cardType; public Card(String cardName, CardType cardType) { this.cardName = cardName; this....
package com.wrathOfLoD.GameLaunching.Vendors; import com.wrathOfLoD.Models.Items.EquippableItems.Weapons.SmasherWeapons.TwoHandWeapon; import com.wrathOfLoD.Models.Items.EquippableItems.Weapons.SummonerWeapons.StaffWeapon; import com.wrathOfLoD.Models.LocationTracker.LocationTracker; import com.wrathOfLoD.Models.Locat...
package bn.commandline.distributions; import java.io.PrintStream; import java.util.HashMap; import java.util.regex.Pattern; import util.Parser.ParserException; import util.Parser.ParserFunction; import bn.BNException; import bn.commandline.distributions.CPDCreator.ICPDCreator; import bn.distributions.*; class FlatN...
package com.dabis.trimsalon.beans; public class Behandeling { private long id; private String omschrijving; private String ras; private double prijsExbtw; private double btw; /** * @return the id */ public long getId() { return id; } /** * @param id the id to set */ public void...
package core.event.handlers.equipment; import cards.equipments.Equipment.EquipmentType; import core.event.game.UnequipItemAbilityEvent; import core.event.handlers.AbstractEventHandler; import core.player.PlayerCompleteServer; import core.server.game.GameDriver; import core.server.game.controllers.mechanics.HealGameCon...
package com.pavlyshyn.menu; import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public enum MenuEnum { MY_FUNC_INTERFACE(()->{ System.out.println("MyFuncInterface"); }), COMMAND(()->{ System.out.println("Test Command"); }), STREAMS(()->{ ...
package br.agroamigos.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import javax.persistence.*; import javax.validation.constraints.NotEmpty; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; @Entity @Table(name = "INDICADORES", uniqueConstrain...
package com.sunjob.yudioj_springboot_framemark.controller; import com.sunjob.yudioj_springboot_framemark.service.AuthService; import com.sunjob.yudioj_springboot_framemark.vo.Auth; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframewor...
/* * Lesson 30 Coding Activity * Due to a problem with a scanner an array of words was created * with spaces in incorrect places. Write the code to process the * list of words and trim any spaces out of the words. * * So if the list contains: * {"every", " near ing ", " checking", "food ", "stand", "valu...
/* * 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 javaapplication9; /** * * @author HP */ public class JavaApplication9 { /** * @param args the command line argume...
/* * Copyright (C) 2017 GetMangos * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is...
package com.dexvis.simple.transform; import java.util.ArrayList; import java.util.List; import org.controlsfx.control.ListSelectionView; import org.simpleframework.xml.transform.Transform; import com.dexvis.simple.types.SimpleListSelectionView; import com.thoughtworks.xstream.XStream; import com.thoughtwor...
package com.lemonread.base.vp; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; /** * @desc 基于Rx的Presenter封装, 控制订阅的生命周期 并且实现BasePresenter * @author zhao * @time 2019/3/5 16:26 */ public class BaseRxPresenter<T extends BaseView> implements BasePresenter<T> { priva...
/* A colony of 800 poffins is increasing at the rate of 4% annually. When will their population first exceed 1200? */ public class LoopClass{ public static void main(String[] args){ int population = 800; int year = 0; while (population < 1200){ population = (int)(population * 1.04); year = ...
package Problem_17208; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static int[][][] dp = new int[301][301][301]; static int[] orderA, orderB; public static void main(String[] args) throws IOException { BufferedReader br = new Buffered...
package com.capgemini.fooddeliveryapplication.profile.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.w3c.dom.css.Counter; import com.capgemini.fooddeliveryapplication.entity.Cart; import com.capgemini.foodd...
package main; import javax.swing.JOptionPane; public class CmdHandler { public static void activateCommand(String cmd){ if(Main.debug){ System.out.println(cmd); } switch(cmd){ case "switchshowgrid": if(Main.showGrid){ Main.showGrid = false; }else{ Main.showGrid = true; } ; b...
package de.haw.wpcgar.structure.biomes; import de.haw.wpcgar.generator.WorldGenerator; import de.haw.wpcgar.structure.Biome; import de.haw.wpcgar.structure.params.HeightMap; import de.haw.wpcgar.structure.params.Temperature; import edu.hawhamburg.shared.math.Vector; public class Desert extends Biome { ...
import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.ResourceBundle; /* * * @author Matt Ping & M...
package com.yuneec.flight_settings; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import com.yuneec.flightmode15.R; import com.yuneec.flightmode15.Utilities; import com.yuneec.uartcontroller.UARTController; import com.yuneec.uartco...
/* * [344] Reverse String * * https://leetcode.com/problems/reverse-string/description/ * * algorithms * Easy (61.06%) * Total Accepted: 278K * Total Submissions: 455.3K * Testcase Example: '"hello"' * * Write a function that takes a string as input and returns the string * reversed. * * Example 1: ...
package matrixstudio.ui.diagram; import fr.minibilles.basics.geometry.Geometry; import fr.minibilles.basics.ui.diagram.DiagramContext; import fr.minibilles.basics.ui.diagram.Element; import fr.minibilles.basics.ui.diagram.gc.GC; import fr.minibilles.basics.ui.diagram.gc.GcUtils; import org.eclipse.swt.SWT; import org....
// File: ex3.java (Module 9b) // // Author: Rahul Simha // Created: October 14, 2000 // // Template for Ex. 9.3 (Draw a chessboard that re-sizes). import java.awt.*; import javax.swing.*; // Create a JPanel subclass to override paintComponent() class NewPanel extends JPanel { public NewPanel () { this.setBa...
package org.halkneistiyor.social.connect; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Set; import java.util.SortedMap; import java.util.TreeMap; import org.halkneistiyor.datamodel.SocialConnection; import org.halkneistiyor.datamodel.S...
package com.android.yueerfm; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import com.android.yueerfm.control.GetWBLoginDataThread; import com.android.yueerfm.util.LogUtil; import com.weibo.sdk.android.Oauth2AccessToken; import com.weibo.sdk.android.Wei...
package com.github.dockerjava.core.command; import com.github.dockerjava.api.command.BaseExecCmd; import com.github.dockerjava.api.command.DockerCmd; import com.github.dockerjava.api.command.DockerCmdExec; import com.github.dockerjava.api.model.ExecConfig; public abstract class BaseExecCmdImpl<CMD_T extends DockerCmd...
package com.example.geoffrey.receivesms; import android.app.Activity; import android.content.ContentValues; import android.content.Intent; import android.database.Cursor; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import android.telephony.SmsMessage; import android.util.Log; impor...
package com.metoo.foundation.dao; import org.springframework.stereotype.Repository; import com.metoo.core.base.GenericDAO; import com.metoo.foundation.domain.GoodsVoucherInfo; import com.metoo.foundation.domain.GoodsVoucherLog; @Repository("goodsVoucherLogDAO") public class GoodsVoucherLogDAO extends Gener...
package com.example.hwRoomDB.adapter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.example.hwRoomDB.R; public class RVAdapterFrag extends R...
package sk.somvprahe; import sk.somvprahe.client.SvpClient; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.ProgressDialog; import android.app.TabActivity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences...
package br.edu.ifg.sistemacomercial.dao; import br.edu.ifg.sistemacomercial.entity.Categoria; import br.edu.ifg.sistemacomercial.util.FabricadeConexao; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.faces.bean....
package me.kpali.wolfflow.core.model; import java.io.Serializable; import java.util.List; /** * 任务流 * * @author kpali */ public class TaskFlow implements Serializable { private static final long serialVersionUID = 5077291498959687573L; private Long id; private List<Task> taskList; ...
package problemes2; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; public class Exercici_3_2 { static BufferedReader buffer=new BufferedReader(new InputStreamReader(System.in)); public static void main (String ...
package com.class3601.social.actions; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.interceptor.ServletRequestAware; import com.class3601.social.common.MessageStore; import com.class3601.social.models.User; import com.class3601.social.persistence.HibernateUserManager; import com.opensymphony....
package com.example.administrator.panda_channel_app.MVP_Framework.base; import android.annotation.TargetApi; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v4.app.FragmentManager; import android.support.v4.app.Frag...
package com.mvc4.email; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.core.io.FileSystemResource; import org.springfr...
package de.cuuky.varo.command.essentials; import org.bukkit.Bukkit; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import de.cuuky.varo.Main; import de.cuuky.varo.utils.Utils; public class ReplyCommand...
/* * 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.palak.devicemanager; import android.annotation.TargetApi; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Build; import android.provider.Telephony; import android.telephony.SmsMessage; import android.widget.Toast; import com.palak....
package com.git.cloud.resmgt.common.service; import com.git.cloud.common.exception.RollbackableBizException; import com.git.cloud.common.service.IService; import com.git.cloud.common.support.Pagination; import com.git.cloud.common.support.PaginationParam; import com.git.cloud.resmgt.common.model.po.CmRoutePo; ...
package cn.ztuo.bitrade.job; import cn.ztuo.bitrade.constant.SysConstant; import cn.ztuo.bitrade.entity.*; import cn.ztuo.bitrade.service.*; import cn.ztuo.bitrade.util.AESUtil; import cn.ztuo.bitrade.util.HttpUtils; import cn.ztuo.bitrade.util.MessageResult; import com.alibaba.fastjson.JSONObject; import com.mashape....
package stream; /** * @author songkaiwen * @date 2020/12/26 2:16 下午 */ import lambda.Employee; import org.junit.Test; import java.util.*; import java.util.stream.Collectors; /** * StreamAPI的终止操作 */ public class TestStreamAPI3 { /** * 查找与匹配: * alLMatch-检查是否匹配所有元素c * anyMatch-检查是否至少匹配一个元素 ...
package ioreadwritebytes; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; public class TemperaturesReader { public Temperatures readTemperatures(String path) { if (path == null || path.isBlank()) { throw new IllegalArgumentException("Path can't be emtpy"); ...
package com.ngocdt.tttn.service; import com.ngocdt.tttn.dto.CharacteristicDTO; public interface CharacteristicService extends GenericService<CharacteristicDTO ,Integer> { }
package com.pettypal.custom; import javax.persistence.AttributeConverter; import org.springframework.core.convert.converter.Converter; import com.pettypal.domain.Phone; public class PhoneConverter implements AttributeConverter<Phone, String>{ public String convertToDatabaseColumn(Phone phone) { return phone.ge...
/* * 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.codigo.smartstore.core.money; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; import java.util.function.LongUnaryOperator; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import com.codi...
package creational.abstractfactory.bookcode.products.buttons; // 抽象 Button 产品 public interface Button { void paint(); }
package cl.acidlabs.desafio.controllers; import cl.acidlabs.desafio.model.services.UserService; import cl.acidlabs.desafio.model.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpHeaders; import org.spring...
package com.messages.entity; /** * @author coolfors * @date 2018年10月23日 上午10:23:43 * @description: * */ public class message { private int userId; private String messageId; private String status; private String content; private String fromId; private String getId; public int getUserId() { ...
package ar.edu.utn.frba.dds.tpa; public class CGP implements tipoPuntoInteres{ }
package com.galid.commerce.domains.catalog.domain.item; import org.springframework.data.jpa.repository.JpaRepository; public interface ItemRepository extends JpaRepository<ItemEntity, Long> { }
package com.tonyzanyar.knowledge.data; import android.content.Context; import android.database.ContentObserver; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import android.widget.TextView; import stati...
package dk.webbies.tscreate.analysis.methods.contextSensitive.pureSubsets; import dk.webbies.tscreate.Options; import dk.webbies.tscreate.analysis.HeapValueFactory; import dk.webbies.tscreate.analysis.methods.contextSensitive.mixed.MixedContextSensitiveTypeAnalysis; import dk.webbies.tscreate.analysis.unionFind.Functi...
package com.legaoyi.protocol.down.messagebody; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.fasterxml.jackson.annotation.JsonProperty; import com.legaoyi.protocol.message.MessageBody; /** * 存储多媒体数据上传 * * @author <a href="mailto:shengbo.gao@gmail....
package com.xeland.project; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; public final class ClassSR implements ClassNre { public ClassSR(final ClassU domainObject, final ClassST type) { } public ClassSR(final ClassObi id, final ClassST type) { ...
package ui; import model.PrimaryProteinAnalyzer; import model.PrimaryProteinSequence; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import persistence.Json...
package alexanderraymartin.main.test; import alexanderraymartin.main.MapEditor; import org.junit.Test; public class MapEditorTest { @Test public void test() { MapEditor.setEditMode(true); assert (MapEditor.inEditMode()); } }
package com.hznu.fa2login.config; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.boot.web.client.RestTemplateBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.client.RestTemplate; /**...
package ru.itmo.ctlab.sgmwcs; import ilog.concert.IloException; import ilog.cplex.IloCplex; import org.junit.Assert; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; import ru.itmo.ctlab.sgmwcs.graph.*; import ru.itmo.ctlab.sgmwcs.solver.ComponentSolver; import ru.itmo.ct...
package com.crms.bo; import java.util.List; import java.util.Map; import com.crms.model.Medicine; /** * * @author dward * */ public interface MedicineBo { boolean save(Medicine entity); boolean update(Medicine entity); boolean delete(int criteria); Medicine findById(int criteria); Map<Ob...
package com.fanfte.algorithm.dp; import java.util.Arrays; public class Fib { private static int[] mem ; public static int fib(int n) { if(n ==0 ) { return 0; } if(n == 1) { return 1; } if(mem[n] == -1) { mem[n] = fib(n - 1) + fib(n ...
/* generic EPD Controller for Android devices, * based on https://github.com/unwmun/refreshU */ package org.koreader.launcher.device.rockchip; import org.koreader.launcher.device.EPDController; public class RK3026EPDController extends RK30xxEPDController implements EPDController { @Override public void setE...
package main; import classes.DigitalWatch; import classes.TimexDigitalWatch; import classes.Watch; /** * @author dylan * */ public class DecoratorPatternMain { /** * structural pattern this pattern adds functionality to a simple * implementer(Watch) by using an abstract class(DigitalWatch) which ...
package com.example.weatherapp.presentation.adapters; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.example....
package Testing; public class IllegalBoundedBufferException extends Exception { /** * */ private static final long serialVersionUID = 5098379034582220672L; public IllegalBoundedBufferException(String message) { super(message); } }
package aaa.assignment2.tests; import aaa.*; import aaa.assignment2.algorithms.Sarsa; public class Test3 { public static final int TEST_NUM_RUNS = 1000; public static void main(String[] args) { Agent prey = new PreySimple(); State env = new StateReduced(0, 0, 5, 5); for (float ALPHA = 0.1f; ALPHA <= 1....
package JavaPackage; public class FinalKeyword { public static void main(String[] args) { //final int i = 10; //this cannot be reassigned final int days = 7; //days = 10; //This is will NOT be allowed int totalsalary=days* 50; System.out.println(totalsalary); float f=9/2; System.out.prin...
/* * 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.primaseller.leanstartupbar; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.support.v7.widget.Toolbar; import android.view.MenuItem; import android.widget.TextView; import com.primaseller.leanstartupbar.utils.Utils; /** * Created by Aneesh D N on 7/27...
package com.github.andylke.demo.customer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.batch.core.annotation.OnSkipInProcess; public class CustomerDetailsImportListener { private static final Logger LOGGER = LoggerFactory.getLogger(CustomerDetailsImportListener.class); @On...
package com.legaoyi.protocol.messagebody.encoder; import org.springframework.stereotype.Component; import com.legaoyi.protocol.down.messagebody.JTT1078_9101_MessageBody; import com.legaoyi.protocol.exception.IllegalMessageException; import com.legaoyi.protocol.message.MessageBody; import com.legaoyi.protocol.message....
package ggboy.study.java.tree; public class Main { public static void main(String[] args) { SelfMap<String, String> map = new SelfMap<String, String>(); map.put("5", "t"); map.put("3", "e"); map.put("8", "i"); map.put("1", "q"); map.put("2", "w"); map.put("4"...
package com.jgermaine.fyp.android_client.request; import android.app.Activity; import android.app.ProgressDialog; import android.os.AsyncTask; import android.util.Log; import com.fasterxml.jackson.databind.ObjectMapper; import com.jgermaine.fyp.android_client.model.Message; import com.jgermaine.fyp.android_client.mod...
package Arrays; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; public class MissingAndRepeated { private static BigInteger getAminusB (List<Integer> A) { BigInteger aMinusB=BigInteger.valueOf(0); for(int i=1;i<=A.s...
package util; import jade.content.lang.sl.SLCodec; import jade.content.onto.basic.Action; import jade.core.AID; import jade.core.Agent; import jade.core.behaviours.CyclicBehaviour; import jade.core.behaviours.OneShotBehaviour; import jade.domain.FIPANames; import jade.domain.JADEAgentManagement.JADEManagementOntology;...
package com.example.alu.runnnigbox; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; /** * Created by yang on 2017/10/5. */ public class Box { private int x; private int y; //坐标 private static int WIDTH = 100; ...