text
stringlengths
10
2.72M
package com.hillel.javaElementary.classes.Lesson_4; import com.hillel.javaElementary.classes.Lesson_4.People.Position; import com.hillel.javaElementary.classes.Lesson_4.People.Student; import com.hillel.javaElementary.classes.Lesson_4.NotPeople.*; import com.hillel.javaElementary.classes.Lesson_4.People.Teacher; impo...
package com.huangg.admin.web.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller public class HomeController { @RequestMapping(value = "/",method = RequestMethod.GET...
package Menu; import Modele.Firma; import java.util.Scanner; public class MenuZwolnijPracownika { public static class MenuZwolnijPracownikaMetodu { public static Scanner sc = new Scanner(System.in); public static int indeks; public static void Wybierz(int wartosc, Firma firma) { ...
package algorithms.strings.compression; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.Map; import edu.princeton.cs.algs4.BinaryIn; import edu.princeton.cs.algs4.BinaryOut; import org.junit.Test; /** *...
package dev.liambloom.softwareEngineering.chapter16.rotate; import dev.liambloom.softwareEngineering.chapter4.Ask; public abstract class AbstractCircularLL<N extends AbstractCircularLL<N>.Node> { N head; N tail; int size; public static <N extends AbstractCircularLL<N>.Node> void main(AbstractCircular...
package baseline; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.List; import static org.junit.jupiter.api.Assertions.*; class Solution40Test { @Test void test_CanDisplay() { List<Solution40> employeeList = new ArrayList<>(); employeeList.add(new Solution40(...
package cdp.pessoa; import java.io.Serializable; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import cdp.exception.CadastroException; import cdp.exception.ValidacaoException; import cdp.participacao.AlunoGraduando; import cdp.participacao.Participacao; import cdp.participacao.Profissio...
package com.zl.service; import com.zl.pojo.ContractDO; import com.zl.pojo.ContractDTO; import com.zl.pojo.ContractVO; import com.zl.pojo.GardenStuffVO; import com.zl.util.AjaxPutPage; import com.zl.util.AjaxResultPage; import com.zl.util.MessageException; import java.math.BigDecimal; import java.util.List; /** * @p...
package br.com.sergio.app.model.repository.jpa; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import br.com.sergio.app.model.jpa.OperacaoBancaria; @Repository public interface OperacaoBancariaRepository extends JpaRepository<OperacaoBancaria, ...
package com.expriceit.maserven.entities; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Query; /** * Created by stalyn on 14/12/2017. */ public interface ConsultaCliente { @GET("MisClientesWS") Call<getCliente> consumeDatosClienteWS(@Query("usuario") String usuario, ...
/* * 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 analizador; import java.awt.Color; import java.awt.MouseInfo; import java.awt.Point; import java.awt.Toolkit; /** * * @auth...
package Chapter1; /** * Created by Anmol Mago on 05-07-2016. */ public class RotateMatrix_7 { //Question only specifies 90 degrees and not which direction private enum Direction{ left, right } //NxN, N=4 static int[][] image = { {1,0,0,0}, {0,1,0,0}, ...
/* * Copyright 2002-2012 Drew Noakes * * 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...
package com.rsmartin.arquitecturamvvm.utils; import android.os.SystemClock; import android.util.ArrayMap; import java.util.concurrent.TimeUnit; /** * Nos permite decidir si podemos solicitar datos del webServices * o nos debemos quedar con los datos de Room. * * Dependemos de Key, si ha pasado más tiempo de ese...
/* * 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 poo.estacionamiento.ui; import java.math.BigDecimal; import java.util.Calendar; import poo.estacionamiento.AbonoPropietario; i...
/* $Id$ */ package djudge.dservice; import java.util.HashMap; public class DServiceTask { int id; String contestId; String problemId; String languageId; String source; String clientData; String params; public DServiceTask() { params = clientData = contestId = problemId = languageId = s...
package com.Nine; import static org.junit.Assert.assertEquals; import org.json.JSONException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.client.TestRestTemplate; import org.springframework.boot.we...
package br.com.metrocamp.example.sergio.tempo.model; /** * Created by Sergio on 3/5/18. */ public class Clima { //Attributes private String nome; private TipoClima tipoClima; private int temperatura; //Properties public String getNome() { return nome; } public void setNome...
package BinaryTree; /* Objective is to print top view of binary tree. * Example: * Current tree: * 1 / \ 2 3 / \ / \ 4 5 6 7 / / 8 9 Top view of tree is : 8 4 2 1 3 7 * * */ import java.util.Stack; class N...
package com.example.kimnamgil.testapplication.widget; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.example.kimnamgil.testapplication.R; import com.example.kimnamgil.testapplication.data.Person; /** * Created by k...
/* * 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 m2cci.pi01.cybertheatremodel; import org.junit.Test; import static org.junit.Assert.*; /** * * @author Ltifi */ public cla...
package io.quarkus.narayana.interceptor; import io.quarkus.narayana.jta.Rollback; // force a rollback to counter the default @Rollback public class AnnotatedTestException extends Exception { }
package org.netpreserve.urlcanon; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ParserUrlTest { @Test public void testReverseHost() { assertEquals(",", ParsedUrl.reverseHost(new String("")).toString()); assertEquals("x,", ParsedUrl.reverseHost(new String("x"...
package com.huruilei.designpattern.strategy; /** * @author: huruilei * @date: 2019/10/31 * @description: * @return */ public interface QuackBehavior { void quack(); }
package com.company.Net; import com.company.Devices.Device; import java.io.*; import java.net.Socket; import java.nio.charset.Charset; public class TCPConnection { private final Socket socket; private final Thread thread; private final BufferedReader in; private final BufferedWriter out; private...
package com.example.demo.controller; import com.example.demo.model.SysUser; import com.example.demo.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * C...
package com.jgw.supercodeplatform.trace.pojo.certificate; import io.swagger.annotations.ApiModelProperty; import java.util.Date; public class CertificateTemplateField { private Long id; private String templateId; private Integer fieldType; private String fieldText; private Integer fontSize; ...
package dk.jrpe.monitor.db.httpaccess.to; /** * Immutable TO object for HTTP access data. * @author Jörgen Persson */ public class HTTPAccessTO { private final String httpStatus; private final String ipAddress; private final String action; private final String url; private final String date; ...
package com.youthlin.example.compiler.linscript.semantic; import lombok.Getter; import lombok.Setter; import java.util.List; import java.util.Objects; /** * 结构体的方法 * 是符号、作用域 * * @author : youthlin.chen @ 2019-09-01 10:04 */ @Getter @Setter public class Method extends AbstractScopedSymbol { private boolean i...
package chribb.mactrac.ui.add; import android.app.Application; import androidx.lifecycle.AndroidViewModel; import java.util.List; import java.util.concurrent.Executors; import chribb.mactrac.data.Favorite; import chribb.mactrac.data.FavoriteDao; import chribb.mactrac.data.FavoriteTrie; import chribb.mactrac.data.Ma...
package Controle; import Modelo.Gasto; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; /** * * @author Daniel Castro */ //classe de constrole dos gastos public class ContGas...
package cn.fuyoushuo.fqbb.view.flagment; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.CardView; import android.text...
package com.eagleshipperapi.service; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import org.springframework.stereotype.Service; import com.eagleshipperapi.bean.States; import com.eagleshipperapi.exception.ResourceNotFoundException; import com.google.api.core.ApiF...
package com.hyokeun.org.model; import java.io.Serializable; public class Name implements Serializable { private String firstName; private String lastName; public Name(final String fName, final String lName) { firstName = fName; lastName = lName; } public String getFirst() { ...
package common; /** * @author Steve Riley */ public class SimpleDBCell { private String m_value; public SimpleDBCell() { this(""); //$NON-NLS-1$ } /** * @param p_value */ public SimpleDBCell(final String p_value) { m_value = p_value; } public boolean asBoolean() { return Boolean.parseBoolean(m...
package com.example.steve.moviecatalogue3.adapter; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widge...
import gov.nih.mipav.model.algorithms.*; import gov.nih.mipav.model.file.FileInfoBase.Unit; import gov.nih.mipav.model.structures.*; import gov.nih.mipav.view.*; import java.io.*; /** * This is simple plugin that finds the distances between 2 different color centers of mass weighted by fluorescence and * threshol...
package controller.registrar.summer; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Http...
package returnTypeTest; public class ReturnTypeTest { }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Controller.Admin; import Business.TableBookingBAL; import Entity.Booking; import Entity.TableBooking; import java.util.List; import java.util.TimeZone; import javax.faces.bean.ManagedBean; import javax.faces.bea...
package com.nexlesoft.tenwordsaday_chiforeng.widget; import static com.nexlesoft.tenwordsaday_chiforeng.utilities.Strings.isNotEmpty; import android.content.Context; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.vi...
public class Prime { public static void main(String[] args) { int limit =50000; boolean[] prime = new boolean[limit+1]; prime[0] = true; prime[1] = true; for(int i=2;i<limit+1;i++) { if(!prime[i]) { for(int j=2; i*j<=limit; j++) { prime[i*j]=true; } } } for (int i = 0; i < prime.leng...
package com.jagdish.bakingapp; import android.app.Application; public class BakingApplication extends Application { public static final String TAG = BakingApplication.class.getName(); private static BakingApplication instance; @Override public void onCreate() { super.onCreate(); } ...
package com.example.isufdeliu; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.Docu...
package no.ntnu.stud.ubilearn.models; import java.util.Date; import no.ntnu.stud.ubilearn.R; import no.ntnu.stud.ubilearn.fragments.handbook.ArticleFragment; /** * Simple model containing data for Articles used in {@link ArticleFragment}. */ public class Article extends ListItem{ private String objectId; priva...
/* * Copyright (c) 2013-2014, Neuro4j.org * * 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 applicab...
package com.trannguyentanthuan2903.yourfoods.history_order_user.model; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.LinearLayoutManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.bignerdranch.e...
package info.datacluster.test; import com.google.gson.Gson; import info.datacluster.crawler.utils.UrlUtils; import org.junit.Test; import java.util.Map; public class TaskParseTest { @Test public void test(){ String s = "{\"taskId\":\"1\",\"urls\":\"https://movie.douban.com\",\"className\":\"info.dat...
package com.example.marta.zoo; import com.example.marta.zoo.animals.Zoo.Visitor; import org.junit.Before; import org.junit.Test; import static junit.framework.Assert.assertEquals; /** * Created by marta on 12/11/2017. */ public class VisitorTest { Visitor visitor; @Before public void before() { ...
import java.util.ArrayList; /** * * @author ntnrc */ public class TestDisco { public static void main(String args[]){ ArrayList <Cancion> canciones = new ArrayList(); Cancion cancion1 = new Cancion(1, "como una novela", 3.46); Cancion cancion2 = new Cancion(2, "contra el dragon", 3.48); ...
package org.exercise; import java.util.List; import java.util.stream.Collectors; public class TestProductSelections { public static void main(String args[]) { List<Laptops> laptops = Laptops.fetchLaptops(); List<Laptops> particularlaptops = laptops.stream().filter(item -> item.getBrandName().equals("lenova")) ...
package gg.bayes.challenge.persistance.repositories; import gg.bayes.challenge.persistance.model.SpellEventsPO; import gg.bayes.challenge.rest.model.HeroSpells; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; import java.util.U...
import java.util.*; public class ARR { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("Enter the size of the array:"); int l=sc.nextInt(); int arr[]=new int[l]; int i,j,k,a,b,c,count=0; System.out.println("Enter the elements of the array:"); for(i=0;i<l...
package tree; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Queue; public class C429 { public static void main(String[] args) { Node t1 = new Node(5); Node t2 = new Node(6); List<Node> childT = new ArrayList<>(); childT.add(t1); childT.add(t2)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * MenuUtama.java * * Created on 03 Nov 15, 13:03:37 */ package Forms; import cls.ClassDB; import java.awt.Dimension; import java.awt.Image; import java.awt.Toolkit; import java.io.InputStream; import java.sql.Co...
package design_pattern.factory.parts; import design_pattern.factory.Factory; import design_pattern.factory.Part; public class Vision extends Part { public static class VisionFactory implements Factory<Vision> { public Vision create(){ System.out.println("create Vision"); return new...
package com.mobile.mobilehardware.hook; import android.content.Context; import org.json.JSONObject; /** * @author 谷闹年 * @date 2018/8/8 * Xposed CydiaSubstrate 框架检测工具类 */ public class HookHelper extends HookInfo { /** * 判断是否有xposed等hook工具 * * @param context * @return */ publi...
package escolasis.modelo.dao.jdbc; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.text.ParseException; import java.util.ArrayList; import java.util.List; import escolasis.exceptions.AutenticacaoException; import escolasis.modelo.Pessoa; import escolasi...
package com.gxtc.huchuan.ui.live.invitation; import android.os.Bundle; import android.view.View; import com.gxtc.commlibrary.base.BaseTitleActivity; import com.gxtc.huchuan.R; import butterknife.OnClick; /** * Created by Gubr on 2017/3/17. */ public class ActivityInvitationHonored extends BaseTitleActivity { ...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.webui.common; import com.vaadin.data.Validatable; import com.vaadin.data.Validator.InvalidValueException; import com.vaadin.ui.AbstractComponent; import com.vaadin.ui...
package com.movieapp.anti.movieapp.Api; public class ApiConstants { public static final String ConsumerKey = "api_key=1702d47c418687e73ada55eda26d078b"; // public static final String PHOTOS_ENDPOINT = "ticker/"; }
package com.example.hellostudiotesting; import android.app.Application; import android.test.ActivityInstrumentationTestCase2; import android.test.ApplicationTestCase; import android.widget.TextView; /** * A Simple test of the Main Activity */ public class MainTest extends ActivityInstrumentationTestCase2<MainActivi...
package com.barrunner.view; import java.util.LinkedList; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.barrunner.factories.TileHandler; import com.barrunner.model.EntityMovable; import com.barrunner.model.Lev...
package ioc.Demo_16; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import javax.annotation.Resource; /** * Created by Yingjie.Lu on 2018/8/3. */ @Component public class People { @Valu...
package controller; import database.dao.Dao; import database.entity.User; import javafx.collections.ObservableList; import javafx.fxml.Initializable; import javafx.scene.control.*; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.stage.Stage; import javafx.util.Callback; import utils.Met...
package br.assembleia.controle; import javax.annotation.PostConstruct; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Control...
package me.ThaH3lper.com.Grades; import java.util.ArrayList; import java.util.List; import java.util.Random; import me.ThaH3lper.com.Dungeon; public class Grade { public float boost; public int levels; public int lives; Dungeon dun; public List<String> waves= new ArrayList<String>(); Random r = new Random();...
package com.miro.platform.widget.config; import com.miro.platform.widget.domain.repository.WidgetRepo; import com.miro.platform.widget.domain.service.WidgetService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.conte...
package com.Premium.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; import lombok.NonNull; @Entity @Table(name = "Roles") @Data ...
package com.example.laptopstore; public class LaptopModel { //region property private String model; private boolean status; private String company; private String madeIn; private int price; //endregion //region Constructor public LaptopModel(String model, boolean status, String co...
package com.atguigu.lgl; // 创建线程的方式之二: 实现Runnable接口 class TestLuo4 implements Runnable{ @Override public void run() { for (int i = 0; i < 100; i++) { System.out.println(Thread.currentThread().getName()+ "--" + i); } } } public class MakeThread2_2 { public static void main(String[] args) { //主线程 fo...
package com.atguigu.java; public class Creature { public void show(){ System.out.println("creature show"); } public void say(){ System.out.println("creature say"); } }
package io.jee.alaska.util; import javax.servlet.http.HttpServletRequest; public class UrlUtils { public static StringBuffer currentProject(HttpServletRequest request){ StringBuffer buffer = new StringBuffer(request.isSecure() ? "https://" : "http://"); buffer.append(request.getServerName()); if ((r...
package com.classroom.app.services; import com.classroom.app.Interfaces.SignUpInterface; import com.classroom.app.database.DBConnection; import com.classroom.app.model.SignIn; import com.classroom.app.model.SignUp; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.St...
package com.fbzj.track.exception; public class ApiException extends Exception implements ErrorCode { /** * serialVersionUID */ private static final long serialVersionUID = -1102180882102959348L; public static long getSerialversionuid() { return serialVersionUID; } /** * 错误代码 */ private...
package plin.net.br.plin.activities; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.webkit.WebResourceRequest; import android.webkit.WebResourceResponse; import android.webkit.WebView; import android.webkit.WebViewClient; /** * Cr...
package com.explore.service; import com.explore.common.ServerResponse; import com.explore.pojo.Conf; import com.explore.vo.ConfVo; /** * @author PinTeh * @date 2019/5/25 */ public interface IConfService { ServerResponse save(Conf conf); ServerResponse update(Conf conf); ServerResponse delete...
package com.jihu.service; import com.jihu.entity.User; import java.util.Set; public interface UserService { User findByUsername(String username); Set<String> findRoles(String username); Set<String> findPermissions(String username); }
package com.esum.comp.jms.converter; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.Session; import com.esum.framework.core.event.message.MessageEvent; public interface MessageTypeHandler { String MESSAGE_CTRL_ID = "MESSAGE_CTRL_ID"; String MESSAGE_NUMBER = "MESSAGE_NUMBER"; String ME...
package com.pbadun.database; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DBase extends SQLiteOpenHelper { public static final String DATABASE_NAME = "datebase.db"; private static final int DATABASE_VER = 1; public st...
package com.sandrapenia.entities.uml; import com.sandrapenia.entities.Entity; /** Representa los objetos de tipo Parametro **/ public class UMLParameter extends Entity { private String name; private String type; public UMLParameter(String type, String name) { this.type = type; this.name = name; } public U...
package com.dassa.service; import java.util.ArrayList; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.dassa.mapper.ShopPremiumMapper; import com.dassa.vo.ShopPaymentVO; import com.dassa.vo.ShopPowerItemVO; import com.dassa.vo.ShopPremiumItemVO; @Service("shopPremiumServ...
package com.culturaloffers.maps.controllers; import com.culturaloffers.maps.dto.CommentDTO; import com.culturaloffers.maps.dto.GradeDTO; import com.culturaloffers.maps.dto.UserLoginDTO; import com.culturaloffers.maps.dto.UserTokenStateDTO; import com.culturaloffers.maps.helper.CommentMapper; import com.culturaloffers....
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.webui.common; import com.vaadin.data.validator.RangeValidator; public class LongRangeValidator extends RangeValidator<Long> { public LongRangeValidator(String error...
package com.xyt.model; import java.sql.Timestamp; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.per...
package com.legaoyi.management.ext.service.impl; import java.util.Date; import java.util.List; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.fac...
import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import Propiedades.Jugador; import Propiedades.ventanaPrincipal; import java.awt.Color; import javax.swing.border.CompoundBorder; import javax.swing.borde...
package projecteulerproblems; import java.math.BigInteger; /** * Project Euler - Problem 16 and 20.<br></br> * Calculates the sum of the digits in <br> * (a) two to the power of <i>n</i> <br> * (b) N factorial * * @author Phil * */ public class DigitSum { /** * Sums the digits in two to the power of <i>n...
import static org.junit.Assert.*; import org.junit.Test; public class LengthOfStringTest { @Test public void testLength() { StringThings sT = new StringThings(); assertEquals(sT.getLength("William"), 7); } @Test public void testAlphabetical() { StringThings sT = new StringThings(); assertTrue(sT.isAfter...
package test; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import pojo.Book; import utils.DbUtils; public class Program { public static void main(String[] args) { try( Connection connectio...
package com.soldevelo.vmi.udp; import com.soldevelo.vmi.communication.params.TestRequestParams; import com.soldevelo.vmi.udp.communication.UdpReverseResults; import org.springframework.stereotype.Service; import java.util.HashMap; import java.util.Map; @Service public class UdpReverseRequests { private Map<Stri...
package com.esum.comp.dbm.util.sql; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.esum.comp.dbm.dbxml.DBRecordParser; import com.esum.comp.dbm.template.Template; /** * Copyright(c) eSum Technologies., inc. All rights reserved. */ public class ScriptUtil { private static Logger log = LoggerF...
package app.com.thetechnocafe.eventos.DataSync; import android.content.Context; import com.android.volley.Request; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonObjectRequest; import com.android.volley.toolbox.JsonRequest; import org.json.JSONArray; ...
package com.lounge.esports.webapps.website.security.token; import com.lounge.esports.webapps.website.security.authentication.UserAuthentication; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springfram...
package com.eegeo.mapapi.services.routing; import com.eegeo.mapapi.geometry.LatLng; /** * Directions information for a RouteStep of a Route. */ public class RouteDirections { /** * The type of motion to make at this step. For example, "turn". */ public final String type; /** * A modifi...
/*46. Implement a java program to find the area of a) Circle b) Rectangle c) Square d) trapezoid e)rhombus f) triangle*/ class Area{ public static void main(String args[]){ double circle,radius = 10; circle = radius*radius*Math.PI; System.out.println("Area of Circle is "+ circle); double triangle,t...
package com.amazon.pages; import com.pnt.base.TestBase; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.FindBy; import org.testng.Assert; public class AmazonHomePage extends TestBase { //**** For Sign IN @FindBy(id = "nav-link-accountL...
package comp303.fivehundred.model; import static org.junit.Assert.*; import static comp303.fivehundred.util.AllCards.*; import org.junit.Before; import org.junit.Test; import comp303.fivehundred.util.AllCards; import comp303.fivehundred.util.Card.Suit; /** * @author Ioannis Fytilis 260482744 * This is ...
/* package com.soft1851.spring.web.entity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.sql.Timestamp; */ /** * @author CRQ *//* @Data @Builder @AllArgsConstructor @NoArgsConstructor public class Post { private In...
package com.unimelb.comp90015.Server.Dictionary; /** * Xulin Yang, 904904 * * @create 2020-4-12 22:11:36 * description: the factory to create dictionary instance **/ public class DictionaryFactory { /** * the singleton instance */ private static DictionaryFactory ourInstance = new DictionaryFac...