text
stringlengths
10
2.72M
package com.tencent.mm.plugin.game.model; import com.tencent.mm.plugin.game.e.d; import java.util.Iterator; import java.util.LinkedList; public final class k extends j { protected k(String str) { super(str); } public final void aTP() { LinkedList m = j.m(optJSONArray("items")); It...
package com.serhii.cryptobook.project.service; import java.security.*; public interface ServiceKey { Key generateSecretKey(String alg, int keysize); KeyPair generateKeyPair(String alg, int keysize); PrivateKey loadPrivateKeyFromFile(); PublicKey loadPublicKeyFromFile(); void savePrivateKeyFro...
package com.socialcard.entity; import java.io.Serializable; /** * Created by Administrator on 14-5-9. */ public class passpro implements Serializable { String username; String problem; String pass; public passpro(){ super(); } public passpro( String username, Stri...
package com.skycreateware.android.nanodegree.builditbigger; /** * Created by lalo on 22/12/15. */ import android.content.Context; import android.os.AsyncTask; import com.google.api.client.extensions.android.http.AndroidHttp; import com.google.api.client.extensions.android.json.AndroidJsonFactory; import com.google...
package VEW.Planktonica2; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListene...
package com.example.android.miwok; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; 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.Ad...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.components.devtools_bridge.apiary; import android.util.JsonReader; import org.apache.http.client.HttpClient; import org.apache.http...
package com.omdbapi.adapters; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.android.volley.toolbox.ImageLoader; import com.android.volley.t...
package com.smxknife.rxjava2.demo06; import io.reactivex.Notification; import io.reactivex.Observable; import io.reactivex.Observer; import io.reactivex.disposables.Disposable; import io.reactivex.functions.Action; import io.reactivex.functions.Consumer; /** * @author smxknife * 2020/5/15 */ public class JustDo {...
package com.devskiller.sample; public interface StringProcessor { String abbreviate(String input, int maxLength); }
package org.buaa.ly.MyCar.logic.impl; import com.alibaba.fastjson.JSONObject; import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.buaa.ly.MyCar.entity.VehicleInfo; import org.buaa.ly.MyCar.http.dto.VehicleInfoCostDTO; import org.buaa.ly.MyCar.internal.VehicleInfoCost; import org.buaa.l...
package com.gym.appointments.Model; import java.util.List; public class Coordenada { int coordenadaAlturaInicial; int coordenadaAnchoInicial; int coordenadaAlturaFinal; int coordenadaAnchoFinal; int longitud; List<Par> pares; Ubicacion ubicacion; public Coordenada() { } publ...
import java.io.File; import javax.sound.sampled.*; public class SoundMachine extends Thread{ private File sf; private final int EXTERNAL_BUFFER_SIZE = 524288; private SourceDataLine line = null; private AudioInputStream ais = null; public SoundMachine(String path) { try { ...
package cco; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Transient; import lombok.Getter; import lombok.Setter; ...
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 luma <stubma@163.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any lat...
package LeetCodeUtils.Contest.C2021_04_04; import LeetCodeUtils.MyPrint; import org.junit.Test; import java.util.Arrays; import java.util.*; import java.util.PriorityQueue; public class Third { @Test public void test() { //System.out.println(find(new int[]{1,2,3,4,5,7}, 5, 0, 5)); System.out...
package solution; import java.util.LinkedList; import java.util.Queue; /** * User: jieyu * Date: 12/25/16. */ public class SurroundedRegions130 { public void solve(char[][] board) { if (board.length == 0) return; fill(board); for (int y = 0; y < board.length; ++y) { for (in...
package jp.noxi.collection; import java.math.BigDecimal; import javax.annotation.Nonnull; public interface Numeric extends Comparable<Numeric> { /** * Returns the value of the specified number as an <code>int</code>. This may involve rounding or truncation. * * @return the numeric value represent...
package com.TokChatBackend.daos; import com.TokChatBackend.models.ProfilePicture; public interface ProfilePictureDao { void uploadProfilePicture(ProfilePicture profilePicture); ProfilePicture getImage(String email); }
package unalcol.algorithm; import unalcol.math.function.Function; import unalcol.tracer.Tracer; /** * <p>Abstract Function defined as a Thread</p> * <p> * <p>Copyright: Copyright (c) 2010</p> * * @author Jonatan Gomez Perdomo * @version 1.0 */ public abstract class ThreadFunction<S, T> implements Function<S, T...
package com.elvarg.world.entity.updating; import java.util.Iterator; import com.elvarg.net.packet.ByteOrder; import com.elvarg.net.packet.PacketBuilder; import com.elvarg.net.packet.PacketBuilder.AccessType; import com.elvarg.net.packet.ValueType; import com.elvarg.world.World; import com.elvarg.world.entity.Entity; ...
package application.controller; import java.net.URL; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Arrays; import java.util.ResourceBundle; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; import javafx.scene.control.Label; i...
package rhtn_homework; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class BOJ_1613_역사 { private static int N,K,S; private static int[][] adMap; private static StringBuilder sb = new StringBuilder(); public static void main...
package com.example.root.curriculum.base; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.support....
package com.diozero.example; import org.tinylog.Logger; import com.diozero.api.I2CConstants; import com.diozero.api.RuntimeIOException; import com.diozero.devices.HD44780Lcd; import com.diozero.devices.LcdConnection; import com.diozero.devices.LcdConnection.PCF8574LcdConnection; import com.diozero.util.Diozero; impor...
package de.jmda9.core.mproc.task; import static de.jmda9.core.mproc.ProcessingUtilities.withEnclosedTypeElements; import static de.jmda9.core.util.CollectionsUtil.asSet; import java.io.IOException; import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; import javax.lang.model.element.Typ...
package com.tt.miniapp.debug.network; import org.json.JSONObject; public class Network { public static class DataReceivedParams { public int dataLength; public int encodedDataLength; public String requestId; public double timestamp; } public static class GetRespo...
package org.wicket_sapporo.workshop01.page.template.replace_pattern; import org.apache.wicket.Component; import org.apache.wicket.bootstrap.Bootstrap; import org.apache.wicket.markup.head.IHeaderResponse; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.WebPage; import org....
/* * 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.ntconsult.devtest.entities; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.asse...
package gui; import gui.excecao.PrecoDeCompraNaoDeclaradoException; import gui.excecao.PrecoDeVendaNaoDeclaradoException; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Alert; import negocio.entidade.Produto; import negocio.excecao.*; import negocio.fachada.Fachada; import javaf...
package net.minecraft.client.gui; import net.minecraft.client.Minecraft; import net.minecraft.network.play.server.SPacketUpdateBossInfo; import net.minecraft.util.math.MathHelper; import net.minecraft.world.BossInfo; public class BossInfoClient extends BossInfo { protected float rawPercent; protected long perc...
package com.facebook.react.bridge; public interface INativeLibraryLoader { void loadLibrary(String paramString) throws UnsatisfiedLinkError; } /* Location: C:\Users\august\Desktop\tik\df_rn_kit\classes.jar.jar!\com\facebook\react\bridge\INativeLibraryLoader.class * Java compiler version: 6 (5...
package com.javarush.task.task24.task2401; /** * Created by Администратор on 26.05.2017. */ public class SelfInterfaceMarkerImpl implements SelfInterfaceMarker{ public void A () {} public void B () {} }
package com.tencent.mm.plugin.subapp; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.api.f; import com.tencent.mm.g.a.fi; import com.tencent.mm.kernel.g; import com.tencent.mm.model.au; import com.tencent.mm.model.q; import com.tencent.mm.modelvoice.m; import com.tencent.mm.modelvoice.o;...
package modelo; public class PorcionQueso implements Porcion { private String nombrePorcion; private double precioExtra; private Porcion porcionExtra; public PorcionQueso(Porcion porcion) { this.nombrePorcion = "Porcion Queso"; this.precioExtra = 20; this.porcionExtra = porcion; } @Overrid...
package com.test; import java.io.IOException; import java.io.OutputStream; import java.net.ServerSocket; import java.net.Socket; public class Server { public static void main(String[] args) throws IOException { ServerSocket serverSocket = new ServerSocket(8080); while (true) { Socket a...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
/** * */ package uk.gov.hmcts.befta.factory; import org.hamcrest.MatcherAssert; import org.hamcrest.core.IsInstanceOf; import org.junit.jupiter.api.Test; import uk.gov.hmcts.befta.player.BackEndFunctionalTestScenarioContext; /** * @author korneleehenry * */ class BeftaScenarioContextFactoryTest { /** * Tes...
package com.company; import java.util.Arrays; public class Main { public static void main(String[] args) { int[] a = {1, 2, 3, 4, 5}; int[] b = a.clone(); int[] c = new int[a.length]; System.arraycopy(a, 0, c, 0, c.length); String str = "a = "; for(int i = 0; i < a...
package net.d4rk.inventorychef.inventory.expandablelistview.roomembedded.adapter; import android.app.Activity; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.util.SparseArray; import android.util.SparseIntArray; import android.view.KeyE...
package com.project.model; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "devconscore") public class DevconScore { @Id String id; String paperName, evaluatorName; String[] criteria, weightage, score, comments, totalWeightage; ...
package com.wit.getaride; import com.parse.LogInCallback; import com.parse.ParseException; import com.parse.ParseUser; import com.parse.SignUpCallback; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.vi...
package it.dstech.formazione.service; import java.time.LocalDateTime; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import it.dstech.formazione.model.Messaggio; import it.dstech.formazione.model.Persona; import it.dstech.formazion...
/* 1: */ package com.kaldin.test.scheduletest.action; /* 2: */ /* 3: */ enum SendMailAction$OPTIONS /* 4: */ { /* 5:33 */ SEND, REGISTRATION, EDIT, VIEW_MAIL; /* 6: */ /* 7: */ private SendMailAction$OPTIONS() {} /* 8: */ /* 9: */ public static SendMailAction$OPTIONS ge...
package controllers; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.ServletException; import java.io.IOException; import java.io.OutputStream; import java.io.InputStream; i...
package mapgenerator.gui; import java.util.Random; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; import mapgenerator.domain.BiomeColor; import mapgenerator.domain.Biomes; import mapgenerator.domain.Map; /** * Class is responsible for drawing maps on canvas. */ public class Painter { ...
package fr.lteconsulting.formations; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.HashSet; import java.util.Set; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import java...
/** * */ package edu.fjnu.smd.controller; import java.util.Map; import javax.servlet.http.HttpSession; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.Errors; import org.spr...
/* * [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.java.rest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.java.error.NotFoundException; import java.util.List; import java.util.Optional; import static java.util.stream.Coll...
package ru.sberbank.ex2.steps; import io.qameta.allure.Step; import org.junit.jupiter.api.Assertions; import org.openqa.selenium.WebDriver; import ru.sberbank.ex2.GeneralMethods; import ru.sberbank.ex2.pageObjects.TravelInsurancePage; public class TravelIsuranceSteps { private WebDriver driver; private Trave...
package ca.csf.dfc.poo.Observer.classes; import java.util.Observable; public class BinaryObserver extends Observer implements java.util.Observer{ public BinaryObserver(Subject subject){ this.subject = subject; this.subject.attach(this); } @Override public void update(Observable o, Obje...
#include<iostream> using namespace std; int main() { int n,start=6,factor=5; cin>>n; int i=1; cout<<start<<" "; for(i=1;n>1;i++,n--) { start=start+factor*i; cout<<start<<" "; } }
package org.lxy.thread; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; /** * @author menglanyingfei * @date 2017-4-16 */ public class Demo4_ReentrantLock { public static void main(String[] args) { final Printer1 p = new Printer1(); new Thread() { public void r...
package soduku.main; import java.util.ArrayList; public class SodukuField { SodukuCell[][] sodukuField = new SodukuCell[9][9]; String message; public SodukuField(){ ArrayList<NumberContainer> rowNumberContainerList = new ArrayList<NumberContainer>(); ArrayList<NumberContainer> columnNumb...
package Manufacturing.ProductLine; /** * TODO:抽象工厂生成类 * * @author 孟繁霖 * @date 2021-10-11 23:39 */ public class FactoryProducer { public static Factory getAbstractFactory(String lineName) { if ("fruit".equalsIgnoreCase(lineName)) { return new FruitLineFactory(); } else if ("fresh"....
package org.corbin.common.base.convert; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import java.util.ArrayList; imp...
package com.fleet.forest.consumer; import com.thebeastshop.forest.springboot.annotation.ForestScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @ForestScan(basePackages = "com.fleet.forest.consumer.service") public clas...
package com.example.calendarbuilderexample; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; import java.util.Date; public class MainActivity extends Activity implements Calenda...
import static org.junit.Assert.*; import org.junit.Test; import br.ita.sem1dia1.IntroducaoJavaOo.Carro; public class TesteCArro { @Test public void testAcelerar() { Carro c = new Carro(); c.potencia = 10; c.acelerar(); assertEquals(10, c.getVelocidade()); } @Test public void testCar...
package Selinium; public class Q13Palindrom { public static void main(String[] args) { int ans = 0 ; for(int no=90;no<=120;no++) { int n1 = no; int n3 = 0; while(n1!=0) { int x = n1 % 10; n3 = (n3 * 10) + x; n1 = n1/10; } if(no==n3) { ans = ans + no; } }System.ou...
package com.awsp8.wizardry.gui; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.util.ResourceLocation; import com.awsp8.wizardry.Arcane.Blocks.ArcaneSlot; import com.awsp8.wizardry.Arcane.Blocks.ContainerArcaneHarnesser; import com.awsp8...
package com.tencent.mm.plugin.wallet.balance.a.a; import com.tencent.mm.protocal.c.bft; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.vending.g.b; import com.tencent.mm.vending.g.g; import com.tencent.mm.vending.h.e; public class n$c implements e<bft, com.tencent.mm.vending.j.e<Integer, String, Str...
package fr.mb.volontario.model.bean; import com.fasterxml.jackson.annotation.JsonBackReference; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonManagedReference; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; import javax.p...
package symblink.com.track_me; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.view.Menu; import android.widget.Toast; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import...
package jneiva.hexbattle.estado; import java.util.List; import java.util.concurrent.TimeUnit; import com.badlogic.gdx.graphics.Color; import jneiva.hexbattle.ControladorBatalha; import jneiva.hexbattle.ControladorEstrutura; import jneiva.hexbattle.ControladorTurnos; import jneiva.hexbattle.componente.Movimento; impo...
package org.utarid.room; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.DefaultItemAnimator; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.google.android.m...
package org.dkni.experimental.dao; import org.dkni.experimental.domain.MealType; import java.util.List; /** * Created by DK on 08.01.2016. */ public interface MealTypeDao { void addMealType(MealType mealType); MealType getMealTypeById(Long id); List<MealType> getAllMealTypes(); }
/** * \file UserDefinedSimbolization.java * This class represents the UserDefinedSimbolization node of the XML. */ package br.org.funcate.glue.model.xml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml...
package com.jim.multipos.core; import android.graphics.Color; import android.text.Editable; import android.view.View; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; import com.jim.mpviews.MpEdit...
package com.share.dao; import com.share.model.share_project; public interface share_projectMapper { int deleteByPrimaryKey(Integer pid); int insert(share_project record); int insertSelective(share_project record); share_project selectByPrimaryKey(Integer pid); int updateByPrimaryKeySelective(s...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
package com.tencent.mm.plugin.sns.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.os.Bundle; import android.view.KeyEvent; import android.view.MenuItem; import andr...
package com.silver.dan.castdemo; import android.content.Context; import android.content.SharedPreferences; import android.support.annotation.NonNull; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android.gms.comm...
package util; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Van-anh et Sébastien * *La classe Bdd permet de se connecter et se déconnecter de la base de données */ public class Bdd { sta...
package com.outbrain.aletheia.datum.production; public interface DatumKeyAwareSender<TInput> { void send(final TInput data, String key) throws SilentSenderException; }
package com.xu.easyweb.report.entity; /** * @author Yangcl * @描述:这个类继承了GenericField类,详细说明请参考:GenericField */ public class BodyField { private String name; private int BeginCell; private String value; public int getBeginCell() { return BeginCell; } public void setBeginCell(int begin...
package com.hotmail.at.jablonski.michal.shoppinglist.ui.main.listAdapter; import com.hotmail.at.jablonski.michal.shoppinglist.db.entities.RootEntity; import java.io.Serializable; public class RootItem implements Serializable { private Integer id; private String name; private boolean isArchived; priv...
package com.zjh.stock.service.stock; import com.baomidou.mybatisplus.extension.service.IService; import com.zjh.stock.entity.StockDailyData; import java.util.Map; /** * * * @author zhujianhao * @email 1205628174@qq.com * @date 2021-02-03 15:20:49 */ public interface StockDailyDataService extends IService<Stock...
package com.gnomikx.www.gnomikx.ViewHolders; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.TextView; import com.gnomikx.www.gnomikx.R; /** * Class to act as view holder for Upload Report Fragment */ public class AllUsersViewHolder extends RecyclerView.ViewHolder {...
package me.DawnBudgie.pandoralimits; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; import org.bukkit.Bukkit; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; import org.bukkit.even...
package com.twitter.controller; import com.twitter.model.Tweet; import com.twitter.model.Twitter; import com.twitter.model.TweetActions; import com.twitter.service.TwitterService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @...
package edu.neu.dreamapp.survey; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.os.PersistableBundle; import android.support.annotation.Nullable; import androi...
package org.drooms.api; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.junit.Assume; import org.junit.Test; public class CollectibleTest { @Test public void testCollectibleConstructorExpiring() { final int points = 5; final int expiration = 2; final Collectible ...
package Onlineshoppingstore; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.List; import org.apache.log4j.Logger; import org.apache.log4j.xml.DOMConfigurator; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.xssf.usermodel.XSSFSheet; import o...
package org.exoplatform.rest; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.testng.Arquillian; import org.jboss.shrinkwrap.api.ArchivePaths; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.formatter.F...
package com.miguelcr.customlistviewfruits; import android.content.Context; import android.media.Image; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import java.util.List...
package graphics; import java.awt.*; import javax.swing.*; import java.util.*; import board.Board; import board.Cell; import city.City; public class Grid extends Box { private int n_rows; private int n_cols; private Board board; private GridCell[][] grid_cells; private Hashtable<String, GridCell> grid_cityCell...
package BLL; import DAL.BookInfo; import DAL.BorrowerInfo; import DAL.BorrowingInfo; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; public class BorrowBookController { private ArrayList<BookInfo> book_list = new ArrayList<>(); /** * Get information of all book that is Ava...
package ua.lviv.iot.uklon.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import ua.lviv.iot.uklon.domain.Adress; @Repository public interface AdressRepository extends JpaRepository<Adress, Integer> { }
public class Percolation { private int gridSize; // number of sites in grid private int gridEdgeLength; //square root of gridSize private WeightedQuickUnionUF uf; private int[] status; //keeps track of open/closed status. public Percolation(int N) { // create N-by-N grid, with all sites bloc...
package com.zhouyi.business.core.service; /** * @author 李秸康 * @ClassNmae: PhoneService * @Description: TODO 手机信息业务接口 * @date 2019/7/12 9:27 * @Version 1.0 **/ public interface PhoneService { /** * 解析文件入库 * @param path * @return */ boolean parseXml(String path); }
package epam.ph.sg.models.xo; /** * @author Paul Michael T. */ public class XOBox { private int status = XO.EMPTY; private int x; private int y; public XOBox(int x, int y) { this.x = x; this.y = y; } /** * Status getter * * @return XO.EMPTY, XO.X or XO.O */ public int getSta...
package com.gmail.vasylvovkast.ht01; /** * @author Vasyl Vovk * Завдання в якому потрібно вивести на екран всі непарні числа числа у * діапазоні [0..10]. */ public class HT01 { public static void main(String... args) { int N = 10; int odd = 1; while (odd <= N) { ...
package bst; import javax.swing.event.TreeModelListener; import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; public class BST extends IBST { private Node<Integer, Integer> root = null; public boolean containsKey(Integer k) { Node<Integer, Integer> x = root; while...
package com.rishi.baldawa.iq; import org.junit.Test; import static org.junit.Assert.*; public class IntegerToRomanTest { @Test public void intToRoman() throws Exception { assertEquals(new IntegerToRoman().intToRoman(47),"XLVII"); assertEquals(new IntegerToRoman().intToRoman(123),"CXXIII"); ...
package com.base.crm.salary.service.impl; import java.math.BigDecimal; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.base.crm.salary.dao.ServerSalaryMapper; import com.base.crm.salary.entity.ServerSalary; impo...
package com.travel_agency.service; import com.travel_agency.entity.Room; import java.util.List; public interface RoomService { void add(Room room); Room getRoomById(int id); List<Room> getRoomsByHotelId(int id); List<Room> getAvailableRoomsOnDateInHotel(String startDate, String endDate, int hotel...
package com.favccxx.shy.dao; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import com.favccxx.shy.entity.ShyUser; public interface UserInfoReposito...
package org.ecsoya.yamail.handlers; import org.eclipse.e4.core.di.annotations.Execute; public class DeleteMailCommand { @Execute public void execute() { } }