text stringlengths 10 2.72M |
|---|
package pat.test;
import pat.decorator.*;
import pat.factory.*;
import pat.observer.*;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
//Decorator pattern
Computer com = new Computer();
com = new Disc(com); //add disc to com
com = new Monitor(com); ... |
package listExamples;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.concurrent.CopyOnWriteArrayList;
public class ArrayListExample {
/** List(I) is the Child of Collection(I).
* ArrayList (C) is one of the classes provides implementatio... |
/*
* 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 FORM;
/**
*
* @author D4ve
*/
public class Usuario {
private int PIDM;
private String nombreUsuario;
pr... |
package com.google.android.gms.analytics.internal;
class m$1 implements Runnable {
final /* synthetic */ boolean aFK;
final /* synthetic */ m aFL;
m$1(m mVar, boolean z) {
this.aFL = mVar;
this.aFK = z;
}
public final void run() {
this.aFL.aFJ.nK();
}
}
|
package com.bat.commoncode.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 响应结构体注解
*
* @author ZhengYu
*... |
package locks;
import csc2227proj.Platform;
import java.util.concurrent.atomic.AtomicIntegerArray;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
/**
*
* @author trbot
*/
public class Lock3 implements AbstractLock {
private static final int HAS_LOCK = 1;
private static fina... |
package com.penzias.service;
import com.penzias.core.interfaces.BasicService;
import com.penzias.entity.SysUserModular;
import com.penzias.entity.SysUserModularExample;
public interface SysUserModularService extends BasicService<SysUserModularExample, SysUserModular> {
} |
package com.example.zealience.oneiromancy.entity;
import android.os.Parcel;
import android.os.Parcelable;
/**
* @user steven
* @createDate 2019/3/20 15:16
* @description 首页数据正常的实体
*/
public class HomeNormalEntity implements Parcelable {
private String userName;
private String userImage;
private String... |
package com.tencent.mm.ui;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import com.tencent.mm.platformtools.x;
import com.tencent.mm.ui.base.b;
class w$10 implements OnCancelListener {
final /* syntheti... |
package com.yida.design.command.demo.command;
/**
*********************
* 删除页面的命令
*
* @author yangke
* @version 1.0
* @created 2018年5月12日 上午10:32:20
***********************
*/
public class DeletePageCommand extends AbstractCommand {
@Override
public void execute() {
// 找到美工组
super.pageG... |
package com.home.closematch.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.home.closematch.entity.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.home.closematch.entity.dto.BaseMessageDTO;
import org... |
package JavaFX.Calendar;
import javafx.fxml.Initializable;
import javafx.geometry.Pos;
import javafx.scene.control.ComboBox;
import javafx.scene.control.DateCell;
import javafx.scene.control.Label;
import javafx.scene.effect.*;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import java.net.URL;
import... |
package com.example.user.mychat;
import android.app.Activity;
import android.widget.Toast;
import com.example.user.mychat.network.NetworkStateMonitor;
import com.example.user.mychat.utils.ResourceUtil;
public abstract class BaseActivity extends Activity implements NetworkStateMonitor.OnNetworkStateChangedListener{
... |
package android.support.v7.widget;
import android.support.v4.a.a;
import android.support.v4.view.ai;
import android.support.v4.view.z;
import android.support.v7.widget.RecyclerView.t;
import android.view.View;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class v extends aj {
... |
package com.lyq.model;
import javax.persistence.*;
//章管理
@Entity
@Table(name="t_zhang")
public class Zhang {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private Integer zid; //主键Id
private String zname;//章名称
private Integer mid; //对应目录id
//
@Transient
private String mname;//目... |
package com.example.user.simplelife;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ExpandableListView;
import android.... |
/*
* Copyright 2013 JBoss Inc
*
* 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 i... |
package com.example.SBNZ.service;
import java.util.ArrayList;
import java.util.List;
import com.example.SBNZ.model.Person;
import com.example.SBNZ.model.User;
import com.example.SBNZ.repository.DietRepository;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
import org.kie.api.runtime.r... |
package com.atgem.googleplay;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.Menu;
import a... |
package uw.cse.dineon.library;
import java.util.ArrayList;
import java.util.List;
import uw.cse.dineon.library.image.DineOnImage;
import uw.cse.dineon.library.util.ParseUtil;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseUser;
/**
* This class represents a Restaurant. Where... |
package com.tencent.mm.plugin.appbrand.jsapi.file;
import com.tencent.mm.plugin.appbrand.appstorage.AppBrandLocalMediaObject;
import com.tencent.mm.plugin.appbrand.appstorage.AppBrandLocalMediaObjectManager;
import com.tencent.mm.plugin.appbrand.jsapi.a;
import com.tencent.mm.plugin.appbrand.l;
import com.tencent.mm.s... |
package testRouleTaBoule.elements;
import testRouleTaBoule.graphics.ImagesSprites;
public class ElementLimite extends Element {
public ElementLimite(Coordonnees coord) {
super(coord, ImagesSprites.limite);
}
public boolean isSolid() {
return true;
}
}
|
package com.app.main.service;
import java.util.List;
import com.app.main.dto.User;
public interface IuserService {
List<User> getAllUsers();
User getUserById(String email);
void addUser(User user);
void deleteUser(String email);
void updateUser(User user, String email);
String validate(String email,String pwd... |
package com.linkedbook.configuration;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSi... |
package com.jaisonbrooks.github.treehouse.crystalmagic.app;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Typeface;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;... |
package com.ibeiliao.pay.api.enums;
/**
* 支付订单的状态列表
* @author linyi 2016/7/11.
*/
public enum PaymentStatus {
/**
* 支付成功
*/
SUCCESS((byte)1, "支付成功"),
/**
* 支付失败
*/
FAILURE((byte)2, "支付失败"),
/**
* 等待支付
*/
WAITING_FOR_PAYMENT((byte)3, "等待支付");
/**
* 状态值
... |
package com.semester_project.smd_project.Activities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
impo... |
package interviews.facebook;
import common.TrieNode;
/**
* Author: Meng Zhou
* Code time: 23 minutes
* Compile Error: 0
* Runtime Error: 1
* Time of Improvement: 2
* */
public class Trie {
private TrieNode root;
public Trie() {
root = new TrieNode();
}
// Inserts a word into the trie.
... |
package com.connectis.programator.demo.dom.minecraft4;
import java.util.ArrayList;
import java.util.List;
public class BlockIron extends Block {
private List<Tool> strongEnoughToolList;
public BlockIron() {
strongEnoughToolList = new ArrayList<>();
strongEnoughToolList.add(new PickAxe(Tool.M... |
package com.tencent.mm.plugin.voip.ui;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import andro... |
package edu.weber;
public class Data
{
/**
Computes the average of the measures of the given objects.
@param objects an array of Measurable objects
@return the average of the measures
*/
public static double average(Measurable[] objects)
{
double sum = 0;
for (Measurable obj :... |
package collections.optinal;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class SortList {
public static ArrayList<String> sortList(String path) throws IOException {
ArrayList<String> list = new ArrayList<... |
import java.util.ArrayList;
public class Test {
int a = 100;
}
|
/*
* Model Class containing the data structure for the model
*/
package finalproject;
import java.util.ArrayList;
/**
*
* @author Bart Kooijmans
*/
public class Model
{
private String modelType;
private boolean elementPresent;
private ArrayList<Element> elements;
private ArrayList<String> linkedM... |
package org.usfirst.frc.team4716.robot.subsystems;
import org.usfirst.frc.team4716.robot.RobotMap;
import org.usfirst.frc.team4716.robot.commands.drivetrain.ACSJoystickDrive;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import edu.wpi.first.wpilibj.Encoder;
import ed... |
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
public class ExaggeratingList<T> implements List<T>{
private ArrayList<T> underlying = new ArrayList<>();
private final int SMALL_VALUE_SIZE;
public static final int DEFAULT_SMALL_VALUE_SIZE = 5;
public ExaggeratingList() {
this(DEFAU... |
package com.yixin.kepler.enity;/**
* Created by liushuai2 on 2018/6/9.
*/
import com.yixin.common.system.domain.BZBaseEntiy;
import com.yixin.common.system.util.Label;
import javax.persistence.Column;
/**
* Package : com.yixin.kepler.enity
*
* @author YixinCapital -- liushuai2
* 2018年06月09日 19:11
*/
p... |
package com.rawls.ai;
public abstract interface iPlayerAI extends iAI{
}
|
package br.com.desafio.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Utilizado as anotações do Lombok para reduzir boilerplate na aplicação.
... |
/*******************************************************************************
* Copyright 2020 Grégoire Martinetti
*
* 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://ww... |
package com.ricex.cartracker.androidrequester.request.user;
import com.ricex.cartracker.androidrequester.request.AbstractRequest;
import com.ricex.cartracker.androidrequester.request.ApplicationPreferences;
import com.ricex.cartracker.androidrequester.request.response.RequestResponse;
import com.ricex.cartracker.andro... |
/*
* 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 lab_3_sd;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import jav... |
package sqltojava;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.Date;
... |
package com.ilp.innovations.myapplication.Fragments;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.a... |
package com.martian.andfix.base;
import android.app.Application;
import android.os.Environment;
import com.alipay.euler.andfix.patch.PatchManager;
import com.martian.andfix.util.AppInfoUtil;
import java.io.IOException;
/**
* @author martian on 2017/12/26.
*/
public class MyApplication extends Application {
priv... |
package edu.umn.cs.recsys.uu;
import it.unimi.dsi.fastutil.longs.Long2DoubleMap;
import it.unimi.dsi.fastutil.longs.Long2DoubleOpenHashMap;
import org.grouplens.lenskit.vectors.MutableSparseVector;
import org.grouplens.lenskit.vectors.similarity.CosineVectorSimilarity;
import org.lenskit.api.Result;
import org.lenskit... |
package web.dao;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import web.models.User;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import java.util.List;
@Repository
publi... |
package com.weekendproject.connectivly.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.json.JSONException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.sprin... |
package com.tencent.mm.plugin.qqmail.ui;
import com.tencent.mm.plugin.qqmail.b.y;
class b$7 implements Runnable {
final /* synthetic */ b mgt;
final /* synthetic */ y mgy;
b$7(b bVar, y yVar) {
this.mgt = bVar;
this.mgy = yVar;
}
public final void run() {
this.mgt.b(this.... |
public class Main {
public static void main(String[] args) {
MaxHeap heap = new MaxHeap();
heap.add(14);
heap.add(19);
heap.add(21);
heap.add(29);
heap.add(30);
heap.add(17);
heap.add(23);
heap.add(25);
heap.add(32);
heap.re... |
/*
* Copyright 2002-2013 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* 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 edu.sjsu.fly5.services;
public class JourneyServiceProxy implements edu.sjsu.fly5.services.JourneyService {
private String _endpoint = null;
private edu.sjsu.fly5.services.JourneyService journeyService = null;
public JourneyServiceProxy() {
_initJourneyServiceProxy();
}
public Jou... |
package it.usi.xframe.xas.servlet;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServlet;
impor... |
package hirondelle.web4j.database;
import static hirondelle.web4j.util.Consts.NEW_LINE;
import hirondelle.web4j.BuildImpl;
import hirondelle.web4j.model.AppException;
import hirondelle.web4j.model.DateTime;
import hirondelle.web4j.model.Decimal;
import hirondelle.web4j.model.Id;
import hirondelle.web4j.model.D... |
package com.dto;
public class JianCe {
private Integer j_id; //检测的id
private Integer p_id; //外键 连接person表
private String img_path; //图片地址
private String p2;
private String r_r; //RR间期
private String heart_rate;//心率
private String r_number; //R波的数量
public String getP2() {
return p2... |
/*
* Created on Oct 5, 2006
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package com.ibm.jikesbt;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
impo... |
package uk.co.mobsoc.MobsGames;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBurnEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.p... |
package nl.kvtulder.friendsr;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
... |
package com.wuyan.masteryi.mall.entity;
import lombok.Data;
/**
* @Author: Zhao Shuqing
* @Date: 2021/7/6 10:30
* @Description:
*/
@Data
public class Category {
private Integer categoryId;
private Integer parentCategoryId;
private String categoryName;
}
|
/*
* 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 calculadorarmi;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import Calculadora.*;
/**
... |
package space.lobanov.firstapp;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Dialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.media.Image;
import android.os.Bundle;
impo... |
package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation... |
package com.perhab.napalm.implementations.interfaceImplementation;
import lombok.RequiredArgsConstructor;
import java.util.concurrent.Callable;
public class InnerClass implements InterfaceImplementation {
@Override
public Integer add(Integer a, Integer b) throws Exception {
return new MyCall... |
/**
* nGrinder common infra.
*/
package org.ngrinder.recorder.infra;
|
package lesson27.Ex3;
public class Iphone extends Smartphone {
private String operatingSystem; //hệ điều hành
private String manufactureAddress; //nơi sản xuất
private int timeWarranty; //thời gian bảo hành (năm)
private String imei; //mã imei
private String regionCode; //ví dụ J/A, VN/A, LL/A... |
package convalida.annotations;
import android.support.annotation.StringRes;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.SOURCE;
/**
* @author wellingtoncosta on 01/06/18
*/
@Targ... |
package com.example.dm2.ex20181109_1eval;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import andr... |
package com.tencent.mm.plugin.setting.ui.setting;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.setting.a.f;
import com.ten... |
package com.alexquasar.supplierParser.dto;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import java.io.File;
import java.io.IOException;
public class ConverterJSON {
private ObjectMapper ... |
package com.org.review.logging;
import org.aspectj.lang.annotation.Pointcut;
public class PointCuts {
@Pointcut("within(com.org.review.*.*)")
public void logEntryExit() {
}
} |
package model;
import java.util.List;
/**
* 下拉菜单Yml文件的实体类.
*
* @author SunYichuan
*/
public class ListYml {
private String bigheader;
private List<Section> toc;
public String getBigheader() {
return bigheader;
}
public void setBigheader(String bigheader) {
this.bigheader = bigheader;
}
... |
package day08ternaryoperator;
import java.util.Scanner;
public class TernaryOperator03 {
public static void main(String[] args) {
// kullanicidan iki sayi aliniz
//kücük sayiiyi ekrana yazdirniz
Scanner scan= new Scanner(System.in);
System.out.println(" iki sayi giriniz");
double num1 = scan.next... |
package java2.views;
import java2.businesslogic.logout.LogoutRequest;
import java2.businesslogic.logout.LogoutResponse;
import java2.businesslogic.logout.LogoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Scanner;
@Component... |
package com.av.db.layer.impl;
import java.util.List;
import org.apache.log4j.Logger;
import org.hibernate.Criteria;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.av.db.dataobjects.Adeudo;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package GProduction;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
/**
*
* @author Blondu
*/
public class ImageRotator_1 {
private static int srcWidth, srcHeight;
private ... |
package Test;
import GameLogic.Dice;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
class DiceTest
{
@Test
void testThrowDice()
{
Dice dice = new Dice();
int roll;
for(int i=0;i<100000;i++)
{
... |
package com.simonk.gui.configurations.springconfig;
import java.util.HashMap;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotati... |
package org.example.api;
import org.example.client.RetrofitClient;
import org.example.model.AuthRequest;
import org.example.model.AuthResponse;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
public interface AuthApi extends RetrofitClient.Api {
@POST("api/authenticate")
Call<Au... |
/*
* Copyright © 2019 The GWT Project 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... |
package com.jim.multipos.utils.rxevents.admin_auth_events;
public class InfoEvent {
String mail;
public InfoEvent(String mail) {
this.mail = mail;
}
public String getMail() {
return mail;
}
}
|
/*
*/
package com.cleverfishsoftware.estreaming.streamprocessor;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import java.util.Arrays;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import ... |
package com.sharpower.action;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.opensymphony.xwork2.ActionSupport;
import com.sharpower.entity.UserOperationRecode;
import com.sharpower.service.UserOperationRecodeService;
public class ... |
package auth.nosy.tech.nosyauth.mapper;
import auth.nosy.tech.nosyauth.dto.TokenCollectionDto;
import auth.nosy.tech.nosyauth.model.TokenCollection;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper
public abstract class TokenCollectionMapper {
public static final TokenCollectionMapper IN... |
package com.数据解析.XML解析.使用DOM;
//特点:
//1.基于树形结构
//2.一次性加载文本到内存中,可以随机访问,(同时耗内存) , 更适合web开发,灵活性强
import org.junit.jupiter.api.Test;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.Docum... |
package hofbo.tactical_material_game;
import android.util.Log;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Deniz on 01.02.2018.
*/
public class Lobby {
private FirebaseDatabase ... |
package br.com.bytebank.banco.teste.util;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import br.com.bytebank.banco.modelo.Conta;
import br.com.bytebank.banco.modelo.ContaCorrente;
import br.com.bytebank.banco.modelo.ContaPoupanca;
public class TesteLambda {
public static void main(... |
package day17arraylists;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Lists01 {
public static void main(String[] args) {
//How to create a list
//1.Way
ArrayList<Integer> list1 = new ArrayList<>();
//how to print a list on the console
System.out.print... |
package servlets;
import java.io.IOException;
import javax.servlet.ServletConfig;
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.ht... |
package Forms;
/**
* Class, that contains 2 strings and using cmpThread
* compares them symbol by symbol
*/
public class stringComparisonThread extends Thread {
private String firstString;
private String secondString;
private cmpThread compareChars;
private String result;
/**
* Constructo... |
package leetcode.easy;
import common.PrintableMain;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* Created by Choen-hee Park
* User : chpark
* Date : 14/08/2020
* Time : 1:14 AM
*/
public class Solution021_MergeTwoSortedLists extends PrintableMain {
private st... |
package menuItem;
import input.MouseInput;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import util.Util;
public class MenuItem {
private BufferedImage image;
private Rectangle hitBox;
private MouseInput mouse;
private String stateChange;
private int x... |
package bruteforcegen;
public class NextString {
public String getNextKey(String key){
char[] chars = key.toCharArray();
int size = chars.length;
boolean acarreo = Character.isLetterOrDigit(chars[size-1]);
for(int i = size-1 ; i>=0 ;i--) {
if(acarreo)chars[i]++;
... |
package sickbook.Background;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.NoSuchProviderException;
import javax.mail.Session;
import javax.mail.Transport;... |
package Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class MapIntoArrayList {
public static void main(String[] args) {
Map<String, Integer> marks = new HashMap<String, Integer>();
marks.put("A", 100);
marks.put("B"... |
package co.fcode.ged18.estrutura;
/***************
*@author UANJOS*
***************/
import java.util.ArrayList;
import java.util.Collections;
import co.fcode.ged18.*;
public class Societario {
//-------------------VARIÁVEIS TIPOS DE ORGANIZAÇÃO-------------------//
private Organizacao Atos; // ATOS
private Org... |
package bigint;
import java.util.Scanner;
/**
*
* @author Emerson
*/
public class BigIntMain {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextLine()) {
String line = sc.nextLine();
if (line.startsWith("#")) {
... |
package com.smxknife.energy.stream.alarm;
import com.smxknife.energy.common.util.ProtostuffUtil;
import com.smxknife.energy.services.alarm.spi.domain.AlarmRecord;
import org.apache.flink.streaming.connectors.kafka.KafkaSerializationSchema;
import org.apache.kafka.clients.producer.ProducerRecord;
import javax.annotati... |
package StaticClass;
public class StaticClass {
int a = 0;
public void ObjectLevelStatic()
{
a = a +1;
// System.out.println("I am Static Method");
}
public static void main(String[] args)
{
StaticClass obj = new StaticClass();
obj.ObjectLevelStatic();
System.out.println(obj.a);
St... |
package net.dragberry.webapp2.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.