text stringlengths 10 2.72M |
|---|
package rouchuan.viewpagerlayoutmanager.circle;
import com.leochuan.CircleLayoutManager;
import rouchuan.viewpagerlayoutmanager.BaseActivity;
/**
* Created by Dajavu on 25/10/2017.
*/
public class CircleLayoutActivity extends BaseActivity<CircleLayoutManager, CirclePopUpWindow> {
@Override
protected Circ... |
package app.controlador;
//import app.entidad.Producto;
import app.entidad.Prueba;
import app.entidad.Personeros;
import app.entidad.partido;
import app.servicio.appServicio;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;... |
package BLL;
import DAL.BookInfo;
import DAL.BorrowerInfo;
import DAL.BorrowingInfo;
import java.util.ArrayList;
import java.util.Date;
public class ReturnBookController {
private ArrayList<BorrowingInfo> borrowing_list = new ArrayList<>();
private BorrowerInfo borrower = new BorrowerInfo();
public Borr... |
/*
* Copyright 2019 iserge.
*
* 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 w... |
package com.sjain.couponduniatask;
import android.app.Application;
import android.content.Context;
import com.sjain.couponduniatask.network.RestClient;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Re... |
package queue.entity;
import java.util.*;
public class Queue {
private LinkedList<String> list;
private int currentIndex;
public Queue(LinkedList<String> list, int currentIndex) {
super();
this.list = list;
this.currentIndex = -1;
}
public Queue() {
list=new LinkedList<>();
this.curren... |
package com.devinchen.library.common.consts;
/**
* CommonLibraryDemo
* com.devinchen.library.common.consts
* Created by Devin Chen on 2017/5/15 22:54.
* explain:本地存取的key
*/
public interface IoKeys {
}
|
package com.tencent.mm.plugin.game.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.tencent.mm.bp.a;
import... |
package com.isen.regardecommeilfaitbeau.api.conversion;
import android.os.Build;
import androidx.annotation.RequiresApi;
import com.isen.regardecommeilfaitbeau.api.meteo.Alert;
import com.isen.regardecommeilfaitbeau.typeData.Time;
import org.json.JSONArray;
import org.json.JSONException;
import java.util.ArrayList... |
package server.rest.controllers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import server.model.Contractor;
import server.rest.responses.ContractorsResponse;
import server.rest.responses.Response;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import... |
package lab_3.pkg2;
import java.util.Scanner;
/**
*
* @author sameeh boshra
*/
public class Lab_32 {
public static void main(String[] args) {
Scanner input =new Scanner(System.in);
Lion l = new Lion();
String eat=input.next();
l.setEat(eat);
l.... |
package com.xhs.property.controller;
import com.xhs.property.jwt.JwtTokenUtils;
import com.xhs.property.pojo.ResultEntity;
import com.xhs.property.pojo.User;
import com.xhs.property.service.impl.UserServiceImpl;
import com.xhs.property.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
i... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 com.translator.application.test.doubles;
import com.translator.domain.model.numeral.Calculator;
import com.translator.domain.model.credits.Credits;
import com.translator.domain.model.numeral.Cost;
import java.util.ArrayList;
import java.util.List;
public class CalculatorSpy implements Calculator {
priv... |
package com.tencent.mm.plugin.aa.a.c;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.protocal.c.s;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.vending.c.a;
import com.tencent.mm.vending.g.b;
class f$2 implements a<Void, com.tencent... |
/*
* 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 escuela.de.natacion;
import BaseDeDatos.ConexionMySQL;
import static BaseDeDatos.ConexionMySQL.Conexion;
import java.sql.Resul... |
package com.nolansherman.team_manager.repositories;
import java.util.List;
import com.nolansherman.team_manager.domains.Player;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PlayerRepository extends CrudRepository<Player, Lon... |
/**
* Copyright (c) [2018] [ The Alienchain Developers ]
* Copyright (c) [2016] [ <ether.camp> ]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
package unalcol.types.collection.vector;
import unalcol.types.collection.Iterator;
import java.util.NoSuchElementException;
/**
* <p>Title: </p>
* <p>
* <p>Description: </p>
* <p>
* <p>Copyright: Copyright (c) 2009</p>
* <p>
* <p>Company: Kunsamu</p>
*
* @author Jonatan Gomez Perdomo
* @version 1.0
*/
pub... |
//package designpatterns.examples.strategy;
package com.headfirst.designpatterns.strategy;
public class MuteQuack implements QuackBehavior{
public void quack(){
System.out.println("<Silence>");
}
} |
package it.unibz.testhunter;
import it.unibz.testhunter.model.TestResultModel;
import java.util.ArrayList;
import java.util.List;
public class AperMetric implements IMetric {
private List<TestResultModel> testSequence;
private List<Float> infoSeq;
private List<Float> timeSeq;
private Float T;
private Float I;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.insat.gl5.crm_pfa.service;
import com.insat.gl5.crm_pfa.model.BackendUser;
import com.insat.gl5.crm_pfa.model.Contact;
import com.insat.gl5.crm_pfa.model.Notification;
import com.insat.gl5.crm_pfa.model.Noti... |
package com.gsonkeno.elasticsearch5_3;
import org.apache.commons.lang.math.RandomUtils;
import org.dom4j.DocumentException;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.Operator;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.aggregati... |
package javaStudy.thread;
// 2. Runnable Interface를 구현해서 thread 만드는 방법
class Animal {
}
class Lion extends Animal implements Runnable {
@Override
public void run() { // thread의 작업 내용
Thread t = Thread.currentThread(); // 현재 이 문장을 실행하고 있는 thread를 알아내는 메소드
System.out.println("thread is running.... |
package com.neu.pojo;
import java.sql.Blob;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
@Entity
@Ta... |
package com.jk.jkproject.ui.dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import com.jk.jkproject.R;
import com.jk.jkproject.ui.entity.UpdateInfo;
import com.jk.jkproject.utils.ScreenUtils;
import butterknife.B... |
package com.halilayyildiz.game.mancala;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.con... |
package ru.kappers.convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Service;
import ru.kappers.model.Event;
import ru.kappers.model.dto.EventDTO;
import ru.kappers.service.FixtureService;
import j... |
package com.app.gnometown;
import android.app.Application;
import android.graphics.Bitmap;
import android.text.TextUtils;
import com.android.volley.Cache;
import com.android.volley.Network;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.BasicNetwork;
impor... |
package com.sye.kupps.calendarapp.login;
import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.sye.kupps.calendarapp.Ap... |
package com.example.shivam.tic_tac_toeonline;
import android.app.Dialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import com.googl... |
package cn.itcast.job.utils;
import java.util.*;
public class CollectionsUtils {
public static <T> List<T> getListFromArray(T[] array) {
List<T> resultList = new ArrayList<>(array.length);
Collections.addAll(resultList, array);
return resultList;
}
/**
* every step add one i... |
/*
* 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 practicos;
/**
*
* @author capacitacion16
*/
public class Ejercicio6 {
public static void main(String arg[]){
... |
/*
* Sonar PHP Plugin
* Copyright (C) 2010 Sonar PHP Plugin
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
package com.xkzhangsan.time;
import java.time.DayOfWeek;
import java.time.temporal.ChronoField;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjuster;
/**
* TemporalAdjuster 扩展
* @author xkzhangsan
*
*/
public final class TemporalAdjusterExtension {
private TemporalAdjusterExtension() {... |
/**
* Created with IntelliJ IDEA.
* User: Administrator
* Date: 02.03.14
* Time: 14:41
* To change this template use File | Settings | File Templates.
*/
public class WorkThread extends Thread {
private CompositeHashMap map;
WorkThread(CompositeHashMap map) {
this.map = map;
}
@Override
... |
package task3;
public class MainCalculator {
public static void main(String[] args) {
Calculator calculator = new Calculator();
boolean numberIsEven;
boolean numberIsOdd;
double circleField;
int powerVar;
numberIsEven = calculator.isEven(41);
System.out.print... |
/*
* 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 interfaces;
/**
*
* @author ESTUDIANTES
*/
public interface Productos {
public double calcularValorNeto();
pub... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.presenter.impl.currency.model;
import java.math.BigDecimal;
import java.util.Date;
import net.nan21.dnet.core.api.annotation.Ds;
import net.... |
package net.minecraft.command;
public class WrongUsageException extends SyntaxErrorException {
public WrongUsageException(String message, Object... replacements) {
super(message, replacements);
}
public synchronized Throwable fillInStackTrace() {
return this;
}
}
/* Location: C:\Users... |
package br.com.senac.controller;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import java... |
package jwscert.jaxws.services;
import java.util.Set;
import javax.xml.namespace.QName;
import javax.xml.soap.SOAPMessage;
import javax.xml.transform.Source;
import javax.xml.ws.LogicalMessage;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.S... |
//Assignment 6 Program 1
//Justin Yang
//2/19/14
//.....
//.....
//.............
//Testing
public class Swap {
/**
* @param args
*/
public static void main(String[] args) {
//Input in array
;int array[] = new int [100000];
int array2[] = {3,2,4,6,1,0};
for (int i = 0 ; i < 100000 ; i++)
{
... |
package finger.print.atm;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templat... |
package com.redscarf.admin.controller;
import com.baomidou.mybatisplus.plugins.Page;
import com.redscarf.admin.model.vo.UserVO;
import com.redscarf.admin.service.SysUserService;
import com.redscarf.admin.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.ann... |
package diasporaTests;
import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.Screenshots;
import com.google.common.io.Files;
import org.junit.Before;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;
import ru.yandex.qatools.allure.annotations.Attachment;
import java.io... |
package com.tkb.elearning.dao.impl;
import java.util.ArrayList;
import java.util.List;
import com.tkb.elearning.dao.AppealDao;
import com.tkb.elearning.model.Appeal;
import sso.ojdbc.dao.impl.PagingDaoImpl;
public class AppealDaoImpl extends PagingDaoImpl implements AppealDao{
@SuppressWarnings("unchecked")
pu... |
package com.zmyaro.ltd;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
public abstract class RotatingEnemy extends Enemy {
protected float mRotation;
protected float mRotationIncrement;
public RotatingEnemy() {
mRotation = (float) (M... |
package com.tencent.mm.plugin.topstory.a;
public interface c {
void dM(int i, int i2);
}
|
package beans;
import lombok.Data;
import util.Default;
@Data
public class PurchasingCardForm {
private String id;
private String rowstamp;
private String companyPurchasing;
private String address;
private String city;
private String zipcode;
private String phone;
private String nameDeliver;
privat... |
package org.terasoluna.gfw.examples.rest.api.common.error;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;
import org.terasoluna.gfw.common.exception.ExceptionCodeP... |
package com.minipg.fanster.armoury.adapter;
import android.content.Intent;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
i... |
package forex.rates.api.controller;
import forex.rates.api.service.DateTimeProviderService;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import org.springfr... |
package com.lingnet.vocs.action.remotedebug;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.lang.xwork.StringUtils;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Controller;
import com.lingnet.common.action.BaseAction;
import com.li... |
package com.website.views.pages;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import com.website.models.entities.Author;
import com.website.models.entities.Picture;
import com.website.persiste... |
package com.example.user.gallows;
/**
* Created by User on 29.11.2017.
*/
class GallowsModel {
private String secretWord;
private String guessedWord;
private int mistakesCount;
public GallowsModel() {
secretWord = "";
mistakesCount = 0;
}
public String getSecretWord() {
... |
package de.adesso.gitstalker.core.processors;
import de.adesso.gitstalker.core.config.Config;
import de.adesso.gitstalker.core.enums.RequestType;
import de.adesso.gitstalker.core.objects.Member;
import de.adesso.gitstalker.core.objects.OrganizationWrapper;
import de.adesso.gitstalker.core.objects.Query;
import de.ades... |
package com.fleet.postgis;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author April Han
*/
@SpringBootApplication
public class PostGisApplication {
public static void main(String[] args) {
SpringApplication.run(PostGisAp... |
package com.tencent.mm.compatible.d;
public interface a$a {
void aL(long j);
}
|
package com.sula.service;
import com.fengpei.ioc.AutoInstance;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
@AutoInstance
public interface CreditScoreService {
/**
* 信用积分
*/
public Record getCreditObject();
public boolean modifyCreditObject(boolean flag , Record ob... |
package com.zhowin.miyou.recommend.dialog;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import com.zhowin.base_library.base.BaseDialogFragment;
import com.zhowin.base_library.utils.ConstantValue;
import com.zhowin.miyou.R;
import com.zhowin.miyou.r... |
package com.jeecms.cms.manager.main;
import com.jeecms.cms.entity.main.Content;
import com.jeecms.cms.entity.main.ContentDoc;
import com.jeecms.core.entity.CmsUser;
public interface ContentDocMng {
public ContentDoc save(ContentDoc doc, Content content);
public ContentDoc update(ContentDoc doc, Content cont... |
package com.huawei.esdk.tp.professional.local.impl.utils;
public abstract class Base64Utils
{
/**
* 对数据进行Base64编码
*
* @param btData 数据
* @return 以Base64编码的数据
*/
public static String encode(byte[] btData)
{
int iLen = 0;
boolean l_bFlag;
int l_iGroup;
... |
package com.duofei.command;
import com.duofei.service.ConsumerService;
import com.netflix.hystrix.HystrixCollapser;
import com.netflix.hystrix.HystrixCollapserKey;
import com.netflix.hystrix.HystrixCollapserProperties;
import com.netflix.hystrix.HystrixCommand;
import java.util.Collection;
import java.util.List;
impo... |
package com.jeysin.concurrency;
/**
* @Author: Jeysin
* @Date: 2019/4/16 12:07
* @Desc: 非公平锁的实现,可能存在线程饿死现象
*/
public class UnfairLock {
private volatile boolean isLocked = false;
private Thread lockingThread = null;
public synchronized void lock() throws InterruptedException{
while(isLocked... |
package model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import java.sql.Time;
import java.sql.Date;
@Setter
@Getter
public class Seance extends Entity<Integer> {
private Movie movie;
private Hall hall;
private Date seanceDate;
private Time seanceTime;
priv... |
package com.penzias.dao;
import com.penzias.core.interfaces.BasicMapper;
import com.penzias.entity.PhysiqueExamInfo;
import com.penzias.entity.PhysiqueExamInfoExample;
public interface PhysiqueExamInfoMapper extends BasicMapper<PhysiqueExamInfoExample, PhysiqueExamInfo>{
} |
/*
* [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 ability.damageAbility;
import map.Square;
import map.Character;
import java.io.File;
import javax.sound.sampled.AudioSystem;
import ability.Ability;
public class Punch extends Ability {
private int damage;
// private String description;
public Punch() {
super("Punch");
setRadius(... |
package com.tencent.mm.plugin.fav.ui.detail;
import android.widget.ImageView;
import com.tencent.mm.protocal.c.vx;
import com.tencent.mm.ui.tools.k;
class FavoriteImgDetailUI$a {
int bJr;
int bJs;
ImageView bOA;
vx bOz;
k fUH;
final /* synthetic */ FavoriteImgDetailUI jcT;
boolean jda;
... |
package com.polaris.pay.ui.record;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.polaris.pay.R;
import com.polaris.pay.logic.mod... |
package com.flute.atp.share.resp;
import com.flute.atp.share.vo.RuleInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ObtainRuleGroupResp ... |
package com.ehootu.park.service.impl;
import com.ehootu.core.util.StringUtils;
import com.ehootu.park.dao.ChemicalsInspectionDao;
import com.ehootu.park.model.ChemicalsInspectionEntity;
import com.ehootu.park.model.PublicInformationEntity;
import com.ehootu.park.service.ChemicalsInspectionService;
import com.ehootu.pa... |
/*******************************************************************************
* Copyright (c) 2008-2010 Sonatype, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available... |
public class PermutationOfString {
public void permutation(String str) {
doPermutation("", str);
}
private void doPermutation(String prefix, String str) {
int n = str.length();
if (n == 0) {
System.out.println(prefix);
} else {
for (int i = 0; i < n; i... |
package de.zarncke.lib.cache;
import java.util.Map;
final class StringMapUsage extends AbstractMapUsage {
private static final int BYTES_PER_STRING_OBJECT = 32;
StringMapUsage(final Map<?, String> map, final String name) {
super(map, name);
}
@Override
public int getTypicalObjectSize() {
int n... |
package com.duanxr.yith.midium;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Queue;
/**
* @author 段然 2021/8/2
*/
public class NetworkDelayTime {
/**
* You are given a network of n nodes... |
package SukerEditor;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jface.viewers.ComboViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.custom.StyledText;
import org.... |
package com.williamlabrum.cucumber;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
/**
* use the following to run only specific tests from the command line:
* <ul>
* <li><strong>Test only desired tags:</strong>
* <pre>mvn test -Dskip.bdd.tests=false -Dcuc... |
package com.tyss.cg.repository;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Scanner;
public class test {
static void test() {
Users.UserTable();
BeanClass bean1 = new BeanClass();
Scanner scanner = new Scanner(System.in);
HashMap< String, Object> hsHashMap= new LinkedHashMa... |
package app;
import javax.swing.*;
import java.io.Serializable;
public class Grade implements Serializable {
DefaultListModel<Double> grades;
public Grade (){
grades = new DefaultListModel<>();
}
public static double generateAverageGrade(DefaultListModel<Double> grades){
double avg=... |
import java.util.concurrent.*;
public class Main {
static int hydrogenCount = 0;
static Phaser phaserBlock = new Phaser(4);
static int phase;
static boolean end = false;
public static void main(String[] args) {
ExecutorService HydrogenEX = Executors.newSingleThreadExecutor();
Exe... |
package theekransje.douaneapp.Domain;
import java.io.Serializable;
/**
* Created by Sander on 5/24/2018.
*/
public class Driver implements Serializable {
private static final String TAG = "Driver";
private String uid;
private String userName;
private String passwd;
private String IMEIHash;
... |
package pl.finsys.helloWorld;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import pl.finsys.testHello.TestHelloNumberGiver;
import static org.junit.Assert.... |
package org.firstinspires.ftc.teamcode;
/**
* Created by USER on 10/26/2016.
*/
/**@Autonomous(name="Autonomous Tester", group="Test")
public class AutonomousTest extends AutonomousBase{
public void gameState() {
super.gameState();
switch(gameState){
case 0:
if(!gyro.isCal... |
package com.lbsp.promotion.entity.model;
import com.lbsp.promotion.entity.table.annotation.MyTable;
/**
* Created by Barry on 2015/2/17.
*/
@MyTable(value = "page_operate")
public class PageOperate extends BaseModel {
private String id;
private String code;
private String parent_id;
private String ... |
package org.sbbs.app.security.dao.hibernate;
import java.util.List;
import org.sbbs.app.security.dao.MenuDao;
import org.sbbs.app.security.model.Menu;
import org.sbbs.base.dao.hibernate.BaseTreeDaoHibernate;
import org.springframework.stereotype.Repository;
@Repository("menuDao")
public class MenuDaoHibern... |
package com.tt.miniapp.launchcache.meta;
import com.tt.miniapphost.entity.AppInfoEntity;
public interface AppInfoRequestListener {
void onAppInfoInvalid(AppInfoEntity paramAppInfoEntity, int paramInt);
void requestAppInfoFail(String paramString1, String paramString2);
void requestAppInfoSuccess(A... |
package things.entity;
import things.entity.singleton.FiredBullets;
import things.entity.template_method.DestroyableObject;
import java.awt.*;
/**
* This is an instantiable class called Barrier for creating a barrier entity.
* It is a sub-class of GameComponent therefore it inherits all of its
* attributes and ab... |
package edu.wayne.cs.severe.redress2.entity.refactoring.formulas.mm;
import edu.wayne.cs.severe.redress2.controller.HierarchyBuilder;
import edu.wayne.cs.severe.redress2.controller.MetricUtils;
import edu.wayne.cs.severe.redress2.controller.metric.CBOMetric;
import edu.wayne.cs.severe.redress2.controller.metric.CodeMe... |
package com.example.administrator.retrofitdemo;
import retrofit.Call;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Path;
import retrofit.http.Query;
/**
* Created by Administrator on 2017/8/29.
*/
public interface APIService {
// @POST("book/search")
// @GET("book/search")
// ... |
//给你一个二叉树的根节点 root ,树中每个节点都存放有一个 0 到 9 之间的数字。
//
//
// 每条从根节点到叶节点的路径都代表一个数字:
//
//
// 例如,从根节点到叶节点的路径 1 -> 2 -> 3 表示数字 123 。
//
//
// 计算从根节点到叶节点生成的 所有数字之和 。
//
// 叶节点 是指没有子节点的节点。
//
//
//
// 示例 1:
//
//
//输入:root = [1,2,3]
//输出:25
//解释:
//从根到叶子节点路径 1->2 代表数字 12
//从根到叶子节点路径 1->3 代表数字 13
//因此,数字总和 = 12 + 13 = 2... |
package lowOfDeteter.instance;
import java.lang.invoke.VarHandle;
/**
* @Author:Jack
* @Date: 2021/8/21 - 22:34
* @Description: lowOfDeteter.instance
* @Version: 1.0
*/
public class Client {
public static void main(String[] args) {
Installer installer = new Installer();
final Wizard wizard = ... |
package JavaSE.OO.jihe;
import java.util.*;
/*collection中的方法:
* boolean add(Object element);向集合中添加元素
* int size();获取集合中元素的个数
* void clear();清空集合
* boolean isEmpty();判断集合是否为空
* Object[] toArray();将集合转换成数组
*
* Iterator<E> iterator;获取集合所依赖的迭代器对象
* boolean contains(Object o);判断集合中是否包含某个元素
* boole... |
package services;
import com.fasterxml.jackson.databind.JsonNode;
import models.ResponseToClient;
import play.libs.Json;
// TODO: 1/05/17
/**
* This class for any operation which makes changes on JIRA, that is, "writing operations".
* Currently not implemented at all.
*/
public class JiraWriterService {
/**
... |
package com.todo.service;
import java.util.List;
import com.todo.model.TaskVO;
public interface TaskService {
public void insertData(TaskVO taskvo);
public List<TaskVO> retriveAll(int i);
public List<TaskVO> retriveInfo(TaskVO tvo);
public List<TaskVO> search(String t,int rid);
public L... |
package com.example.inheritance;
public class Test {
public static void main(String[] args) {
Surgeon surgeon = new Surgeon();
surgeon.personalDetails();
surgeon.toolsUsedForSurgery();
}
}
|
package webservice;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.... |
package com.mahendra.library.app;
import java.util.Scanner;
import com.mahendra.library.dao.BookDAO;
import com.mahendra.library.dao.BookDAOImpl;
import com.mahendra.library.dao.BookIssueDAO;
import com.mahendra.library.dao.BookIssueDAOImpl;
import com.mahendra.library.dao.MemberDAO;
import com.mahendra.library.dao.M... |
package test;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Test {
public static void main(String[] args) {
int count = 12;
String number = String.format("%04d", count);
System.out.println(number);
System.out.println("============");
Date date = new Date();
Simple... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.