text stringlengths 10 2.72M |
|---|
package com.eazy.firda.eazy;
import android.Manifest;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import andr... |
package it.geek.annunci.service;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ServiceFactory {
private static ApplicationContext cxt = null;
static{
cxt = new ClassPathXmlApplicationContext("applicationC... |
package com.company.tests;
import com.company.Couple;
import org.junit.jupiter.api.Test;
import com.company.NOD;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.*;
public class NODTest {
@Test
public void stressTest(int n){
long start = System.currentTimeMillis();
NOD nod = new N... |
package com.tencent.mm.plugin.appbrand.page;
import com.tencent.mm.plugin.appbrand.b.a;
/* synthetic */ class h$1 {
public static final /* synthetic */ int[] fjn = new int[a.values().length];
static {
try {
fjn[a.fjf.ordinal()] = 1;
} catch (NoSuchFieldError e) {
}
... |
package com.example.maximeglod.fbta;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.... |
package freeWork;
public class BasicMemberManager extends MemberManager{
public void add(BasicMember basicMember) {
System.out.println(basicMember.getBasicId()+" " + basicMember.getFirstName()+" " + basicMember.getLastName()+" " + "Adlı Basic Kullanıcı Sisteme Kayıt Edildi");
}
public void delete(BasicMembe... |
package Collectionsss;
import java.util.ArrayList;
import java.util.Arrays;
public class ArrayListNaveen {
public static void main(String[] args) {
// VirtualCapacity.how do you change the virtual capacity
ArrayList<Object> ar = new ArrayList<Object>(20);
// ArrayList<Object> ar = new ArrayList<Object>(20)... |
package org.rebioma.server.services;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.elasticsearch.action.search.SearchResponse;
import org.elas... |
package net.senmori.vanillatweaks.config.sections;
import net.senmori.senlib.configuration.option.BooleanOption;
import net.senmori.senlib.configuration.option.SectionOption;
import net.senmori.senlib.configuration.option.StringOption;
public class VillagerOption extends SectionOption {
public static VillagerOpt... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Main;
/**
*La clase instrucción, usada para administrar instrucciones
* @author Alberto Ortiz
*/
public class Instruccion {
/**
* El tipo de Enemigo
*/
private int tipoEnemigo;
/**
... |
package com.identicum.config;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.con... |
package BLL.Scheduling;
import java.io.Serializable;
import DAL.DAL_Factory;
import DAL.Service.DAL_Scheduling;
import basicas.service.Appointment;
public class BLL_Scheduling {
public void insert(Appointment sc){
DAL_Scheduling dao = DAL_Factory.getDAL_Scheduling();
dao.insert(sc);
}
public Appointment ... |
package hash;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public final class ClosedHash extends BaseHash {
private final List<List<String>> hashTable = new ArrayList<>();
public ClosedHash() {
for (int i = 0; i < DEFAULT_ITEMS_COUNT; i++) {
hashTable.a... |
package Controllers;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import jav... |
package com.cpz.Demo14;
import java.util.LinkedList;
import java.util.List;
public class DemoLinkedList {
public static void main(String[] args) {
LinkedList<String> list=new LinkedList<>();
list.add("a");
list.add("b");
list.add("c");
System.out.println(list);
list... |
package com.tencent.mm.plugin.account.friend.ui;
import android.os.Bundle;
import android.os.Message;
import com.tencent.mm.sdk.platformtools.ag;
class i$1 extends ag {
final /* synthetic */ i eNG;
i$1(i iVar) {
this.eNG = iVar;
}
public final void handleMessage(Message message) {
if... |
package com.malsolo.mercury.spring.events.domain;
public class Type {
private String id;
//@Indexed(unique = true) it fails when creating Alarms without Type due to a 11000 code, duplicate: null :|
private Integer code;
private String description;
private Boolean active;
public... |
package BD;
import java.sql.*;
import UML.Equipo;
import java.util.ArrayList;
public class tablaEquipos {
private static Connection con;
public static void crearEquipo (Equipo equipo) throws Exception{
BaseDatos.conectar();
con = BaseDatos.getCon();
String plantil... |
package quiz16;
public class MainClass {
public static void main(String[] args) {
Shape r = new Rect(3,5,"사각형");
System.out.println(r.getArea());
Shape c = new Circle(4,"원");
System.out.println(c.getArea());
}
}
|
package st.bookstore;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;
import static org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE;
@Component
@Scope(SCOPE_PROTOTYPE) // because we share instances which st... |
package kimmyeonghoe.cloth.domain.question;
import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Question {
private int questionNum;
private String title;
private String content;
@JsonFormat(patter... |
package com.dio.live.repositoy;
import com.dio.live.model.WorkDay;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
*
* @author Evandro
*/
@Repository
public interface WorkDayRepository extends JpaRepository<WorkDay, Long>{
}
|
package org.sagebionetworks.repo.manager.oauth;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.sagebionetworks.repo.... |
/*
* 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 developerWorks.Servlets;
import developerWorks.beans.User;
import java.io.IOException;
import java.io.PrintWriter;
import java... |
/*
* 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 edu.byui.cs313.model;
import java.sql.Date;
/**
*
* @author jesus
*/
public class Comment {
int commen... |
package javabasico.aula33labs;
public class ContaCorrente {
private int numero;
private double saldo;
private boolean chequeEspecial;
private double limite;
public int getNumero() {
return numero;
}
public void setNumero(int numero) {
this.numero = numero;
... |
/*
* 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 latihancruddesktop.ui.master;
/**
*
* @author KENDAY
*/
import java.sql.SQLException;
import java.util.ArrayList;
import j... |
package com.muryang.sureforprice.queue;
import com.muryang.sureforprice.core.object.Document;
public class DocumentQueue {
public DocumentQueue() {
}
public int enqueue(Document doc) {
return -1 ;
}
}
|
package com.hiwes.cores.thread.thread4.Thread0219;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* void lockInterruptibly()。
* 如果当前线程未被中断,则获取锁定,如果已经被中断则出现异常。
*/
public class MyThread17 {
}
class Service17 {
private ReentrantLock lock = new ReentrantLock(); ... |
package com.zsy.swagger.controller;
import com.zsy.swagger.domain.Student;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... |
package com.aprendoz_test.data.output;
/**
* Generated for query "dash_aprendizajes" on 01/19/2015 07:59:26
*
*/
public class Dash_aprendizajesRtnType {
private Integer idasignaturas;
private String asignatura;
private Long aprProgreso;
private Long aprCompetente;
private Long aprAvanzado;
... |
package ru.javabegin.training.webservices.testws;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class CallWS {
private String name;
private String correctedName;
public String getName() {
return name;
}
public void setNam... |
package com.takshine.wxcrm.message.sugar;
import java.util.ArrayList;
import java.util.List;
/**
* 查询从市场活动接口传递回来的参数
* @author dengbo
*
*/
public class CampaignsResp extends BaseCrm{
private String count = null;//数字
private String currpage = "1";//当前页
private String pagecount = "5";//每页的条数
private List<Campaig... |
/*
* User: djoiner
* Date: Oct 5, 2002
* Time: 1:19:50 PM
*/
package com.github.jwebfit;
import fit.Fixture;
import fit.Counts;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public c... |
package com.jim.multipos.ui.reports.summary_report.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.jim.multipos.R;
import java.util.List;
import butterknife.BindView;
impor... |
/*
* 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.appbrand.ui.widget;
class AppBrandLoadIconPreference$1 implements Runnable {
final /* synthetic */ AppBrandLoadIconPreference gBj;
AppBrandLoadIconPreference$1(AppBrandLoadIconPreference appBrandLoadIconPreference) {
this.gBj = appBrandLoadIconPreference;
}
publi... |
/*
* Copyright (C) 2022-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
package co.nos.noswallet.kyc.identity;
import android.annotation.SuppressLint;
import android.app.DatePickerDialog;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... |
package parcial.model;
public class Cuota {
private int Ncuota;
private double valorCuota;
private double valorPagar;
private double saldo;
private boolean pagada;
private Prestamo pres1;
public Cuota(int Ncuota, double valorCuota, double valorPagar, double saldo, boolean pagada, Pr... |
/**
* <pre>
*
* Author:
* Brandon Mota
*
*
* Description:
* This class is the child class to Geom.
* It provides the necessary methods for
* a triangle object.
*
*
* </pre>
*/
public class Triangle extends Geom
{
private double base, height;
/**
* <pre>
* D... |
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation cla... |
package com.supconit.kqfx.web.util;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class XmlAnalysisUtil {
private transient static final Logger logger = LoggerFactory
.getLogger(XmlAnalysisUtil.class);
pub... |
package com.tencent.mm.plugin.appbrand.jsapi.h5_interact;
import com.tencent.mm.ipcinvoker.a;
import com.tencent.mm.ipcinvoker.c;
import com.tencent.mm.ipcinvoker.type.IPCVoid;
final class b$a implements a<SendDataToH5FromMiniProgramEvent, IPCVoid> {
private b$a() {
}
public final /* synthetic */ void a(... |
package com.mashibing;
import java.io.IOException;
import java.util.Properties;
/**
* @create: 2020-04-03 13:21
**/
public class ConfigMgr {
private ConfigMgr(){}
static Properties properties = new Properties();
static {
try {
properties.load(ConfigMgr.class.getClassLoader().getR... |
package com.example.sidra.quizapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
public class MainActivity e... |
package com.libedi.jpa.inheritance.singletable;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import lombok.Getter;
import lombok.Setter;
/**
* Book
*
* @author Sang-jun, Park
* @since 2019. 05. 17
*/
@Entity(name = "inheritance_singletable_Book")
@DiscriminatorValue("B") ... |
package com.grability.test.dlmontano.grabilitytest.custom.adapter;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Tex... |
package SortingAlgorithms;
import Controller.Simulation;
public class SelectionSort {
Simulation sim = Simulation.get_instance();
public void selectionSort(int[] arr) {
int min = arr[0];
int minIndex = 0;
int temp = 0;
for (int i = 0; i < arr.length; i++) {
min = arr[i];
minIndex = i;
for (int ... |
/**
* Provides classes for evaluating HSV image channels linear fuzzinesses.
*/
package pwr.chrzescijanek.filip.gifa.core.function.hsv.fuzziness.linear; |
package com.ybh.front.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class FapiaoExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table FreeHost_Fapiao
*
* @... |
package com.onplan.service;
import com.onplan.adviser.alert.AlertEvent;
/**
* Notifies alerts and system events to the registered channels (eg. SMTP, JMS, Twitter, etc).
*/
public interface EventNotificationService {
/**
* Dispatches the alert event to via the active channels in a separated thread.
*
* @... |
package com.danielgomez.archiver;
import static java.nio.file.StandardOpenOption.APPEND;
import static java.nio.file.StandardOpenOption.CREATE;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.FileVisitResult;
import java.n... |
package service;
import java.util.ArrayList;
import entity.Product;
import exception.DAOException;
import exception.ProductException;
public interface IProductService {
public void add(Product product) throws DAOException, ProductException;
public void modifyNum(int id, int num) throws DAOException,
ProductEx... |
package practice;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.sele... |
package pl.cwanix.opensun.db.account;
import lombok.RequiredArgsConstructor;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Service;
import pl.cwanix.opensun.db.account.entity.UserEntity;
import pl.cwanix.opensun.db.account.repository.UserEntityRepository;
import pl.cwanix.opensun.model.acco... |
package sp.designpatterns.DecoratorExample;
public class ItalianPizzero extends Pizza{
ItalianPizzero(String description){
this.description=description;
}
@Override
public double getCost() {
// TODO Auto-generated method stub
return 70;
}
}
|
package com.xampy.namboo;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.WindowManager;
import android.widget.Toast;
import com.xampy.namboo.R;
import com.xampy.namboo.api.dataMo... |
/**
* Bitcoind
* The REST API can be enabled with the `-rest` option. The interface runs on the same port as the JSON-RPC interface, by default port `8332` for **mainnet**, port `18332` for **testnet**, and port `18443` for **regtest**.
*
* OpenAPI spec version: 0.16
* Contact: johan@lepetitbloc.net
*
* NOTE: Th... |
package com.tencent.mm.plugin.appbrand.widget.input.autofill;
import android.widget.EditText;
import com.samsung.android.sdk.look.airbutton.SlookAirButtonFrequentContactAdapter;
import com.tencent.mm.plugin.appbrand.jsapi.d.f$a;
import com.tencent.mm.plugin.appbrand.page.p;
import com.tencent.mm.plugin.appbrand.widget... |
package dao;
import model.City;
import model.Coach;
import model.Country;
import model.FootballClub;
import model.League;
import model.News;
import model.Player;
public interface NewsDao extends BaseDao<Long, News> {
void addTags(News news, Country country, City city, Coach coach, Player player, Foot... |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2016.05.11 u... |
package com.tencent.mm.plugin.account.security.a;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.network.k;
import com.tencent.mm.network.q;
import com.tencent.mm.protocal.c.bvd;
import com.tencent.mm.protocal.c.bve;
import com.te... |
/*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this ... |
package org.geoserver.wcs2_0.post;
import static org.junit.Assert.assertNotNull;
import org.geoserver.wcs2_0.WCSTestSupport;
import org.junit.Test;
import org.w3c.dom.Document;
public class DescribeCoverageTest extends WCSTestSupport {
@Test
public void testDescribeCoveragePOST() throws Exception {
... |
import java.awt.*;
public class ep6_4 {
private Frame f;
private Button b1;
private Button b2;
public static void main(String args[]) {
ep6_4 that = new ep6_4();
that.go();
}
public void go() {
f = new Frame("GUI example");
f.setLayout(new FlowLayout());
// 设置布局管理器为FlowLayout
b1 = new Button("Press... |
/*
* Copyright 2016 Philadelphia 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
package ThreadDemo;
/**
*
* @author Bohdan Skrypnyk
*/
class A {
synchronized void foo(B b) {
String name = new Thread().getName();
System.out.println(name + " entered in method A.foo();");
try {
Thread.sleep(1000);
} catch (InterruptedException ex) {
Sy... |
/**
* 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... |
package com.tencent.mm.ak;
import android.os.Looper;
import com.tencent.mm.a.e;
import com.tencent.mm.ak.a.a;
import com.tencent.mm.ak.g.3;
import com.tencent.mm.bt.h.d;
import com.tencent.mm.g.a.ov;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.ar;
import com.tencent.mm.model.p;
import com.tencent.mm.mo... |
/*
* 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 usuarios;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import o... |
package com.kafkatestserver.kafkatestserver;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class KafkaTestServerApplicationTests {
@Test
void contextLoads() {
}
}
|
package com.duanxr.yith.easy;
/**
* @author 段然 2021/5/26
*/
public class NumberOfRectanglesThatCanFormTheLargestSquare {
/**
* You are given an array rectangles where rectangles[i] = [li, wi] represents the ith rectangle of length li and width wi.
*
* You can cut the ith rectangle to form a square with a... |
package LightProcessing.common.lib;
import java.awt.Event;
import java.util.ArrayList;
import java.util.Random;
import LightProcessing.common.block.BlockLightTreeSapling;
import net.minecraft.block.Block;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraf... |
package intergratingdefaultmethods;
import java.util.Comparator;
public class SortByRankThenSuit implements Comparator<Card> {
@Override
public int compare(Card o1, Card o2) {
int comVal = o1.getRank().value() - o2.getRank().value();
if(comVal !=0) return comVal;
else return o1.getSuit... |
package solution;
import domain.TreeNode;
import java.util.LinkedList;
import java.util.Queue;
/**
* User: jieyu
* Date: 12/4/16.
*/
public class CountCompleteTreeNodes222 {
public int countNodes(TreeNode root) {
if (root == null) return 0;
int lLevel = 1, rLevel = 1;
TreeNode lp = ro... |
/**
* Using string class return a string if it starts with "not" as unchanged
* @author prathyusha
*
*/
public class String1
{
private String s1;
private String s2;
public String getS1()
{
return s1;
}
public void setS1(String s1)
{
this.s1 = s1;
}
public String getS2()
{
return s2;
}
p... |
package com.example.suneel.dboperations.database;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOExcept... |
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/*
* シリアライズのサンプル
*/
public class Write {
/**
* @param args
*/
public static void main(String[] args) {
try{
Person a2c = new Person("Atsushi","Wada", 35);
Person alan ... |
package com.deltastuido.shared;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.IntUnaryOperator;
import javax.ejb.Singleton;
import javax.enterprise.inject.Produces;
import javax.inject.Named;
@Singleton
public cl... |
package com.takshine.wxcrm.controller;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org... |
package com.dahua.design.structural.proxy.jdkdynamic;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class JDKDynamicProxy<T> implements InvocationHandler{
private T target;
public JDKDynamicProxy(T target) {
this.target = target;
... |
package LambdaExpressions.Introduction;
class AnotherClass {
String doSomething() {
UpperConcat uc = (s1, s2) -> {
System.out.println("The lambda expression's class is: " + getClass().getSimpleName());
String result = s1.toUpperCase() + " " + s2.toUpperCase();
return ... |
package com.mantisclaw.italianpride15.ridesharehome;
import com.parse.ParseObject;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by italianpride15 on 2/23/15.
*/
public class ServiceAvailability {
public Map<String, ParseObject> rideShareDictionary;
public Integer num... |
import java.io.IOException;
import java.net.URL;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.Page;
import com.gargoylesoftware.htmlunit.RefreshHandler;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import c... |
/*
* ProductAddInterFrm.java
*
* Created on __DATE__, __TIME__
*/
package com.view;
import java.sql.Connection;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import com.dao.ProductDao;
import com.dao.ProductTypeDao;
import com.model.Product;
import com.model.ProductType;
import com.util.Dbutil;
imp... |
package br.com.jadechatbot.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.com.jadechatbot.beans.Usuar... |
package arrays;
import java.util.Random;
public class Main {
public static void main(String[] args) {
Random rand = new Random();
int bigCapacity = 1_000_000;
MyArrayList<Integer> malForBubble = new MyArrayList<>();
MyArrayList<Integer> malForSelection = new MyArrayList<>();
... |
package jneiva.hexbattle.unidade;
import jneiva.hexbattle.componente.Vida;
public interface ISelecionavel {
public Vida getVida();
}
|
package com.github.bobby.base;
//: polymorphism/PolyConstructors.java
//Constructors and polymorphism
//don��t produce what you might expect.
import static net.mindview.util.Print.*;
class Glyph {
private static String baseStr = "static String field";
static {
System.out.println("baseStr = " + b... |
package cq._13_Reflection.Field;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import org.junit.Test;
import cq._13_Reflection.TestReflection.Person;
public class TestField {
/**
* 获取属性
* @throws NoSuchFieldException
* @throws SecurityException
*
*/
@Test
public... |
package com.company.c4q.whiteboardingexcercises;
/**
* Given a string, take the last char and return a new string with the last char added at the front and back, so "cat" yields "tcatt". The original string will be length 1 or more.
*/
public class ModifyCharsInString {
public static void main(String[] args) {... |
package stepDefinition;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import pageObjects.HorizontalSliderPage;
import utils.TestContext;
import static org.testng.Assert.*;
public class HorizontalSliderSteps
{
private TestContext testContext;
private HorizontalSliderPage sliderPage;
p... |
package fr.lteconsulting;
public class Magic
{
public static void main( String[] args )
{
Jeu maMain = new Jeu( 10 );
maMain.piocher( new Terrain( Couleur.Bleu ) );
maMain.piocher( new Creature( 6, "Golem", 4, 6 ) );
maMain.piocher( new Sortilege( 1, "Croissance Gigantesque", "La créature ciblée gagne +3/+3... |
package com.xu.easyweb.util.extjs.filter;
import com.xu.easyweb.util.annotation.Invisible;
import org.apache.commons.lang.StringUtils;
import java.lang.reflect.Method;
/**
* Created with IntelliJ IDEA.
* User: zht
* Date: 12-8-23
* Time: 下午6:32
* To change this template use File | Settings | File Templates.
*/... |
package com.jincarry.db;
import com.jincarry.entity.TaskLog;
import com.jincarry.entity.Vis;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.*;
/**
* Created by jincarry on 16-9-23.
*/
public class BasicStoreTest {
@Test
public void getVisList() throws Exception {
}
... |
import java.time.DayOfWeek;
public class Belegung {
private int unterrichtsEinheit;
private Raum raum;
private Lehrer lehrer;
private Fach fach;
private DayOfWeek wochentag;
public Belegung(int unterrichtsEinheit){
this.unterrichtsEinheit = unterrichtsEinheit;
}
public Belegung(DayOfWeek wochen... |
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import javax.imageio.ImageIO;
import javax.swing.JPanel;
class TakeBlackPointsFromImage extends JPanel {... |
package com.redhat.vizuri.insurance;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Claim implements Serializable {
private static final long serialVersionUID = 8817532564043280353L;
private String id;
private long processId;
private Incident incident;
private Custo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.