text stringlengths 10 2.72M |
|---|
package com.project.battle;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.List;
import com.project.ActionBox;
import com.project.DraggableIcon;
import com.project.Handler;
import com.project.button.Button;
import com.project.slider.VerticalSliderHandle;
public class BattleHandler ext... |
package com.pisen.ott.launcher.service;
import com.pisen.ott.launcher.HomeActivity;
import android.content.Context;
import android.izy.service.WifiService;
import android.net.wifi.WifiInfo;
/**
* 1、定时检查内容是否有更新
* 2、下载图片
* @author Liuhc
* @version 1.0 2015年1月9日 下午2:14:15
*/
public class UIContentUpdateService ext... |
/*
* Copyright © 2020-2022 ForgeRock AS (obst@forgerock.com)
*
* 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... |
package plugins.fmp.fmpTools;
import java.awt.Point;
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.List;
import org.apache.poi.ss.SpreadsheetVersion;
import org.apache.poi.ss.usermodel.DataConsolidateFunction;
import org.apache.poi.ss.u... |
package com.lenovohit.hwe.treat.web.his;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.we... |
package com.myvodafone.android.model.service.fixed;
/**
* Created by kakaso on 4/30/2015.
*/
public class HOLBillingPayment {
private String paymentProfileType;
private String paymentProfileId;
private String expirationYear;
private String expirationMonth;
private String owner;
private Stri... |
package com.bnrc.ui.rjz.other;
/**
* Created by yuyidong on 15/8/14.
*/
public class Bean {
public String name;
public Bean(String name) {
this.name = name;
}
@Override
public String toString() {
return "Bean{" +
"name='" + name + '\'' +
'}';
... |
import org.junit.jupiter.api.Test;
import java.util.*;
import java.util.stream.Collectors;
@SuppressWarnings("SpellCheckingInspection")
public class MainTest {
// food -> <ingredients>
// Map<Set<String>, Set<String>> foods = new HashMap<>();
// allergen --> <foods>
// Map<String, HashMap<String... |
package verwalteStudent;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import source.studenten.VerwalteStudent;
import exceptions.FalscherEintragException;
public class LiefereStrassenAnteilUndRest
{
static VerwalteStudent gueltigerStudent = new VerwalteStudent();
s... |
package org.wuxinshui.boosters.test.http;
import org.wuxinshui.boosters.http.HttpUtils;
/**
* @Description:
* @Author:FujiRen
* @Date:2017/4/27 11:44
*/
public class HttpUtilsTest {
public static void main(String[] args) {
String jsonData="{\"startDate\":\"2017-04-25\",\"endDate\":\"2017-04-25\",\"refferalType... |
/*
* MIT License
*
* Copyright (c) 2017-2019 nuls.io
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... |
package company;
public class Issue{
private String description;
public Status status;
public Issue(String description) {
this.description = description;
this.status=Status.PENDING;
}
public Issue(String description, Status status) {
this.descripti... |
package com.theshoes.jsp.manager.model.service;
import static com.theshoes.jsp.common.mybatis.Template.getSqlSession;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import com.theshoes.jsp.common.paging.SelectCriteria;
import com.theshoes.jsp.manager.model.dao.ManagerDAO;
import com.t... |
package com.ranpeak.ProjectX.activity.editProfile;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.EditText;
import com.ranpeak.ProjectX.R;
i... |
package com.kodilla.patterns2.adapter.bookclasifier;
import com.kodilla.patterns2.adapter.MedianAdapter;
import com.kodilla.patterns2.adapter.bookclasifier.librarya.Book;
import org.junit.jupiter.api.Test;
import java.util.HashSet;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.assertEquals;
p... |
// https://leetcode.com/problems/counting-bits/
// #dynamic-programming #bit-manipulation
class Solution {
/*
f(5) = 1 + f(5 - 4) =>
f(7) = 1 + f(3) =>
*/
public int[] countBits(int num) {
int[] result = new int[num + 1];
int extr = 0;
for (int i = 1; i <= num; i++) {
if ((i & (i - 1)) == 0)... |
package com.codekarma.controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;
import com.codekarma.exception.InvalidOperationException;
@ControllerAdvice
public class ControllerE... |
package xtrus.ex.cms.server.session;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.esum.framework.common.util.DateUtil;
import xtrus.ex.cms.server.CmsSession;
public class CmsSessionFactory {
private static CmsSessionFactory instance = new CmsSessionFac... |
/**
*
*/
package datamodel.rucksack;
import java.security.InvalidParameterException;
import java.util.Vector;
/**
* class which represents the rucksack
*
* @author Jakob Karolus, Kevin Munk
* @version 1.0
*
*/
public class Rucksack {
private int capacity;
private Vector<RucksackObject> objects= new Vect... |
package suffix;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class ChordTable {
Map<Set<Integer>,Integer> table;
/**
* Connects to the ch... |
package com.toni.programming.data;
public enum Actions {
ATTACK, DEFEND, ESCAPE, FLY, DIG, SWIM, HEAL, SLEEP, WEAKENED, EAT
//Prova
}
|
package com.bupsolutions.polaritydetection.features;
import com.bupsolutions.polaritydetection.model.LabeledTextSet;
import com.bupsolutions.polaritydetection.nlp.NLPProcessor;
import opennlp.model.Event;
import opennlp.model.ListEventStream;
import java.util.stream.Collectors;
public class FeatureStream extends Lis... |
package com.davivienda.sara.entitys.seguridad;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import... |
package com.company.tax.complain.entity;
import java.sql.Timestamp;
import java.util.Set;
/**
* 投诉实体,与投诉回复一对多关系
* @author Dongfuming
* @date 2016-5-17 下午2:00:56
*/
public class Complain {
private String compId;
private String compCompany; // 投诉人单位
private String compName; // 投诉人姓名
private String compMobile; ... |
package com.example.DemoCountdown;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
public static final String COUNTER_VALUE = "TIMER_INTERVA... |
package com.example.demo.config;
import java.util.UUID;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.aws.core.env.ResourceIdResolver;
import org.springframework.cloud.aws.messaging.core.Notif... |
package PageFactoryPOM;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class PayPOM {
WebDriver driver;
/******Payment*****/
@FindBy(xpath="//*[@id='__next']/div[1]/div/div[1]/div/di... |
package netistrar.clientapi.objects.utility;
import netistrar.clientapi.objects.utility.BulkOperationProgressItem;
import java.util.Map;
/**
* Encodes information about the current progress of a bulk operation. This includes the status of all contained <a href="object:Netistrar/WebServices/Common/Objects/Utility/Bu... |
package org.bitbucket.alltra101ify.advancedsatelliteutilization.moditems;
import org.bitbucket.alltra101ify.advancedsatelliteutilization.reference.ModInfo;
import org.bitbucket.alltra101ify.advancedsatelliteutilization.reference.moditemblockreference.ModBasicItemTemplate;
import net.minecraft.creativetab.CreativeTabs... |
package lab411.androidserver.loadsharing;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import android.os.Environment;
public class WritePerform extends Thread{
FileWriter fw1, fw2;
BufferedWriter bw1, bw2;
public boolean run;
public WritePerform(Strin... |
package org.kuali.ole.describe.bo;
import org.apache.commons.lang.StringUtils;
import org.apache.solr.client.solrj.SolrServerException;
import org.kuali.ole.docstore.discovery.service.QueryService;
import org.kuali.ole.docstore.discovery.service.QueryServiceImpl;
import org.kuali.ole.docstore.model.bo.*;
import... |
package com.soldevelo.vmi.testclient.facade;
import com.soldevelo.vmi.enumerations.DiagnosticState;
import com.soldevelo.vmi.enumerations.Direction;
import com.soldevelo.vmi.packets.TestResult;
import com.soldevelo.vmi.testclient.execution.HttpDownloadWorker;
import com.soldevelo.vmi.testclient.execution.HttpTestWorke... |
package com.zhongyp.jvm;
/**
* @author zhongyp.
* @date 2019/8/10
*/
public interface ClassStructureDemoSuperInterface {
int a = 1;
public void interfaceFunc();
}
|
package com.k2data.k2app.exception;
import com.k2data.k2app.constant.ResponseCode;
/**
* data not found exception
*
* @author WangShengguo
*/
public class DataNotFoundException extends K2ResponseException {
private static final long serialVersionUID = -5999409754794135010L;
private static final String SE... |
package com.needii.dashboard.view;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.springfr... |
/*
* 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.miyatu.tianshixiaobai.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androi... |
package kr.co.shop.batch.order.repository.master;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import kr.co.shop.batch.order.model.master.OcOrderProduct;
import kr.co.shop.batch.order.repository.master.base.BaseOcOrderProductDao;
@Mapper
public interface OcOrderProductDao extends Ba... |
package com.example.fragsrcsimplity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
/**
* Created by zhouzhou on 2016/11/6.
*/
public class ActivityMain extends FragTestActivity {
//FragmentActivity
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
import org.apache.kafka.clients.producer.*;
import java.util.Properties;
/**
* 生产者的配置和提交(简单提交,同步提交和异步提交)
*/
public class KafkaProducerDemo {
public static void main(String[] args) {
Properties props = new Properties();
props.put("bootstrap.servers", "broker1:9092,broker2:9092");
props.... |
package io.github.biezhi.java8.concurrent;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
/**
* ConcurrentMap
* <p>
* forEach
* putIfAbsent
* getOrDefault
* replaceAll
* compute
* merge
* search
* reduce
*
* @author biezhi
* @date 2018/3/5
*/
public class Concu... |
package GradleTest;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class Test {
public static void main(String[] args) {
System.setProperty("... |
package app.com.thetechnocafe.eventos.Dialogs;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.widget.DatePicker;... |
package org.sky.base.service;
import org.apache.log4j.Logger;
import java.sql.Timestamp;
import java.util.List;
import org.sky.sys.client.SysCommonMapper;
import org.sky.base.client.BaseMsgMapper;
import org.sky.sys.exception.ServiceException;
import org.sky.base.model.BaseMsg;
import org.sky.base.model.BaseMsg... |
package com.example.root.parliament;
public class Attendance {
String seat;
String name;
String state,constituency;
String signed;
public Attendance(String seat, String name, String state, String constituency, String signed) {
this.seat = seat;
this.name = name;
this.state... |
package com.gaoshin.cloud.web.job.bean;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Task {
private Long id;
private String name;
private Long jobId;
private String handler;
private int numOfRetries = 1;
private int execOrder;
private long expectedDuration;
private int retryIn... |
package dev.fujioka.eltonleite.application.controller;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.... |
package vnfoss2010.smartshop.serverside.test;
/**
* @author VoMinhTam
*/
public class Media2 {
public String name;
public String link;
public Media2(String name, String link) {
this.name = name;
this.link = link;
}
public static void main(String[] args) {
String t = "http://127.0.0.1:8888... |
package graph_package;
import java.util.HashMap;
import java.util.List;
public class Graph_Undirected {
private HashMap<Node_Graph, List<Node_Graph>> mygraph = new HashMap<>();
public void add_Node(Node_Graph a) {
if(!mygraph.containsKey(a)) {
this.mygraph.put(a, null);
}
}
public void... |
/*
* 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... |
// No matter decode or encode, we have to consider two cases:
// 1. to make the char[] short 2. to make the char[] long.
// we need to handle two cases respecitively.
// Usually, tackle short one is kind of easy, just using fast and slow pointer.
// For the long case, we need to resize the array, and create new one , ... |
class Student
{
String firstName;
String lastName;
Address addr;
Date dob; //date of birth
String[] skills;
Qualification[] qual;
Project[] projects;
String eMail;
String contactNo ;
int skillnum,qualnum,projectnum;
Student()
{
firstName=null;
lastName=null;
addr=new Address();... |
package springboot_hazelcast;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication... |
package com.test;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.lenovohit.ssm.payment.support.bankPay.config.Constants;
import com.lenovohit.ssm.payment.support.bankPay.model.builder.BankRefundRequestBuilder;
import com.lenovohit.ssm.payment.support.bankPay.model.resu... |
import java.util.*;
public class Disarium
{
public static void main()
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
sc.close();
int s=0;
int c=n;
String ns=""+n;
int f=ns.length();
while(n!=0)
{
s=s+(int)(Math.pow((n%... |
package com.lenovohit.hcp.material.manager.print.impl;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lenovohit.core.manager.Generi... |
/*
* @lc app=leetcode.cn id=33 lang=java
*
* [33] 搜索旋转排序数组
*/
// @lc code=start
class Solution {
public int search(int[] nums, int target) {
int len =nums.length;
if(len == 0) return -1;
int rotate_index = searchRotatePoint(nums,0,len-1);
if(rotate_index == 0) return BinarySearc... |
package com.gsn.utils;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* 使用基于Log4j的Logger记录不同级别的log信息
*
* @author GSN
*/
public class LogUtils {
private static final Logger logger = LogManager.getLogger();
private LogUtils() ... |
package ydtak.grapeguice.juice;
public interface Juice {
String get();
}
|
/*
* 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 go;
/**
*
* @author NguyenQuoc
*/
class ExceptionNoPierreExist extends Exception {
public ExceptionNoPierreExist() {
... |
package com.funnums.funnums.classes;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Bitmap;
import com.funnums.funnums.maingame.GameActivity;
import java.util.Random;
/**
* Created by Rabia on 11/02/19.
*/
public class Cloud {
public floa... |
package com.example.praty.githubrepo.helper;
import android.view.View;
//interface for the click listener of an item in the recyclerview
public interface ItemClickListener {
void onItemClick(View v, int position);
}
|
package com.nick.java.handler;
import com.nick.java.File;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class FileHandler implements ActionListener
{
File f;
public FileHandler(File f)
{
this.f = f;
}
public void actionPerformed(ActionEvent ae)
{
Object o = ae.getSource()... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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... |
package com.penglai.haima.callback;
import android.app.Activity;
import com.lzy.okgo.model.Response;
import com.lzy.okgo.request.base.Request;
import com.penglai.haima.base.BaseActivity;
/**
* 描 述:对于网络请求是否需要弹出加载框
*/
public abstract class DialogCallback<T> extends JsonCallback<T> {
public DialogCallback(Act... |
package com.shilong.jysgl.service;
import java.util.List;
import com.shilong.jysgl.pojo.po.Dictinfo;
import com.shilong.jysgl.pojo.po.Dicttype;
public interface DictInfoService {
public void insertDictInfo(String dictInfo,String typecode) throws Exception;//添加字典名称
public void updateDictInfo(String dictcode,String ... |
/**
*/
package Metamodell.model.metamodell.impl;
import Metamodell.model.metamodell.Hardware;
import Metamodell.model.metamodell.MetamodellPackage;
import Metamodell.model.metamodell.Software;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclip... |
package by.bytechs.xfs;
import at.o2xfs.xfs.pin.WFSPINSTATUS;
import at.o2xfs.xfs.ptr.PaperStatus;
import at.o2xfs.xfs.service.ServiceNotFoundException;
import at.o2xfs.xfs.service.XfsServiceManager;
import at.o2xfs.xfs.service.cdm.CdmService;
import at.o2xfs.xfs.service.cdm.xfs3.CdmStatusCommand;
import at.o2xfs.xfs.... |
package com.webcheckers.ui.login;
import com.webcheckers.appl.Constants;
import com.webcheckers.appl.GameCenter;
import com.webcheckers.model.User;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import spark.ModelAndView;
import spark.Request;
import spark.Response;
import spark.Session;
impo... |
/*
* 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 app.action;
import app.model.Comment;
import app.model.Project;
import app.model.User;
import com.opensymphony.xwork2.ActionSu... |
package com.gsccs.sme.plat.svg.service;
import java.util.List;
import com.gsccs.sme.api.domain.StatistGroup;
import com.gsccs.sme.plat.svg.model.SclassT;
public interface SclassService {
public void insert(SclassT sclassT);
public void update(SclassT sclassT);
public void delSclass(Long id);
public SclassT f... |
package com.aof.webapp.action.prm;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import net.sf.hiberna... |
package es.upm.grise.profundizacion2019.ex3;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class Time {
// El formato del tiempo y fecha es constante
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss");
// La instancia usada pa... |
package advert;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 服务器端,实现基于UDP的用户登录 Created by Jim Calark on 2017/3/19.
*/
public class UDPServer {
... |
package org.jmmo.tuple;
import org.jmmo.function.Consumer5;
import org.jmmo.function.Function5;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Objects;
public class Tuple5<T0, T1, T2, T3, T4> implements Tuple, Comparable<Tuple5<T0, T1, T2, T3, T4>> {
private static final long serialVers... |
package com.git.cloud.handler.automation.se.db;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
package com.invitae.emr.services;
import com.invitae.emr.models.LabOrder;
import com.invitae.emr.models.Practice;
import com.invitae.emr.models.Requisition;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Provides services for processing lab orders.
*/
publi... |
package msip.go.kr.hr.scheduler;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.b... |
package edu.duke.ra.core.result;
import java.util.List;
import org.json.JSONObject;
import edu.duke.ra.core.RAException;
public class ErrorResult extends QueryResult {
private String query;
private List<RAException> errors;
public ErrorResult(String query, List<RAException> errors) {
this.query... |
package cn.test.demo01;
import java.util.ArrayList;
public class ArrayListDemo {
public static void main(String[] args) {
ArrayList<Integer> array = new ArrayList<Integer>();
array.add(22);
array.add(11);
array.add(34);
for (int i = 0 ;i<array.size();i++) {
System.out.println(array.get(i));
}
Arr... |
package com.koma.component_base.widget;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutCompat;
import android.util.AttributeSet;
import android.view.ViewGroup;... |
/**
*
*/
/**
* @author kahina
*
*/
package fr.imie.ProjetPlateformeWeb.entity; |
package com.brainacademy.strategy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public abstract class ValidationContext {
private List<Validator> validators;
private List<String> errors;
public ValidationContext() {
validators = new ArrayList<>();
errors = n... |
/*
* A simple blackjack app. Goal is to get a higher score than the dealer, without going over 21.
* Ties go to dealer. Dealer always hits on a score of less than 17, stands otherwise.
* Natural blackjack (ace + face card) beats any other 21. Five card charlie beats any score.
* Double down on score of 9, 10, or 11 to ... |
package com.nexlesoft.tenwordsaday_chiforeng.fragment;
import java.text.DecimalFormat;
import java.util.ArrayList;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import andr... |
package net.acomputerdog.BlazeLoader.util.config;
import net.acomputerdog.BlazeLoader.main.BlazeLoader;
import java.io.*;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
/**
* Contains a list of ModConfigs. Handles r... |
package com.example.android.finalproject_yaocmengqid.MainContent;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.su... |
package pack1;
import java.util.Arrays;
import java.util.Scanner;
public class Positive {
void check(){
Scanner scan=new Scanner(System.in);
String name=scan.next();
char[] ch = name.toCharArray();
int[] num=new int[ch.length];
int[] fin=new int[ch.length];
for(int i=0;i<ch.length;i++){
... |
package com.company.iba.ialeditor.model.impl;
import com.company.iba.ialeditor.model.Dictionary;
import com.company.iba.ialeditor.service.DictionaryLocalServiceUtil;
import com.liferay.portal.kernel.exception.SystemException;
/**
* The extended model base implementation for the Dictionary service. Represents a row ... |
/*
* Copyright 2002-2018 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 walke.base.tool;
import android.Manifest;
import android.app.ActivityManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.text.TextUtils;
import java.io.BufferedRe... |
package br.edu.infnet.appSistemaEspecialistaEmFreios.model.repository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import br.edu.infnet.appSistemaEspecialistaEmFreios.model.do... |
package com.esum.comp.sftp.outbound;
import java.io.File;
import java.util.Hashtable;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.comp.sftp.SftpCode;
import com.esum.comp.sftp.SftpConfig;
import com.esum.comp.sftp.SftpEx... |
package com.openfarmanager.android.googledrive.api;
import com.openfarmanager.android.googledrive.model.About;
import com.openfarmanager.android.googledrive.model.File;
import com.openfarmanager.android.googledrive.model.Token;
import com.openfarmanager.android.googledrive.model.exceptions.CreateFolderException;
impo... |
package web_study_11.dao;
import static org.junit.Assert.fail;
import java.sql.Connection;
import java.util.Calendar;
import java.util.List;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import web... |
package com.itheima.day15_cookieDemo;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@We... |
import java.sql.DriverManager;
import java.sql.SQLDataException;
import java.sql.Statement;
import java.util.Collection;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.control.Button;
impor... |
package atividade;
import com.sun.management.OperatingSystemMXBean;
import java.io.*;
import java.lang.management.ManagementFactory;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @author André Luiz Dias de Oliveira
*/
public class Servidor {
public static void main(String[] args) throws IOExcept... |
package io.core9.plugin.widgets.datahandler;
import io.core9.plugin.server.request.Request;
import java.util.Map;
public abstract class ContextualDataHandler<T extends DataHandlerFactoryConfig> implements DataHandler<T> {
@Override
public Map<String,Object> handle(Request req) {
return handle(req, req.getBodyA... |
/*
* 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.lynn.dao.impl;
import com.lynn.bean.UserBean;
import com.lynn.dao.BaseDao;
import com.lynn.dao.UserDaoI;
import java.util.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.