text stringlengths 10 2.72M |
|---|
package com.grocery.codenicely.vegworld_new.splash_screen;
import com.grocery.codenicely.vegworld_new.splash_screen.model.data.SplashScreenData;
/**
* Created by meghal on 23/10/16.
*/
public interface SplashScreenCallback {
void onSuccess(SplashScreenData splashScreenData);
void onFailed();
}
|
package site.lzlz.mainbody.mapper;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import site.lzlz.m... |
/**
* This class is generated by jOOQ
*/
package schema.tables.records;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record8;
import org.jooq.Row8;
import org.jooq.impl.UpdatableRecordImpl;
import schema.tables.MilestonesUsermilesto... |
// moda/module.info.java
module moda {
exports pkga;
}
|
package pinno.demo.hackernews.screen.collection;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InOrder;
import org.mockito.Mock;
import pinno.demo.hackernews.api.HackerNewsApi;
import pinno.demo.hackernews.api.data.NewsItem;
import pinn... |
package cn.shizihuihui.ssweddingserver.service.impl;
import cn.shizihuihui.ssweddingserver.entity.Config;
import cn.shizihuihui.ssweddingserver.mapper.ConfigMapper;
import cn.shizihuihui.ssweddingserver.service.IConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframewo... |
package utils.benchmarking;
/**
*
* @author Luis Garay
*/
public class MemoryUsage {
public static long memoryUsageInBytes() {
return Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
}
public static long memoryUsageInKBytes() {
return memoryUsageInBytes() / 1024;... |
package no.ntnu.stud.ubilearn.server.service;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import no.ntnu.stud.ubilearn.server.models.User;
import com.google.common.base.Optional;
import com.yammer.metrics.annotation.T... |
package com.gymteam.tom.gymteam;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import ... |
package com.proky.booking.dto;
import lombok.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
@Data
@NoArgsConstructor
public class UserDto implements Serializable {
private String id;
@NotBlank
... |
package com.test;
import com.test.base.Solution;
/**
* DFS
* 公式:f(n) = 1f(n) + 2f(n) + 3f(n) + 4f(n) + 5f(n) + 6f(n) + 7f(n) + 8f(n) + 9f(n)
* 函数f(n), 表示为:从左到右,剩余的最终的解(由于有值,因此,可以直接从0开始遍历)
*
* @author YLine
*
* 2018年11月13日 上午11:44:21
*/
public class SolutionA implements Solution
{
private static final cha... |
package com.customerservicecenter.model;
import javax.persistence.Id;
// TODO: Auto-generated Javadoc
/**
* The Enum UserType.
*/
public enum UserType {
/** The customer. */
@Id
CUSTOMER,
/** The operator. */
OPERATOR
}
|
package com.marvell.cmmb.manager;
import java.util.ArrayList;
import java.util.HashMap;
import android.content.Context;
import com.marvell.cmmb.resolver.ChannelItem;
import com.marvell.cmmb.aidl.LogMask;
public class VicePlayerManager {
private Context mContext;
private static VicePlayerManager sInstance;
private... |
package work.binder.ui;
public class Constants {
public static final String DOT_ZIP = ".zip";
}
|
package com.designPatterns.iteratorPattern.productCollection;
public interface ProductIterator {
public boolean hasNext();
public void next();
public Product current();
}
|
package com.oa.bbs.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.oa.base.dao.BaseDaoImpl;
import com.oa.bbs.form.Forum;
import com.oa.page.form.Page;
@Repository
public class ForumDaoImpl extends BaseDaoImpl<Forum> implements ForumDao {
@Override
public void addForum(Fo... |
package fudan.database.project.dao.impl;
import fudan.database.project.dao.BedDAO;
import fudan.database.project.dao.DAO;
import fudan.database.project.entity.Bed;
import java.util.List;
public class BedDAOJdbcImpl extends DAO<Bed> implements BedDAO {
@Override
public List<Bed> getFreeBedsByArea(int areaId) ... |
package nesto.servicetest;
import android.annotation.SuppressLint;
import android.app.AlarmManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
... |
package moe.tristan.easyfxml.util;
import static javafx.scene.input.MouseButton.PRIMARY;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.concurrent.atomic.AtomicBoolean;
import org.junit.Test;
import moe.tristan.easyfxml.test.FxNodeTest;
public class ClickableTextTest extends FxNodeTest ... |
package algorithms.graph.practice;
import algorithms.graph.Graph;
import algorithms.graph.GraphFactory;
import algorithms.graph.PathLogUtil;
import algorithms.graph.process.Paths;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by Chen Li on 2018/5/27.
*/
@Slf4j
publi... |
package com.apap.igd.controller;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.fac... |
package com.zxt.compplatform.formengine.entity.view;
import com.zxt.compplatform.formengine.entity.database.Dictionary;
import com.zxt.framework.common.entity.BasicEntity;
/**
* Title: CacheInterface Description: 界面控件 Create DateTime: 2010-9-27
*
* @author xxl
* @since v1.0
*
*/
public class EditMode extends ... |
package renderEngine;
import java.util.HashMap;
import java.util.Map;
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector3f;
import colladaLoader.AnimationData;
import colladaLoader.ColladaLoader;
import colladaLoader.JointTransformData;
import colladaLoader.KeyFrameData;
import models.animati... |
package pl.pawel.weekop.controller;
import pl.pawel.weekop.model.Discovery;
import pl.pawel.weekop.model.User;
import pl.pawel.weekop.model.Vote;
import pl.pawel.weekop.model.VoteType;
import pl.pawel.weekop.service.DiscoveryService;
import pl.pawel.weekop.service.VoteService;
import javax.servlet.ServletException;
i... |
package com.sourav.fcm.fcmservices;
import com.google.firebase.messaging.FirebaseMessagingService;
/**
* Created by sourav on 5/6/16.
*/
public class FCMReceiver extends FirebaseMessagingService {
}
|
package com.hellofresh.challenge.pages.pageObjects;
import com.hellofresh.challenge.pages.BasePage;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
/**
* Category Items Page object
*/
public class CategoryItemsP... |
/**
* Copyright (C) 2008 Atlassian
*
* 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 agree... |
package Problem_10942;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
static int[] arr;
static int[][] dp;
public static void main(String[] args) throws NumberFormatException, IOExc... |
import java.net.*;
import java.nio.*;
public class EncapsulationACK
{
private int dataOrAck; // data=0, ack=1;
private int pOrnACK;//negtive=0, positive=1:
private int fileType; //txt=0, PDF=1;
private int sequenceNumber; //after convert to byte, need byte[4]
private byte checksu... |
package Chapter2;
import java.util.*;
public class ScannerInput {
/*scan.nextInt gives all itegers.*/
/*array.length and arraylist.size();*/
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
/*int a = scan.nextInt();
scan.nextLine();
... |
package com.itcia.itgoo.dto;
import java.util.List;
import org.apache.ibatis.type.Alias;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
//@Getter@Setter
@NoArgsConstructor
@AllArgsConstructor
@Alias("recent")
@Data
@Accessors(chain=true)
... |
package arcs.api;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.inject.Inject;
public class ParticleExecutionContextImpl implements ParticleExecutionContext {
private ParticleLoader particleLoader;
private PortableJson... |
package io.fabiandev.validator;
import io.fabiandev.validator.contracts.Request;
import io.fabiandev.validator.core.MapRequest;
import org.junit.Before;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
public class MapRequestTest
{
private Request request... |
package practice;
import java.util.Arrays;
public class ReverseAWordInAString {
public static void main(String []args)
{
String str = "I am Venkatesh Chirunomula , Programming is good";
String[] split = str.split(" ");
System.out.println(split[5]);
String newString = split[5];
String Revered... |
package com.delrima.webgene.arch.client.interfaces;
/**
* <code><B>View<code><B>
* <p>
* Marker interface used to indicate a "view" (i.e. page) in a GWT application
* </p>
*
* @author bhavesh.thakker@ihg.com
* @since Sep 22, 2008
*
*/
public interface View {
/**
* <p>
* Pre-process bef... |
package com.company;
class MyArraySizeException extends Exception {
int someLength;
int length;
public MyArraySizeException(String s) {
super(s);
}
}
|
package com.codekarma.service.Impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
import org.springframework.transa... |
package com.example.bigasslayout.bigasslayout;
import android.app.Application;
import android.content.Context;
import com.squareup.leakcanary.LeakCanary;
import com.squareup.leakcanary.RefWatcher;
/**
* Created by demo on 5/24/15.
*/
//added an application class to install Leak Canary
public class AmiAGoat extend... |
package DAOTest;
import java.util.List;
import org.junit.jupiter.api.Test;
import com.qst.dms.dao.impl.ImplMatchedTransportDao;
import com.qst.dms.entity.MatchedTransport;
public class ImplMatchedTransportDaoTest {
/**
* 测试添加新的对象
*/
@Test
public void testSave(){
ImplMatchedTransportDao dao = new ImplMatchedT... |
package com.cm.caption3;
public class WxMediaMessage extends ReqBaseMsg {
public WxMediaMessage(){ }
public String media_id;
public String mediaType;
public String title;
public String description;
public String getTitle() {
return title;
}
public void setTitle(String titl... |
package lecturesharingproject.lecturesharing;
import lecturesharingproject.lecturesharing.service.ILectureService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class LecturesharingApplication {
public static voi... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.cs.item;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Omid Alaepour.
*/
@XmlRootElement
@XmlEnum
public enum ItemType {
FREE_ROUNDS, BONUS_MONEY, DEPOSIT_BONUS
}
|
package com.springboot.web.service;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.springb... |
import java.applet.Applet;
import java.awt.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import com.sun.j3d.utils.behaviors.mouse.*;
public class beziercurve extends Applet{
public BranchGrou... |
package msip.go.kr.member.service.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import msip.go.kr... |
package com.adaming.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sprin... |
package projetZoo;
import java.util.LinkedList;
public class Cabane {
private LinkedList<Oiseau> oiseuax = new LinkedList<Oiseau>();
private int numeroCabane;
public LinkedList<Oiseau> getOiseuax() {
return oiseuax;
}
public void setOiseuax(LinkedList<Oiseau> oiseuax) {
this.oiseuax = oiseuax;
}
public i... |
package ico.maze;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import ico.maze.Laberinto.Busqueda;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
@... |
package com.ihq.capitalpool.ssoserver.ServiceImpl;
import com.ihq.capitalpool.ssoserver.Enum.TokenType;
import com.ihq.capitalpool.ssoserver.Service.PasswordTokenService;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class PasswordTokenServiceImpl extends BasicTokenServiceImpl ... |
package com.spring.scrapper.users;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.spring.scrapper.dao.CommonDAO;
import com.spring.scrapper.users.vo.UserVO;
@Repository
public class UserDAOImpl extends CommonDAO implements UserDAO{
@Override
public bo... |
package com.hillel.javaElementary.classes.Lesson_8.Task_5;
import java.util.Date;
public class MulticastingLifecycleObserver implements IHumanLifecycleObserver {
private final IHumanLifecycleObserver[] observers;
public MulticastingLifecycleObserver(IHumanLifecycleObserver[] observers) {
this.observ... |
public class Ch12_05 {
//returns the largest integer whose square is less than or equal to a given nonnegative integer
// - takes O(logn) time complexity and O(1) space complexity
public static int integerSquareRoot(int num) {
int L = 0;
int U = num;
int mid = -1;
while (L <= U) {
mid = L + (U - L) ... |
package domain.tiles;
import java.util.EnumMap;
import java.util.Map;
import api.TileAction;
import api.TileInfo;
import domain.Clock;
import domain.Game;
import domain.MsgQue;
import domain.Product;
import domain.Savable;
import domain.Tile;
import domain.TileState;
import exceptions.InvalidStateException;
import ex... |
package com.qqy.ancientpoetry.crawler.prase;
import com.gargoylesoftware.htmlunit.html.DomNodeList;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.qqy.ancientpoetry.crawler.common.Page;
import java.util.function.Consumer;
/**
* 非详情页解析
* Author:... |
package com.qfc.yft;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.util.Log;
import com.qfc.yft.data.CachMs... |
package typecastingexample;
/**
*
* @author valen
*/
import java.util.*;
public class TypeCastingExample {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
double floatValue;
int intValue;
... |
package cs261_project.config;
import java.util.Properties;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.springframework.orm.jpa.LocalContaine... |
package com.codingame.gameengine.core;
import java.util.ArrayList;
import java.util.List;
import com.google.inject.Inject;
import com.google.inject.Provider;
/**
* The representation of the a player's AI during the game's execution.
*
*/
public abstract class AbstractPlayer {
@Inject Provider<GameManager<Abst... |
package saboteur.ai;
import saboteur.model.Operation;
public class MediumDwarfComputer extends Computer {
/**
*
*/
private static final long serialVersionUID = 5038175066629537120L;
@Override
void operationCollapseCard(Operation o) {
// TODO Auto-generated method stub
}
@Override
void operationPathC... |
package com.bistel.common;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import or... |
package com.juancrud.miscontactos.restApi.deserializador;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseExc... |
package br.com.wasys.gfin.cheqfast.cliente.model;
import android.content.Context;
import android.support.annotation.DrawableRes;
import android.support.annotation.StringRes;
import br.com.wasys.gfin.cheqfast.cliente.Application;
import br.com.wasys.gfin.cheqfast.cliente.R;
import br.com.wasys.library.model.Model;
/*... |
package com.api.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.api.domain.Metrics;
import com.api.interf.MetricsRepositoryCustom;
@Repository
public interface MetricsRepository extends CrudRepository<Metrics, Long> , MetricsReposito... |
/* Given an input string s and a pattern p, implement regular expression matching with support for '.' and '*' where:
'.' Matches any single character.????
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
Example 1:
Input: s = "aa", p = "a"
Output: fa... |
package com.example.jobbay;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class JobDetails extends AppCompatActivity {
private TextView mTitle;
private TextView mDate;
private TextView mCompany;
priva... |
package br.com.candleanalyser.advisors;
import br.com.candleanalyser.calculators.TrendChannelCalculator;
import br.com.candleanalyser.engine.Candle;
import br.com.candleanalyser.engine.Helper;
import br.com.candleanalyser.util.FixedQueue;
public class TrendChannelAdvisor implements SellAdvisor, BuyAdvisor {
... |
package apps.configs.netty;
import org.springframework.context.annotation.Configuration;
@Configuration
public class NettyConfig {
}
|
package com.nikita.recipiesapp.views.recipes;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.Snackbar;
import android.support.v7.app.Ap... |
package com.clicky.semarnat.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.clicky.semarnat.R;
import com.parse.ParseObject;
import java.util.List;
/*... |
package com.oracle.curd.bean;
public class Manager {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column manager.managerid
*
* @mbg.generated Wed Dec 23 13:56:28 CST 2020
*/
private String managerid;
/**
*
* This fi... |
/*
* 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 PPI.Vistas.Interfaces;
import javax.swing.Icon;
/**
*
* @author Personal
*/
public interface InterfazReservas... |
/**
* NOTE: This class is auto generated by the swagger code generator program (2.3.1).
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
package io.swagger.api;
import io.swagger.model.Operation;
import io.swagger.annotations.*;
import org.springframework.http.ResponseEntity;
i... |
package com.caiyi.interfaces;
import android.content.Context;
import android.graphics.Canvas;
import android.view.MotionEvent;
public interface ITrendChart {
void draw(Canvas canvas, int i, int i2, int i3, int i4, float f);
boolean getCanScale();
boolean[] getCanScroll();
float[] getScaleRange();
... |
package exam03;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class Histogram {
public static final String FILL_CHAR = "*";
public String createHistogram(BufferedReader reader) {
StringBuilder builder = new StringBuilder();
... |
package com.example.datepikertimepiker;
import java.util.Calendar;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
//import android.support.annotation.RequiresPermission;
import android.text.InputType;
import android.view.Menu;
import an... |
package kxg.searchaf.url.saks_cat;
import java.util.ArrayList;
import java.util.List;
public class SaksPage {
public String url;
public SaksPage(String url) {
this.url = url;
}
public static List<SaksPage> getWomenSale() {
ArrayList<SaksPage> urllist = new ArrayList<SaksPage>();
// String ... |
package de.varylab.discreteconformal.unwrapper.koebe;
import java.util.HashMap;
import de.jtem.halfedge.Edge;
import de.jtem.halfedge.Face;
import de.jtem.halfedge.HalfEdgeDataStructure;
import de.jtem.halfedge.Vertex;
public class KoebePolyhedronContext<
V extends Vertex<V, E, F>,
E extends Edge<V, E, ... |
package com.clouway.task1;
import java.util.Random;
/**
* Stefan.Dimitrov
*/
public class StringGenerator {
public StringGenerator(){
}
/**
* Generates a random string from printable ascii characters
* @param length specifies the number of characters the string should have
* @return the... |
package demo;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
//import javax.servlet.annotation.WebInitParam;
//import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... |
package example;
public interface IDeviceWriter {
public String saveToDevice();
}
|
/*
* 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 laundry;
/**
*
* @author User
*/
public class Pegawai {
private long idpeg;
private Person[] person;
... |
import java.util.*;
import java.lang.Iterable;
class Shuffle2 extends Shuffle{
//___Class Member:__
//decide the joker card from 52 cards
int taken=(int)((Math.random())*52+3);
//___Class Method__
//Distribute Card to 4 players
//Override distribute method
void distribute(Player0 p0,Player1 p1,Player2 p2,Player3 p3){
... |
package br.unb.poo.mh;
public abstract class ExpressaoUnaria implements Expressao {
protected Expressao expEsquerda;
public ExpressaoUnaria(Expressao expEsquerda) {
this.expEsquerda = expEsquerda;
}
}
|
package RootClasses;
/**
* Class made on 26.06.2018
* Class made at 14:55
* Creator: Howhannes O.
*/
public class Infos
{
private static int kartennummer;
public static void setKartennummer(int nummer){
kartennummer=nummer;
}
public static int getKartennummer(){
return kartennummer... |
package com.esum.router.monitor.control;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import javax.management.openmbean.CompositeData;
import javax.management.openmbean.TabularDataSupport;
import org.quartz.core.jmx.QuartzSchedulerMBean;
import org.slf4j.L... |
package client;
public class MoreComplexObserver extends ConcreteObserver implements Runnable {
public MoreComplexObserver(ConcreteSubject[] subjects) {
super(subjects);
Thread t = new Thread(this);
t.start();
}
private String speaking = "";
private String time = "";
private Object origin=null;
@Ove... |
package com.pruebatecnicaomar.PruebaTecnicaOmar.dto;
import java.util.Date;
import lombok.Data;
@Data
public class CoinHistorial {
private Long id;
private Date fecha;
private Criptomoneda moneda;
public CoinHistorial() {
super();
// TODO Auto-generated constructor stub
}
public CoinHistorial(Long id, D... |
package com.turo.stepdef;
import com.turo.pages.MainPage;
import com.turo.utils.ConfigurationReader;
import com.turo.utils.MyDriver;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import org.junit.Assert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static com.turo.pages.Base.wa... |
package com.selfspring.gimi.algo;
import com.alibaba.fastjson.JSON;
import org.junit.Test;
/**
* Created by ckyang on 2019/7/23.
*/
public class AlgorithmTest {
@Test
public void testTwoSum() throws Exception {
System.out.println(JSON.toJSONString(Algorithm.twoSum(new int[]{2,7,11,13},9)));
}
... |
package cn.novelweb.tool.upload.qcloud;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.ArrayUtil;
import cn.novelweb.tool.upload.qcloud.callback.ListObjectCompletionHandler;
import com.alibaba.fastjson.JSONObject;
import com.qcloud.cos.COSClient;
import com.qcloud.cos.ClientConfig;
import com.qclo... |
package br.edu.fadam.estruturadedados.ead.aula4.revisao;
public class TesteArvoreBinaria {
public static void main(String[] args) {
ArvoreBinaria arvoreBinaria = new ArvoreBinaria();
System.out.println("A árvore está vazia? " + (arvoreBinaria.isArvoreVazia() ? "Siiim!" : "Nao"));
//7 3 2 10 11 4
NoBinari... |
package cn.tedu.reivew;
//day10 接口练习
public class Test3 {
public static void main(String[] args) {
Pigeon p=new Pigeon();
p.eggnumber=6;
p.fly();
p.layEggs();
Swallow s=new Swallow();
s.eggnumber=8;
s.fly();
s.layEggs();
s.makehome();
A... |
package com.cinema.sys.utils.spring;
import java.io.InputStream;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
impor... |
package com.openfarmanager.android.dialogs;
import android.content.Context;
import android.os.Bundle;
import android.util.TypedValue;
import android.widget.TextView;
import com.openfarmanager.android.R;
/**
* @author Vlad Namashko.
*/
public class MarginSetupDialog extends FontSetupDialog {
protected final st... |
public class Shipments {
private String wellCd;
private String loadingLevelCd;
private Shipment shipment;
public Shipments() {
}
public Shipments(String wellCd, String loadingLevelCd, Shipment shipment) {
this.wellCd = wellCd;
this.loadingLevelCd = loadingLevelCd;
this... |
package net.cattaka.android.learnaccount;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class LoginActivity extends AppCo... |
package com.github.nnnnusui.format;
import java.nio.ByteBuffer;
import java.util.BitSet;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
public class Base32hex {
public static String encode(byte[] source) { return instance._encode(source); }
public static... |
package domainapp.dom.superscore;
import java.util.List;
import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.Identifier;
import org.apache.isis.applib.annotation.Action;
import org.apache.isis.applib.annotation.ActionLayout;
import org.apache.isis.applib.annotation.BookmarkPolicy;
impor... |
/*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.source;
import com.yahoo.cubed.model.Field;
import com.yahoo.cubed.model.FieldKey;
import com.yahoo.cubed.model.Pipeline;
import com.yahoo.cubed.model.Pip... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.