text
stringlengths
10
2.72M
package tests.testsUnidad; import static org.junit.Assert.*; import org.junit.*; import agenda.modelo.Campo; import agenda.modelo.Contacto; /** * * @author Francisco Jesús Dominguez Ruíz * @author Edgar Pérez Ferrando */ public class ContactoTests { Contacto c; @Before public void init(){ c = new Conta...
package View.Alimentazione; import Object.Enum.StatusEnum; import javax.swing.*; import javax.swing.event.ListSelectionListener; import javax.swing.table.DefaultTableModel; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.HashMap; /** * La classe GiornoAlimForm contiene attributi e ...
package com.edu.realestate.services; import java.util.List; import java.util.Map; import com.edu.realestate.exceptions.RealEstateException; import com.edu.realestate.model.AdStatus; import com.edu.realestate.model.Advertisement; import com.edu.realestate.model.AdvertisementModel; import com.edu.realestate.model.City;...
package test; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; public class DeleteTest { public static void main(String[] args) { String classname="com.mysql.jdbc.Driver"; Connection conn=null; S...
/* * 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 Controller; import Controller.HibernateUtil; import Model.MediaLog; import Model.Medium; import java.math.BigDecimal; ...
package com.dbTest; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DbConnection { public static void main(String[] args) throws SQLException { String url = "jdbc:mysql://localhost/testdb"; Connection con...
package com.swjt.xingzishop.Sercurity; import org.springframework.security.authentication.AuthenticationDetailsSource; import org.springframework.security.web.authentication.WebAuthenticationDetails; import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; /** * branches * 自定义...
package cn.tedu.reivew; //面向对象综合测试 public class TestOOP { public static void main(String[] args) { Pigeon p=new Pigeon(); p.fly(); p.eggnumber=6; p.layEggs(); Swallow s=new Swallow(); s.fly(); s.eggnumber=8; s.layEggs(); s.makehome(); A...
package Usermenu; import Admin.*; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Resul...
package org.valar.project.contactsApplication.dao; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport; // This will not work independently so don't put inside IOC container using // @Repository @Serv...
package com.synchrony.album.controller; import javax.websocket.server.PathParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.spri...
package com.rednovo.ace.widget.live; import android.app.Activity; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.RelativeLayout; import android.widget.TextView; import com.facebook.drawee.generic.GenericDraweeHierarchy; import com.facebook.drawee.view...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.examples.resources.client; import com.google.gwt.i18n.client.NumberFormat; import com.sencha.gxt.core.client.ValueProvider; im...
package cc.aies.web.service; import cc.aies.web.beans.Dictionary; import cc.aies.web.beans.DictionaryExample; import cc.aies.web.dao.DictionaryMapper; import cc.aies.web.utils.CommonUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Ar...
/* * GuestBookDaoImplJDBC.java * * Created on 2007Äê1ÔÂ19ÈÕ, ÏÂÎç10:51 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package tot.dao.jdbc; import tot.dao.AbstractDao; import tot.db.DBUtils; import tot.bean.*; import tot.exception.ObjectNotFoundException; ...
package xdroid.core; /** * Alternative to {@link Runnable}. * * @author Oleksii Kropachov (o.kropachov@shamanland.com) */ public interface Invokable { Object invoke(Object... args); }
package io.ceph.rgw.client.config; import io.ceph.rgw.client.exception.RGWException; import io.ceph.rgw.client.util.AddressUtil; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io...
package gestionEleves; import java.util.ArrayList; public class Eleve implements Comparable<Eleve> { private String nom; private ArrayList<Integer> listeNotes = new ArrayList(); private double moyenne = 0; public Eleve(String nom) { super(); this.nom = nom; } public double getMoyenne() { return moyenne...
package cn.hrbcu.com.servlet.adminServlet; import cn.hrbcu.com.entity.Books; import cn.hrbcu.com.entity.Page; import cn.hrbcu.com.entity.User; import cn.hrbcu.com.service.BooksService; import cn.hrbcu.com.service.UserService; import cn.hrbcu.com.service.impl.BooksServiceImpl; import cn.hrbcu.com.service.impl.U...
/** * */ package com.DB.model; import java.sql.Date; import java.util.ArrayList; import java.util.List; /** * @author Bruce GONG * */ public class Role { private String Role; private Date createTime; private List<View> views = new ArrayList<View>(); /** * @return the views */ public...
package nesto.rxtest.func; import android.support.annotation.NonNull; import android.view.View; import java.util.concurrent.TimeUnit; import rx.Observable; import rx.Subscriber; import rx.functions.Func1; import rx.schedulers.TimeInterval; /** * Created on 2016/6/27. * By nesto * <p> * convert click event to ti...
package Hw.Tz; public interface SuperEncoder { byte[] serialize(Object anyBean); Object deserialize(byte[] date); }
package team.groupproject.service; import java.util.List; import java.util.Optional; import team.groupproject.entity.Material; public interface MaterialService { List<Material> findAll(); Optional<Material> findByName(String name); Optional<Material> findById(Integer id); Material updateMaterial(I...
package com.stk123.common.ml.jamlab; import Jama.Matrix; public final class JDatafun { private JDatafun() { } public static Matrix min(Matrix X, Matrix Y) { int x_rows = X.getRowDimension(); int x_cols = X.getColumnDimension(); int y_rows = Y.getRowDimension(); in...
package com.ms.module.wechat.clear.activity.scan; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.Nullable; import androidx.lifecycle.Observer; import androidx....
package com.healthyteam.android.healthylifers.Data; import com.google.android.gms.tasks.Task; public interface OnRunTaskListener { void OnStart(); void OnComplete(Task<?> task); }
package me.ThaH3lper.com; import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; import me.ThaH3lper.com.Crehop.EventListener; import me.ThaH3lper.com.Grades.Grade; import me.ThaH3lper.com.Grades.Wave; import me.ThaH3lper.com.Portals.Portal; import me.ThaH3lper.com.Reward.PlayerTimes; i...
package SecondTask; import java.io.*; import java.util.ArrayList; import java.util.List; public class DataWrite { public static void main(String[] args) { List<Person> people = new ArrayList<>(); people.add(new Person("Samat", "Kadyrov", 19, true)); people.add(new Person("Sergey", "Gordeev"...
/* * The contents of this file are subject to the GNU Lesser General Public * License Version 2.1 (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.gnu.org/copyleft/lesser.html * * Software distributed under the License is dist...
package employeeScheduler.model; import java.util.HashMap; import java.util.Map; /** * Enum helping to use specific acceptance Level */ public enum AcceptanceLevel { VERY_LOW(0.01), LOW(0.1), MEDIUM(0.4), HIGH(0.6), VERY_HIGH(1); private double value; private static Map map = new HashM...
package com.cwelth.industrialessentials.tileentities; import com.cwelth.industrialessentials.blocks.Anvil; import com.cwelth.industrialessentials.inits.IEContent; import com.cwelth.industrialessentials.inits.InitCommon; import com.cwelth.industrialessentials.networking.AnvilSync; import com.cwelth.industrialessentials...
package action.com.task; import com.opensymphony.xwork2.ActionSupport; import net.sf.json.JSONObject; import org.apache.struts2.interceptor.ServletRequestAware; import org.apache.struts2.interceptor.ServletResponseAware; import org.apache.struts2.interceptor.SessionAware; import pojo.DAO.ProjectDAO; import pojo.DAO.Ta...
package com.pagelibrary.com.ranfordbank; import org.openqa.selenium.WebElement; import testbase.base; public class Employee extends base { public static WebElement Employee_click() { return driver.findElement(getElement("Employee")); } public static WebElement newemployee_click() ...
package kompressor.huffman.structures; public class HuffmanNode { private Character c; private int freq; private HuffmanNode parent; private HuffmanNode right; private HuffmanNode left; private int id; //equals:ia varten, voidaan joutua verrata solmuja joiden c ja freq ovat samat priva...
package strings_stringbuffer; import java.util.Scanner; public class Program5 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String str=sc.nextLine(); System.out.println(str.substring(1,str.length()-1)); } }
package com.company; import java.util.Date; public class ComplaintTicket extends Ticket{ //Constructor public ComplaintTicket(String desciption, int roomID, Date openTime, boolean complete) { super(desciption, roomID, openTime, complete); } }
package webDriveDemo; import org.testng.annotations.Test; import org.testng.annotations.BeforeTest; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterTest; public class OpenBrowser { WebDriver driver; @BeforeTest public void beforeTest() { ...
package com.perfect.web.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframe...
/* * 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.navegador.recreio.entity; import java.io.Serializable; import java.util.List; import javax.persistence.Basic; im...
package com.t.admin.request; import lombok.Getter; import lombok.Setter; import java.util.Date; import java.util.Map; /** * @author tb * @date 2018/12/17 14:31 */ @Getter @Setter public class JobQueueReq extends PageReq { // ------------ 下面是查询条件值 --------------- private String jobId; private String j...
package com.appspot.smartshop.map; import java.io.IOException; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.location.Address; import android.location.Geocoder; import a...
package com.mi9dev.soapclient; import java.net.MalformedURLException; import java.net.URL; import com.mi9dev.customerorders.CustomerOrders; import com.mi9dev.customerorders.CustomerOrdersService; import com.mi9dev.customerorders.GetOrdersRequest; import com.mi9dev.customerorders.GetOrdersResponse; public class Custo...
package core.path; import core.graph.Graph; import java.util.List; public interface PathFindingAlgorithm { void solve(Graph g, int start); boolean checkPath(int end); List<Integer> getBacktrace(int start, int end); }
package com.alibaba.druid.sql.dialect.mysql.ast.statement; import com.alibaba.druid.sql.ast.SQLName; import com.alibaba.druid.sql.dialect.mysql.ast.FullTextType; import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor; public class MysqlShowCreateFullTextStatement extends MySqlStatementImpl implements MySq...
package com.codigo.smartstore.xbase.database.structure.table; public interface IXbDataTable { }
package liu.lang.Class; /*getClassLoader():ClassLoader 获取该类被加载时所用的类加载器。 * */ public class About_getClassLoader { public static void main(String[] args) throws ClassNotFoundException { System.out.println(About_getClassLoader.class.getClassLoader().toString()); } }
package com.gutotech.consultacep.presenter; import android.app.Activity; import android.content.Context; import android.database.sqlite.SQLiteConstraintException; import com.gutotech.consultacep.Contract; import com.gutotech.consultacep.R; import com.gutotech.consultacep.db.AppDatabase; import com.gutotech.consultace...
package com.learn.leetcode.week3; public class SolutionMajorityElement { /** * 给定一个大小为 n 的数组,找到其中的多数元素。多数元素是指在数组中出现次数大于 ⌊ n/2 ⌋ 的元素。 * * 你可以假设数组是非空的,并且给定的数组总是存在多数元素。 * * @param nums * @return */ public static int majorityElement(int[] nums) { if(0 == nums.length) ...
package edu.ifma.programacaoextrema; import edu.ifma.programacaoextrema.model.Aluno; import edu.ifma.programacaoextrema.model.Banca; import edu.ifma.programacaoextrema.model.Professor; import edu.ifma.programacaoextrema.model.Portaria; import edu.ifma.programacaoextrema.service.BancaService; import edu.ifma.programaca...
package skollur1.msse.asu.edu.graduatestudentassignment; /* * Copyright 2016 Supraj Kolluri, * * * The contents of the file can only be used for the purpose of grading and reviewing. * The instructor and the University have the right to build and evaluate the * software package for the purpose of determining the ...
package com.zc.pivas.statistics.bean.medicalAdvice; import java.util.ArrayList; import java.util.List; /** * 按病区和状态统计 * * @author jagger * @version 1.0 */ public class StaticDoctorDeptStatusBarBean { /** * 病区名称列表 */ private List<String> deptNameList = new ArrayList<String>(); ...
package CollectionProgram; import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class keyInaHashMap { public static void main(String[] args) { HashMap<Integer, String> map = new HashMap<>(); map.put(1, "Nirbhay"); ...
package com.game.cwtetris.ui.shape; /** * Created by gena on 12/15/2016. */ public enum ShapeType { S010_111_000(0), S100_111_000(1), S001_111_000(2), S110_010_011(3), S110_011_000(4), S011_110_000(5), S010_111_010(6), S100_011_001(7), S010_010_010(8), S010_011_000(9), S0...
/* * Copyright 2013 Himanshu Bhardwaj * * 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 agre...
package br.com.deguste.model.entity; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; @Entity @SequenceG...
package com.javasampleapproach.mysql.hall.service; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.javasampleapproach.mysql.hall.model.Stuff; import com.javasampleapproach.mysql.hall.repo.Stuff...
package com.example.test_2; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import a...
/* * ################################################################ * * ProActive Parallel Suite(TM): The Java(TM) library for * Parallel, Distributed, Multi-Core Computing for * Enterprise Grids & Clouds * * Copyright (C) 1997-2011 INRIA/University of * Nice-Sophia Antipolis/ActiveEon ...
package tool.scanner; public class ScannerTest { public static void main(String args[]) { // 标准输入 --> 键盘输入 java.util.Scanner scanner = new java.util.Scanner(System.in); // 将 回车符 作为分隔符 scanner.useDelimiter("\n"); while (scanner.hasNext()) { Sy...
package org.celllife.stock.application.service.alert; import java.util.HashSet; import java.util.List; import java.util.Set; import org.celllife.stock.domain.alert.Alert; import org.celllife.stock.domain.alert.AlertDto; import org.celllife.stock.domain.alert.AlertRepository; import org.celllife.stock.domain.alert.Ale...
package com.gsccs.sme.api.service; import java.util.List; import com.gsccs.sme.api.domain.site.Banner; import com.gsccs.sme.api.domain.site.Link; /** * 友情链接 * @author x.d zhang * */ public interface LinkServiceI { /** * 查询友情链接 * @param param * @return */ public List<Link> find(Link param,int page,int ...
/* * SingleApnsConnection.java * ********************************************************************** Copyright (c) 2013 - 2014 netty-apns ***********************************************************************/ package apns.netty.connection.impl; import io.netty.bootstrap.Bootstra...
package com.wh.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.wh.entity.User; import java.util.List; /** * @program: maven-modules * @description: * @author: wh * @create: 2021-07-12 13:51 **/ public interface UserMapper extends BaseMapper<User> { /** * 获取 * @return ...
package Controller.shop; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframe...
package sonar.socket; // Hola ale public class HolaAle { private boolean hola = false; private void decirHola(){ System.out.println(); } }
package org.digdata.swustoj.mybatis.dao; import java.util.List; import org.digdata.swustoj.model.annotation.CacheAccess; import org.digdata.swustoj.model.annotation.CacheFlush; import org.digdata.swustoj.mybatis.entiy.Tags; public interface TagsDao { int deleteByPrimaryKey(Integer id); int insert(Tags ...
package com.example.fklubben; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class AboutUs extends AppCompatActivity { public void onClickAboutUs(View view){ Intent intent = new Intent(this, AboutUs.class); ...
package com.shangdao.phoenix.entity.entityManager; import com.fasterxml.jackson.annotation.JsonIgnore; import com.shangdao.phoenix.entity.act.Act; import com.shangdao.phoenix.entity.interfaces.IBaseEntity; import com.shangdao.phoenix.entity.state.State; import com.shangdao.phoenix.entity.tag.Tag; import com.shangdao.p...
package forms; import models.NPVTableModel; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Vector; public class NPVCalculator extends JFrame { private JTable calcTable; private JPanel mainPanel; private JTextField incomes...
package xtrus.user.comp.dbl.util; import java.io.File; import java.lang.reflect.Constructor; import xtrus.user.comp.dbl.DbLCode; import xtrus.user.comp.dbl.DbLConfig; import xtrus.user.comp.dbl.DbLException; import xtrus.user.comp.dbl.table.DbLDocInfo; import xtrus.user.comp.dbl.table.DbLDocInfoRecord; import com.es...
package com.dbs.portal.ui.component.view; import java.util.List; public interface ITableGridResultView extends IResultView{ public List<GridHeaderField> getHeaderFieldList(); }
package test; import java.io.IOException; import java.io.InputStream; import java.sql.ResultSet; import java.sql.SQLClientInfoException; import java.util.Date; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibat...
package local; import java.util.Arrays; import java.util.Random; /******************************************************************* * Questions / Fragen * * The english questions are provided on the exercise sheet * ******************************************************************* * a) Wie verhaelt sich die...
package com.performance.optimization.design.singleton; /** * 最简单的单例模式 * 不足之处:无法实现instance的延迟加载, * 由于instance是static的,因此在JVM加载单例类时,单例对象会被创建, * 如果此时单例类还扮演其他角色,则在使用单例类的这个地方都会实例化单例类。 * @author qiaolin * */ public class SimpleSingleton { private SimpleSingleton(){ System.out.println("create singleton instanc...
package com.gyorog.filepusher; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.util.Log; import androidx.annotation.NonNull; import androidx.core.app.JobIntentService; import com.hierynomus.msdtyp.AccessMask; import com.hierynomu...
package EntityManagers; import java.util.List; import Entities.Customer; import Entities.Film; import Entities.Ticket; public interface TicketManager { // Create public void persistTicket(Ticket input); // Read public List<Ticket> getTicketByFilm(int id); public List<Ticket> getTicketByCustomer(String email...
package gov.nih.mipav.plugins; /** * This interface binds a PlugIn to a PlugInBundle. Every PlugInBundle contains a list of BundledPlugInInfos * that may also be PlugIns. These BundledPlugInInfos can be run by specifying an index of the PlugInBundle's * <code>run(int index)</code> method. * * @author mccreed...
package ru.client.model; public class Products { private int id; private int type; private String name; public Products() { } public Products(int type, String name) { this.type = type; this.name = name; } public Products(int id, int type, String name) { this.i...
package am.bit.guessnumber; import java.util.Random; public class NumberGenrator { private int number; int getNumber() { return number; } void setNumber(int number) { this.number = number; } NumberGenrator() { Random random = new Random(15); this.number = ran...
package model; /** * @author Qi Yin */ public class Name { private String firstName; private String middleName; private String lastName; private String fullName; public Name(){ firstName = ""; middleName = ""; lastName = ""; fullName = ""; } public Name(S...
package sop.util.io; import java.io.BufferedOutputStream; import java.io.BufferedWriter; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream;...
package edu.mum.sonet.models; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.OnDelete; import org.hibernate.annota...
package teste; import controller.ClienteController; import controller.PetsController; import model.Cliente; import model.Pets; import java.util.List; import static org.junit.Assert.*; public class PetsControllerTest { private PetsController petsController = new PetsController(); private ClienteController cl...
package com.pwc.io; import java.io.DataOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import static com.pwc.util.Convert.intToByte; public class DataOutputBufferStream extends DataOutputStream { private final int bufferSize = 1024 * 1024; pr...
package com.tpg.brks.ms.expenses.persistence.repositories; import com.tpg.brks.ms.expenses.persistence.entities.ExpenseEntity; import org.springframework.data.repository.NoRepositoryBean; import org.springframework.data.repository.Repository; @NoRepositoryBean public interface ExpenseRepository extends Repository<Exp...
package com.mabang.android.widget; import android.content.Context; import android.support.annotation.AttrRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.LayoutInflater; import android.widget.FrameLayout; import android.wi...
package com.solo.bakingapp.recipe.list; import android.support.test.espresso.IdlingRegistry; import android.support.test.espresso.IdlingResource; import android.support.test.espresso.contrib.RecyclerViewActions; import android.support.test.filters.LargeTest; import android.support.test.rule.ActivityTestRule; import a...
package com.ishare.conn; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Date; import java.util.Properties; import java.util.Vector; public class DBConnPool{ priv...
public class AverageScoreofTwoStudInThreePapers { public static void main(String[] args) { int iArr[][] = {{60,55,70},{80,60,41}}; for(int i=0;i<2;i++) { double sum=0; int count=0; for(int j=0;j<3;j++) { sum= sum+iArr[i][j]; ...
package com.google; import org.testng.annotations.Test; public class GooglePageTest { @Test public void GoogleTitleTest() { System.out.println("This is my google page"); } @Test public void LoginTest() { System.out.println("Login Page"); } @Test public void homepage() { System.out.println("Home Pa...
package modelo; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Iterator; ...
package com.ms.module.wechat.clear.activity.clear; import com.chad.library.adapter.base.entity.node.BaseExpandNode; import com.chad.library.adapter.base.entity.node.BaseNode; import org.jetbrains.annotations.Nullable; import java.util.List; public class UpGroupNode extends BaseExpandNode { private List<BaseNode...
package com.examples; import java.util.List; import net.droidsolutions.droidcharts.core.data.XYDataset; import net.droidsolutions.droidcharts.core.data.xy.XYSeries; import net.droidsolutions.droidcharts.core.data.xy.XYSeriesCollection; import android.app.Activity; import android.content.Intent; import androi...
package com.javabeans.orders; import javax.faces.bean.ManagedBean; import java.time.LocalDateTime; @ManagedBean public class Orders { //Order_Details Table Fields private int ref_no; private int order_id; private int product_id; private int user_id; private int quantity; private float total_amount; //Pro...
package com.minismap.data; import java.util.StringTokenizer; /** * Created by nbp184 on 2016/03/21. */ public class Enemy { public static Enemy load(String line) { StringTokenizer tokens = new StringTokenizer(line, Seperators.INSIDE_MAP); return new Enemy(tokens.nextToken(), tokens.nextToken()...
package com.cigc.limit.service; import com.cigc.limit.utils.DateUtils; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.elasticsearch.action.search.SearchRequestBui...
package br.com.poli.PuzzleN; public class PuzzleInsano extends Puzzle { private int tamanho; public PuzzleInsano(Tabuleiro t, int k) { super(t); this.tamanho = (k*k)-1 ; Dificuldade d = Dificuldade.NSANE; d.setValor(tamanho); setDificuldade(Dificuldade.NSANE); } public int getTamanho() { retur...
package com.web.common; /** * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class ComCodeDTO { String code=""; String name=""; /** * */ public ComCodeDTO() { super(); // TODO Auto-generated const...
/** * LoginService.java 25-feb-2014 * * Copyright 2014 EVERIS S.L.U. */ package com.proyecto.server.service.impl; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework....
// Copyright (c) 2012 P. Taylor Goetz (ptgoetz@gmail.com) package com.instanceone.hdfs.shell.command; import com.instanceone.stemshell.Environment; import com.instanceone.stemshell.command.AbstractCommand; import jline.console.ConsoleReader; import jline.console.completer.Completer; import jline.console.completer.Str...