text
stringlengths
10
2.72M
package be.dpms.medwan.common.model.vo.occupationalmedicine; import be.mxs.common.model.vo.IIdentifiable; import be.mxs.common.util.db.MedwanQuery; import java.io.Serializable; /** * User: MichaŽl * Date: 16-juin-2003 */ public class RiskProfileRiskCodeVO implements Serializable, IIdentifiable, Comparable { p...
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.sdk.metrics.data; import java.util.List; /** A single data point in a timeseries that describes the time-varying value of a double metric. */ public interface DoublePointData extends PointData { /** * R...
package com.vpt.pw.demo.model.FormCrf1; import com.vpt.pw.demo.model.PregnantWoman; import com.vpt.pw.demo.model.Team; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; @Table(name = "FORM_CRF_1") @Entity public class FormCrf1 { @Id @GeneratedValue( strategy = Genera...
package com.game.cwtetris.ui; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.view.MotionEvent; import android.view.View; import com.game.cwtetris.CanvasView; import com.game.cwtetris.data.CellP...
public class banco{ private double dinero; private double cantidad; public void setDinero(double dinero){ this.dinero=dinero; } public double Calcula(){ cantidad=dinero*.20; dinero=dinero+cantidad; if(cantidad>7000){ dinero*=2; } return dinero; } }
package pro.likada.util.converter; import pro.likada.model.Vehicle; import pro.likada.service.VehicleService; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.FacesConverter; /** * Created by Yusupov on 3/19/2017. */...
package qqclient.view; import qqclient.service.FileClientService; import qqclient.service.MessageClientService; import qqclient.service.UserClientService; import qqclient.utils.Utility; /** * @author xiaochen * @version 1.0 * @create 2021-09-12 20:54 * 客户端的菜单界面 */ public class QQView { private ...
package socialnetwork.service; import socialnetwork.domain.*; import socialnetwork.repository.Repository; import socialnetwork.repository.Status; import socialnetwork.repository.exceptions.RepoException; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; ...
package ClockFigures; import Lamps.Lamp; import org.junit.Before; import org.junit.Test; import java.util.List; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; /** * Created by Matt on 16/12/2016. */ public class SecondsDisplayTest extends DisplayTestSpecification { ...
package iterator; import java.net.MalformedURLException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import businessLogic.BLFacade; import businessLogic.BLFacadeImplementation; import configuration.ConfigXML; import dataAccess.DataAccess; import domain.Event; import fact...
package TicTacToe; public class Board { private BoxStatus box[][]; private boolean isFilled; private int n; Board(final int n) { this.n = n; box = new BoxStatus[n][n]; this.isFilled = false; for(int i = 0; i < n; i++) { for(int j = 0; j < n; j++) ...
//Name: Adham Elarabawy public class MatrixCount1 { private static int[][] matrix = { { 1, 2, 3, 4, 5 }, { 6, 7, 8, 9, 0 }, { 6, 7, 1, 2, 5 }, { 6, 7, 8, 9, 0 }, { 5, 4, 3, 2, 1 } }; public static int count(int val) { int count = 0; for(int[] x : matrix) { for(int y : x) { if(y == val) ...
package com.esum.comp.tcpip.message; import java.sql.SQLException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.esum.comp.tcpip.TCPIPCode; import com.esum.comp.tcpip.TCPIPConfig; import com.esum.comp.tcpip.TCPIPException; import com.esum.framework.core.component.ComponentException; import com....
package handin05; public class MagicSquareTester { public static void main(String[] args) { MagicSquare magicSquare = new MagicSquare(); magicSquare.add(1); System.out.println("magicSquare:"); System.out.println(magicSquare.toString()); System.out.println("magicSquare.isSquare: " + magicSquar...
package com.atlassian.theplugin.idea.ui; import com.intellij.util.ui.UIUtil; import javax.swing.*; /** * User: jgorycki * Date: Mar 5, 2009 * Time: 11:34:17 AM */ public class WhiteLabel extends JLabel { public WhiteLabel() { setForeground(UIUtil.getTableForeground()); } }
package com.mingrisoft; import java.io.FileWriter; import java.io.IOException; import java.util.Scanner; public class ConsoleWriter { public static void main(String[] args) { System.out.println("请输入要保存的字符串:");// 提示用户输入字符串 Scanner scanner = new Scanner(System.in);// 获得控制台输入流 String text = ...
package com.whoisericballard.gsenchants; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; import java.util.UUID; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; import com.who...
/* ForEachImpl.java Purpose: Description: History: Wed Mar 8 14:21:08 2006, Created by tomyeh Copyright (C) 2006 Potix Corporation. All Rights Reserved. {{IS_RIGHT This program is distributed under LGPL Version 2.1 in the hope that it will be useful, but WITHOUT ANY WARRANTY. }}IS_RIGHT */ package ...
package base.driver; import java.util.InputMismatchException; import java.util.List; import java.util.Scanner; import base.Contact; import base.Directory; public class Main { static String prompt = "1) Add contact 2) Search 3) Exit"; static String namePrompt = "Enter name :"; public static void main(String[]...
import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public enum foodType { APPRETIZER, DESSERT, DRINKS, MAINDISH } private static Map<String, String> userInput = new...
package swsk.cn.rgyxtq.subs.work.C; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android.widget.SimpleAdapter; import java.util.ArrayList; import java.util.HashMap; import java....
package com.example.shouhei.mlkitdemo.util; import java.util.Comparator; public class SortElementWrapperByXComparator implements Comparator<ElementWrapper> { @Override public int compare(ElementWrapper o1, ElementWrapper o2) { return o1.getX() - o2.getX(); } }
package com.pibs.action; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts...
package test; import java.util.Arrays; public class Short { public static void main(String args[]) { int data[] = { 4, -5, 2, 6, 1 }; Arrays.sort(data); for (int c: data) { System.out.print(c+","); } } }
/* * Copyright © 2018 www.noark.xyz All Rights Reserved. * * 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 ! * 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件: * * http://www.noark.xyz/LICENSE * * 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播; * 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本; * 3.无论你对源代码做出任何修改和改进,版权都归Noark...
package test; import com.blog.interceptor.BundlingMethod; /** * 测试拦截的类 * @author duanjigui *@time 2016/5/15 */ public class Apple implements BundlingMethod { @Override public void bundleMethod() { System.out.println("绑定的方法!"); } }
/* * 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 model.ORM; import controller.DatabaseController; import java.sql.ResultSet; import java.sql.SQLException; import jav...
package run; import chess.Cell; import chess.ChessBoard; import piece.Bishop; import piece.King; import piece.Knight; import piece.Pawn; import piece.Piece; import piece.Queen; import piece.Rook; public class Check { private ChessBoard board = ChessBoard.getInstance(); private int king_x,king_y; private boolean c...
package com.gaoshin.dating; import javax.xml.bind.annotation.XmlRootElement; import net.sf.oval.constraint.Length; import net.sf.oval.constraint.NotEmpty; import com.gaoshin.beans.Gender; import com.gaoshin.beans.Location; @XmlRootElement public class DatingUser { @NotEmpty @Length(max = 32, mi...
package com.rk.jarjuggler.service; import junit.framework.TestCase; public class HttpUtilTest extends TestCase { public void testGetFileName() throws Exception { String url = "http://localhost/asm/asm/1.4/asm-1.4.jar"; assertEquals("asm-1.4.jar", HttpUtil.getFileName(url)); } ...
package tech.szymanskazdrzalik.a2048_app.credits; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import tech.szymanskazdrzalik.a2048_app.R; import tech.szymanskazdrzalik.a2048_app.helpers.DarkModeHelper; pub...
package com.awakenguys.kmitl.ladkrabangcountry; import android.content.Intent; import android.os.AsyncTask; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.V...
import java.io.IOException; import USJavaAPI.AvsInfo; import USJavaAPI.ResolveData; import USJavaAPI.USResolverHttpsPostRequest; import USJavaAPI.USResolverReceipt; import USJavaAPI.USEncResUpdateCC; public class TestEncResUpdateCC { public static void main(String args[]) throws IOException { /*****...
package com.mabaya.test.domain; public enum Category { smartphone, shoes, tshirts }
package ch5; import java.util.Scanner; import java.util.Random; public class Ex_RecursivelyGuessMyNumber { public static void main(String[] args) { // TODO Auto-generated method stub Random rnd = new Random(); int ans = rnd.nextInt(100)+1; guessing(ans); } public static void guessi...
package com.xiezh.findlost.activity; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.xiezh.fragmentdemo2.R; public class MessageActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState)...
package com.esum.framework.core.monitor; import java.io.Serializable; import com.esum.framework.common.util.DateUtil; /** * Component Status. */ public class ComponentStatus implements Serializable { // data를 insert할지 update할지 여부를 설정한다. private boolean insert = true; private String nodeId = ""; private Stri...
/* * Artem Pipich * Copyright (c) 2015 pipich3 */ package ua.epam.course.java.block02; import java.util.Arrays; /** * contains methods, executes laboratory work tasks by variants * @author Artem Pipich * @version 1.0 * @since 27.10.15 */ public class LW4 { /** * array, loaded from command line */ priva...
package com.epitech.ToDoList.DataBase; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import com.epitech.ToDoList.DataBase.TaskContract; /** * Created by Yoshax on 02/02/2018. */ public class DataBaseH extends SQLiteOpenHelper { ...
package Test; public interface C { void calculator(int num_a,int num_b); }
package com.alura.controller; import com.alura.dto.DetalhesTopicoDto; import com.alura.dto.TopicoDto; import com.alura.form.TopicoForm; import com.alura.modelo.Topico; import com.alura.service.TopicoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; impo...
import java.awt.event.KeyListener; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.MouseWheelListener; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.SwingUtilities; /** * When initialized to a jFrame, directs flow of input. This abstrac...
package com.youthlin.example.swing; import javafx.beans.property.SimpleIntegerProperty; import java.awt.*; import static com.youthlin.utils.i18n.Translation._f; /** * @author : youthlin.chen @ 2019-10-24 22:39 */ public class ScoreText extends GameObject { private SimpleIntegerProperty score = new SimpleInteg...
package com.legaoyi.protocol.up.messagebody; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.fasterxml.jackson.annotation.JsonProperty; import com.legaoyi.protocol.message.MessageBody; /** * 查询终端属性应答 * * @author <a href="mailto:shengbo.gao@gmail.co...
package com.apap.tugas1_apap.service; import java.math.BigDecimal; import java.math.BigInteger; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Optional; import org.springframework.beans...
package serviceTests; import com.google.gson.Gson; import dao.AuthTokenDao; import dao.DataAccessException; import dao.Database; import dao.PersonDao; import model.AuthToken; import model.Person; import org.junit.After; import org.junit.Before; import org.junit.Test; import request.LoadRequest; import response.ErrorRe...
package dev.bltucker.conway.game; import dev.bltucker.conway.tickmethods.TickMethod; import dev.bltucker.conway.tickmethods.TimedTick; import dev.bltucker.conway.ui.CommandLine; import dev.bltucker.conway.ui.UserInterface; import junit.framework.Assert; import org.junit.Test; public class GameTest { @Test ...
package com.arthur.bishi.xiecheng0415; import java.util.Scanner; /** * @title: No1 * @Author ArthurJi * @Date: 2021/4/15 18:57 * @Version 1.0 */ public class No1 { public static void main(String[] args) { Scanner in = new Scanner(System.in); String res; String _n; try { ...
package com.oracle.notebookserver.configuration; public class GeneralConfiguration { public static final int REQUEST_TIMEOUT = 10_000; // in miliseconds }
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations; import org.giddap.dreamfactory.leetcode.commons.ListNode; import org.giddap.dreamfactory.leetcode.onlinejudge.AddTwoNumbers; public class AddTwoNumbersImpl implements AddTwoNumbers { @Override public ListNode addTwoNumbers(ListNode l1, List...
package f.star.iota.milk.ui.akabe.kabe; import android.os.Bundle; import f.star.iota.milk.base.FixedImageFragment; public class KabeFragment extends FixedImageFragment<KabePresenter, KabeAdapter> { public static KabeFragment newInstance(String url) { KabeFragment fragment = new KabeFragment(); ...
package com.ut.module_mine.viewModel; import android.annotation.SuppressLint; import android.app.Application; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.MutableLiveData; import android.arch.lifecycle.Observer; import android.support.annotation.NonNull; import com.ut.base.ErrorHandler; impor...
package com.mobile.bataillenavale.lulu.bataillenavalemobile.controleur.communication; import android.app.Activity; /** * Created by Cyril on 10/01/2018. */ public abstract class MultijoueurActivity extends Activity { private boolean isWifiP2pEnabled = false; public void setIsWifiP2pEnabled(boolean isWifiP...
import java.util.*; class shaurya { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println("enter the string "); String s=sc.nextLine(); s=s+"S"; int x,y,z,sum=0,start=0,end=0; for(x=1;x<s.length();x++) { char ch=s.charAt(x); if...
package com.example.laboratorio_ahorcado; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.RadioButton; import ...
package pl.morecraft.dev.datagrammer.misc; import sun.nio.cs.US_ASCII; import java.nio.charset.Charset; public class Config { public static final Charset DEFAULT_CHARSET = new US_ASCII(); public static Integer DEFAULT_PACKET_SIZE = 12; public static Integer DEFAULT_TIMEOUT = 1000; }
package org.sheehan.fortune.service.Impl; import org.sheehan.fortune.service.PictureCurator; import org.springframework.stereotype.Service; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; @Service public class PictureCuratorImpl i...
package com.sirma.itt.javacourse.inputoutput.task6.serialization; import java.io.IOException; import org.apache.log4j.Logger; import com.sirma.itt.javacourse.InputUtils; /** * Class for running serialization example we create a new {@link UserDefinedObject} and save it to * a file and then we read the object and ...
/*********************************************************** * @Description : * @author : 梁山广(Liang Shan Guang) * @date : 2020/5/1 20:18 * @email : liangshanguang2@gmail.com ***********************************************************/ package 第4到27章_23大设计模式.第07章_建造者模式.V2链式调用; public class Cours...
/* * 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 the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
public class P2_13 {public static void main(String [] args) { String greeting = "Hello World!"; greeting = greeting.replace('o','x'); greeting = greeting.replace('e','o'); greeting = greeting.replace('x','e'); System.out.print(greeting); } }
package com.spring.professional.exam.tutorial.module03.question29.dao; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import com.spring.professional.exam.tutorial.module03.question29.ds.Employee; public interface EmployeeDao extends CrudRepository<Emp...
package com.example.ips.mapper; import com.example.ips.model.ServerplanSvnMaintain; import java.util.List; public interface ServerplanSvnMaintainMapper { int deleteByPrimaryKey(Integer id); int insert(ServerplanSvnMaintain record); int insertSelective(ServerplanSvnMaintain record); ServerplanSvnMa...
package com.migu.spider.model; public class Compet { private String type; private String videoType; //列表页 private String shortTitle; private String url; //详细页 private String title; private String content; /** * type. * * @return the type */ ...
package service.impl; import service.IHelloService; public class HelloServiceImpl implements IHelloService { @Override public void sayHello(String name) { System.out.println("Hello " + name); } }
import java.io.*; class Solution{ static void printPascal(int n){ for(int line=0; line<n; line++){ for(int i=0; i<=line; i++){ System.out.print(binomialCoefficient(line, i)+ " "); System.out.println(); } } } static int binomialCoefficient(int n, int k){ int res = 1; if(k > n-k){ k ...
package com.example.oodlesdemoproject.viewmodel; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; import com.example.oodlesdemoproject.model.countrydetails.CountryDetailsResponse; import com.example.oodlesdemoproject.model.repo.CountryListRepo; impor...
package com.reservation.service; import java.util.List; import java.util.Optional; import org.springframework.stereotype.Service; import com.reservation.model.Company; @Service public interface CompanyService { public List<Company> getCompany(); public Company insertCompany(Company request); publi...
package com.nube.core.instance.dao; import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.jdbc.core.RowMapper; import com.nube.core.instance.dto.Instance; public class InstanceDaoRowMapper implements RowMapper<Instance> { public Instance mapRow(ResultSet resultSet, int rowNum) throws...
/** * @author TATTYPLAY * @date Jul 11, 2018 * @created 12:43:07 AM * @filename Handler_1_8_R1.java * @project ChatColor * @package com.tattyhost.chatcolor.listener.chat.v1_8 * @copyright 2018 */ package com.tattyhost.reporter.versions.v1_8; import org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer; import org....
package pageObjects; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.CacheLookup; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import org.openqa.selenium.support.ui.Select; public class regPage { public Web...
package sesion03_cg_mul_a; public class Esferica { private double radio //Radio de la esfera ,AnguloE//Angulo teta ,AnguloF;//Angulo beta //Constructores public Esferica(double radio, double AnguloE, double AnguloF) { this.radio = radio; this.AnguloE = Ang...
/** * Contains the authoring User Interface. This package is self-contained except * for internal references to commands and listeners, and should be used to * launch the program (see GUI class) */ package authoring;
/* * Copyright (C) 2014 Vasilis Vryniotis <bbriniotis at datumbox.com> * * 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 the License, or * (at your option) any later v...
package com.web.common.config; public class MenuDTO { protected String MenuID; protected String MenuName; protected String UpMenuID; protected int MenuStep=1; protected int MenuSort=1; protected String MenuType; protected String UpdateDateTime; protected String DeleteYN; //Screen data protec...
package se.rtz.mltool.commnads; import java.io.IOException; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Reader; import net.htmlparser.jericho.Renderer; import net.htmlparser.jericho.Source; import se.rtz.csvtool.commonArgs.ReaderExtractor; import se.rtz.tool.arg.Param; import se.rtz.tool.ar...
package edu.upenn.cis350.androidapp.DataInteraction.Management.ItemManagement; import java.net.URL; import java.util.*; import org.json.simple.parser.*; import org.json.simple.*; import java.text.*; import edu.upenn.cis350.androidapp.AccessWebTask; import edu.upenn.cis350.androidapp.DataInteraction.Data.*; public cla...
/* * 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 bbdd; /** * * @author JD */ public class Sesion { private String idSesion; private String pelicula; private Str...
/** * 不同路径 III https://leetcode-cn.com/problems/unique-paths-iii/ */ public class 不同路径III { public int uniquePathsIII(int[][] grid) {//DFS比DP好理解,这里用DFS做 int startX=0,startY=0,count=0; for(int i=0;i<grid.length;i++){ for(int j=0;j<grid[0].length;j++){ if(grid[i][j]==1)...
/** * Kenny Akers * Mr. Paige * Homework #17 * 2/9/18 */ public class Number extends Leaf { private final int value; public Number(int value) { super(7); // Numbers have a precedence of 4. this.value = value; } @Override public int evaluate() { return this.value; ...
package 算法.分治算法; import 算法._计时工具类.MyTimer; /** * Created by Yingjie.Lu on 2018/8/23. */ /** * @Title: 使用分治算法来求 解逆序数对,时间复杂度为nlogn,即归并排序的时间复杂度 * @Date: 2018/8/24 11:20 */ public class 求逆序对 extends MyTimer { public static long sum=0;//记录总对数 //分 private static void sort(int[] arr,int left,int right,in...
package Study.ex01; import java.io.IOException; import javax.servlet.Servlet; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.annotation.WebServlet; public class Servlet01 implements Servlet{ ...
package com.cdkj.model.system.pojo; import com.cdkj.common.base.model.pojo.BaseModel; import java.util.List; /** * PackageName:com.cdkj.model.system.pojo * Descript:用户<br/> * date: 2018-6-19 <br/> * @author: yw * version 1.0 */ public class SysUser extends BaseModel { private String relationId; priva...
import java.util.*; import java.io.*; public class prob07 { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub //Scanner in = new Scanner(System.in); Scanner in = new Scanner(new File("prob07-2-in.txt")); while (in.hasNextDouble()) { double period = in.next...
import java.util.*; public class Ch18_07 { public static void main(String []args) { List<Integer> gallonsAtCity = new ArrayList<Integer>(Arrays.asList(10, 45, 25, 20, 15, 15, 15, 35, 25, 30, 15, 65, 45)); List<Integer> distances = new ArrayList<Integer>(Arrays.asList(200, 300, 300, 300, 400, 1000, 30...
package psoft.backend.exception.user; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.CONFLICT) public class UserEmailInvalidoException extends RuntimeException { public UserEmailInvalidoException(String s) { super(s); ...
/* * Copyright 2017 Rundeck, Inc. (http://rundeck.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 appli...
/* * 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 jc.fog.logic; import java.util.List; import jc.fog.exceptions.FogException; import jc.fog.logic.dto.CarportRequestDTO; import ...
package com.example.selfhelpcity.util; import com.example.selfhelpcity.bean.db.MsgBean; import com.example.selfhelpcity.model.ObjectBox; import com.starrtc.starrtcsdk.apiInterface.IXHChatManagerListener; import com.starrtc.starrtcsdk.core.im.message.XHIMMessage; import java.text.SimpleDateFormat; public class XHChat...
package nl.topicus.wqplot.components.plugins; /** * @author Ernesto Reinaldo Barreiro */ public class JQPlotCanvasAxisTickRenderer extends Renderer { private static final JQPlotCanvasAxisTickRenderer INSTANCE = new JQPlotCanvasAxisTickRenderer(); private JQPlotCanvasAxisTickRenderer() { super("$.jqplot.CanvasA...
package edu.neu.ccs.cs5010; import java.io.IOException; public interface IGraph { //void createGraph(String nodeCsvFile,String edgeCsvFile) throws IOException; int getVexNum();// return vertex numbers in this graph int getEdgeNum();//return the edges number in this graph; Users getVexElement(int v) th...
package com.company; public class Main { public static void main(String[] args) { // write your code here int num [] = {1,2,10,11,15,25,2,3,5,7,12,100,17,50,65,85,81,55,3}; System.out.println("** Bubble Sort ascending order **"); bubbleSort(num); for(int i =0; i<num.length;i++){ ...
public class BubbleSort { public static void main(String[] args) { GenerateArray ger = new GenerateArray(); ArrayOutput out = new ArrayOutput(); int []arr = ger.generateRandomArray(6,1,100); //bubbleSort(arr); bubbleSortUp(arr); out.arrayOutput(arr); } public...
package com.forever.service; /** * @Description: * @Author: zhang * @Date: 2019/6/18 */ public interface IRpcService { public int add(int a, int b); public int sub(int a, int b); public int mult(int a, int b); public int div(int a, int b); }
package com.example.user.hangman; import android.content.DialogInterface; import android.content.Intent; import android.media.MediaPlayer; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; public class MainActivity...
package algorithms.kd.nn; import algorithms.kd.Entry; import algorithms.kd.Point; import algorithms.kd.dist.Distance; import lombok.Getter; import java.util.*; @Getter public class WithinRadius<T> extends TargetDistance { private final double radius; private final PriorityQueue<NodeDistance<T>> minPq; public ...
package com.sinotech.settle.config; /** * */ public class ErrorCodes { /**登录信息有误*/ public static final String LOGIN_FAILED_ERROR = "5000"; /**权限不足*/ public static final String UNAUTHORIZED_ERROR = "5001"; /**参数为空*/ public static final String NULL_PARAM_ERROR = "5003"; /**没有登录*/ publi...
package io.nekohasekai.wsm; public abstract class WebSocketListener { protected void onOpen(WebSocket socket) { } protected void onPing(WebSocket socket, byte[] payload) { } protected void onPong(WebSocket socket, byte[] payload) { } protected void onMessage(WebSocket socket, String mes...
package co.sblock.events.region; import java.util.Map.Entry; import co.sblock.machines.utilities.Direction; import co.sblock.machines.utilities.Shape; import co.sblock.machines.utilities.Shape.MaterialDataValue; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.Trave...
package com.bofsoft.laio.customerservice.DataClass.Order; import java.util.ArrayList; /** * Created by jason.xu on 2017/3/28. */ public class OrderDetailRsp { private Integer Id; private String Num; private String CustomerCode; private String Name; private Float DealSum; private String View...