text
stringlengths
10
2.72M
package com.example.repository; import com.example.model.Student; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; /** * Created by wangqi on 18/4/3. */ @Repository public interface UserRepository extends CrudRepository<Student,Long> { Student findByI...
package com.smartwerkz.bytecode.vm; import com.smartwerkz.bytecode.CodeDumper.Opcode; public interface ExecutionListener { void notifyFrameEntry(Frame frame); void notifyBeforeInterpret(Frame frame); void notifyBeforeOpcodeExecution(Frame frame, Opcode opCodeDesc); void notifyAfterInterpret(Frame frame, String o...
package com.angelboxes.springboot.springbootapi.jpa; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public class UserCommandLineRunner...
/* * 회원 탈퇴 */ package com.example.test; import java.io.File; import java.io.IOException; import java.lang.ref.WeakReference; import java.net.Socket; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android....
package polydungeons.loot; import net.fabricmc.fabric.api.loot.v1.FabricLootPoolBuilder; import net.fabricmc.fabric.api.loot.v1.event.LootTableLoadingCallback; import net.minecraft.item.Items; import net.minecraft.loot.BinomialLootTableRange; import net.minecraft.loot.entry.ItemEntry; import net.minecraft.loot.functio...
package spring.learning.es.helper; import java.io.File; import java.io.IOException; import java.nio.file.Files; import org.springframework.core.io.ClassPathResource; import lombok.extern.slf4j.Slf4j; @Slf4j public class Utils { public static String loadAsString(final String path) { try { final File resource ...
package com.example.asyncimageloader; public class Images { public final static String[] imageThumbUrls = new String[] { "http://i1.3conline.com/images/piclib/201008/09/batch/1/66486/1281325726830ll4gij1u7g_medium.jpg", "http://pic24.nipic.com/20120925/11030808_111735236178_2.jpg", "http://wenwen.soso....
class Solution { public String countAndSay(int n) { String s="1";//初始化 for(int i=1;i<n;i++) { s=change(s);//循环下去 } return s; } static String change(String s)//对于一个输入的序列得到下一个序列 { StringBuilder res=new StringBuilder(); int length=s.length(); ...
/* * Created by JFormDesigner on Wed Sep 15 12:07:57 CEST 2010 */ package org.pmedv.core.components; import java.awt.event.*; import java.util.ResourceBundle; import javax.swing.*; import com.jgoodies.forms.layout.*; import org.jdesktop.swingx.*; /** * @author Matthias Pueski */ public class Fil...
package com.lin.paper.pojo; import java.util.ArrayList; import java.util.Date; import java.util.List; public class PSubjectExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PSubjectExample() { oredCriteria = new ArrayList<Cri...
package com.iflytek.sas.voice.transfer.server.controller; /** * @author: JiangPing Li * @date: 2018-08-24 10:13 */ public class Test { public static void main(String[] args) { // int result = fact(10,1); // System.out.println(result); int a = 129; byte b = (byte)a; System.o...
package com.github.joswlv.parquet.transform; import com.github.joswlv.parquet.metadata.ParquetMetaInfo; public class TransformBuilder { public static Transform build(TransformType type, ParquetMetaInfo metaInfo) { Transform transform; switch (type) { case Value2Null: transform = new Value2Nul...
package statics; import game.Handler; import graphics.Animation; import graphics.Assets; import java.awt.*; public class SpeedBoost extends Boost { public static final int BOOST_DURATION = 15000; private Animation animation; public SpeedBoost(Handler pHandler, float x, float y, int pWidth, int pHeight)...
package campoMinado; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; class CampoTest { private Campo campo = new Campo(3,3); @Test void testeVizinhoRealDistancia1_1() { Campo vizinho = new Campo(3,2); boolean resultado = campo.adicionarVizinho(vizinho); assertTrue...
import java.util.Scanner; class removingWordFromString{ public static void main(String[] args) { Scanner inputScanner = new Scanner(System.in); System.out.print("Enter the sentence :"); String userInputSentence = inputScanner.nextLine(); System.out.print("Enter the word to be removed from the sentence :"); ...
package com.microsilver.mrcard.basicservice.model; import java.util.ArrayList; import java.util.List; public class FxSdSysLevelsettingExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public FxSdSysLevelsettingExample() { oredCriter...
package Exception.BlockException; public class BlockException extends Exception{ public BlockException (String message) { super(message); } }
package com.jayqqaa12.pop; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.GridView; import com.jayqqaa12.abase.core.APopup; import com.jayqqaa12.abase.kit.ManageKit; public class MenuPop extends APopup implements OnItemClickLi...
package com.xiongge; public class CxfConfig { private String url; private String cxfInterface; private String rule; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getCxfInterface() { return cxfInterface; } public void setCxfInterface(String...
package com.fleet.easyexcel.listener; import com.alibaba.excel.context.AnalysisContext; import com.alibaba.excel.event.AnalysisEventListener; import com.fleet.easyexcel.entity.User; import java.util.ArrayList; import java.util.List; /** * @author April Han */ public class UserListener extends AnalysisEventListener...
package com.manning.ssia.oauth.jpa; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.TestPropertySource; ...
abstract class Employee { String name; int age; String address; char gender; double salary; Employee(String name, int age, String address, char gender){ this.name = name; this.age = age; this.address = address; this.gender = gender; } void showDetails() { ...
package de.jmda.app.cgol.xy.fx.cdi.view.grid.shapetemplate; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import java.util.Optional; import org.junit.Test; import de.jmda.app.cgol.xy.fx.cdi.view.grid.shapetemplate.CircleTemplat...
package com.lingnet.vocs.action.statistics; import com.lingnet.common.action.BaseAction; import com.lingnet.util.JsonUtil; /** * 活性炭使用记录 * * @ClassName: ActicarbonUseAction * @Description: TODO * @author xues * @date 2017年6月13日 上午8:11:48 * */ public class ActicarbonUseAction extends BaseAction...
package paqueteEvaluacion; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class LavadoraTest { Lavadora lavadoraPrueba; Lavadora lavadoraPrueba2; @BeforeEach void setUp() throws Exception { lavadoraPrueba = new Lavadora(35, 10000...
package animatronics.utils.block.material; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; public class MaterialBase extends Material{ public MaterialBase(MapColor mapColor){ super(mapColor); } public Material setNoPushMobility(){ return super.setNoPush...
package br.edu.ifpb.splash2; import android.app.Activity; import android.app.AlarmManager; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.AlarmClock; import android.provider.MediaStore; import android.provider.Settings; import an...
package com.github.frostyaxe.dataprovider.application; import java.util.Arrays; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.server.ConfigurableWebServerFactory; import org.springframework.boot.web.server.Web...
package it.polimi.ingsw.GC_21.GAMECOMPONENTS; import it.polimi.ingsw.GC_21.EFFECT.Effect; import it.polimi.ingsw.GC_21.PLAYER.Player; public class OncePerTurnLeaderCard extends LeaderCard { private boolean playedThisTurn; private Effect immediateEffect; public OncePerTurnLeaderCard(String ID, String name, int n...
package pong.ldz.com.ping; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import org.json.JSONException; import...
package santa.gregfood.item; import cpw.mods.fml.common.registry.GameRegistry; import gregtech.api.interfaces.IItemContainer; import gregtech.api.util.GT_ModHandler; import gregtech.api.util.GT_OreDictUnificator; import gregtech.api.util.GT_Utility; import net.minecraft.block.Block; import net.minecraft.item.Item; imp...
package arun.problems.ds.string; /** * @author akumars * */ public abstract class StringPatternSearch { /** * @param stringToBeSearched * @param stringToSearch * @return */ public abstract boolean searchPattern(final String stringToBeSearched, final String stringToSearch); /** * @param ...
package ict.kosovo.growth.ora_7; public class DeckOfCards { public static void main(String[] args) { String [] rank = {"2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"}; String [] suit = {":clubs:", ":diamonds:", ":hearts:", ":spades:"}; String [] deck = new String[52]; ...
package tw.skyarrow.ehreader.app.search; import android.app.ActionBar; import android.app.SearchManager; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.provider.SearchRecentSuggestions; import android.suppor...
package com.hmammon.photointerface; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * 网络状态API * Created by Xcfh on 2014/10/23. */ public class NetStateApi { private static NetStateApi instance; private Context context; private NetStateApi(Co...
/* * Copyright by Deppon and the original author or authors. * * This document only allow internal use ,Any of your behaviors using the file * not internal will pay legal responsibility. * * You may learn more information about Deppon from * * * http://www.deppon.com * */ package com.goodhealth.framewo...
package com.xxx; import java.io.IOException; import org.apache.http.HttpHost; import org.elasticsearch.action.delete.DeleteRequest; import org.elasticsearch.action.delete.DeleteResponse; import org.elasticsearch.action.update.UpdateRequest; import org.elasticsearch.action.update.UpdateResponse; import org.elasticsear...
package threadPooledServer; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InterruptedIOException; import java.math.BigInteger; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; /** * Created by Lenovo T420 on 19-1-2018. */ pub...
package org.xgame.commons.thread; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.util.concurrent.atomic.AtomicLong; /** * @Name: AbstractThread.class * @Description: // * @Create: DerekWu on 2018/9/22 0:29 * @Version: V1.0 */ public abstract class AbstractThread<...
/** * Spring Data JPA repositories. */ package com.faizalsidek.inventory.repository;
package com.DoAn.HairStyle.respositiry; import com.DoAn.HairStyle.dto.Response; import com.DoAn.HairStyle.entity.OrderEntity; import com.DoAn.HairStyle.entity.UserEntity; import org.springframework.data.jpa.repository.JpaRepository; import javax.transaction.Transactional; import java.util.Optional; public interfac...
package cn.neepu.po; public class B2 { private Integer id; private String nd; private String sd; private String bzr; private String zzz; private String shnr; private String spr; private String wj; private String bz; public Integer getId() { return id; } ...
package com.example.demo; import java.io.Serializable; public class IntroToInterfaces implements DemoInterface, Serializable { /* Things not in Interface bodies in the interface methods constructors must not create an object Things in an interface methods are public an abs...
package com.smartup.manageorderapplication.services; import java.util.List; import com.smartup.manageorderapplication.dto.ClientDto; public interface ClientService { public List<ClientDto> getClients(); public ClientDto getClient(Long id); public ClientDto createClient(ClientDto inDto); }
package com.inventoryManagement.Proj.dao; import org.springframework.data.jpa.repository.JpaRepository; import com.inventoryManagement.Proj.model.Order; public interface OrderDao extends JpaRepository<Order, Integer> { }
package Dessert; import org.springframework.beans.factory.annotation.Qualifier; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Created by Jared Ramirez on 4/4/2015. * Byte-Pushers */ public clas...
package top.kylewang.bos.dao.take_delivery; import org.springframework.data.jpa.repository.JpaRepository; import top.kylewang.bos.domain.take_delivery.Order; /** * @author Kyle.Wang * 2018/1/7 0007 19:44 */ public interface OrderRepository extends JpaRepository<Order,Integer> { /** * 根据订单号查询订单 * @pa...
package quiz21; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class ArrayListQuiz03 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); List<User> list = new ArrayList<>(); a:while(true) { System.out.println("[1.등록 | 2.회원정보보기...
package ashman; import java.io.Serializable; public class LevelPreferences implements Serializable{ public int level, ashStartX, ashStartY, numOfGhosts, ghostSpeed; public LevelPreferences(int level){ ashStartX = 0; ashStartY = 0; this.level = level; if(level == 1){ ...
package com.tt.miniapp.webbridge.sync; import android.content.Context; import android.view.View; import android.widget.EditText; import com.tt.miniapp.AppbrandApplicationImpl; import com.tt.miniapp.WebViewManager; import com.tt.miniapp.component.nativeview.Input; import com.tt.miniapp.component.nativeview.Nati...
package com.ibeiliao.pay.web.open.notify; import com.ibeiliao.pay.api.ApiResultBase; import com.ibeiliao.pay.api.dto.request.PaymentNotifyRequest; import com.ibeiliao.pay.api.dto.response.PaymentNotifyResponse; import com.ibeiliao.pay.api.provider.PaymentNotifyProvider; import com.ibeiliao.pay.common.utils.IpAddressUt...
package seava.ad.business.ext.system.delegate; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collection; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import seava.j4e.api.Constants; import seava...
package com.exercise; public class Exer2_Main { public static void main(String[] args) { Class1 cls = null; try { cls.firstMethod(); } catch (Exception e) { System.out.println(e); } } }
package com.tianlang.service.handler; import com.tianlang.service.UsbSell; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; //代理类,实现代理类的功能(调用目标方法、功能增强) public class SellHandler implements InvocationHandler { public Object target = null; // 活动的,传入谁,就给谁创建代理 public SellHandler(O...
package com.ssm.wechatpro.dao; import java.util.List; import java.util.Map; import com.github.miemiedev.mybatis.paginator.domain.PageBounds; /** * 商品类型的dao操作 * @author administrator * */ public interface WechatProductTypeMapper { //获取所有商品类型(分页使用) public List<Map<String, Object>> getProductTypeList(Map<String, ...
package com.example.service; import com.example.entity.Category; import java.util.List; public interface ICategoryService { public List<Category> findAll(); public Category findCategoryById(Integer id); public Category saveCategory(Category category); public String deleteCategory(Integer id); public ...
package gameMechanics; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; public abstract class Building extends MapObject{ //A class for all buildings on the map which the player controls private utilities.DoubleLinkedLockedListNode<Building> node;//node which corresponds to the...
// $Id: fibo.java,v 1.2 2000/12/24 19:10:50 doug Exp $ // http://www.bagley.org/~doug/shootout/ package com.harris.mobihoc; public class fibo implements Runnable{ private boolean contin = false; private int N = 10; public fibo(boolean contin, int N){ this.contin = contin; this.N = N; } ...
package tr.edu.fsm.javaprogramingapp.quiz; /** * Created by erol on 12.04.2017. */ public class Quiz { String quiz; String soru; String cevap; String title; public Quiz(String title, String soru, String cevap) { this.soru = soru; this.cevap = cevap; this.title = title; ...
package controllers; import junit.framework.TestCase; import model.Field; import org.mockito.Mockito; import services.FieldService; import java.util.Collections; /** * @author D.Tolpekin */ public class ApplicationTest extends TestCase { public void testHaveFields() throws Exception { FieldService moc...
package Impl; import java.util.ArrayList; import java.util.List; import Dao.AdminDao; import entity.Admin; public class AdminDaoImpl implements AdminDao{ List<Admin> adminlist=new ArrayList<Admin>(); public void init(){ Admin adm1=new Admin(1,"admin","123456"); adminlist.add(adm1); } @Override public List<...
import controller.Manager; import models.*; import utils.*; import java.io.*; import java.util.*; public class app { private static int money; // Status de las rooms. private static Set<String> statusRoom = new HashSet<>(); // Create hash from Customers, Workers and Rooms. public static HashMap<...
package com.ulman.currencyrate.fragment; import android.graphics.Typeface; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import android.text.Editable; import android.text.TextWatcher; import android.view.LayoutInflater; import andr...
package com.stark.netty.section_2.charpter_2_1; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; /** * Created by Stark on 2018/1/13. * 同步阻塞式IO创建TimeServer */ public class TimeServer { public static void main(String[] args) { try (ServerSocket server = new ServerSocket...
package view; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.control.TableColumn; import javafx.scene.control.TableView; import javafx.scene.control.cell.PropertyValueFactory; import model.Poruka; public class TabelaPregledOdabranihPoruka extends TableV...
package com.facebook.react.bridge; import com.facebook.jni.HybridData; public class CxxModuleWrapperBase implements NativeModule { private HybridData mHybridData; protected CxxModuleWrapperBase(HybridData paramHybridData) { this.mHybridData = paramHybridData; } public boolean canOverrideE...
import java.awt.*; class WindowText extends Frame { TextField text1, text2; WindowText(String s) { super(s); setLayout(new FlowLayout()); text1 = new TextField("输入密码:", 10); text1.setEditable(false); text2 = new TextField(10); text2.setEchoChar('*'); add(text1); add(text2); setBounds(100, 100, 200...
// Exercícios no link: https://www.slideshare.net/loianeg/curso-java-bsico-exerccios-aulas-11-12-13 package exerciciosAula13; import java.util.Scanner; public class Exercicio_04_MediaFinal { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Informe as no...
package br.com.Falcao.PontoInteligente.api.dtos; import java.util.Optional; public class EmpresaDto { /* Não tem ação de validação pois essa classe estara ligada somente a ações do tipo Get */ private Optional<Long> id = Optional.empty(); private String nome; private String razaoSocial; private String cnpj; ...
package com.nsp.test.jedis; import java.util.Arrays; import java.util.List; import org.junit.Ignore; import org.junit.Test; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisShardInfo; import redis.clients.jedis.Pipeline; import redis.clients.jedis.ShardedJedis; import redis.clients.jedis.Transaction...
package co.nos.noswallet.network.nosModel; import com.google.gson.annotations.SerializedName; import java.io.Serializable; public class NeuroHistoryRequest implements Serializable { @SerializedName("action") public String action = "account_history"; @SerializedName("account") public String account;...
package pt.ist.sonet.exception; public abstract class SonetException extends RuntimeException { private static final long serialVersionUID = 1L; public SonetException() {} public abstract String toString(); }
package Project; //___________________________IMPORTACIONES______________________________________ import com.toedter.calendar.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.security.*; import java.sql.*; import java.text.*; import java.util.logging.*; import javax.swing.*; import javax.sw...
package com.laoji.business.controller; import com.github.pagehelper.PageInfo; import com.laoji.business.BusinessException; import com.laoji.business.BusinessStatus; import com.laoji.commons.dto.ResponseResult; import com.laoji.provider.api.PmsProductService; import com.laoji.provider.domain.PmsProduct; import org.apac...
/* * CorporateTaxServlet.java * This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin. * $Id$ * This is free and unencumbered software released into the public domain. * For more information, please refer to <http://unlicense.org> */ package ru.otus.soap.wservice.corptax; import ru.otus.soap.ws...
public class MuralMessageContent { private int senderID; private String senderUsername; private String message; public MuralMessageContent() { } public MuralMessageContent(int senderID, String senderUsername, String message) { this.senderID = senderID; this.senderUsername = s...
package test; import java.util.ArrayList; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import edu.uci.ics.sdcl.firefly.util.MethodMatcher; public class MethodMatcherTest { //Rejectable ArrayList<String> rejectList = new ArrayList<String>(); //Acceptable ArrayList<String> acceptList...
package cn.bs.zjzc.model.impl; import java.util.List; import cn.bs.zjzc.App; import cn.bs.zjzc.model.IOrderPayModel; import cn.bs.zjzc.model.callback.HttpTaskCallback; import cn.bs.zjzc.model.response.OrderAmountResponse; import cn.bs.zjzc.model.response.OrderCouponResponse; import cn.bs.zjzc.model.response.OrderPayR...
package com.study.jpa.service; import com.study.jpa.entity.Composite; import com.study.jpa.repository.CompositeRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * Created by francis on 2015. 12. 2.. */ @Service public class CompositeService...
package in.hocg.app.dao; import in.hocg.app.bean.WxUserBean; import in.hocg.defaults.base.dao.SoftDeletedDao; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Restrictions; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; ...
package esir.dom11.nsoc.datactrl.dao.model.sqlite; import esir.dom11.nsoc.datactrl.dao.connection.ConnectionDbSQLite; import esir.dom11.nsoc.datactrl.dao.dao.LogDAO; import esir.dom11.nsoc.model.Log; import esir.dom11.nsoc.model.LogLevel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.sql.Prepar...
package array; //给定正整数数组 A,A[i] 表示第 i 个观光景点的评分,并且两个景点 i 和 j 之间的距离为 j - i。 // // 一对景点(i < j)组成的观光组合的得分为(A[i] + A[j] + i - j):景点的评分之和减去它们两者之间的距离。 // // 返回一对观光景点能取得的最高分。 // // // // 示例: // // 输入:[8,1,5,2,6] //输出:11 //解释:i = 0, j = 2, A[i] + A[j] + i - j = 8 + 5 + 0 - 2 = 11 // // // // // 提示: // // // 2 <= A.length <= 50...
/** * */ package pt.mleiria.mlalgo.functions; import junit.framework.TestCase; /** * @author manuel * */ public class ExpFunctionTest extends TestCase { public void testExpFunction() { final Double[] z = new Double[]{1., 2., 3., 4., 5., 6., 7., 8., 9.}; final OneVarFunction<Double[], Double...
package com.example.base.mapper; import com.example.base.BaseDto; import com.example.base.BaseEntity; import org.mapstruct.TargetType; import org.springframework.stereotype.Component; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; @Component public class ReferenceMapper { @...
package com.tt.miniapp.manager; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.text.TextUtils; import com.storage.async.Action; import com.storage.async.Scheduler; import com.tt.miniapp.AppbrandApplicationImpl; import ...
package com.shubhendu.javaworld.datastructures.tries; public class TriePrefix { private TrieNode root; private static final int R = 26; private class TrieNode { TrieNode[] childrens; boolean isLastCharInWord; int count; public TrieNode() { this.childrens = new TrieNode[R]; } } private int getCharI...
package com.marshalchen.ultimaterecyclerview.demo.scrollableobservable; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGro...
package com.bingo.code.example.design.visitor.composite; /** * ����ṹ,ͨ���������Ԫ�ض�����б������÷������ܷ��ʵ����е�Ԫ�� */ public class ObjectStructure { /** * ��ʾ����ṹ��������һ����Ͻṹ */ private Component root = null; /** * �ṩ���ͻ��˲����ĸ߲�ӿ� * @param visitor �ͻ�����Ҫʹ�õķ����� */ public void handleRequest(V...
/** * */ package com.supconit.kqfx.web.xtgl.controllers; import hc.base.domains.AjaxMessage; import hc.base.domains.Pagination; import hc.mvc.annotations.FormBean; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.M...
import br.com.bytebank.banco.modelo.ContaCorrente; public class TestaBiblioteca { public static void main(String[] args) { ContaCorrente c = new ContaCorrente(111, 111); try { c.deposita(0); } catch (Exception e) { System.out.println(e.getMessage()); } finally { System.out.println("Valor saldo:...
package org.yggard.brokkgui.element; import org.yggard.brokkgui.behavior.GuiLinkBehavior; import org.yggard.brokkgui.control.GuiLabeled; import org.yggard.brokkgui.paint.Color; import org.yggard.brokkgui.skin.GuiLabeledSkinBase; import org.yggard.brokkgui.skin.GuiSkinBase; import fr.ourten.teabeans.value.BaseProperty...
package fiuba.algo3.modelo; public class Moneda { private String tMoneda; private int cotizacion; public Moneda(String moneda) { this.tMoneda = moneda; this.cotizacion = 15; } public int conValor() { if (tMoneda == "Dolar") return cotizacion; return 1; } public String nombreMoneda() { return tMon...
package integration; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; import com.mashape.unirest.http.exceptions.UnirestException; /* NOTE: IF YOU WANT TO TEST SOMETHING UP-TO-DATE, RUN THE SCRIPT `./update-pcf-with-latest-web-maths` BEFORE RUNNING THIS TEST */ public class Pc...
package com.minja.entities; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @Entity public class Student { @Id private long i...
package com.pangpang6.books.tree; public class BTreeDefine { public int value; public BTreeDefine left; public BTreeDefine right; public BTreeDefine parent; public BTreeDefine(int value) { this.value = value; } @Override public String toString() { return value + ""; } }
/* DialogManager * * singleton class */ package jp.satoshun.chreco; import android.app.Dialog; import android.content.Context; class DialogManager { private static WaitingDialog instance = null; private DialogManager() {} public static void create(Context context) { if (instance == null) {...
package servicos; import javax.swing.JOptionPane; import dados.Cidade; import dao.PrefeitoDAO; import visao.TelaCadastroCidade; public class Validacao { static final int MINIMO = 10; public static boolean minimoCadastro(Cidade eleicao) { if (!TelaCadastroCidade.umCadastro) { JOptionPane.showMessageDialog(nul...
package prefeitura.siab.persistencia; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.TypedQuery; import org.springframework.stereotype.Component; import prefeitura.siab.tabela.Raca; @Component public class RacaDao { private @Pe...
package com.example.admin3.mobtransyandex; /** * Created by Admin3 on 19.04.2017. */ public class DataItem { private String input = null; private String output = null; private String dirs = null; private long ID = 0; private int fav = 0; public DataItem(String input, String dirs) { ...
package com.example.iutassistant.NewActivities; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.app.Dialog; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.AutoCompleteTextView; import android.widge...