text
stringlengths
10
2.72M
package jsportsreg.entity; import static org.junit.Assert.*; import java.util.ArrayList; import org.junit.Test; public class SportTest { @Test public void test() { Sport instance0 = new Sport(); assertEquals("Sport Test 1: Sport ID", -1, instance0.getSportID() ); assertEquals("Sport Test 1: Sport N...
package com.rc.portal.service; import java.sql.SQLException; import java.util.List; import com.rc.portal.vo.TMemberHobby; import com.rc.portal.vo.TMemberHobbyExample; public interface TMemberHobbyManager { int countByExample(TMemberHobbyExample example) throws SQLException; int deleteByExample(TMemberHobb...
package com.example.media; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; imp...
package controlFlow; /** * @author malf * @description 水仙花数 * 水仙花数定义: * 1. 一定是3位数 * 2. 每一位的立方,加起来恰好是这个数本身,比如153=1*1*1+5*5*5+3*3*3 * 寻找所有的水仙花数 * @project how2jStudy * @since 2020/9/14 */ public class narcissisticNumber { public static void main(String[] args) { for (int i = 100; i < 1000; i++) { int baiw...
package com.tencent.mm.plugin.emoji.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import com.tencent.mm.R; import com.tencent.mm.model.au; class EmojiStoreDetailUI$5 implements OnCancelListener { final /* synthetic */ EmojiStoreDetailUI inz; EmojiStoreDe...
package com.tencent.mm.model.d; import com.tencent.mm.ar.k; import com.tencent.mm.model.au; import com.tencent.mm.sdk.platformtools.x; class c$1 implements Runnable { final /* synthetic */ c dFv; public c$1(c cVar) { this.dFv = cVar; } public final void run() { if (c.a(this.dFv)) { ...
/* * 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 services; import java.rmi.Remote; import java.rmi.RemoteException; import java.util.List; import jpaModel.Administrateur; impo...
package com.qa.callhub.Pages; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.qa.callhub.BaseClass.TestBase; public class LoginPage extends TestBase { @FindBy(xpath = "//a[cont...
package com.example.structural.adapter; /** * Copyright (C), 2020 * FileName: AdapterPatternDemo * * @author: xieyufeng * @date: 2020/11/16 11:29 * @description: */ public class AdapterPatternDemo { public static void main(String[] args) { Adapter adapter = new Adapter(); adapter.handler();...
package SwordOffer; /** * @author renyujie518 * @version 1.0.0 * @ClassName intPower_16.java * @Description 数值的整数次方 * 给定一个 double 类型的浮点数 base 和 int 类型的整数 exponent,求 base 的 exponent 次方。 base^exp *比如要求x^11 正常的乘积需要循环乘11次,时间复杂度为O(n) * 将指数11 可以转成二进制数1011,则原来的式子可以转化成 * x^11 = x^(2^3+2^1+2^0) = x^(2^3) * x(2^1) * x...
/* * Copyright 2011-2012 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package com.lolRiver.river.models; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; /** * @author mxia (mxia@lolRiver.com) * 10/2/13 */ public class Clip { public static final String ID_STRING = "id"; public static final String GAME_ID_STRING = "game_id"; public sta...
package br.ita.sem4dia2.TarefaAvaliadaCarrinhoDecompras; import static org.junit.Assert.*; import org.junit.Test; public class TesteProduto { @Test public void testeProdutosIguais() { Produto p0 = new Produto(1,"batata",20); Produto p1 = new Produto(2,"tomate",30); Produto p2 = new Produt...
package enums; public enum MountainBikeSuspension { /** * suspensão simples */ SIMPLE, /** * suspensão dupla */ DOUBLE, /** * sem suspensão */ SEM; /** * Enumeração para escolher suspension de BikeStore.MountainBike * * @param tipo de suspension...
package 문제풀이; import java.util.Random; import javax.swing.JOptionPane; public class 랜덤2개 { public static void main(String[] args) { //int x; //Random r; Random r = new Random(); // 램에 랜덤을 복사 / random 부품 클레스 int n1 = r.nextInt(100); // 0~99까지 정수 중 하나를 n1에 대입 int n2 = r.nextInt(100); // 0~99까지...
package io.sensesecure.hadoop.xz; import java.io.IOException; import org.apache.hadoop.io.compress.Decompressor; /** * * @author yongtang */ public class XZDecompressor implements Decompressor { @Override public void setInput(byte[] b, int off, int len) { throw new UnsupportedOperationException("N...
package drawing; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Scribble { final Logger logger = LoggerFactory.getLogger(Scribble.class); public Scribble() { logger.trace("Entering drawing mode"); logger.debug("Starting a new drawing"); logger.info("Connected t...
package Controllers; import java.io.IOException; import java.time.LocalDate; /** this is the person class * * still need to implement the dateofBirth but unsure what datatype to make int string? * * **/ public class Person { public static final int NEW_PERSON = 0; String firstName; String lastName; ...
package things.entity.strategy.movement; import things.entity.GameComponent; public class StandardMovement implements Movement { private GameComponent gameComponent; private boolean left; private boolean right; private int deltaX; private int horizontalSpeed; public StandardMovement(GameCompo...
package com.zero.qa.testcases; import org.testng.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import com.zero.qa.base.TestBase; import com.zero.qa.pages.ShowTransaction; import com.zero.qa.pages.LoginPage; import com.zero.qa.pages.Ac...
package com.domain; /** * Created by Michał on 2016-11-14. */ public enum Role { USER("user"), ADMIN("admin"); private String value; Role(String value) { this.value = value; } }
package com.example.doubnut.data.repository; import android.arch.lifecycle.LiveData; import android.util.Log; import com.example.doubnut.data.db.NewsListDao; import com.example.doubnut.data.db.entity.Article; import com.example.doubnut.data.network.NewsListDataSource; import java.util.List; import io.rea...
/* * created 07.05.2005 * * $Id: PostgreSQL.java 501 2006-08-25 19:33:49Z hannesn $ */ package com.byterefinery.rmbench.database.pgsql; import com.byterefinery.rmbench.external.database.DatabaseInfo; import com.byterefinery.rmbench.external.database.sql99.SQL99; import com.byterefinery.rmbench.external.model.IDat...
package com.tencent.mm.ui.chatting.b; import android.os.Looper; import com.tencent.mm.ab.l; import com.tencent.mm.ak.d.a; import com.tencent.mm.sdk.platformtools.ag; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.storage.bd; class y$6 implements a { final /* synthetic */ bd dAs; final /* syn...
package mypackage; import java.io.IOException; import java.io.InputStream; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import net.rim.device.api.system.Bitmap; import net.rim.device.api.ui.component.BitmapField; public class BitmapRetriever extends BitmapField { public st...
package pss_server; import java.io.*; import java.net.*; import java.util.*; public class WebServer { public static void main(String args[])throws Exception { //Defining 2 string objects String requestMessageLine;//It will contain the first line in the HTTP message String fileName;//It will contain the fil...
/* * Copyright (c) 2013 Google 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 required by app...
package com.fleet.seg.util; import org.apdplat.word.WordSegmenter; import org.apdplat.word.segmentation.Word; import java.util.ArrayList; import java.util.List; /** * Word 分词器 * * @author April Han */ public class WordUtil { public static List<String> seg(String text) { List<String> list = new Array...
package com.niubimq.service; import java.util.List; import org.springframework.stereotype.Service; import com.niubimq.pojo.Consumer; @Service public interface ConsumerManageService { /** * 新增消费者信息 * */ public void addConsumer(Consumer consumer); /** * 删除消费者信息 ...
package system.utils; import lombok.extern.slf4j.Slf4j; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWor...
package com.dao; import com.entity.OrdersEntity; import org.hibernate.internal.CriteriaImpl; import java.math.BigDecimal; import java.util.Vector; /** * Created by 滩涂上的芦苇 on 2016/6/8. */ public interface OrderDao { // insert cart into database to become an order public void pay(OrdersEntity or...
package org.browsexml.timesheetjob.web; import java.beans.PropertyEditorSupport; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class FulltimeEditor extends PropertyEditorSupport { private static Log log = LogFactory.getLog(FulltimeEditor.class); public void setAsText...
/** * Created by Tom Remeeus on 3-5-2016. */ package nl.computerinfor.groamchat.clients; import java.io.*; import java.net.*; import java.util.*; public class ChatClient extends Protocol { private Socket connection; private DataInputStream input; private DataOutputStream output; private List<String...
/*Create loops to print out a series of numbers, then print out a series of symbols*/ public class GettingLoopy{ public static void main(String []args){ //Step 1 int counter = 1; while (counter<8){ System.out.print(counter); counter++; } ...
package util; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.util.ArrayList; import java.util.List; import java.util.concurrent.*; /** * 线程池工具类 * * @author yinyiyun * @date 2018/5/3 9:18 */ public class WorkThreadPool { /** * 线程池 */ private ExecutorService pool; ...
/** * */ package com.goodhealth.algorithm.LintCode_Tree; /** * @author 24663 * @date 2018年9月4日 * @Description 927. 翻转字符串II 给定输入的字符数组,逐词翻转数组。单词被定义为不包含空格的字符串. 输入字符数组不包含前导或尾部空格,单词总是用单个空格分隔。 样例 给定 s = "the sky is blue", 翻转之后 : "blue is sky the" 挑战 你能在不分配额外空间的情况下原地解决这个问题吗? */ public class TI_924 { private void rever...
package Exams.June16_2019.healthyHeaven; import java.util.ArrayList; import java.util.List; public class Restaurant { private String name; private List<Salad> data; public Restaurant(String name) { this.name = name; this.data = new ArrayList<>(); } public void add(S...
package com.tencent.mm.plugin.card.sharecard.model; import com.tencent.mm.plugin.card.model.n.a; /* synthetic */ class k$1 { public static final /* synthetic */ int[] hwe = new int[a.axf().length]; static { try { hwe[a.hwN - 1] = 1; } catch (NoSuchFieldError e) { } ...
package com.rsm.yuri.projecttaxilivredriver.avaliation; /** * Created by yuri_ on 07/03/2018. */ public class AvaliationInteractorImpl implements AvaliationInteractor { private AvaliationRepository avaliationRepository; public AvaliationInteractorImpl(AvaliationRepository avaliationRepository) { t...
/* * 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 anikolic_zadaca_1; import java.time.LocalTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; im...
package tachyon.worker.eviction; import java.util.Collection; import java.util.Map.Entry; import java.util.Set; import tachyon.Pair; import tachyon.master.BlockInfo; import tachyon.worker.hierarchy.StorageDir; /** * Base class for evicting blocks by LRU strategy. */ public abstract class EvictLRUBase implements Ev...
package sapronov.pavel.managementrestapi.repositories; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.stereotype.Repository; import sapronov.pavel.managementrestapi.entities.Communication; @Repository public interface CommunicationRepository extends PagingAndS...
package camel.serial; import java.io.OutputStream; import org.apache.camel.Exchange; import org.apache.camel.Suspendable; import org.apache.camel.impl.DefaultProducer; import org.apache.camel.util.URISupport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class SerialProducer extends DefaultProduce...
package com.koreait.db; import java.sql.Connection; import java.sql.PreparedStatement; public class Ex05_insert { public static void main(String[] args) { Connection conn = null; PreparedStatement ps = null; String[] sqls = { "insert into bbs_t (b_idx, writer, title, content, pw, hit, reg_date...
package com.elvarg; import com.elvarg.world.model.Position; /** * A class containing different attributes * which affect the game in different ways. * @author Professor Oak */ public class GameConstants { /** * The directory of the definition files. */ public static final String DEFINITIONS_DIRECTORY = "./...
package com.mighty.springcloud.feign.service; import com.mighty.springcloud.feign.helloserviceapi.service.HelloService; import org.springframework.cloud.openfeign.FeignClient; /** * RefactorHelloService * * @author mighty * @create 2018-12-24 9:59 */ @FeignClient("hello-service") public interface RefactorHelloSe...
package com.city.beijing.task; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** * Created by liuyang on 16-7-4. */ @Component public class taskService { // @Autowired // private UserTaskService userTaskService; @Scheduled(cron = "0 */1 * * ...
/** * 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 com.mapping.oneTomany.Demo; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.mapping.entity.Course; import com.mapping.entity.Instructor; import com.mapping.entity.InstructorDetail; public class CreateCouseDemo { public static void main(S...
package c04; public class a3 { public static void main(String[] args) { // 변수 생성 double x = 7.0 / 2.0; // 3.5 double y = 7 / 2; // 3 => (자동 변환) => 3.0 // 결과 출력 System.out.printf("x = %f, y = %f", x, y); } }
/*---------------------------------------------------------------- * Author: Junjiajia Long * Written: 1/25/2015 * Last updated: 1/30/2015 * * Compilation: javac PercolationStats.java * Execution: java PercolationStats 200 100 *------------------------------------------------------------...
package net.julisapp.riesenkrabbe.views.supportViews; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.DialogFragment; import android.support...
package com.playtika.secure.service; import com.playtika.secure.entity.User; public interface UserService { User getUser(String login); }
package com.phone1000.martialstudyself.interfaces; /** * Created by 马金利 on 2016/12/2. */ public interface GridViewItemClick { void itemClickListener(int tag); }
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.09....
package com.andhikapanjiprasetyo.caltyfarm; import androidx.appcompat.app.AppCompatActivity; import androidx.cardview.widget.CardView; import android.content.Intent; import android.os.Bundle; import android.view.View; public class BerandaActivity extends AppCompatActivity { CardView cardVInput, cardVDaftar; ...
package com.getronics.quarkus.util.decorator; public interface TelemetryDecorator { String decorate(String stationId, String measurement) throws Exception; }
/** * */ package com.goodhealth.algorithm.Date; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * @author 24663 * @date 2018年7月25日 * @Description */ public class DateApi implements Comparable<DateApi>{ public static void main(String[] args) { //显示当前日期 Date ...
package com.example.appBack.Tablas.Student.infrastructure.controller.dto.Output; import com.example.appBack.Tablas.Student.domain.StudentJpa; import com.example.appBack.noDatabase.BranchEnum; import com.fasterxml.jackson.annotation.JsonFormat; import com.sun.istack.NotNull; import lombok.AllArgsConstructor; import lom...
package com.thomaster.ourcloud.json; import com.thomaster.ourcloud.model.filesystem.UploadedFolder; import java.util.Set; import java.util.stream.Collectors; public class UploadedFolderJSON extends FileSystemElementJSON { private Set<ContainedFSEInfoJSON> containedFiles; UploadedFolderJSON(UploadedFolder s...
package com.liufeng.domian.dto.base; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotBlank; @Data @ApiModel(description = "共用分页类") public class BaseSort { @ApiModelProperty(value = "排序规则(asc-升序,desc-降序)",required ...
/* * 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 com.github.somi92.seecsk.gui; import com.github.somi92.seecsk.data.Sesija; import com.github.somi92.seecsk.gui.panels.MembersP...
package com.team.mapper; import java.util.Date; import java.util.HashMap; import java.util.List; import org.apache.ibatis.annotations.Mapper; import com.team.vo.Comments; import com.team.vo.Feedback; import com.team.vo.FeedbackReceiver; @Mapper public interface FeedbackMapper { public int insertFeedback(Feedback...
package com.example.nata.hallimane; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.widget.TextView; import java.util.HashMap; public class SplashScreen extends Activity { // Splash screen timer private static int SPLASH_TIME_OU...
package cn.leancloud.plugin; import cn.leancloud.LCException; public class Exception { public static final int ErrorCode_Invalid_Parameter = LCException.INVALID_PARAMETER; public static final String ErrorMsg_Invalid_ClientId = "Client id is null or invalid."; public static final String ErrorMsg_Invalid_Convers...
package com.tencent.mm.plugin.sns.ui; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; import com.tencent.mm.plugin.sns.i.j; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.ui.base.h; class SnsTagDetailUI$5 implements OnMenuItemClickListener { final /* syntheti...
package gob.igm.ec; import java.math.BigDecimal; import javax.annotation.Generated; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2018-10-03T11:38:06") @StaticMetamodel(Ttipocarta.class) public class ...
package pt.ua.nextweather; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.Recycl...
package com.thomaster.ourcloud.services.request.save.folder; import com.thomaster.ourcloud.model.filesystem.UploadedFile; import com.thomaster.ourcloud.model.filesystem.UploadedFolder; import com.thomaster.ourcloud.model.user.OCUser; import com.thomaster.ourcloud.services.FileService; import com.thomaster.ourcloud.ser...
import java.util.*; import java.text.*; public class CashRegister { public static void main(String[] args) { Scanner input = new Scanner(System.in); DecimalFormat fmt = new DecimalFormat("0.00"); final double TAX = 0.08; Items item1 = new Items(1.25); Items item2 = new Items(2.50); Items item3 = ne...
package com.hevi.dao; import com.hevi.dataobject.ProductCategory; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; /** * Created by Hevi on 2017/9/26. */ public interface ProductCategoryDao extends JpaRepository<ProductCategory,Integer> { /** * 查询在Category List数组以内的所有分...
package martin.s4a.shift4all2; public class WidgetListItem { public String heading,content, custom, background; boolean notes, holiday; //eg }
package _MemoCalculatorAccountbook; import java.awt.Rectangle; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; class MemoPanel extends JPanel{ private static final long serialVersionUID = 1L; private JButton jBtnAddRow = null; private JButton jBtnDelRow = null; private JT...
package cc.protea.foundation.template.services; import java.util.List; import javax.annotation.security.RolesAllowed; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import j...
package pretask.test; public class PositionFinder { public static void findPosition(String[] list, String term){ if (list==null || list.length==0) System.out.print("Empty array"); else{ int position=-1; for (String name: list){ if(name.compareTo(term)==0) break; position++; } Syste...
public class Sphere extends Shape implements Spatial{ private double radius; public double getRadius() { return this.radius; } public void setRadius(double radius) { this.radius=radius; } public double volume() { return 4*Math.PI*this.radius*this.radius*this.radius/3; } publi...
package fundamentos; import java.util.ArrayList; import java.util.Scanner; public class Class28NumerosArrayList { public static void main(String[] args) { Scanner teclado = new Scanner(System.in); //NECESITAMOS UNA COLECCION PARA GUARDAR TODOS LOS NUMEROS ArrayList<Integer> numeros = new ...
package components; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer; import javafx.scene.media.MediaView; import java.io.File; public class Movie { private MediaPlayer mediaPlayer; private MediaView mediaView; public Movie(String path) { Media media = new Media(new File(path).toURI().to...
package figures; abstract public class Figures {} class Pentagon extends Figures{} class Hexagon extends Figures{} class Oval extends Figures{} class Circle extends Oval{}
package ucll.drijkel.soa.services; import com.fasterxml.jackson.databind.util.JSONPObject; import org.json.JSONObject; import org.springframework.http.*; import org.springframework.stereotype.Service; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; import org.springf...
package frc.robot; import edu.wpi.first.wpilibj.geometry.Pose2d; import edu.wpi.first.wpilibj.geometry.Rotation2d; import edu.wpi.first.wpilibj.geometry.Translation2d; import frc.robot.utility.MathUtils; import frc.robot.utility.TrajectoryMaker; import java.util.ArrayList; @SuppressWarnings("unused") public class Tra...
package com.statistic.app.view; import java.io.File; import com.statistic.app.Main; import com.statistic.app.model.Data; import com.statistic.app.util.WindowUtil; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.Alert.AlertType; import javafx.stage.FileChooser; public cl...
package com.example.healthmanage.ui.activity.consultation; import android.util.Log; import androidx.lifecycle.MutableLiveData; import com.example.healthmanage.base.BaseApplication; import com.example.healthmanage.base.BaseViewModel; import com.example.healthmanage.bean.UsersInterface; import com.example.healthmanage...
package br.com.tinyconn.layout.nota.inclusao.retorno; import java.util.List; import br.com.tinyconn.bean.Resposta; import com.thoughtworks.xstream.annotations.XStreamAlias; @XStreamAlias("retorno") public class RetornoEnvioNota implements Resposta{ /** * Conforme tabela "Status de Processamento" */ @XStreamA...
//Exercícios no link: https://www.slideshare.net/loianeg/curso-java-basico-exercicios-aulas-14-15 package exerciciosAulas14e15; import java.util.Scanner; public class Exercicio_10_Turno { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); ...
package org.fuserleer.serialization.mapper; import java.io.IOException; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; /** * Serializer for conversion from {@code String} data * to the appropria...
package com.cryfish.myalomatika; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.apache.log4j.Logger; @Cros...
package www.limo.com.mymovies.entities; import java.util.*; import java.io.IOException; public enum OriginalLanguage { EN, RU; public String toValue() { switch (this) { case EN: return "en"; case RU: return "ru"; } return null; } public static OriginalLanguage...
package com.example.pedidos.model; import java.util.Date; public class Pedido { private int codigo; private int valor; private String descricao; private String cliente; private Date datadopedido; public int getCodigo() { return codigo; } public void setCodigo(int codigo) { ...
/* * 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 com.printcalculator.bean; import com.printcalculator.enums.PrintJobName; import com.printcalculator.enums.PrintJobType; import...
/* * Copyright 2005-2010 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
package gogo7_09; import java.util.Scanner; public class insooday { //made by insoo public static void main(String[] args) throws Exception { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); System.out.println("\t***INSOO BANK EXCHANGE SERVICE***"); memu menu = new memu(6); ...
package Networking; import java.rmi.Naming; public class PiClient { public static void doIt(String host, String port, int digits) { String message = ""; try { Pi_MyServer obj = (Pi_MyServer) Naming.lookup("//" + host + ":" + port + "/PiServer"); System....
package com.yksoul.demo.controller; import com.yksoul.demo.utils.R; import com.yksoul.demo.utils.RequestUtils; import com.yksoul.pay.domain.enums.AliPaymentEnum; import com.yksoul.pay.domain.model.PayModel; import com.yksoul.pay.payment.PaymentHandler; import lombok.extern.slf4j.Slf4j; import org.springframework.beans...
/* * 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...
package com.mx.profuturo.bolsa.model.service.vacancies.dto; import java.io.Serializable; public class GetJobBoardResponse implements Serializable { }
import java.io.*; import java.util.*; public class SalamanderTraceActivity { /* ***** Topher's Code For Trace Activity *******/ public static void main(String[] args) { ArrayList salamander = new ArrayList(); //explicitly fill arraylist with intent to search for // present and nonpresent values... ...
package com.yixin.kepler.enity; import java.util.ArrayList; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import org.apache.commons.collections.CollectionUtils; import org.assertj.core.util.Lists; import com.yixin.common.system.domain.BZBase...
package util; import com.google.gson.Gson; import java.io.InputStream; import java.io.InputStreamReader; public class JobFileParser { public Jobs readConfigFile() { Gson gson = new Gson(); InputStream resourceAsStream = this.getClass().getClassLoader().getResourceAsStream("job.json"); Inpu...
package com.hevi; import lombok.Data; import org.junit.Test; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; public class LambdaTest { @Data private class Person { private String name; private List<Car> cars; public Person(String name, List<Car> c...