text
stringlengths
10
2.72M
package net.plazmix.core.api.common.command; /** * @author MasterCapeXD */ public interface ArgumentInfo extends CommandElement { CommandElement getParent(); }
package Controllers; import java.io.IOException; import java.io.PrintWriter; 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 javax.servlet.http....
package SUT.SE61.Team07; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.util.Collect...
package com.jachin.shopping.controller; import com.jachin.shopping.bean.CartUserBook; import com.jachin.shopping.bean.Msg; import com.jachin.shopping.po.Cart; import com.jachin.shopping.service.CartService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java...
package ctci.chap1; /* * Assumptions: * Empty and null strings are not palindromes * We are only dealing with ascii characters [0-127] */ public class PalindromePermutation{ public static void main(String args[]){ } public static boolean canBePalindrome(String str){ if(str == null || str.isEmpty()){ ret...
2017.02.23. 2. Java EA public osztály } metódus } bárhonna hivatkozható mező } ... } public NAH osztály } félnyilvános (package private) metódus } csak a definíciót tartalmazó csomagban mező } ... } package misc; public class Date { private int year; // ... package int set...
package com.cxjd.nvwabao.fragment; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; import android.util.Log; import andr...
package org.ix.grails.plugins.camel; /** * Created by IntelliJ IDEA. * User: navtach * Date: Mar 16, 2009 * Time: 3:56:43 PM * To change this template use File | Settings | File Templates. */ public interface GrailsRouteClassProperty { public static final String CONFIGURE = "configure"; public sta...
package com.tencent.mm.api; import android.content.Intent; import com.tencent.mm.kernel.c.a; import com.tencent.mm.protocal.c.biy; import com.tencent.mm.protocal.c.bja; import java.util.ArrayList; public interface h extends a { void a(Intent intent, biy biy, int i); void a(Intent intent, bja bja, int i); ...
package com.tencent.mm.g.a; public final class fj$a { public String fileName; }
package com.company.TemperatureTasks; public class TemperatureDisplay { public static void main(String[] args) { Temperature now1 = new Temperature(15, "20-01-2020", "20:01"); showDate(now1); showHour(now1); showTemperature(now1); Temperature now2 = new Temperature(22, "30...
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
package jp.personal.server.web.controller.api; import java.util.Optional; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.validation.annotation.Validated; import org.springframework.web....
package com.mikhniuk.chat; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.Socket; import java.util.Observable; /** * Created by Рома on 06.02.2016. */ public cl...
package com.tt.miniapp.notification; import android.app.Application; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Parcelable; import co...
public class CalculationErrorException extends Exception{ private static final String CALCULATION_ERROR = "Calculation Error."; public CalculationErrorException(){ super(CALCULATION_ERROR); } }
package com.products.domain.mappers; import com.products.data.entities.ProductEntity; import com.products.domain.dto.Product; import org.springframework.core.convert.converter.Converter; import java.util.ArrayList; import java.util.List; public class ProductsMapper implements Converter<List<ProductEntity>,List<Prod...
package ai.skymind.skil.examples.modelserver.inference; import ai.skymind.skil.examples.modelserver.inference.model.Knn; import ai.skymind.skil.examples.modelserver.inference.model.Inference; import ai.skymind.skil.examples.modelserver.inference.model.TransformedArray; import org.springframework.http.HttpEntity; impor...
package com.example.tagebuch.view.fragmentos; import android.graphics.Color; import android.os.Bundle; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import com.example....
package smart.lib.thymeleaf; import smart.cache.ExpressCache; import smart.cache.PaymentCache; import smart.cache.RegionCache; import smart.cache.SystemCache; import smart.lib.Region; import smart.lib.status.AccountStatus; import smart.lib.status.OrderGoodsStatus; import smart.lib.status.OrderStatus; import ...
/* We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wrong, I will tell you whether the number I picked is higher or lower than your guess. You call a pre-defined API int guess(int num), which returns three possible resul...
package com.devcamp.currencyconverter.repositories; import com.devcamp.currencyconverter.model.entities.Currency; import com.devcamp.currencyconverter.model.entities.RateLog; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.time.LocalDate; @R...
package com.rx.rxmvvmlib.ui.base; import android.app.Activity; import java.lang.ref.SoftReference; import java.util.Stack; import androidx.fragment.app.Fragment; /** * activity堆栈式管理 */ public class AppManager { private SoftReference<Stack<Activity>> activityStack = new SoftReference<>(new Stack<Activity>());...
package HuaWei; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import java.util.Stack; public class 扑克牌24点运算 { /** * @param args */ public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ String[] arr = new String[4]; ...
package banyuan.day02.practice04; import java.util.Scanner; /** * 2.输入三个班,每班10个学生的成绩,求每个班的总分和平均分 * * @author newpc */ public class P02 { public static void main(String[] args) { int sum = 0; int avg = 0; int[][] student = new int[3][10]; Scanner in = new Scanner(System.in); ...
package com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.common.shape; import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.thirdpart.achartengine.chart.AbstractChart; public class WPChartShape extends WPAutoShape { public AbstractChart getAChart() { return chart; } public void setAChart(Abstr...
package pe.egcc.pp03app; import pe.egcc.pp03app.view.PP03View; public class PP03App { public static void main(String[] args) { PP03View.main(args); } }
/** * */ package com.yk.shop.modules.message.service.impl; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.yk.shop.baseentity.Page; import com.yk.shop.common.service.CrudService; import com.yk.shop.modules.message.en...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.jakc.payment.os.controller; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.text....
package ru.khachalov.spring.iocHW; import org.springframework.context.support.ClassPathXmlApplicationContext; public class TestSpring { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( "applicationContext.xml" ...
package com.tencent.mm.plugin.honey_pay.ui; import android.view.View; import android.view.View.OnClickListener; class HoneyPayGiveCardUI$2 implements OnClickListener { final /* synthetic */ HoneyPayGiveCardUI kls; HoneyPayGiveCardUI$2(HoneyPayGiveCardUI honeyPayGiveCardUI) { this.kls = honeyPayGiveCa...
package java2.businesslogic.announcementremoval; import java2.businesslogic.ValidationError; import java2.businesslogic.announcementcreation.AnnouncementCreationResponse; import java2.businesslogic.announcementediting.AnnouncementEditingValidator; import java2.database.AnnouncementRepository; import java2.domain.Annou...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
package ucll.da.reportdomain.db; import ucll.da.reportdomain.domain.Report; import java.util.List; /** * Created by verme on 3/05/2017. */ public interface ReportDB { List<Report> getAllReports() throws DBException; Report getReportById(Long id) throws DBException; boolean addReport(R...
/* * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved. * * 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 ...
package Main; import java.io.IOException; import java.util.ArrayList; /** * * @author Gerador de Códigos */ public class PessoaControle { ArrayList<PessoaEntidade> lista = new ArrayList<>(); public void create(PessoaEntidade obj) { lista.add(obj); } public PessoaEntidade read(int id) { ...
package com.drzewo97.ballotbox.core.model.pollresult; import com.drzewo97.ballotbox.core.model.candidate.Candidate; import com.drzewo97.ballotbox.core.model.poll.Poll; import javax.persistence.*; import java.util.Set; @Entity public class PollResult { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) privat...
package homework4; import java.sql.SQLException; public class Main { public static void main(String[] args) { UserDao userDao = new UserDao(); CountryDao countryDao = new CountryDao(); try { System.out.println(userDao.getAll()); System.out.println(countryDao.getAll...
package com.comp486.knightsrush; import java.util.ArrayList; import com.comp486.knightsrush.GameAct.Quest.Reward; import com.comp486.knightsrush.Potion.Size; import com.comp486.knightsrush.dummy.ItemBonus; import com.comp486.knightsrush.dummy.Items.Item; import android.content.Intent; import android.content.res.Reso...
package org.science4you.forms; import org.apache.struts.action.ActionForm; import org.science4you.helpers.NodeType; public class SpecieForm extends ActionForm { private static final long serialVersionUID = 1L; private String id; private String text; private String type; private String sp...
package com.huangyifei.android.androidexample.mvplist.base.presenter; /** * Created by huangyifei on 16/10/25. */ public interface ILoadMorePresenter { int STATE_NORMAL = 0; int STATE_LOADING = 1; int STATE_FINISHED = 2; int STATE_ERROR = 3; void setLoadMoreState(int state); }
package com.itheima.service; import com.itheima.entity.Result; import com.itheima.pojo.Setmeal; import java.util.List; import java.util.Map; /** * 套餐服务接口 */ public interface SetmealService { /** * 新增套餐 * @param setmeal 套餐对象 * @param checkgroupIds 检查组ids */ void add(Setmeal setmeal, Inte...
package com.summer.activiti.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * @program: WebConfig * @description: * @author: summer ...
import cucumber.api.PendingException; import cucumber.api.java.en.And; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; /** * Created by NSAI on 19/05/2016. */ public class MyStepdefs { @Given("^user should be on Homepage$") public void userShouldBeOnHome...
package com.orca.web; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPara...
package cn.canlnac.onlinecourse.data.entity; import com.google.gson.annotations.SerializedName; /** * 注册实体类. */ public class RegisterEntity { @SerializedName("userID") private int userId; public int getUserId() { return userId; } public void setUserId(int userId) { this.userId...
package android.support.v7.view.menu; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.support.v7.a.a.f; import android.support.v7.a.a.h; import android.support.v7.a.a.k; import android.support.v7.view.menu.m.a; import android.util.Attribu...
package com.bridgeit.CommercialDataProcessing; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus.jackson.type.TypeReferen...
package com.widera.petclinic.config; import com.mysql.cj.jdbc.MysqlDataSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.dao.annotation.PersistenceExceptionTran...
package com.bingo.code.example.mediator; /** * 职员接口 */ public abstract class ZhiYuan { String name; private Mediator mediator; public ZhiYuan(Mediator mediator, String name) { this.mediator = mediator; this.name = name; } //被调停者调用的方法 public void called(String message, String...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
package AdventureGame; import java.util.Random; public class Monster { public static void reGenereate() { Random rand = new Random(); int x = rand.nextInt(100); int y = rand.nextInt(100); Monster m = new Monster(); } }
package by.yanpo; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class Delete exte...
package com.naver.mapper; import java.util.HashMap; import org.apache.ibatis.annotations.Param; public interface TestMapper { int confirmIdWord(@Param("usrid")long usr_id, @Param("bottype")int bottype, @Param("flag")int flag); HashMap sendProblem(@Param("usrid")long usrid, @Param("bottype")int bottype, @Para...
package cn.gzcc.feibao.service.impl; import cn.gzcc.feibao.entity.User; import cn.gzcc.feibao.repository.UserRepository; import cn.gzcc.feibao.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserServicelmpl implem...
package database; import java.util.List; import javax.sql.DataSource; public interface BountyDAO { public void setDataSource(DataSource ds); public void createBounty(Bounty bounty); public Bounty getBounty(int id); public List<Bounty> listBounties(); public void deleteBounty(int id); public void updat...
package view; /** * Created by mycomputer on 16.05.2015. */ public class Ffff { }
/* Copyright 2013-2014 eBay Software Foundation */ package com.ebay.lightning.core.async; /** * The {@code Callback} class defines the callback handler for {@link Reminder} thread. * * @author shashukla * @see Reminder */ public interface Callback<T> { /** * This method is called by the Reminder task whe...
package uo.sdi.business.impl.user; import javax.ejb.Remote; import uo.sdi.business.UserService; @Remote public interface EjbUserServiceRemote extends UserService{ }
package stepdefinations.Grant_Application; import cucumber.api.java.en.Then; public class Business_Impact_step { Business_Impact_step Business; @Then("^click the Business Impact$") public void click_the_Business_Impact() throws Throwable { // Write code here that turns the phrase above int...
package com.oxycab.provider.ui.activity.regsiter.details; import android.content.Intent; import android.support.v7.widget.Toolbar; import android.text.TextUtils; import android.view.View; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Calculator { private String numbers; private List<String> separators; private static final String EMPTY_STRING = ""; private static final String COMMA = ","; ...
package inter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; /* * Question * coorditates of all rectangles and their area * largest rectangle. rectangle is formed by 1's * */ public class IntuitAllRect { public static void main(String[] args) { char matrix[][] = { ...
import java.util.Arrays; /** * Created by red6 on 4/5/2017. */ public class Fourth { public static void main(String[] args) { // ---------- Arrays int [] data = new int[10]; String [] names = new String[5]; names[0] = "Oleg"; System.out.println(Arrays.toString(data)); ...
/* * Created on May 13, 2005 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ package com.ibm.ive.tools.japt; /** * Represents a message to be delivered to the user through a Japt logger. * * @author sfoley * */ pub...
package edu.bluejack19_2.chronotes.model; import android.util.Log; import java.util.ArrayList; import java.util.Comparator; import java.util.UUID; public class Task { private String TaskId; private ArrayList<String> UserId; private String Start; private String End; private String Title; priva...
package helloworld; /** * Created by kth919 on 2017-08-11. */ /* - 대소문자 판별 -> 서로 같은 자리수 만큼만 아스키코드에 할당되어있는 것을 이용 알파벳 26자. - n만큼 더한 아스키코드를 문자열로 반환 - 1. 소대문자 따로 2. 범위를 아무리 넘어가는 큰 n 이어도 반응해야함. */ public class Caesar { String caesar(String s, int n) { StringBuilder result = new StringBuilder(); ch...
package com.example.spring.data.jpa.soft.delete.sample.repository; import com.example.spring.data.jpa.soft.delete.sample.model.CustomerGroup; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; imp...
package cn.zhang.util; import java.io.IOException; import java.io.InputStream; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; public class SqlSessionUtil { p...
// // Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.3.0 // Vedere <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine. // Generat...
package com.tencent.mm.plugin.product.b; import com.tencent.mm.g.a.lz; import com.tencent.mm.sdk.b.b; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; public final class a extends c<lz> { public a() { this.sFo = lz.class.getName().hashCo...
public class Ex21 { public enum Money { ONE, TWO, THREE, FOUR, FIVE, SIX } public static void main(String[] args) { for (Money m : Money.values()) { System.out.println(m + " " + m.ordinal()); } } }
package com.pisto.frankensteinapp; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import io.realm.Realm; ...
/** * * ****************************************************************************** * MontiCAR Modeling Family, www.se-rwth.de * Copyright (c) 2017, Software Engineering Group at RWTH Aachen, * All rights reserved. * * This project is free software; you can redistribute it and/or * modify it under the ...
/* * Purpose:-Implementation of Bill Pugh Singleton Pattern * * @Author:-Arpana Kumari * Version:-1.0 * @Since:-7 May, 2018 */ package com.bridgeit.creationalDesignPatterens; public class BillPughSingleton { private BillPughSingleton() { } private static class SingletonHelper { private static final BillPu...
package testAutomation; import cucumber.api.java.en.And; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; import org.openqa.selenium.By; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; ...
package de.jmda9.core.mproc; import de.jmda9.core.annotation.MarkerAnnotationType; import org.junit.Test; import javax.annotation.processing.SupportedAnnotationTypes; import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax...
package Entities; import Entities.abstractPackage.Entity; import Entities.abstractPackage.Immune; import Entities.interfacePackage.Death; import Entities.interfacePackage.Excretion; import Entities.interfacePackage.Replication; import Entities.interfacePackage.Suicide; import Entities.interfacePackage.Absorption; /** ...
package src.Enums; import java.awt.image.BufferedImage; /** * Created with IntelliJ IDEA. * User: B. Seelbinder * UID: ga25wul * Date: 10.07.2014 * Time: 19:39 * * */ public enum EFieldType { INACCESSIBLE( EAccessible.BY_NONE ), DIRT( EAccessible.BY_WALK_FLY ), WATER( EAccessible.BY_SWIM_FLY ), ROCK( EAc...
package com.mideas.rpg.v2.game.classes; public class SelectScreenPlayer { private String name; private int level; private String classe; private String race; private int id; public SelectScreenPlayer(int id, String name, int level, String classe, String race) { this.name = name; this.id = id; this.level...
package com.lqs.hrm.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.lqs.hrm.entity.User; import com.lqs.hrm.entity.UserExample; import com.lqs.hrm.mapper.UserMapper; import com.lqs.hrm.service.User...
package codex.editor; import codex.command.CommandStatus; import codex.command.EditorCommand; import codex.component.button.DialogButton; import codex.component.button.PushButton; import codex.component.dialog.Dialog; import codex.component.render.GeneralRenderer; import codex.mask.IMask; import codex.model.ParamModel...
package by.ez.smm.service; import java.util.List; public interface AbstractServiceImpl<ENTITY, ID, FILTER> { public void save(ENTITY entity); public List<ENTITY> find(FILTER filter); public ENTITY getById(ID id); }
package com.example.riteshkumarsingh.mvpdaggerrxtemplate.data.source; /** * Created by riteshkumarsingh on 23/08/17. */ public interface DataSource { }
package pattern.command; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; public class CommandProxyHandler implements InvocationHandler { private Liqht light; public CommandProxyHandler(Liqht light) { this.light = light; } @Override public Object invoke(Objec...
package com.muse.build.utils; public interface NacosSend { boolean send(String... configRows); void send(); }
package kodlama.io.hrms.business.abstracts; import java.util.List; import kodlama.io.hrms.core.utilities.results.DataResult; import kodlama.io.hrms.core.utilities.results.Result; import kodlama.io.hrms.entities.concretes.School; public interface SchoolService { DataResult<List<School>> getAll(); // DataRe...
import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.Callable; public class BrowserInvocations { public static void main(String[] args) { for (int i = 1; i < 4; i++) { Chrome(); ...
package fr.tenebrae.MMOCore.Entities; import net.minecraft.server.v1_9_R1.Item; import org.bukkit.entity.Player; import org.bukkit.inventory.Inventory; import fr.tenebrae.MMOCore.Characters.Character; public interface IClickable { public void onInteract(Character clicker, Item nomItem, double distance); public...
package test.mypac; public class Zoo { //내부 클래스 type 을 리턴하는 메소드 public Monkey getMonkey() { return new Monkey(); } //내부 클래스 type 을 리턴하는 메소드 public Cat getCat() { return new Cat(); } //내부 클래스 public class Monkey{ public void say() { System.out.println("안녕! 나는 원숭이야~"); } } //내부 클래스 public class ...
import java.util.HashMap; import java.util.Scanner; public class Random35 { public static int findMinBadness(int[] num, String[] name) { int bad = 0; int n = num.length; HashMap<Integer, String> rank = new HashMap<Integer, String>(); for(int i=0;i<n;i++) { if(rank.get(num[i])==null) ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
package br.com.formacao.java.composto; /** * Classe que representa o teste de Saque com saldo negativo * * @author Guilherme Vilela * @version 0.1 */ public class TesteSacaNegativo { /** * * @param args */ public static void main(String[] args) { Conta conta = new Conta(); conta.de...
package test; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; import game.Dado; public class DadoTest { @Test public void test() { assertEquals(1, Dado.lanzarDado(1)); } }
package ec.edu.uce.modelo.entidades; import android.graphics.Bitmap; import android.media.Image; import java.io.Serializable; import java.util.Date; public class Vehiculo implements Serializable { private String placa; private String marca; private Date fechaFabricacion; private Double costo; pr...
package com.nextnovity; public class Pyramid { static char a[]={'a','b','i','b','a'}; public static void main(String[] args) { for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { if (i<=j) { System.out.print(" "); } } for (int j = 0; j < 5; j++) { if( j==0 || j==i){ ...
/* * 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 AAPA.Controllers; import AAPA.Entity.Alarm; import AAPA.Entity.Beneficiary; import AAPA.Entity.Childrens; import AAPA.Entity.C...
package com.duanxr.yith.midium; import com.duanxr.yith.define.treeNode.TreeNode; /** * @author 段然 2021/3/11 */ public class ShuDeZiJieGouLcof { /** * English description is not available for the problem. * * 输入两棵二叉树A和B,判断B是不是A的子结构。(约定空树不是任意一个树的子结构) * * B是A的子结构, 即 A中有出现和B相同的结构和节点值。 * * 例如: ...
// linked list with linear search // TODO: using binary tree package bankQueue; class Data { public String key; public double buyRate; public double sellRate; public double stock; public Data next; public Data(String key, double buyRate, double sellRate) { this.key = key; this.buyRate = buyRa...
package com.ehootu.sys.service; import com.ehootu.sys.entity.RedPacketSendLogEntity; import java.util.List; import java.util.Map; /** * 红包发送记录 * * @author zhangyong * @email zhangyong@ehootu.com * @date 2018-03-05 14:40:02 */ public interface RedPacketSendLogService { RedPacketSendLogEntity queryObject(Int...