text
stringlengths
10
2.72M
package go.app.greeter; import go.app.greet.Person; import java.util.List; public interface IGreeter { List<Person> greetedPeople(); String greet(String name, String language); Integer getCount(); }
package com.kevin.cloud.commons.utils; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.serializer.SerializerFeature; import java.util.List; /** * @program: vue-blog-backend * @description: 平台公共工具类 * @author: kevin * @create: 2020-01-23 11:55 **/ public class...
package LLambdaTop.functional; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.function.*; public class Mains { public static void main(String[] args) { Employee john = new Employee("john ss",23); Employee sol = new Employee("sol rrt",22); Em...
package com.letmesee.service.filtros; import java.awt.image.BufferedImage; import java.util.ArrayList; import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; import org.opencv.imgproc.Imgproc; import com.letmesee.entity.Imagem; import com.letmesee.service.FiltrosUtils; public class ...
package ui; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.sql.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.StringTokenizer; im...
package com.cinema.common.model; import com.cinema.common.model.base.TDbConfig; public class DbConfig extends TDbConfig { }
/* * 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 DAOS; import Controler.Integridade; import Model.Operador; import java.util.List; import javax.swing.JOptionPane; i...
package com.imooc.article.service.Impl; import com.github.pagehelper.PageHelper; import com.imooc.api.BaseService; import com.imooc.article.mapper.CommentsCustomMapper; import com.imooc.article.mapper.CommentsMapper; import com.imooc.article.service.ArticlePortalService; import com.imooc.article.service.CommentsPortal...
package edu.colostate.cs.cs414.soggyZebras.rollerball.Tests.Client; public class GUIRunnerTest { }
package com.misiontic2022.c2.reto4; import com.misiontic2022.c2.reto4.view.FrmRequerimientos; import com.misiontic2022.c2.reto4.view.ViewRequerimientos; /** * Hello world! * */ public class App { public static void main( String[] args ) { /*System.out.println("Requerimiento 1"); ViewRequer...
package com.codefundo.votenew.Offline; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat; import android.Manifest; import android.annotation.TargetApi; import android.app.Activity; import android.app.PendingIntent; import android.content.Br...
package factory_abstract.ingredient; /** * @Description: * @Author: JackYan * @Date2019/12/27 19:13 * @Version V1.0 **/ public class MarinaraSauce extends Sauce { }
package com.avishai.MyShas; import android.app.Activity; import android.content.Context; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.CheckedTextView; impor...
package org.me.myandroidstuff.data; import junit.framework.TestCase; public class RssItemTest extends TestCase { public void testgetTitle() { RssItem test = new RssItem(); assertTrue (test.getTitle()=="test"); } }
/* * 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 vista; import controlador.CursoCtrl; import controlador.EstudianteCtrl; import java.awt.Color; import java.text.DateFormat; im...
package arcs.demo.particles; import arcs.demo.services.ClipboardService; import arcs.api.Particle; import arcs.api.ParticleFactory; import arcs.api.PortableJsonParser; import javax.inject.Inject; public class RenderTextFactory implements ParticleFactory { private PortableJsonParser parser; // TODO: Inject inter...
package io.hankki.myrecipe.domain.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.querydsl.QueryDslPredicateExecutor; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.Repository...
package com.icanit.app.entity; // default package import java.util.Date; /** * AppGoods entity. @author MyEclipse Persistence Tools */ public class AppGoods implements java.io.Serializable { // Fields public Integer id,amount,hot; public AppMerchant appMerchant; public AppCategory appCategory; public String...
/* * Copyright (c) 2016 Cloudera, Inc. * * 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 ...
package hw3.q01; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; /** * * @author ribb0013 */ public class Profiler { static private Profiler instance; private Map<String,Integer> map = new HashMap<>(...
/** Exception for invalid length. Data structures that have a fixed (integer) length throw LengthException if a given length is out of range. */ public class LengthException extends RuntimeException { private static final long serialVersionUID = 0L; }
package com.ascendaz.roster.repository; import org.hibernate.Query; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.ascendaz.roster.model.RosterUser; @Repository("userRepository") public class U...
package com.example.joker.newsapp.Database; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by joker on 22/11/17. */ public class SQLHelperClass extends SQLiteOpenHelper { private static final int DATABASE_VERSION = ...
package com.vicutu.batchdownload.http.factory; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.TimeUnit; import org.apache.http.HttpRequestInterceptor; import org.apache.http...
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.davivienda.utilidades.ws.cliente.notaCreditoTarjetaCredito; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * This cl...
package com.wxt.designpattern.factorymethod.test04; /** * @Auther: weixiaotao * @ClassName C2 * @Date: 2018/10/22 15:31 * @Description: */ public class C2 implements C1{ @Override public void tc() { } }
package gil.server.data; import org.junit.Test; import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonObject; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertTrue; public class PeopleDataTest { @Test public...
package tony.hortalizas; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import java.util.ArrayList; /** * Created by Tony on 06/02/2017. */ ...
package hellorestclient; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.Response; public class UntypedHelloClient { public static void main(String[] args) { try{ // Create a new RESTeasy client through the JAX-RS API: Client cl...
package com.cif.accumulate.rest.controller; import org.springframework.web.bind.annotation.RestController; /** * @Author: liuxincai * @Description: base controller * @Date: 2019/5/25 11:49 */ @RestController public class BaseController { }
package graphics_control.files_and_parsing; import graphics_control.game_control.ParsedValues; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; /** * PreferencesFileParser Class. */ public class PreferencesFileParser { static final int PREFERENCE = 0; static final int ...
package MVC.controllers; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import MVC.models.inventoryModel; import MVC.models.productModel; import MVC.views.addInvsView; import MVC.views.cProductView; import MVC.views.errorView; public class productCont...
package com.example.graduation; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.res.ResourcesCompat; import android.annotation.TargetApi; import android.content.Context; import android.content.Intent; import andr...
package org.quickbundle.itf.base; public interface IRmIdWrapper { public void init(); public String[] nextValue(int length); }
package com.filestore.callable; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.concurrent.Callable; import org.codehaus.jettison.json.JSONObject; public class DeleteCallable implements Callable<Boolean> { private String key = null; private int expiryTime = 0; private St...
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.lwc.auth.fallback; import com.lwc.auth.api.AuthApi; import com.lwc.auth.bo.AuthBo; import com.lwc.common.Result; import lombok.extern.slf4j.Slf4j; import org.springframework.security.jwt.Jwt; import org.springframework.stereotype.Component; @Component @Slf4j public class AuthApiFallback implements AuthApi...
package com.mod.loan.config.pb; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class PbConfig { @Value("${pb.merchant.id:}") private String merchantId; @Value("${pb.version:}") private String version; @Value("${pb.p...
package de.fraunhofer.iais.kd.bda.spark; public class Basic { public static long hash(int i, String s) { long[] prime = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173}; long p = 1009; long...
//Exercise 2.28 import java.util. Scanner; import java.lang.Math; public class Area{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int r; int diameter; double area; double circumference; System.out.print("Enter the value of radius "); r = scan.nextInt(); diameter = r...
package org.wuxinshui.boosters.data; import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; /** * @ClassName: MathUtils * @author: [Wuxinshui] * @CreateDate: 2017/8/1 14:07 * @UpdateUser: [Wuxinshui] * @UpdateDate: 2017/8/1 14:07 * @UpdateRemark: [说明本次修改内容] * @Description: [T...
package page.test; import java.util.Scanner; import java.util.concurrent.TimeUnit; import org.openqa.selenium.*; import page.objects.LoginPage; import utility.*; public class LoginPageTest { public static void fillForm(WebDriver driver) throws Exception { String data; ExcelUtils.setExcelFile(Constant.Path_Test...
package com.futs.model; import lombok.Data; import javax.persistence.*; import java.util.Date; @Data @Entity @Table(schema = "DB_FUTTS", name = "TB_JOGADOR") public class Jogador { @Id @Column(name = "IDT", unique = true, nullable = false) private String idt; @Column(name = "IDTIME", unique = true, ...
package com.uniksoft.web; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.SimpleFormController; import org.springframework.web.servlet.vie...
package br.com.senac.Telas; import br.com.senac.Classes.Mamifero; import br.com.senac.Exceptions.MamiferoException; import br.com.senac.Servicos.MamiferoServico; import java.awt.Dimension; import java.util.ArrayList; import javax.swing.JInternalFrame; import javax.swing.JOptionPane; import javax.swing.table.DefaultTab...
package com.testcases; import org.testng.annotations.Test; import com.BaseClass.BaseClass; import com.BaseClass.TestDataUtility; public class SearchCustomers extends BaseClass{ @Test(dataProviderClass =TestDataUtility.class,dataProvider = "dp" ) public void SearchCustomersTest(String Name) throws InterruptedExc...
public class quickfuf{ private int [] parent; public void quickfuf(int n) { parent=new int[n]; for(int i=0; i<n; i++) parent[i]=i; } public int find(int p) { while(p != parent[p]) p = parent[p]; return p; } private void validate(int p) { int n = parent.length; ...
package Problem_2153; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int number = 0; for(int i = 0; i<str.length();i++) { char s = str.charAt(i); if('A' <= ...
public class test { public static void main(String[] args) { Frazione f = new Frazione(8, 3, '-'); System.out.println(f.toString()); } }
public class EditDistance { public int minDistance(String word1, String word2) { int m = word1.length(),n = word2.length(); int ans[] = new int[n+1]; int prev,cuv; for(int i=0;i<=n;i++){ ans[i] = i; } for(int i=1;i<=m;i++){ prev = i; for(in...
package raft.server.storage; import com.google.common.io.ByteArrayDataInput; import com.google.common.io.ByteArrayDataOutput; import com.google.common.io.ByteStreams; import java.util.ArrayList; import java.util.List; /** * Author: ylgrgyq * Date: 18/6/10 */ class ManifestRecord { private int nextFileNumber; ...
package com.beike.entity.onlineorder; public enum DiscoutType { OVERALLFOLD,FULLLESS,INTERVALLESS }
public class SplayRecord<K extends Comparable<K>, V> implements Comparable<SplayRecord<K, V>>{ private K key; private V value; private SplayRecord<K, V> left; private SplayRecord<K, V> right; private SplayRecord<K, V> parent; public SplayRecord(K key, V value){ this.key = key; t...
package com.software3.servlet; import java.io.IOException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.software3.service.BookService; import com.software3.service.U...
package com.snapup.dao; import com.snapup.pojo.TrainRun; public interface TrainRunMapper { //通过车次编号查询车次信息 public TrainRun findTrainRunByCode(String run_code); }
package com.minipacific.bleprototype1; import android.app.Activity; import android.app.ProgressDialog; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothAdapter.LeScanCallback; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGattCharacteristic; import android.blue...
package com.getkhaki.api.bff.persistence.repositories; import com.getkhaki.api.bff.persistence.models.EmailDao; import com.getkhaki.api.bff.persistence.models.PersonDao; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereo...
/** * COPYRIGHT (C) 2013 KonyLabs. All Rights Reserved. * * @author rbanking */ package com.classroom.services.facade.exceptions; /** * Thrown to indicate that a method has been passed an illegal or inappropriate * argument. */ public class FacadeIllegalArgumentException extends Exception { private static...
package recursion_and_backtracking; public class Hanio { public static void main(String[] args) { TowersOfHanoi(4,'a','b','c'); } public static void TowersOfHanoi(int n, char frompeg, char topeg, char auxpeg){ if(n == 1){ System.out.println("Move disk 1 from pge " + frompeg + " to peg " + topeg); return;...
package nightgames.skills; import java.util.function.Predicate; import nightgames.characters.Character; import nightgames.characters.Emotion; import nightgames.characters.body.BodyPart; import nightgames.characters.body.PussyPart; import nightgames.combat.Combat; import nightgames.combat.Result; import nightgames.glo...
package com.yuan.iliya.interceptor; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.Result; import com.opensymphony.xwork2.interceptor.AbstractInterceptor; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.struts2.dispatcher.HttpParame...
package com.pbeder.chip8; public interface Beeper { void beep(); }
package com.aspect; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class TestAspect { public static void main(String[] args) throws Exception { ApplicationContext ctx = new ClassPathXmlApplicationContext("com/aspect/...
package App.dao.Repositories; import org.springframework.data.jpa.repository.JpaRepository; import App.dao.entity.*; public interface StudentRepositories extends JpaRepository<Student,Long> { }
/* * Created Fri Nov 12 12:04:37 CST 2004 by MyEclipse Hibernate Tool. */ package com.aof.component.helpdesk; import java.io.Serializable; /** * A class that represents a row in the 'CM_Action_History' table. * This class may be customized as it is never re-generated * after being created. */ public class Cal...
package com.esum.comp.ftp.table; import com.esum.common.record.InterfaceInfoRecord; import com.esum.comp.ftp.FtpConfig; import com.esum.framework.common.sql.Record; import com.esum.framework.core.component.ComponentException; /** * FTP_INFO 테이블의 레코드와 매칭되는 클래스 * * Copyright(c) eSum Technologies, Inc. All rights re...
package org.wuxinshui.boosters.designPatterns.simpleFacthory.normal; /** * Created by FujiRen on 2016/10/28. * 简单工厂模式不属于23中涉及模式,简单工厂一般分为:普通简单工厂、多方法简单工厂、静态方法简单工厂。 */ public class SendFactory { public Sender producer(String type) { if ("EMAIL".equals(type)) { return new Email(); } else...
package mb.tianxundai.com.toptoken.aty.wallet; import android.Manifest; import android.annotation.SuppressLint; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle;...
package com.thinking.machines.school.servlets; import com.thinking.machines.school.dao.*; import com.thinking.machines.school.beans.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.net.*; public class DeleteServlet extends HttpServlet { public void do...
package com.trannguyentanthuan2903.yourfoods.history_ship_store.model; import com.trannguyentanthuan2903.yourfoods.product.model.OrderProduct; import java.util.ArrayList; /** * Created by Administrator on 10/16/2017. */ public class ListOrderProduct { public ArrayList<OrderProduct> getOrderProductList() { ...
package fema.controllers; public class JogadorController { }
/* * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.example.geoffrey.receivesms; import android.app.Activity; import android.database.Cursor; import android.database.CursorJoiner; import android.database.MergeCursor; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import android.provider.Telephony; import android.telephony.S...
package test.java; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class LinearRegressionTest { @Test void fitTest() { assertEquals( 1, 1 ); } @Test void predictTest() { assertEquals( 1, 1 ); } @Test void scoreTest(...
package login; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JLabel; import java.awt.Font; import javax.swing.JTextField; import javax.swing.JButton; import chatroom.client; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.event.WindowAdapter; import...
package mobi.app.redis.netty.reply; import mobi.app.redis.transcoders.Transcoder; /** * User: thor * Date: 12-12-20 * Time: 下午2:10 */ public interface Reply<T> { Object get(); T decode(Transcoder transcoder); }
package f.star.iota.milk.ui.artstation.station; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import java.util.HashMap; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import f.star.iota.milk.base.PVContract; import f.star.iota.milk.base.StringPresente...
/* * 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.innovaciones.reporte.dao; import com.innovaciones.reporte.model.DTO.NotificacionDTO; import com.innovaciones.reporte.model...
package kr.or.ddit.basic; /* * 은행의 입출금을 쓰레드로 처리하는 예제 * (Lock을 이용한 동기화 처리) */ import java.util.concurrent.locks.ReentrantLock; public class T17_LockAccountTest { public static void main(String[] args) { LockAccount lAcc = new LockAccount(); lAcc.setBalance(10000); // 입금 BankThread2 bth1 = new BankThr...
package com.diplom.service.clustering; import com.diplom.domain.KYF; import org.apache.commons.math3.ml.clustering.*; import org.apache.commons.math3.ml.clustering.evaluation.SumOfClusterVariances; import org.apache.commons.math3.ml.distance.*; import org.springframework.stereotype.Service; import java.util.ArrayList...
package com.ylkj.modules.sqfz.controller; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ylkj.common.util.ResultVO; import com.ylkj.modules.sqfz.domain.Picture; import com.ylkj.modules.sqfz.service.IPictureService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImpli...
package net.sduhsd.royr6099.unit11.gradebook; //© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Class - //Lab - import java.util.Arrays; import java.util.Scanner; import static java.lang.System.*; import static java.util.Arrays.*; public class GradeBookRunner { public static void main( String ...
import java.util.Scanner; /* * 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. */ /** * * @author mati */ import java.util.*; public class Suma { public static void main (Str...
package com.mytaxi.service.car; import java.util.List; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataIntegrityViolationException; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transac...
package sorting; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class UnderstandIntegers { @Before public void setUp() throws Exception { } @Test public void test() { int bit = 1; assertEquals(2, 1 << bit); bit = Integer.SIZE - 1; assertEquals(-1 * (Math.pow(2...
package controlador; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import javax.swing.JOptionPane; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; import modelo.Factura; import modelo.FacturaDAO; import vista.frmFactu...
package hk.ust.felab.rase.slave; import hk.ust.felab.rase.agent.Agent; import hk.ust.felab.rase.sim.Sim; import hk.ust.felab.rase.vo.SimInput; import hk.ust.felab.rase.vo.SimOutput; import org.apache.log4j.Logger; public class Slave implements Runnable { /** * t1; t2, simInput; t3, simOutput */ ...
package algo3.fiuba.modelo.cartas.moldes_cartas.cartas_monstruos; import algo3.fiuba.modelo.cartas.estados_cartas.EnJuego; import algo3.fiuba.modelo.cartas.modo_monstruo.ModoDeAtaque; import algo3.fiuba.modelo.excepciones.SacrificiosIncorrectosExcepcion; import algo3.fiuba.modelo.jugador.Jugador; import algo3.fiuba.mo...
package com.meta.challenge.service; import com.meta.challenge.entity.Address; import com.meta.challenge.entity.Customer; import com.meta.challenge.repository.CustomerRepository; import org.hibernate.exception.ConstraintViolationException; import org.springframework.beans.BeanUtils; import org.springframework.dao.DataI...
// Matt Knicos // mknicos@gmail.com import acm.program.*; @SuppressWarnings("serial") // The Pythagorean Theorem states a^2 + b^2 = c^2 where ^2 means squared. This program will ask the user // for "a" and "b" and print the the screen the value of "c". Its a dialog program put tested and works // as well as a console...
/* * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
//package com.dropaline.gui; // //import java.awt.Desktop; //import java.awt.Dimension; //import java.awt.event.ActionEvent; //import java.awt.event.ActionListener; //import java.awt.event.MouseAdapter; //import java.awt.event.MouseEvent; //import java.io.File; //import java.io.FileWriter; //import java.io.IOException;...
package Pro09.PalindromeNumber; //判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。 import java.util.Scanner; public class Solution { public static void main(String[] args) { System.out.println("Please enter the number: "); Scanner scanner = new Scanner(System.in); // double x = scanner.nex...
/* * The contents of this file are subject to the terms * of the Common Development and Distribution License * (the "License"). You may not use this file except * in compliance with the License. * * You can obtain a copy of the license at * https://jwsdp.dev.java.net/CDDLv1.0.html * See the License for the sp...
package com.unicom.patrolDoor.service; import com.unicom.patrolDoor.entity.Question; import javax.management.ObjectName; import java.util.List; import java.util.Map; /** * @Author wrk * @Date 2021/3/24 16:02 */ public interface QuestionService { List<Question> selectAllQuestion(Integer tag,String title); ...
package com.bon.wx; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.Enable...
/** * */ package com.gp.graphqlaggregator.graphql.datafetcher; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.gp.graphqlaggregator.entity.User; import com.gp.graphqlaggregator.repo.UserRepository; impo...
package cit360junit; import java.util.Arrays; import java.util.Random; public class Hero { private String hero_class; private int health; private int strength; private boolean disease; private String items[]; public Hero(String chosen_class, int class_health, int class_strength){ her...
package com.neusoft.springtest.homework; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import com.neusoft.springtest.json.User; public class Iterato...