text
stringlengths
10
2.72M
/** * A Trio is a special that consists of a Sandwich, * Salad, and Drink. Price is highest two items. * * @author Ben Godfrey * @version 12 APRIL 2018 */ public class Trio implements MenuItem { /** The Sandwich item. */ private Sandwich mSandwich; /** The Salad item. */ private Salad mSalad; ...
package com.choa.deal; import java.sql.Date; public class DealDTO { /*private int num;*/ private int numBook; private String product; private String idSeller; private String idBuyer; /*private Date dealDate;*/ private String status; private String name; private String tel; private String ...
package org.sodeja.model; import java.util.Collection; import java.util.Locale; public interface LocalizableResource { public String getId(); public void setId(String id); public String getLocalizedValue(Locale locale); public void setLocalizedValue(Locale locale, String str); public Collection<Loca...
package me.maxthetomas.plasm; import org.bukkit.plugin.Plugin; public abstract class ThisPlugin { public static Plugin p; public static void constructor(Plugin p) { ThisPlugin.p = p; } public static Plugin get() { return p; } }
import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Launch7 { public static void main(String[] args) { WebDriver driver=new ChromeDriver(); driver.get("https://www.magento.com"); WebEl...
package com.automationpractice.pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import org.openqa.selenium.support.ui.ExpectedConditions; import ...
package research; import java.util.ArrayList; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.geometry.Orientation; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ScrollBar; import javafx.scene.control.ScrollPa...
package com.example.notanotherweatherapp; import android.Manifest; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; im...
package specification; import designer.ui.editor.element.Element; import designer.ui.editor.element.EndElement; import java.util.HashMap; import java.util.Map; /** * Created by Tomas Hanus on 4/17/2015. */ public class EndTransition extends EndElement { private String exitStatus; private HashMap<Element,...
package eu.europeana.api2.v2.model.enums; import java.awt.image.BufferedImage; import java.io.IOException; import javax.imageio.ImageIO; import eu.europeana.corelib.definitions.model.ThumbSize; import eu.europeana.corelib.definitions.solr.DocType; import eu.europeana.corelib.utils.ImageUtils; public enum DefaultIma...
package uk.gov.companieshouse.api.testdata.service; import uk.gov.companieshouse.api.testdata.model.entity.CompanyProfile; public interface CompanyProfileService extends DataService<CompanyProfile> { /** * Checks whether a company with the given {@code companyNumber} is present * * @param company...
package bits; public class WordProduct { public int maxProduct(String[] words) { if (words == null || words.length == 0) { return 0; } int len = words.length; int[] wordValues = new int[words.length]; for (int i = 0; i < len; i++) { String s = words[i]; for (char c : s.toCharArray()) { wordVal...
package com.tencent.mm.plugin.chatroom.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import com.tencent.mm.bg.d; import com.tencent.mm.plugin.report.service.h; class ChatroomInfoUI$16 implements OnClickListener { final /* synthet...
package com.navnath.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.R...
//This class is responsible for creating the seeds used in the game import java.awt.Image; public class Particle extends movingObject { private Image picture; public Particle (int x, int y, int h, int v, Image pic) { super (x,y,h,v); setPicture(pic); } public void setPicture(Image picture) { this.p...
package com.sinata.rwxchina.component_basic.basic.basiclist.adapter; import android.content.Context; import android.graphics.Color; import android.support.annotation.LayoutRes; import android.support.annotation.Nullable; import android.text.TextUtils; import android.view.View; import android.widget.ImageView; import a...
package com.example.tarea1; public class Datos{ String direccion; String telefono; String horario; String website; String email; public Datos(String dir,String tel,String schedule, String web_site, String e_mail){ direccion = dir; telefono = tel; horario = schedule; website = web_site; email = e_mai...
import java.util.ArrayList; import java.util.Scanner; public class Customer implements IDisplay { // creating object of scanner class Scanner input = new Scanner(System.in); Scanner displayInput = new Scanner(System.in); // properties of Customer Class private int customerId; private String firstName; ...
/* * 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 modelo; import java.sql.ResultSet; import java.sql.SQLException; /** * * @author Damian */ public class PInt...
/* Java Power Info utility, (C)2021 IC Book Labs View Panel for single table */ package powerinfo; import javax.swing.*; import javax.swing.table.*; public class ViewerTable extends ViewPanel { private final JPanel p; // complex panel private final JScrollPane sp1; // scroll panels private...
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.app_models; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.s...
package problem_solve.bfs.baekjoon; import java.util.*; public class BaekJoon2667 { // 아파트 단지 번호 붙이기 private static String apart[]; private static boolean visited[][]; private static List<Integer> list; public static void main(String[] args){ Scanner scan = new Scanner(System.in); ...
/* * 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 UI.ChuongTrinh; import BUS.bus_ChuongTrinh; import DTO.dto_ChungChi; import DTO.dto_ChuongTrinh; import java.util.ArrayList; i...
// USING AN ARRAY class MaxPriorityQueue_array { int length; int[] arr; int middleIndex; int greatest_idx = -1; // STORE the index of the greatest of the 2 children public MaxPriorityQueue_array(int[] arr) { this.arr = arr; length = arr.length; middleIndex = (int) ((length - 1) / 2); } pu...
/* * 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...
import java.util.ArrayList; import java.util.Scanner; public class Traukinys extends TraukinioVeiksmai { private boolean traukinysVaz; private static int vietos = 3; ArrayList<Keleiviai> keleiviuSarasas = new ArrayList<Keleiviai>(); Scanner sc = new Scanner(System.in); public void menu() { System.out.pri...
package marchal.gabriel.tl; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scen...
package com.blackvelvet.cybos.bridge.cpdib.events; import com4j.*; /** * _IDibEvents Interface */ @IID("{B8944520-09C3-11D4-8232-00105A7C4F8C}") public abstract class _IDibEvents { // Methods: /** * <p> * method Received * </p> */ @DISPID(1) public void received() { throw new Unsupporte...
package listing; import utilities.ResourceManager; import org.apache.commons.io.FileUtils; import java.io.File; import java.io.IOException; import java.util.logging.Level; public class PythonListing extends AbstractListing { private static final String TESTS_FOLDER = "/testList/"; private static final Stri...
package com.shafear.notes.mvp.presenter; import android.content.Intent; import com.shafear.notes.global.G; import com.shafear.notes.mvp.model.MNotes; import com.shafear.notes.mvp.view.VAddNote; import com.shafear.notes.xnotes.XNote; /** * Created by shafe_000 on 2015-02-08. */ public class PAddNote { public vo...
package com.yicheng.dao.impl; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import org.springframework.stereotype.Repository; import com.yicheng.dao.ClothMaterialDao; import com.yicheng.pojo.ClothMaterial; @Repository public class ClothMaterialDaoImpl extends HibernateDaoBase impl...
package com.zpjr.cunguan.entity.module; /** * Description: 描述 * Autour: LF * Date: 2017/8/22 16:47 */ public class MyCardRechangeResponseModule extends ApiResponseModule{ private String data; public String getData() { return data; } public void setData(String da...
package exp_1; import java.util.Stack; import java.util.NoSuchElementException; public class Queue<E> extends Stack<E>{ private static final long serialVersionUID = 1L; static final int dump=1024; private Stack<E> stk; //构造函数 对泛型成员函数实例化 public Queue() { stk = new Stack<>(); } //获取队列大小...
package com.wooklab.designpattern.strategypattern.duck.type; public interface FlyBehavior { void fly(); }
package manage.studentgui; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Timestamp; impo...
package ru.hse.rpg; public interface LevelUpStrategy { /** * Returns character level computed based on provided experience points * @param experience * @return */ int level(int experience); }
import java.util.Scanner; class Main { public static void main(String[] args) { // put your code here Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int m = scanner.nextInt(); for (int i = n; i <= m; i++){ if(i % 3 == 0){ if ...
package org.alienideology.jcord.handle; import org.alienideology.jcord.Identity; /** * IDiscordObject - Generic Discord Objects * Such as Guild, User, Channel * * @author AlienIdeology */ public interface IDiscordObject { /** * Get the identity this object belongs to. * * @return The identity...
package com.frantzoe.phonebook.contacts; import com.fasterxml.jackson.annotation.JsonBackReference; import com.fasterxml.jackson.annotation.JsonIgnore; import com.frantzoe.phonebook.users.User; import java.io.Serializable; import java.util.HashSet; import java.util.Objects; import java.util.Set; import javax.persist...
package com.espendwise.manta.web.controllers; import com.espendwise.manta.model.view.ProfilePasswordMgrView; import com.espendwise.manta.service.DatabaseUpdateException; import com.espendwise.manta.service.ProfileService; import com.espendwise.manta.spi.SuccessMessage; import com.espendwise.manta.util.Utility; import ...
package com.e6soft.form.service; import java.io.File; import java.io.InputStream; import java.util.List; import org.springframework.web.multipart.MultipartFile; import com.e6soft.core.service.BaseService; import com.e6soft.form.model.FormFile; public interface FormFileService extends BaseService<FormFile,String> ...
import java.util.Random; import java.util.Arrays; public class MineSweeper{ // generate field // fill up with mines // write checkNeighbours method // fill up with numbers protected final int[][] DIRECTIONS = new int[][]{{-1, -1}, {-1, 0}, {-1, 1}, {0, -1}, {0, 1}, {1, -1}, {1, 0}, {1, 1}}; private char[][] f...
package second; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.Web...
import java.util.*; import java.io.*; import timing.*; public class Uno_02 extends Thread{ static int result = 0; static int tmp=0; static boolean calc_3= true; static boolean calc_5= true; public void run(){ //private static File res= new File("result_02.txt"); //private static BufferedWriter o...
/******************************************************************************* * Copyright (C) 2011 Peter Brewer. * * 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 3 of th...
package com.epam.bd; public class ImpressionWritable { }
package AllSortMethods; public class MergeSort { public static void main(String[] args) { int [] a = {2,4,8,6,5,90,34,21}; MergeSort(a, 0, a.length-1); System.out.println("结果为:"); for (int i = 0; i < a.length; i++) { System.out.println(a[i]); } } //递归版本的归并排序 public static void MergeSort(int [] A, in...
package ch03.ex03_10; public class LinkedList implements Cloneable { private Object object; LinkedList next; //コンストラクタ public LinkedList(Object object, LinkedList next) { this.object = object; this.next = next; } //コンストラクタ public LinkedList(Object object) { this(object, null); } ...
package com.yygame.common.utils; /** * @author yzy */ public abstract class PathUtil { /** * 合理化路径, 将 \\ 转成 / * * @param path 路径 * @return 返回替换 \\ // 的地址 */ public static String normalizePath(String path) { if (null != path) { return path.replaceAll("[/\\\\]+", "...
package com.mertbozkurt.readingisgood.dto.book; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.mertbozkurt.readingisgood.model.Order; import lombok.Getter; import lombok.Setter; import javax.persistence.Column; import javax.persistence.GeneratedVa...
package com.example.pratibha.whattocook; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity { private Button addRecipeButton; private Button searc...
public class Pera extends Produto { public Pera() { super(10.50, "PÍra"); } @Override public double getPreco() { return this.getPrecoUnitario()*this.getQtde(); } }
import javax.swing.*; import java.awt.*; import java.util.Arrays; class NumberInterface { //本次生成的题目数 private static int number = 0; //总共生成的题目数 private static int finalNumber = 0; //未因难度不同而添加运算符时生成的题目数组 private static String[] preEquations = {}; //因难度不同而添加运算符时生成的最终题目数组 private static Str...
package com.vwaber.udacity.popularmovies.data; import android.net.Uri; import android.provider.BaseColumns; class FavoritesContract { private FavoritesContract() {} static final String CONTENT_AUTHORITY = "com.vwaber.udacity.popularmovies"; private static final Uri BASE_CONTENT_URI = Uri.parse("content:...
package com.sdk4.boot.controller.file; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.sdk4.boot.bo.LoginUser; import com.sdk4.boot.common.BaseResponse; import com.sdk4.boot.domain.File; import com.sdk4.boot.exception.BaseError; import com.sdk4.boot.fileupload.*; import com.sd...
/** * LICENSE * * This source file is subject to the MIT license that is bundled * with this package in the file MIT.txt. * It is also available through the world-wide-web at this URL: * http://www.opensource.org/licenses/mit-license.html */ package org.code_factory.jpa.nestedset; import java.util.ArrayList; i...
package com.jim.multipos.utils.managers; import android.content.Context; /** * Created by Developer on 5/23/17. */ public class CurrencyManager { private static CurrencyManager instance; private Context context; public static CurrencyManager getInstance(Context context) { if (instance == null...
import java.awt.image.BufferedImage; /** * Class which provides image processing utility methods. * * @author Giovanbattista * */ public class ImageProcessing { /** * This method iterates through the entire image and applies the recoloring. * * @param originalImage original image. * @param resultImage...
package chatroom.client; import chatroom.model.message.*; import java.util.ArrayList; import java.util.concurrent.TimeUnit; /** * This Thread pulls a Message from the Queue provided by the ListeningThread and handles the Message accordingly by * its type. */ public class ClientMessageHandler extends Thread { ...
package org.springframework.sync.diffsync; import java.util.List; import lombok.Getter; import org.springframework.sync.Patch; import org.springframework.sync.operations.PatchOperation; @Getter public class VersionedPatch extends Patch { private final long serverVersion; private final long clientVersion; pu...
package com.ak.profile_management.concepts; public class Requirement { Skill skill; Location location; public Requirement() { } public Requirement(Skill skill, Location location) { super(); this.skill = skill; this.location = location; } public Skill getSkill() { return skill; } ...
package ProjectPersonal.Thethreecarddealer; import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.fxml.FXMLLoader; import javafx.geometry.Insets; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import...
package cn.smallclover.reflect.example_1; import java.lang.reflect.Method; import java.lang.reflect.Proxy; public class Main implements OnClickListener{ private Button button = new Button(); public Main() throws Exception { // init(); init2(); } public void click() { System.out.println("But...
package com.koshcheyev.quadrangle.observer; import com.koshcheyev.quadrangle.entity.Quadrangle; /** * Created by Andrew on 21.03.2017. */ public interface QuadrangleObserver { void updateData(Quadrangle o); }
package com.example.hyperlocal; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.AsyncConfigurer; import org.springframework.scheduling.annotation.EnableAsync; @SpringBootApplication @EnableAsync pu...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the ter...
package com.cs4125.bookingapp.ui.main; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.SavedStateHandle; import androidx.lifecycle.ViewModel; import com.cs4125.bookingapp.entities.User; import com.cs4125.bookingapp.repositories.BookingRepositoryImpl; import com...
package StringProcessing; /** * A method 'substring()' is used to extract sub-string from the string. * * @author Bohdan Skrypnyk */ public class StringPlace { public static void main(String args[]) { String str = "This is a test. This is, too"; String search = "is"; String substr = "w...
package com.eduardozanela.service; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.stream.Collectors; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Auto...
package br.com.fiap.model.entidades; import java.util.ArrayList; import java.util.List; public class GrupoInteresse { List<String> interesse = new ArrayList<>(); }
package com.hcl.dmu.demand.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "dmu_skill") public class SkillsEntity { @Id @Ge...
package com.linsr.mvpdemo; /** * Description * * @author linsenrong on 2018/3/12 10:59 */ public interface BaseView<T> { void setPresenter(T presenter); }
package com.ai.slp.order.dao.mapper.bo; import java.sql.Timestamp; public class OrdOdProd { private long prodDetalId; private String tenantId; private long orderId; private String prodType; private long supplierId; private String sellerId; private String prodId; private String p...
/* * Copyright ApeHat.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
package com.swatcat.testfirebasepushesapp; import android.content.Intent; import android.util.Log; import com.google.firebase.iid.FirebaseInstanceId; import com.google.firebase.iid.FirebaseInstanceIdService; /** * Created by max_ermakov on 2/17/17. */ public class FireIDService extends FirebaseInstanceIdService {...
package com.rlbas; public class Fibinoici { public static void main(String[] args) { int n1 = 0,n2 = 1, n3, count = 10, i; System.out.print(n1+ " " +n2); for (i=0; i<count ; ++i ) { n3 = n1+n2; System.out.print(" "+n3); n1 = n2; n2 = n3; } } }
package com.joyfulmath.calculator.houseloan; import java.util.ArrayList; import com.joyfulmath.calculator.R; import com.joyfulmath.calculator.Engine.CaculaterEngine.EngineResultParam; import com.joyfulmath.calculator.Engine.GeneralEngineType.MonthLoanResult; import android.content.Context; import android.util.Log; i...
package vetores.exemplos; import java.util.Scanner; public class Exemplo1{ public static void main (String[] args){ Scanner entrada = new Scanner(System.in); String[] arrayNome = new String[5]; int i = 0; while(i<5){ System.out.println("Digite um nome: "); arrayNome[i] = entrada.next(); i++; ...
package code; import java.util.ArrayList; //This method takes in the the current turn number (starts at zero and increments with each commit), //(curTurn), then does a println of the current player, by dividing the curTurn by the //number of players (passed in as playerNumber) and utilizing the remainder public cla...
package Interface; public class HistoriqueObjet { private String etat_objet; private String nom_objet; private String droit_acces; private String date_action; private String type_operation; private String special; public HistoriqueObjet(String etat_objet,String nom_objet,String droit_acce...
package com.jim.multipos.ui.reports.product_profit; import com.github.mjdev.libaums.fs.UsbFile; import com.jim.multipos.core.BaseTableReportPresenter; public interface ProductProfitPresenter extends BaseTableReportPresenter { void filterConfigsChanged(int configs); void exportExcel(String fileName, String pat...
package org.gnunet.integration.fs; import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.gnunet.integration.internal.util.Counter; import akka.actor.UntypedActor; import akka.event.Logging; import akka.event.LoggingAdapter; public class BoomFSWorker extends UntypedActor { priva...
package com.chuxin.family.utils; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.media.RingtoneManager; import android.net.Uri; import android.text.TextUtils; import com.chuxin.family.global.CxGlobalParams; import com.chuxin.fam...
package com.zhixinhuixue.querykylin.datasource; import com.zhixinhuixue.querykylin.entity.KylinProperties; import org.slf4j.LoggerFactory; import javax.sql.DataSource; import java.io.PrintWriter; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java....
package tug; import java.util.Random; public class TeamMember extends Thread { String Team; public TeamMember(String name, String team){ super(name); Team = team; } @Override public void run() { var r = new Random(); while (Game.flag) { Game.pullTheRo...
package cn.itsite.abase.mvvm.model.base; import cn.itsite.abase.mvvm.contract.base.BaseContract; /** * Author:leguang on 2016/10/9 0009 10:35 * Email:langmanleguang@qq.com * <p> * 所有Model类的基类,负责模型层的内容,包括数据获取和处理以及部分业务逻辑代码。 */ public abstract class BaseRepository implements BaseContract.Model { public final St...
package mark.practice.kafka.tut1; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.clients.consumer.ConsumerRecords; import org.apache.kafka.clients.consumer.KafkaConsumer; import org.apache.kafka.common.TopicPartition; import org...
//Mohammad Salman Mesam //Student ID: 260860161 public class Basket { private Reservation [] Reservations; public Basket() { this.Reservations=new Reservation[0]; } public Reservation[] getProducts() { Reservation [] shallowcopy = new Reservation [Reservations.length]; for(int i=0;i<Reservations...
package com.stark.design23.visitor; /** * Created by Stark on 2018/3/28. * 访问者 */ public class Visitor { //通过重载对让不同工人执行命令 public void run(WorkerA workerA) { workerA.runA(); } public void run(WorkerB workerB) { workerB.runB(); } }
package mfh.db; public interface ConnectionProvider { String databaseName="mdb"; String dbUserTable="user"; String driverName="com.mysql.jdbc.Driver"; String dbConnectionURL="jdbc:mysql://localhost/"; String dbUserName="root"; String dbUserPassword=""; }
package com.fleet.seata.user.service; import com.fleet.seata.user.entity.User; import org.springframework.stereotype.Component; /** * @author April Han */ @Component public interface UserService { User get(Integer id); boolean pay(Integer id, Integer money); }
/** * Copyright 2010 Tobias Sarnowski * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * 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 cantante; import grupo.Grupo; import javax.swing.JOptionPane; /** * * @author ESTUDIANTE */ public class Ejercicio { ...
package wildCards; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.EmptyStackException; public class WildCards { public static void main(String[] args) { Stack<Number> numberStack=new Stack<>(); Iterable<Integer>integers=new ArrayList<>(); ...
/** * The TestMovie class tests and utilizes the methods found within the Movie class! * * @author C. Thurston * @version 5/8/2014 */ import java.util.*; public class testMovie4 { public static void printMovies(ArrayList<Movie> list) { for(Movie current : list) { System.out.println(current.toString()); ...
package nc; import nc.control.*; import nc.model.*; import nc.view.*; /** * Created by samok on 17.05.2017. */ public class Main { public static void main(String[] args) { ModelOutput model = new ModelOutput(); Controller cont = new Controller(model); NetView view = new NetView(model); ...
package banking.ui; import framework.commands.Command; import framework.commands.CommandManager; import framework.commands.CreatePartyCommand; import framework.dto.PartyDTO; import framework.ui.AddCutomerDialog; import framework.util.GeneratorUtil; import framework.util.ValidatorUtil; import banking.services.PartyServ...
package com.finix.manager.impl; import java.util.HashMap; import java.util.Map; import com.finix.bean.DistrictAdministratorBean; import com.finix.bean.GovernmentUserBean; import com.finix.dao.IDistrictAdministratorDao; import com.finix.dao.impl.DistrictAdministratorDaoImpl; import com.finix.manager.IDistrictAdministr...
package com.pybeta.ui.utils; import android.view.View; import android.widget.ImageView; import android.widget.TextView; /** * Class that stores references to children of a view that get updated when the * item in the view changes */ public abstract class ItemView { /** * Create item view storing referen...
package exercise_chpater10; import java.util.Scanner; import exercise_chapter7.reverse; public class PalindromeIgnoreNonAlphanumeric { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter a string: "); String s = input.nextLine(); System...