text
stringlengths
10
2.72M
package com.yuecheng.yue.base; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.design.widget.Snackbar; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import...
package br.com.nozinho.model; public enum FormaEncaminhamentoEnum { OFICIO_CORRESPONDENCIA("Ofício/Correspondência"), EMAIL("E-mail"), TELEFONE_CONTATO_INTERNO("Telefone/ Contato pessoal gabinete"); private String descricao; private FormaEncaminhamentoEnum(String descricao){ this.descricao = descricao; } ...
package virtualpetsamok; public class Cat extends OrganicPet implements Poop { private static int waste; private int ticksSincePoop; public Cat(String name, String description) { super(name, description); this.waste = 0; this.ticksSincePoop = 0; } // This overloaded constructor is for testing purposes pu...
//package com.sky.contract.service; // //import com.sky.contract.mapper.PermissionMapper; //import com.sky.contract.mapper.UserMapper; //import com.sky.contract.model.Permission; //import org.junit.Test; //import org.junit.runner.RunWith; //import org.springframework.beans.factory.annotation.Autowired; //import org.spr...
package redis_test; import redis.clients.jedis.Jedis; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; /** * Description: 模拟Redis客户端,向Redis服务端写入遵从RESP协议的数据 * * @author Baltan * @date 2019-10-10 16:30 */ public class RedisMockClientTest { public sta...
package com.suturease.SuturEase.controllers; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class BaseController { @RequestMapping("/crossBow") public String crossBow(){ return "crossBow"; } @RequestMapping("...
package it.unical.asd.group6.computerSparePartsCompany; import it.unical.asd.group6.computerSparePartsCompany.data.entities.Employee; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.jpa.repository.Modifying; import org...
package com.ssafy.web.dto; public class Store { private int no; //번호 private String storeName; //가게명 private String sido; //시도 private String gugun; //구군 private String dong; //동 private String juso; //전체주소 private String type; //종류 private String type2; //종류2 public Store() { // TODO Auto-generated cons...
package com.techathon.model.entity; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.google.common.base.MoreObjects; import javax.persistence.*; import java.util.Date; @Entity @Table(name = "EXERCISE") @JsonIgnoreProperties("exerciseRequest") public class Exercise extends UpdateableBaseEntity...
package com.nv95.ficbook; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android...
/* * Copyright 2021 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 applic...
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder; import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.ArbeitsvorgangTypType; import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.GLUEHENIstdatenType; import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.GluehstapelIdentType; import...
package ua.www2000.yourcourses.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import ua.www2000.yourcourses.entity.Topic; @Repository public interface TopicRepository extends JpaRepository<Topic, Long> { }
package com.mateus.discordah.game; import com.mateus.discordah.cards.Card; import com.mateus.discordah.cards.CardComposite; import com.mateus.discordah.cards.PlayedCards; import com.mateus.discordah.listener.CzarListener; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.a...
package edu.nju.data.daoImpl; import edu.nju.RuanHuApplication; import edu.nju.data.dao.MessageDAO; import edu.nju.data.entity.Message; import edu.nju.data.entity.User; import edu.nju.data.util.MesType; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowire...
package WinGame; public class Square { private String name; private int position; Square(String namePick, int pos){ setName(namePick); setPos(pos); } private void setName(String namePick) { this.name = namePick; } private void setPos(int pos) { this.positi...
package utility.model.SchemaParser.service; import static utility.model.SchemaParser.constants.Constants.CSV; import static utility.model.SchemaParser.constants.Constants.PREFIX_FILE_PATH; import static utility.model.SchemaParser.constants.Constants.SCHEMA_PATH_FILE; import static utility.model.SchemaParser.utility.SQ...
import java.util.Scanner; public class BodyIndex { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double weight, height, bmi; System.out.println("Your weíght (in kilogram) is: "); weight = sc.nextDouble(); System.out.println("Your height (in me...
/* * The purpose of this lab is to learn about using the for loop * inside of a method and having if statements inside of the for loop. * * Author: Victor (Zach) Johnson * Date: 10/14/17 */ package chapter6; import java.util.Scanner; public class PasswordChecking { public static void main(String[] args) { ...
package com.espendwise.manta.web.controllers; import com.espendwise.manta.model.view.SiteListView; import com.espendwise.manta.util.SelectableObjects; import com.espendwise.manta.web.forms.AbstractFilterResult; import java.util.List; public class LocateLocationFilterResultForm extends AbstractFilterResult<...
package com.nxtlife.mgs.jpa; import org.springframework.data.jpa.repository.JpaRepository; import com.nxtlife.mgs.entity.user.LFIN; public interface LFINRepository extends JpaRepository<LFIN , Long> { public boolean existsByCidAndActiveTrue(String cid); public boolean existsByEmailAndActiveTrue(String email); }...
package com.tencent.mm.ui.chatting; import android.content.Context; import com.tencent.mm.ui.x; public interface f$c { boolean a(String str, Context context, x xVar, String str2); }
package com.tencent.mm.plugin.voip.model; import com.tencent.mm.e.b.c; import com.tencent.mm.sdk.platformtools.x; class l$a implements Runnable { private b kqa = null; private c kqt = null; final /* synthetic */ l oKN; public l$a(l lVar, b bVar, c cVar) { this.oKN = lVar; this.kqa = b...
// Sun Certified Java Programmer // Chapter 6, P469_2 // Strings, I/O, Formatting, and Parsing public class Tester469_2 { public static void main(String[] args) { // TODO code application logic here } }
package classformat.cptype; public class ConstantPoolType { }
package model.validations.interfaces; public interface OnCreate { }
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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 a...
/* * [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 te...
package Test; import java.util.*; public class Data { /// Helper class // to keep track on the operations applied on the document /// operation name, previous value of the variable, new value of the variable private String name; private String previousValue; private String nextValue; pub...
package com.accp.pub.pojo; import java.util.Date; public class Accessory { private Integer fujianid; private String fujianname; private String fujianurl; private String fujianbianhao; private Float daxiao; private Date fujiantate; private String scname; private String scid; ...
package cn.bs.zjzc; import android.content.Intent; import java.text.SimpleDateFormat; import cn.bs.zjzc.cache.DataCacheManager; public interface AllConsts { interface IndexConsts { // 广告轮播间隔 int adLoopTime = 2000; } interface cache { // 一次行缓存,退出应用后清除所有缓存 DataCacheManage...
/* * Copyright (C), 2013-2014, 上海汽车集团股份有限公司 * FileName: CxjCardItemInfo.java * Author: baowenzhou * Date: 2015年08月21日 下午1:34:06 * Description: //模块目的、功能描述 * History: //修改记录 * <author> <time> <version> <desc> * 修改人姓名 修改时间 版本号 描述 */ package com.xjf...
package com.company; import java.util.*; import java.util.concurrent.CopyOnWriteArrayList; public class Main { @SuppressWarnings(value = "unused") private int a ; public static void main(String[] args) throws InterruptedException { List<String> stringList = new ArrayList<>(); // List<Stri...
package com.zjh.administrat.torchbearer_power.bag.utilsbag; import com.zjh.administrat.torchbearer_power.bag.beanbag.UserIDBean; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import java.util.Map; import okhttp3.RequestBody; import okhttp3.ResponseBody; import retrofit2.http.G...
package com.xnuminousx.elementaleffects.commands; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.xnuminousx.elementaleffects.gui.IndGui; import com.xnuminousx.elementaleffec...
/** * A class to handle the 'Return' option of the Main Menu. */ public class ReturnOption implements Option { private String name; private BookLister bookLister; public ReturnOption(String name, BookLister bookLister) { this.name = name; this.bookLister = bookLister; } @Overrid...
package me.Streampy.minetopia.commands; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import me.Streampy.minetopia.Main; import me.Streampy.minetopia.subcommands.Plot; public class m...
package io.github.rhythm2019.mawenCommunity.constant; /** * @author Rhythm-2019 * @date 2023/3/7 * @description */ public class ConfigurationConstant { public static final String TAGS_FILE_PATH = "classpath:tags.json"; public static final String TAGS_NAMESPACE = "tags"; }
package zm.gov.moh.core.model; public class IntentAction { public static final String REMOTE_SERVICE_INTERRUPTED = "zm.gov.moh.common.REMOTE_SERVICE_INTERRUPTED"; public static final String REMOTE_SERVICE_METADATA_SYNC_COMPLETE = "zm.gov.moh.common.REMOTE_SERVICE_METADATA_SYNC_COMPLETE"; public static fin...
package ejercicios.colection.list; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Integer numero1 = 1; Integer numero2 = 4; Integer numero3 = 8; Integer numero4 = 20; // ctrl + shift + o java.util.list ...
package hello; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; public class BlogFile { private BufferedReader reader; private Integer waitPeriod = 1000; private File generateBlogFile() { return new File("/tmp/spring-exam...
package com.jst.model; public class QuestionsTagMiddle { private Questions questions; private QuestionsTag questionsTag; public Questions getQuestions() { return questions; } public void setQuestions(Questions questions) { this.questions = questions; } public QuestionsTag g...
package ch20.ex20_11; import java.io.File; import java.io.FilenameFilter; public class FileFilterPrefix implements FilenameFilter{ private File file; // file private String prefix; // 接尾語 public FileFilterPrefix(File directory, String prefix){ file = directory; this.prefix = prefix; } pu...
package com.espendwise.manta.dao; import java.util.List; import com.espendwise.manta.model.data.UserAssocData; import com.espendwise.manta.model.data.UserData; import com.espendwise.manta.util.criteria.UserAssocCriteria; import java.util.List; public interface UserAssocDAO { public UserAssocData readAssoc(Long...
package iarfmoose; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; import com.github.ocraft.s2client.bot.gateway.UnitInPool; import com.github.ocraft.s2client.protocol.data.UnitType; import com.github.ocraft.s2client.protocol.data...
package com.studio.saradey.aplicationvk.ui.activity; import android.accounts.AccountManager; import android.content.Intent; import android.os.Bundle; import android.provider.Settings; import com.arellomobile.mvp.presenter.InjectPresenter; import com.mikepenz.google_material_typeface_library.GoogleMaterial; i...
import java.awt.TextArea; import java.util.ArrayList; import java.util.Scanner; public class throwAway { private TextArea outputArea; private int numResourceTypes=0; private ArrayList resourceList = new ArrayList(); ArrayList tempAllocationList = new ArrayList(); ArrayList tempNewWorkList = new Arr...
package com.fleet.mysql.multi.service.impl; import com.fleet.mysql.multi.dao.master.MasterUserDao; import com.fleet.mysql.multi.dao.slaver.SlaverUserDao; import com.fleet.mysql.multi.entity.User; import com.fleet.mysql.multi.service.UserService; import org.springframework.stereotype.Service; import org.springframework...
package com.drzewo97.ballotbox.panel.controller.district; import com.drzewo97.ballotbox.core.model.country.CountryRepository; import com.drzewo97.ballotbox.core.model.district.District; import com.drzewo97.ballotbox.core.model.district.DistrictRepository; import org.springframework.beans.factory.annotation.Autowired; ...
package com.weixin.web.servlet; import com.weixin.dto.WeiXinInfo; import com.weixin.service.CoreService; import com.weixin.thread.AccessTokenThread; import com.weixin.tool.SignUtil; import com.weixin.tool.WeixinUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.ServletException; impor...
package org.rainice.model; import java.io.Serializable; public class BaseModel implements Serializable{ private static final long serialVersionUID = 1339810983872667825L; private Integer startRow; //起始行 private Integer endRow; //结束行 private Integer pageLimit; //页面大小 private Integer pageOffset; //页面偏移量 p...
package com.zebra.pay.utils; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Element; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * 目前只应用在基础数据列表上 * @author 2013159 */ @Component public class ...
/** * Copyright 2019 bejson.com */ package com.wxapp.jsonbean; import java.util.List; /** * Auto-generated: 2019-12-31 15:56:46 * * @author bejson.com (i@bejson.com) * @website http://www.bejson.com/java2pojo/ */ public class FriendCounter { private String friendCount; private List<String> friendWxi...
package uk.gov.companieshouse.api.testdata.model.entity; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Field; import java.time.Instant; import java.util.List; @Document(collection = "company_pscs") pu...
import java.util.Scanner; public class ProgramaNotas { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("CALCULANDO NOTAS DA TURMA"); System.out.println("Quantos alunos há na turma?"); int numAlunos = Integer.parseInt(scan.nextLine()); String [] listaNo...
public class absmethodinterfaceext implements absmethodinterface { public int multiplyTwo(int num1, int num2){ return num1*num2; } public int multiplyThree(int num1, int num2, int num3){ return num1*num2*num3; } public static void main(String args[]){ absmethodinterfaceex...
package com.allen.lightstreamdemo.fragment; import android.app.Dialog; import android.os.Bundle; import android.text.TextUtils; import android.view.Display; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.Window; import android.view.WindowManager; import a...
package com.app.thread; import java.util.LinkedList; import java.util.List; /** * Producer Class in java, Producer will allow consumer to consume only * when 10 products have been produced (i.e. when production is over). */ public class Producer implements Runnable { boolean prodInProcess; List<Integer> list; ...
package com.tencent.d.b.f; import android.content.Context; import com.tencent.d.b.c.a; import com.tencent.d.b.e.c; import com.tencent.d.b.e.f; public final class b { public int fdx; a jgQ; Context mContext; String pIu; c vmi; public f vmj; com.tencent.d.b.c.b vmk; /* synthetic */ b(by...
package com.多线程; import java.util.ArrayList; import java.util.List; import java.util.concurrent.BlockingQueue; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionService; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorCompletionService; im...
package com.tkb.elearning.action.admin; import java.io.IOException; import java.util.List; import com.tkb.elearning.model.AllAssociation; import com.tkb.elearning.model.Zone; import com.tkb.elearning.service.AllAssociationService; import com.tkb.elearning.service.ZoneService; import com.tkb.elearning.util.VerifyBase...
package org.fuusio.api.rest.volley; import android.util.Log; import com.android.volley.Response; import com.android.volley.VolleyError; import org.fuusio.api.rest.HttpMethod; import org.fuusio.api.rest.RequestListener; import org.fuusio.api.rest.RestRequest; public abstract class VolleyRestRequest<T_Response> exten...
package Model; import javafx.scene.shape.Shape; public class Line extends Figure{ // Konstruktoren für die Klasse Line public Line(double a, double b, double x, double y) { super(a, b, x, y); } // Rückgabe Figurentyp protected String getType() { return "Linie"; } // Bere...
import java.util.ArrayList; import java.util.List; import java.util.Arrays; public enum Tuning { STANDARD(Note.E, Note.A, Note.D, Note.G, Note.B, Note.E); List<Note> notes = new ArrayList<>(); Tuning(Note ... notes) { this.notes = Arrays.asList(notes); } public List<Note> getNotes() ...
package com.e6soft.form.dao.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.e6soft.core.mybatis.BaseEntityDao; import com.e6soft.form.dao.DataSourceFieldShowRuleD...
import java.util.Scanner; public class bus { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Students : "); double students = in.nextDouble(); in.nextLine(); System.ou...
package com.wechat.service; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import net.sf.json.JSONObject; import com.ssm.util.TokenThread; import com.ssm.wechatpro.object.OutputObject; import com.ssm.wechatpro.util.Constants; import ...
package com.tencent.mm.plugin.appbrand.launching.precondition; import android.content.Intent; import com.tencent.mm.plugin.appbrand.config.AppBrandInitConfig; import com.tencent.mm.plugin.appbrand.launching.AppBrandLaunchProxyUI; import com.tencent.mm.plugin.appbrand.launching.params.LaunchParcel; import com.tencent.m...
package com.codechallenge.application.services.impl; import java.time.LocalDateTime; import java.util.List; import java.util.UUID; import java.util.stream.Collectors; import org.springframework.data.domain.Sort; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transacti...
package com.casterlabs.vanishingwallapi.service.impl; import com.casterlabs.vanishingwallapi.modal.PostDetail; import com.casterlabs.vanishingwallapi.service.IPostCreateService; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import java.util.UUID; @Service public class Po...
package com.springBoot.dao.query; import java.util.Date; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Customer2 { private Integer id; private String lastName; // private String city; private Date createTime; public Date getCreateTime() { return createTi...
package ru.job4j.todo.servlet; import org.junit.Test; import org.junit.runner.RunWith; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import ru.job4j.todo.service.HibernateService; import ru.job4j.tod...
package com.tencent.mm.protocal.c; import com.tencent.mm.bk.a; import com.tencent.mm.plugin.game.f$k; public final class avq extends a { public int dGs; public String eaZ; public String jQb; public long nlo; public int otY; public String protocol; public int rKe; public String rYA; ...
package extendedNodePositionList; import net.datastructures.Position; import net.datastructures.BoundaryViolationException; import java.io.BufferedWriter; import java.io.FileWriter; import java.lang.management.ManagementFactory; /** * This class provides methods to test your implementation of * the <code>IntegerS...
package com.jackie.classbook.common; /** * Created with IntelliJ IDEA. * Description: * * @author liuxl * @date 2018/7/2 */ public enum MateTypeEnum { DESKMATE(1, "同桌"),ROOMMATE(2, "室友"); private int key; private String value; MateTypeEnum(int key, String value) { this.key = key; ...
/* * 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 org.opensoft.model.services; import java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityMa...
package cn.gzcc.feibao.entity; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class My { @Id private int Id; private String name; private String address; private String remark; private String no; private String status; private String type; private Str...
package com.example.strongM.mycalendarview.calendar; import android.content.Context; import android.support.v4.view.PagerAdapter; import android.util.Log; import android.view.View; import android.view.ViewGroup; import com.example.strongM.mycalendarview.calendar.formatter.CalendarWeekDayFormatter; import com.example...
package com.google.android.gms.common.internal; import android.accounts.Account; import android.view.View; import com.google.android.gms.common.api.Scope; import com.google.android.gms.common.api.a; import com.google.android.gms.signin.e; import java.util.Collections; import java.util.HashSet; import java.util.Map; im...
package com.yc.controllers; import java.util.HashMap; import java.util.Map; import javax.annotation.Resource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframewor...
package com.example.ferdinand.travelup; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.Editable; import android.text.TextWatcher; import an...
package com.headfirst.designpatterns.factory.simplefactory; public class CheesePizza extends Pizza{ public CheesePizza(){ name = "Cheese Pizza"; dough = "Cheese Dough"; sauce = "CheeseSauce"; toppings.add("Cheese Cheese"); } }
package utils; import Model.Edge; import Model.Graph; import Model.Vertex; import org.uma.jmetal.solution.IntegerSolution; import java.util.*; public class EvaluatorUtils { public ArrayList<ArrayList<Integer>> extractDispatchListsFromSolution(List<Integer> dispatchListRaw, ...
public class DistList { private String label; private double [] dist; public DistList(String label, double[] dist) { super(); this.label = label; this.dist = dist; } public String getLabel() { return label; } public void setLabel(String label) { this.label = label; ...
package com.demo.thread; import java.util.ArrayList; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListV...
/* * 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 learnjava; import java.util.Scanner; /** * * @author CongThanh */ public class Unit2 { public static boolean chec...
/* * VTB Group. Do not reproduce without permission in writing. * Copyright (c) 2017 VTB Group. All rights reserved. */ package com.resource.integration; import com.Application; import com.dto.DispatcherDto; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Before; import org.junit.Test; import ...
package ass1.PQueue; import ass1.PQueue.IPriorityQueue; import ass1.PQueue.PQNode; public class LinearPQ<T> implements IPriorityQueue<T> { private PQNode<T> front; private int size; private int running = 0; public LinearPQ() { this.front = null; this.size = 0; } @Override public void add(T element, d...
package Algorithm; public class DistanceFunction { public static double calcDistance(Point p1, Point p2){ return Math.sqrt(Math.pow(p1.getX()-p2.getX(),2)+Math.pow(p1.getY()-p2.getY(),2)+Math.pow(p1.getZ()-p2.getZ(),2)); } }
package com.web.servlet; import com.domain.Book; import com.service.BookService; import com.service.impl.BookServiceImpl; import com.utils.Scanner; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; im...
package org.foobarspam.MarcHernadezCabot_proxy; public interface DoSomethingSimple<T, R> { public T doRequest(T accion, R objeto); }
package com.sibilante.shortner.config; import javax.ws.rs.ApplicationPath; import org.glassfish.jersey.server.ResourceConfig; import org.springframework.stereotype.Component; import com.sibilante.shortner.controller.ShortnerResource; @Component @ApplicationPath("/") public class JerseyConfiguration extends Resource...
package com.plivo.utilities; import com.jayway.jsonpath.JsonPath; import java.io.File; public class JsonReader { public String fileName; private File jsonFile; public JsonReader(String fileName) { this.fileName = fileName; } public String getTestData(String data) { try { ...
package pl.cwanix.opensun.agentserver.packets.processors.sync; import io.netty.channel.ChannelHandlerContext; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.slf4j.Marker; import org.slf4j.MarkerFactory; import pl.cwanix.opensun.agentserver.packets.c2s.sync.C2SAskKeyboardMovePacket;...
public class Node<T> { T i; Node left; Node right; public Node(T i){ this.i = i; } public Node(){ i = null; } public void setLeft(Node n){ left =n; } public void setRight(Node n){ right = n; } public Node getRight(){ return right; } public Node getLeft(){ return left; } public...
/* * 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 dominio; import java.util.ArrayList; import java.util.Date; /** * * @author josdan */ public class Empleado ...
package com.javarush.task.task32.task3204; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; /* Генератор паролей */ public class Solution { public static void main(String[] args) ...
package model; import java.io.File; public class DownlaodFile { private int status; private String statuss=getStatus_str(); public int getStatus() { return status; } public String getStatuss() { return statuss; } public void setStatuss(String statuss) { this.sta...
package com.lera.vehicle.reservation.domain.customer; import org.junit.Test; import static org.junit.Assert.assertEquals; public class CustomerTypeTest { @Test public void testGetName() { assertEquals("Client", CustomerType.CLIENT.toString()); assertEquals("Retail", CustomerType.RETAIL.toStri...
package com.redbus.pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.How; import org.openqa.selenium.support.PageFactory; public class NavBar { // ---------------Page Factory-------------------- @Find...