text
stringlengths
10
2.72M
package com.zhowin.miyou.recommend.adapter; import androidx.annotation.NonNull; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.zhowin.base_library.model.UserLevelInfo; import com.zhowin.base_library.model.UserRankInfo; import com.zhowin.base_libr...
package Trabalho3; import java.awt.Dimension; import java.awt.Image; import javax.swing.ImageIcon; public class IconsUtils { public static ImageIcon getIcon( ImageIcon[] icons, String description ) { for ( ImageIcon icon: icons ) if ( icon.getDescription().equals( description )) return icon; ...
/* * John Brodie * jdb356@drexel.edu * CS338:GUI, Assignment 3 */ import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.Serializable; import java.text.DateFormat; import java.text.SimpleDateFormat; import jav...
import java.util.Scanner; public class SampleCalendar { public static void main(String[] args) { int year = getYear(getInputScanner()); int day = getDay(getInputScanner()); loopMonth(day, year); } public static Scanner getInputScanner() { Scanner input = new Scanner(System.in); return input; } pub...
package co.nos.noswallet.ui.settings.addressBook; import android.support.annotation.VisibleForTesting; import java.util.ArrayList; import java.util.List; import javax.inject.Inject; import co.nos.noswallet.R; import co.nos.noswallet.ui.settings.addressBook.repository.AddressbookRepository; import io.reactivex.Obser...
package org.holoeverywhere.widget; import java.text.DateFormatSymbols; import java.util.Calendar; import java.util.Locale; import org.holoeverywhere.LayoutInflater; import org.holoeverywhere.internal.NumberPickerEditText; import android.annotation.SuppressLint; import android.content.Context; import android.content...
package adt.queue.nodes; public interface Node<E> { E getElement(); int getAmountOfNodesFromHereTillTheEnd(); boolean hasNext(); void setNextNode(Node<E> nextNode); Node<E> getNextNode(); Node<E> addElementToTailTop(E element); }
package mx.com.azaelmorales.yurtaapp.utilerias; public class Servidor { public static final String URL = "http://u407656747.hostingerapp.com"; //url del servidor public static final String MOSTRAR_EMPLEADOS ="/mostrarEmpleados.php";//ruta del web service public static final String BUSCAR_CORREO = "/buscar...
package com.steatoda.commons.fields.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.steatoda.commons.fields.jackson.model.Person; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.util.regex.Pattern; ...
package serverframe_usermanage; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.BufferedReader; import ja...
package thsst.calvis.simulatorvisualizer.model; /** * Created by Goodwin Chua on 5 Jul 2016. */ public class EnvironmentBag { private String[][] registerStringArray; private String flagsValue; private String mxscrValue; private String[][] memoryArray; public EnvironmentBag(String[][] registerSt...
package de.madjosz.adventofcode.y2015; import static org.junit.jupiter.api.Assertions.assertEquals; import de.madjosz.adventofcode.AdventOfCodeUtil; import java.util.List; import org.junit.jupiter.api.Test; class Day21Test { @Test void day21() { List<String> lines = AdventOfCodeUtil.readLines(2015,...
package com.e6soft.bpm.dao; import java.util.List; import com.e6soft.bpm.model.FlownodeOperator; import com.e6soft.core.mybatis.EntityDao; public interface FlownodeOperatorDao extends EntityDao<FlownodeOperator,String> { /** * 删除 通过节点ID * @param nodeId * @author leo */ public void deleteByNodeid(String no...
package sort; import java.util.Arrays; /** * 堆排序 * 堆排序是另外一种常用的递归排序。因为堆排序有着优秀的排序性能,所以在软件设计中也经常使用。堆排序有着属于自己的特殊性质, * 和二叉平衡树基本是一致的。打一个比方说,处于大堆中的每一个数据都必须满足这样一个特性: (1)每一个array[n] 不小于array[2*n] (2)每一个array[n]不小于array[2 * n + 1] 构建这样一个堆只是基础,后面我们需要每次从堆的顶部拿掉一个数据,不断调整堆,直到这个数组变成有序数组为主。所以详细的堆排序算法应该是这样的: 1)构建大堆...
package com.automationanywhere.botcommand; import com.automationanywhere.botcommand.data.Value; import com.automationanywhere.botcommand.data.impl.StringValue; import com.automationanywhere.botcommand.exception.BotCommandException; import com.automationanywhere.commandsdk.annotations.*; import com.automationanywhere.c...
/* * Copyright 2011 LMAX Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
package com.beiyelin.addressservice.repository; import com.beiyelin.commonsql.jpa.BaseAbstractRepository; import com.beiyelin.addressservice.entity.Province; import com.beiyelin.commonsql.jpa.BaseDomainRepository; import org.springframework.stereotype.Repository; import java.util.List; /** * @Description: * @Autho...
package com.takshine.wxcrm.message.sugar; /** * 传递给crm查询合同的参数 * * @author dengbo * */ public class ProjectReq extends BaseCrm { private String viewtype;// 视图类型 myview,teamview,focusview,allview private String currpage = "1";// 当前页 private String pagecount = "5";// 每页的条数 private String status; private String...
package com.team.zhihu.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.team.zhihu.bean.Essay; import com.team.zhihu.mapper.EssayMapper; import com.team.zhihu.service.EssayService; @Service public class EssayServiceImpl implements E...
/* * Sap.java * * Created on 26 Žubat 2007 Pazartesi, 10:31 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package askan.systems; /** * * @author Kerem */ import askan.*; import java.io.*; import com.sap.mw.jco.*; import java.util...
import java.io.*; public class Basics{ public static void main(String[] args) { //As system.out inherits the output Streams System.out also have 5 methods //1. write(int b); //2. write(byte[] b); //3. write(byte[],int off, int len); //4. flush(); //5. close(); ...
package br.org.funcate.glue.model; import javax.swing.ImageIcon; import br.org.funcate.glue.view.ImageIconLoader; public abstract class LabelExpandCanvasService { static int xPosition = 0; public static ImageIcon getImageIconLabelExpanded(boolean expandedCanvas) { if (expandedCanvas) { return ImageIconLoade...
/* * 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 teg; import javafx.application.Application; import javafx.stage.Stage; import teg.view.EPortfolioGeneratorView; /** * * @au...
package Networking; import java.io.PrintStream; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; public class Server { public static void main(String args[]) throws Exception { int number,temp; ServerSocket s2 = new ServerSocket(12345); Socket ss = s2.acc...
package action; import java.util.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import svc.BoardSearchService; import vo.ActionForward; import vo.BoardBean; import vo.PageInfo2; public class BoardSearchAction implemen...
package maxzonov.shareloc; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import android.view.Menu; im...
class Solution { int[][] dp; int dfs(String s1 , String s2, int i , int j) { int res = 0; if (i == s1.length() && j == s2.length()) return res; if (i == s1.length()) { while (j < s2.length()) res += s2.charAt(j++); return res; }...
package it.uniclam.rilevamento_presenze.BeanClass; import java.io.Serializable; /* https://books.google.it/books?id=VymiT1pHYE0C&pg=PA403&lpg=PA403&dq=serializable+java+cos%27%C3%A8&source=bl&ots=7PzHYYJaf3&sig=s21MG6NvXaJ9VxuBqDg6VKt-LLo&hl=it&sa=X&ved=0CDsQ6AEwB2oVChMInZ2cwsSTyQIVgUwUCh19BguC#v=onepage&q=serializab...
/** * */ package com.cnk.travelogix.mdmbackoffice.listeners; import de.hybris.platform.core.PK; import de.hybris.platform.servicelayer.model.ModelService; import de.hybris.platform.servicelayer.user.UserService; import de.hybris.platform.tx.AfterSaveEvent; import de.hybris.platform.tx.AfterSaveListener; import de.hy...
package com.edinarobotics.zeppelin; import com.edinarobotics.utils.gamepad.Gamepad; import com.edinarobotics.utils.pid.PIDTuningManager; import com.edinarobotics.zeppelin.commands.AutonomousCommand; import com.edinarobotics.zeppelin.commands.AutonomousCommand.AutoMode; import com.edinarobotics.zeppelin.commands.Gamepa...
/* * 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 project; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOExce...
package com.tencent.mm.plugin.appbrand.game; import com.tencent.mm.plugin.appbrand.r.i.a; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.sdk.platformtools.x; class d$5 implements a { final /* synthetic */ d fzU; d$5(d dVar) { this.fzU = dVar; } public final void qe(Stri...
package com.ci.items; import com.ci.api.item.ItemBase; import com.ci.loader.ItemsLoader; import net.minecraft.client.util.ITooltipFlag; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.m...
package com.zhangyanye.didipark.fragments; import java.io.File; import java.io.UnsupportedEncodingException; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import com.android.volley.toolbox.ImageLoader; import com.android.volley.toolbox.ImageLoader.ImageListener; import com.lidroid...
package com.anysoftkeyboard.base.dictionaries; public class LoadedWord { public final String word; public final int freq; public LoadedWord(String word, int freq) { this.word = word; this.freq = freq; } }
import java.util.Random; public class ¼ÆËã¦Ð { public static double getApproximation(int n) { Random rnd = new Random(); int k = 0; double x, y; for(int i = 1; i <= n; i++) { x = rnd.nextDouble(); y = rnd.nextDouble(); if((x * x + y * ...
package common; public class Config { public static String partitionIdVerticesSprator = "|"; public static String VerticesSeparator = "\t"; //public static String coreSitePath = "E:\\JavaPrograms\\hadoop\\etc\\hadoop\\core-site.xml"; //public static String hdfsSitePath = "E:\\JavaPrograms\\hadoop\\etc\\hadoop\\h...
package io.dmcapps.dshopping.stock; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.IdClass; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; @IdClass(StockId.class) @Entity public class Stock extends PanacheEntityBase { @Id ...
/* * @version 1.0 * @author PSE group */ package kit.edu.pse.goapp.server.servlets; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest...
package juego03; public class Game { private Tablero tablero = new Tablero(); private BoardViewer boardview = new BoardViewerConsole(new BoardPresenter(tablero)); private boolean ganador = false; public void play() { do { boardview.showBoard(); if (realizarJugada()) ganador = tablero.comprobarGanador(...
package pubsub.publisher; import pubsub.broker.AbstractBroker; public class Publisher implements IPublisher { final AbstractBroker broker; public Publisher(AbstractBroker broker) { this.broker = broker; } @Override public void publish(String event, String topic) { this.broker.pu...
package edu.wayne.cs.severe.redress2.controller.processor; import edu.wayne.cs.severe.redress2.controller.HierarchyBuilder; import edu.wayne.cs.severe.redress2.controller.MetricCalculator; import edu.wayne.cs.severe.redress2.controller.metric.*; import edu.wayne.cs.severe.redress2.entity.CompilationUnit; import edu.wa...
package com.yixin.web.common; import com.yixin.kepler.common.enums.AssetStateEnum; /** * @author sukang */ public enum AssetStatusType { //bank阶段状态 bankStatusInfo{ @Override public String getMsg(Integer status) { return AssetStateEnum.getNameByState(status); } }, ...
package com.duanxr.yith.easy; import com.duanxr.yith.define.guessGame.GuessGame; /** * @author Duanran 2019/1/30 0030 */ public class GuessNumberHigherOrLower { /** * We are playing the Guess Game. The game is as follows: * * I pick a number from 1 to n. You have to guess which number I picked. * ...
package net.liuzd.spring.boot.v2.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; @Data @Accessors(chain = true) @NoArgsConstructor @AllArgsConstructor public class User { private Long id; private String n...
package cn.e3mall.service; import cn.e3mall.common.util.E3Result; /** * 商品规格和商品的关系service * @author Dragon * */ public interface ItemParamItemService { /** * 根据商品id获取商品规格和商品的关系 * @param itemId 商品id * @return TbItemParamItem对象 */ E3Result getItemParamItemByItemId(long itemId); }
package api.domain.model.user.devices; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import java.util.List; @XmlRootElement public class UserDevices { private List<UserDevice> items; @XmlElement(name = "items") public List<UserDevice> getUserDe...
/** * Copyright (c) 2016, 指端科技. */ package com.rofour.baseball.common; import java.util.Collection; import com.rofour.baseball.exception.BusinessException; /** * @ClassName: Assert * @Description: 断言工具类 * @author wq * @date 2016年4月22日 下午3:45:23 */ public abstract class Assert { /** * @Descript...
package com.originspark.drp.util.poi.exporter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.util.List; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.mutable.MutableInt; import org.apache.poi.ss.usermodel.Cell; im...
package problem_solve.basic.baekjoon; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class BaekJoon11438 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStrea...
package com.fleet.tkmybatis.service; import com.fleet.tkmybatis.entity.User; import org.springframework.stereotype.Component; import java.util.List; @Component public interface UserService { int insert(User user); int delete(Long id); int update(User user); User get(Long id); List<User> list...
public class GameConstants { public static final float SECOND = 1f; public static final float BLOCK_SIDE_SIZE = 24f; private static final float WORLD_WIDTH = 480; private static final float WORLD_HEIGHT = 640; public static final int GRID_ROWS = 22; public static final int GRID_COLUMNS = 10;...
package Modulos; import HelperCore.inicializaDriver; import PageObject.Menu; import io.appium.java_client.MobileBy; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.By; import java.net.MalformedURLException; public class FormularioTeste extends inicializaDriver { ...
package pl.coderslab.servlet.customer; import pl.coderslab.dao.CustomerDao; import pl.coderslab.dao.DbInit; import pl.coderslab.model.Customer; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import...
package com.takshine.core.service.business.impl; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Comparator; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import...
package frequentPattern; import java.util.ArrayList; import util.BinarySearch; import util.SortInteger; public class Apriori { public ArrayList<ArrayList<FrequentItemSet>> aprioriAlgorithm(int[] items,int[][] dataSet,int minSupport){ ArrayList<ArrayList<FrequentItemSet>> finalFrequentItemSets = new ArrayList...
package com.example.v2.thread.unsafe; import com.example.v2.thread.unsafe.Ticket; /** * 线程安全经典实例 */ public class TicketTest { public static void main(String[] args) { Ticket ticket = new Ticket(); new Thread(ticket, "窗口1").start(); new Thread(ticket, "窗口2").start(); new Thread(...
package com.fancy.ownparking.ui.user; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayou...
package Query.Plan; import Query.Engine.QueryIndexer; import Query.Entities.PlanTable; /** * Created by liuche on 5/29/17. */ public class AllNodeScanPlan extends Plan { public AllNodeScanPlan(QueryIndexer indexer, String node){ super(indexer); this.variable = node; this.estimatedSize =...
package commands; import java.util.Stack; public class CommandManager { // TODO /* - void undo() - void redo() - void executeCommand(Command c) - maybe check if undo() and redo() are available ? -> check GameState class, see the errors - keep track of the commands som...
package com.bucares.barcode; public class URLConstants { public static final String HEALTH_ENDPOINT_URL = "/health"; public static final String APP_VERSION_URL = "/api/version"; private URLConstants() { /* empty */} }
package banyuan.day04.morning.practice02.P03; /* 创建一个名为Fan的类来模拟风扇, 该类包含属性speed、on、radius,有合适 的构造方法,此外还要求提供一个方法用来设置风扇的速度和开关状态等信息。 另外编写一个类来测试Fan的使用。  */ public class Fan { private String speed; private String on; private String radius; public Fan() { } public Fan(String speed, String on, Strin...
package de.zarncke.lib.time; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.Collection; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.Interval; import org.joda.time.ReadableInterval; import org.junit.Test; ...
package com.emuspawn.rockBrain.GameParts; /** * Created with IntelliJ IDEA. * User: David * Date: 3/15/13 * Time: 4:04 PM * To change this template use File | Settings | File Templates. */ public class Weather { }
package example.nz.org.take.compiler.userv.generated; import nz.org.take.rt.*; /** * Class generated by the take compiler. * @version Mon Feb 11 13:49:17 NZDT 2008 */ @SuppressWarnings("unchecked") class KBFragement_isNew_1 { /** * Method generated for query /isNew[in] * @param slot1 in...
package auction; import auction.Book; import auction.Genre; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class Auction { private ArrayList<Book> books; public ArrayList<Book> getBooks() { ArrayList<Book> temp = new ArrayList<>(); for(Book b: books) temp.add(b); ...
package concurrent_test; import java.util.concurrent.TimeUnit; public class AtomicityTest { public static int count = 0; public static synchronized void incrementAndOutput() { count++; try { TimeUnit.MILLISECONDS.sleep(2); } catch (InterruptedException e) { e.p...
package com.tencent.mm.plugin.scanner.a; import com.tencent.mm.sdk.platformtools.bi; public class o$b { private String fkF; private String fkG; private String fkH; public o$b(String str, String str2, String str3) { if (str == null) { str = ""; } this.fkF = str; ...
package wirtualnySwiat.rosliny; import wirtualnySwiat.*; import wirtualnySwiat.grafika.Pole; import java.awt.*; public class WilczeJagody extends Roslina { public WilczeJagody(Swiat srodowisko, Wspolrzedne miejsce) { super(srodowisko, miejsce); this.sila = 99; this.inicjatywa = 0; ...
public class App { public static void main(String[] args) throws Exception { // This one will include file management commands } }
package com.sl.ms.ordermanagement.controller; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.a...
package com.example.petergeras.navcontrol.Model; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.example.petergeras.navcontrol.Helper.DatabaseHelper; import com.example.petergeras.navcontrol.MainActivity; ...
/* * 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.ufc.poo.sorveteria.repository; import com.ufc.poo.sorveteria.config.ConexaoMysql; import com.ufc.poo.sorveteria.model.Clie...
/* * [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 ter...
package com.tencent.mm.plugin.appbrand.appcache.base; import com.tencent.mm.pluginsdk.g.a.c.k; public interface b<_Request extends a, _Response, _Progress extends k> { }
package com.project.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.Req...
package com.restaurant.app.service; import com.restaurant.app.model.Order; public interface OrderService { void createOrder(); }
package mine_mine_20; public class ReverseUsingCharAt_2 { public static void main (String [] args){ String word ="java";//noon System.out.println(""+word.charAt(3)+word.charAt(2)+word.charAt(1)+word.charAt(0)); String reversed = (""+word.charAt(3)+word.charAt(2)+word.charAt(1)+word.charAt(0)); ...
package lybrica.easyreminders.Activities; import android.app.Activity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.text.Html; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import a...
/** * Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro * Copyright: 2013 Nan21 Electronics SRL. All rights reserved. * Use is subject to license terms. */ package seava.ad.presenter.impl.scheduler.model; import java.util.Date; import seava.ad.domain.impl.scheduler.JobContext; import seava.ad.domain....
/* * [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 ter...
package SamsungStorm.topologies; import java.util.HashMap; import SamsungStorm.Bolts.*; import SamsungStorm.Spouts.Spout; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.topology.BoltDeclarer; import backtype.storm.topology.TopologyBuilder;...
package clases; import java.awt.GridLayout; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; import logic.Controlador; import logic...
package ru.otus.l111.db; /* * Created by VSkurikhin at winter 2018. */ import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; public class DBConf { public static final String hostname = "localhost"; public static final String userName = "dbuser"; public static final String...
// // FingerDot // // Created by Eduardo Almeida and Joao Almeida // LPOO 13/14 // package pt.up.fe.lpoo.fingerdot.logic.multiplayer; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.shephertz.app42.gaming.multiplayer.client.WarpClient; import pt.up.fe.lpoo.fingerdot.logic.common.D...
package sukerPkg; import java.io.IOException; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.events.FocusEvent; import org.eclipse.swt.events.FocusListener; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.layout...
package konyvtar; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Konyvtar { private String nev; private Konyv[] konyvek; public Konyvtar(String fil...
package com.yt.s_server.course; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.widget.ListView; import com.yt.s_server.Home; import com.yt.s_server.R; import org.jsoup.Jsoup; import org.js...
package it.polimi.se2019.controller.weapons.optional_effects; import it.polimi.se2019.rmi.UserTimeoutException; import it.polimi.se2019.controller.GameBoardController; import it.polimi.se2019.controller.weapons.WeaponController; import it.polimi.se2019.view.player.PlayerViewOnServer; import java.util.ArrayList; impor...
package com.todos.api.controllers; import com.todos.api.exceptions.TodoException; import com.todos.api.models.Todo; import com.todos.api.services.TodosService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*...
/** * AdminControllerTest.java * * Tests the methods of the AdminController class */ package FTMT; import static org.junit.Assert.*; import java.util.ArrayList; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * @author wcooper001 * */ public class AdminControllerTest { /** ...
package spiralorder3; import java.util.Arrays; public class Solution { public int[][] spiralGenerate(int m, int n) { // Write your solution here. int [][] matrix = new int [m][n]; if(m == 0){ return matrix; } int num = 1; int left = 0; int right = n-1; int up = 0; i...
package ga.islandcrawl.map; import android.content.Context; import java.io.FileInputStream; import java.io.FileOutputStream; import ga.islandcrawl.MainActivity; /** * Created by Ga on 11/7/2015. */ public class FileAccess { public static void write(String map, String string){ FileOutputStream outputSt...
package com.yuliia.vlasenko.imagesearcher.search; import com.yuliia.vlasenko.imagesearcher.api.PictureMetaData; import com.yuliia.vlasenko.imagesearcher.repository.PictureMetaDataRepository; import org.springframework.stereotype.Service; import java.util.List; @Service public class SearchService { private final ...
package com.hqhcn.android.dao; import com.hqh.android.entity.Carmodel; import com.hqh.android.entity.CarmodelExample; import com.hqh.android.entity.CarmodelKey; import org.apache.ibatis.annotations.Param; import java.util.List; public interface CarmodelMapper { long countByExample(CarmodelExample example); ...
package com.haidroid.duoihinhbatbong.fragment; import com.haidroid.duoihinhbatbong.R; import android.annotation.SuppressLint; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; ...
/* * 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 eje3; /** * * @author Mery Acevedo */ public class eje3Main { /** * @param args the command line ar...
package Client; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; /*Allows client AI to setup based on configuration sent from server*/ public class MainAI { public static void main(String[] args) throws IOException { ...
package com.ricex.cartracker.androidrequester.request.user; import android.util.Log; import com.ricex.cartracker.androidrequester.request.AbstractRequest; import com.ricex.cartracker.androidrequester.request.ApplicationPreferences; import com.ricex.cartracker.androidrequester.request.response.RequestResponse; import ...
package com.huawei.esdk.tp.northcommu.cxf.healthcare; import com.huawei.esdk.tp.northcommu.cxf.common.TPCommonConfCtrlImpl; import com.huawei.esdk.tp.northcommu.cxf.healthcare.gen.TPHealthcareConfCtr; public class TPHealthcareConfCtrlImpl extends TPCommonConfCtrlImpl implements TPHealthcareConfCtr { }