text stringlengths 10 2.72M |
|---|
package com.mtl.hulk.bench;
import com.mtl.hulk.tools.SystemPropertyUtil;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.runner.options.ChainedOptionsBuilder;
/**
* Default implementation of the JMH microbenchmark adapter.
*/
@Fork(AbstractBenchmark.DEFAULT_FORKS)
public class AbstractBenchmark ext... |
package com.rankytank.client.pages;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.*;
import com.rankytank.client.gui.AddResultPopUp;
import com.rankytank.client.gui.RankingUI;
import c... |
/*
* 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 senha.model;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import java.util.logging.Level;
import ... |
/*
* Copyright (C) 2009 INBio ( Instituto Nacional de Biodiversidad )
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ve... |
public class RandomNumber2{
public static void main(String[] args){
int randomnumber = (int ) (Math.random() * 6 + 1);
int randomnumber2 = (int ) (Math.random() * 6 + 1);
System.out.println("Dice 1: " + randomnumber);
System.out.println("Dice 2: " + randomnumber2);
System.out.println("Sum: " + (randomnumber ... |
/*
* Copyright 2002-2023 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.lenovohit.ssm.treat.web.rest;
import java.util.ArrayList;
import java.util.List;
import org.apache.cxf.common.util.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.Request... |
package com.esum.comp.xvr.process;
import javax.jms.DeliveryMode;
import javax.jms.JMSException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.comp.xvr.XVRCode;
import com.esum.comp.xvr.XVRException;
import com.esum.framework.core.component.ComponentException;
import com.esum.framework.cor... |
package net.nowtryz.mcutils.command.graph;
import net.nowtryz.mcutils.command.contexts.NodeSearchContext;
import net.nowtryz.mcutils.command.exceptions.CompleterDuplicationException;
import net.nowtryz.mcutils.command.execution.Completer;
import java.util.List;
import java.util.Optional;
class GenericCommandNode ext... |
package ru.job4j.services;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.j... |
package net.itcast.course.regex.basic.lesson2;
public class DotMatch {
public static void main(String[] args) {
// TODO Auto-generated method stub
String[] strings = new String[] { "a", "A", "0", "$", "(", "."};
String normalDot = ".";
String escapedDot = "\\.";
String characterClassDot = "[.]";
for (S... |
/*
* Copyright (c) 2008-2019 Haulmont.
*
* 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 agr... |
package com.grandsea.ticketvendingapplication.model.common;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.ArrayList;
import java.util.List;
/**
* 对Gson的方法做了一层包装
*
* @author luowenjie
*
*/
public class Gson... |
package practise;
public class Wrapperpractise1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=5;
Integer i=new Integer(a);//autoboxing
int r=i;//unboxing
System.out.println(i);
String s="1234";
int f=(int)(Float.parseFloat(s));
System.out.println(f);
char c=... |
package com.alibaba.druid.bvt.sql.mysql.select;
import com.alibaba.druid.sql.MysqlTest;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.ast.statement.SQLSelectStatement;
import com.alibaba.druid.util.JdbcConstants;
import java.util.List;
public class... |
package com.stefanini.controller;
import java.util.List;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.stefan... |
package pro.likada.bean.util;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import java.util.ResourceBundle;
/**
* Created by abuca on 01.04.17.
*/
@Named
@ApplicationScoped
public class AutographBean {
public boolean isEnabled(){
return Boolean.valueOf( ResourceBundle.ge... |
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.supercsv.cellprocessor.Optional;
import org.supercsv.cellprocessor.ParseInt;
import org.supercsv.cellprocessor.ParseLong;
import org.supercsv.cellprocessor.constraint.NotNull;
import org.superc... |
package com.ut.module_lock.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.ut.base.BaseActivity;
import com.ut.module_lock.R;
public class AddGuideActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
su... |
package com.infohold.el;
import com.infohold.bdrp.Constants;
public class ElConstants extends Constants{
public static final String APP_USER_KEY = "_appUserKey";
}
|
package com.unknowns.hibernate.entity;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.pers... |
package com.pepel.games.shuttle.util;
import java.util.HashMap;
import java.util.Map;
import javax.faces.context.ExternalContext;
import javax.servlet.ServletRequest;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
public class ServletUtils {
public static final String COOKIE_PARAM_M... |
package algorithms.bst;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class MaximumSubarrayTest {
@Before
public void setUp() throws Exception {
}
@Test
public void testKadane1D() throws Exception {
Assert.assertEquals(3, MaximumSubarray.kadane(new int[... |
package commands;
import org.newdawn.slick.command.BasicCommand;
import actionEngines.ActionEngine;
import actionEngines.ActorActionEngine;
public class DisplaceCommand extends BasicCommand implements GenericCommand{
private char direction;
private float displacement;
public DisplaceCommand(float displacement... |
package aop.xml;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
/*
* Spring AOP기반
* 1. Runtime기반
* 2. Proxy기반
* 3. 인터페이스기반
*/
public class EmpMain {
public static void main(String[] args) {
ApplicationContext context = new Gener... |
package cn.shizihuihui.ssweddingserver.service.impl;
import cn.shizihuihui.ssweddingserver.entity.Photo;
import cn.shizihuihui.ssweddingserver.mapper.PhotoMapper;
import cn.shizihuihui.ssweddingserver.service.IPhotoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.... |
package org.vanilladb.comm.protocols.urb;
import org.vanilladb.comm.protocols.beb.Broadcast;
import net.sf.appia.core.AppiaEventException;
import net.sf.appia.core.Channel;
import net.sf.appia.core.Session;
public class UniformReliableBroadcast extends Broadcast {
// We must provide a public constructor for TcpCo... |
package com.tabs.tabs.gui;
import android.content.Context;
import android.opengl.Visibility;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widge... |
package algorithms.graph;
import javax.annotation.Resource;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by Chen Li on 2018/4/29.
*/
public class UndirectedGraphImplTest {
@Resource(name = "tinyGraph")
private Graph graph;
@Test
public void createTest() {
GraphFactory graphFactory = n... |
/*
* 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 Controler;
import Model.Atendimento;
import Model.Cliente;
import Model.Historico;
import Model.Operador;
import ... |
package com.megathrone.tmall.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("")
public class PageController {
@RequestMapping("registerPage")
public String registerPage() {
return "fore/register... |
package com.hcl.dctm.data.params;
public class CopyObjectParam extends DctmCommonParam {
public CopyObjectParam() {
}
public static CopyObjectParam newObject(){
return new CopyObjectParam();
}
public ObjectIdentity getSrcObjectIdentity() {
return srcObjectIdentity;
}
public void setSrcObjectIdentity(O... |
/**
*
*/
package com.needii.dashboard.repository;
import com.needii.dashboard.model.Customer;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;
impo... |
package kiemtra;
public class Nhanvienhanhchanh extends Nhanvien {
public double luong;
public Nhanvienhanhchanh(String ma, String hoTen,double luong) {
super(ma, hoTen, luong);
this.luong = luong;
}
@Override
public double getLuong() {
// TODO Auto-generated method stub
return (luong);
}
public vo... |
package org.swanix.dsalgo.tree;
public class RedBlackTree {
private static final boolean RED = true;
private static final boolean BLACK = false;
private Node root;
private class Node {
private int key;
private int val;
private Node left, right;
private boolean color;
... |
package com.tmdaq.etltool.json.wapper;
import com.tmdaq.etltool.core.Configuration;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author vttmlin
*/
public class JsonLibWapper extends Json {
... |
package com.nube.core.service.security;
/**
* Implement encruption, use AES as standard
* @author kamoorr
*
*/
public interface EncryptService {
public String encrypt(String input);
public String decrypt(String input);
}
|
package pl.com.nur.springsecurityemailverification.service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import pl.com.nur.springsecurityemailverification.model.AppRole;
import pl.com.nur.s... |
package com.test.taxi.ui.gallery;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import andr... |
package com.zl.service;
import com.zl.pojo.PeasantDO;
import com.zl.pojo.UserDO;
import com.zl.util.AjaxPutPage;
import com.zl.util.AjaxResultPage;
import com.zl.util.MessageException;
import java.util.List;
public interface PeasantService {
/**
* @Description: 返回农民列表[可带条件]
* @Param: [ajaxPutPage]
... |
package com.herokuapp.desafioamedigital.template.entity;
import br.com.six2six.fixturefactory.Fixture;
import br.com.six2six.fixturefactory.Rule;
import com.herokuapp.desafioamedigital.model.entity.Planeta;
import com.herokuapp.desafioamedigital.template.CommonTemplateLoader;
import static org.apache.commons.lang.mat... |
package packt.java9.network.servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.OptionalInt;
public class RedirectDemo extends HttpServl... |
package com.example.workstudy.jdk;
import com.example.workstudy.entity.People;
import java.util.*;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.function.Supplier;
import java.util.stream.Stream;
public class StreamStudy {
/*
* Stream 流 lambda
*
* lambda 表达式中最基本的4个函数接口
* 需要f... |
package no.nav.vedtak.sikkerhet.oidc.config.impl;
/*
* Interessante elementer fra en standard respons fra .well-known/openid-configuration
*/
public record WellKnownOpenIdConfiguration(String issuer, String jwks_uri, String token_endpoint) {
}
|
package Week4;
public class L055_canJump {
public static void main(String[] args) {
int[] nums = { 2, 3, 1, 1, 4 };
boolean ret = new L055_canJump().canJump(nums);
System.out.println(ret);
}
public boolean canJump(int[] nums) {
if (nums == null || nums.length == 0)
return false;
int endIndex = nums.le... |
/*
* 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 Controler;
import Model.Atendimento;
import Model.Cliente;
import Model.Operador;
import org.hibernate.HibernateEx... |
package medium;
public class HowManySolutions {
/**
Name: How Many Solutions Does This Quadratic Have?
Difficult: Medium
Instruction: A quadratic equation a x² + b x + c = 0 has either 0, 1, or 2 distinct solutions for real values of x.
Given a, b and c, you should return the number of solution... |
package com.auro.scholr.payment.data.model.request;
public class PaytmWithdrawalByBankAccountReqModel {
String mobileNo="";
String studentId="";
String paymentMode="";
String disbursementMonth="";
String beneficiary_mobileNum="";
String beneficiary_name;
String bankaccountno="";
String... |
package xyz.lateralus.components;
import android.content.Context;
import android.content.SharedPreferences;
import xyz.lateralus.app.R;
public class LateralusPreferences {
private Context _ctx;
private static SharedPreferences _prefs;
private static SharedPreferences.Editor _editor;
public... |
package com.example.daftarmenumakanan;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
public class detailmenu<makanan> extends AppCompatActivity {
Image... |
package com.example.phonebook;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
i... |
package controller;
public class postOnBlog {
}
|
package com.god.gl.vaccination.main.fragment.adapter;
import android.content.Context;
import com.god.gl.vaccination.R;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;
import java.util.List;
/**
* @author gl
* @date 2018/7/22
* @desc
*/
public class HomeAdapter ex... |
/*
Description: This class is meant to be the start point where our stand alone application starts.
History: Class created: 10/17/2017 - Maximiliano Pozzi
*/
package weatherBoard;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import ... |
package com.fest.pecfestBackend.request;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.NotBlan... |
package org.viqueen.java.bytecode;
public class Methods {
}
|
package web.dashboard_ministere;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.Mu... |
package br.com.zup.kafka.consumer;
import br.com.zup.kafka.KafkaMessage;
import br.com.zup.kafka.consumer.config.KMessageConsumer;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.T... |
package com.syntax.class03;
public class IfStatement {
public static void main(String[] args) {
int num1=180;
int num2=900;
System.out.println("Writing my first if statement.");
if (num1>num2) {
System.out.println("Num1 is bigger than num2.");
}
System.out.println("End of is statement.... |
package com.zverikRS.controller;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@... |
package com.estudos.microsservicos.hrpayroll.feignclients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.P... |
package com.trump.auction.cust.service.impl;
import com.cf.common.util.mapping.BeanMapper;
import com.cf.common.util.page.PageUtils;
import com.cf.common.util.page.Paging;
import com.cf.common.utils.ServiceResult;
import com.github.pagehelper.PageHelper;
import com.trump.auction.cust.dao.UserProductCollectDao;
import ... |
package by.gsu;
import by.gsu.kindergarten.*;
import java.io.*;
import java.time.LocalDate;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
private static int CAPACITY = 10;
private static final String[] TYPES = {
"Position", "Room", ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.persistence.taxonomy;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author gsulca
*/
@Embeddable
p... |
package im.compIII.exghdecore.banco;
import java.sql.SQLException;
import java.sql.Statement;
import im.compIII.exghdecore.exceptions.CampoVazioException;
import im.compIII.exghdecore.exceptions.ConexaoException;
public class ComodoMobilia {
private long comodoId;
private long mobiliaId;
public ComodoMobilia(... |
package com.mercadolibre.android.ui.widgets;
import android.content.Context;
import android.util.AttributeSet;
/**
* This is a subclass of {@MeliSpinner} that stubs the {@link #start()} method (read below),
* created as a workaround to a robolectric issue.
*/
public class MeliSpinnerTestImpl extends MeliSpinner {
... |
package com.qd.demo;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
public class SplashActivity extends Activity{
//调转到主页
private static final int GO_MAIN = 0;
//跳转到引导页
private static final int GO_GUIDE = 1... |
package Transform;
import org.apache.flink.api.common.functions.FilterFunction;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
/**
* @author douglas
* @create 2021-02-18 21:19
*/
public class Flink03_TransForm_filter_Anonymous {
public static void main(String[] args) throws Excep... |
package com.atguigu.mr.reducejoin;
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.lib.input.Fi... |
import com.mycompany.annotationprocessor.TargetClass;
import com.mycompany.annotationprocessor.TargetField;
@TargetClass
public class Sample {
@TargetField
private final String _name;
@TargetField
private final String _desc;
public Sample(String name, String desc) {
_name ... |
package webserver.http.request;
import webserver.http.request.core.*;
import webserver.http.session.Cookie;
import webserver.http.session.HttpSession;
public class HttpRequest {
private static final String COOKIE = "Cookie";
private RequestLine requestLine;
private RequestHeader requestHeader;
privat... |
package bench;
public class CPUBenchmark implements IBenchmark {
private int size;
public void initialize(int size) {
this.size = size;
}
public void run() {
int i, j, k, s = 0;
for (i = 0; i < size - 2; i++)
for (j = i + 1; j < size - 1; j++)
for ... |
import java.util.*;
public class CSP {
// 3D array of maze. [row][column][constraints] where constraints is:
// [constraints] = [
// is_base
// color 1
// color 2
// etc.
// ]
Boolean[][][] constraints;
public CSP (Node[][] nodeMaze, int maze_leng) {
... |
package com.gxtc.huchuan.ui.mine.dealmanagement.postmangement;
import com.gxtc.commlibrary.BasePresenter;
import com.gxtc.commlibrary.BaseUserView;
import com.gxtc.huchuan.bean.PurchaseListBean;
import java.util.ArrayList;
import java.util.List;
/**
* Describe:
* Created by ALing on 2017/5/15.
*/
public class De... |
package com.examples.io.generics.implementingAGenericType;
import java.util.Comparator;
//Passing a Parameter to Generic
public class ReverseCompartor<T> implements Comparator<T> {
private Comparator<T> delegatorCompartor;
public ReverseCompartor(Comparator<T> delegatorCompartor) {
this.delegatorCom... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package avimarkmodmedcond;
/**
*
* @author jbaudens
*/
public class MyKeyStroke {
private String keyStroke;
public String getKeyStroke() {
return keyStroke;
}
public void setKeyStroke(String... |
/**
* Exception hierarchy enabling sophisticated error handling independent
* of the data access approach in use. For example, when DAOs and data
* access frameworks use the exceptions in this package (and custom
* subclasses), calling code can detect and handle common problems such
* as deadlocks without being ti... |
package org.rundeck.client.tool.format;
import org.rundeck.client.tool.CommandOutput;
/**
* Can format output objects
*/
public class FormattedOutput implements CommandOutput {
final CommandOutput delegate;
final OutputFormatter formatter;
public FormattedOutput(
final CommandOutput output... |
package net.mcdonalds;
import retrofit2.Response;
public interface McdoApiCallback<T> {
void failure(String str, Throwable th);
void success(T t, Response response);
}
|
package kodlama.io.hrms.business.concretes;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import kodlama.io.hrms.business.abstracts.ForeignLanguageService;
import kodlama.io.hrms.core.utilities.results.DataResult;
import kodlama.i... |
package com.acewill.ordermachine.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.Switch;
import android.widg... |
package com.it.company.configuration;
import com.it.company.core.anno.MyMapper;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/... |
package pl.krystian.spring;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.notification.Notification;
import org.springframework.beans.factory.annotation.Autowired;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import com.vaadin.f... |
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class insertfest extends HttpServlet
{
PreparedStatement ps,ps1;
Connection c;
public void init(ServletConfig config)
{
}
public void doGet(HttpServletRequest req,HttpServlet... |
public class MisDatosPersonales {
public static void main(String[] args) {
System.out.println("José Juan Juárez Juárez");
System.out.println("12/12/1977");
}
} |
package com.cjkj.insurance.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReqMsg {
/**
* 需存储的请求信息
*/
private Integer reqMsgId;
/**
* 用户ID
*/
private Integer userId;
/**
... |
package com.netcracker.DTO;
import com.netcracker.entities.City;
import com.netcracker.entities.User;
public class UserSecDto {
private String email;
private String password;
private String phoneNumber;
private int cityId;
private String name;
public int getCityId() {
return cityId;... |
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://jwsdp.dev.java.net/CDDLv1.0.html
* See the License for the sp... |
package tool;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.... |
package com.contentstack.sdk;
/**
*
* @author contentstack.com, Inc
*/
public abstract class ContentstackResultCallback extends ResultCallBack{
public abstract void onCompletion(ResponseType responseType, Error error);
public void onRequestFinish(ResponseType responseType){
onCompletion(responseT... |
package com.miyatu.tianshixiaobai.activities.mine.attention;
import android.app.Activity;
import android.content.Intent;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import com.miyatu.tianshixiaobai.R;
import com.miyatu.tianshixiaobai.activities.BaseActivity;
import com.miyatu.t... |
package com.sinodynamic.hkgta.filter;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Enumeration;
import java.util.Map;
import java.util.Vector;
import javax.servlet.ServletInputStream;
impo... |
package com.javarush.task.task06.task0611;
/*
Класс StringHelper
*/
public class StringHelper {
public static String multiply(String s) {
String result = "";
//напишите тут ваш код
for (int i = 0; i <5; i++) {
result += s;
}
return result;
}
public sta... |
package com.isteel.myfaceit.data;
import android.content.Context;
import com.isteel.myfaceit.data.local.datebase.DbHelper;
import com.isteel.myfaceit.data.local.prefs.PreferencesHelper;
import com.isteel.myfaceit.data.model.ResponseGame;
import com.isteel.myfaceit.data.model.ResponseMatch;
import com.isteel.m... |
// **********************************************************
// 1. 제 목: 진도/목차 리스트Data
// 2. 프로그램명: EduListData.java
// 3. 개 요:
// 4. 환 경: JDK 1.3
// 5. 버 젼: 0.1
// 6. 작 성: LeeSuMin 2003. 08. 26
// 7. 수 정:
//
// **********************************************************
p... |
package be.tarsos.dsp.example;
public class AutoBand {
private long prevTime = System.currentTimeMillis();
private long currTime = System.currentTimeMillis();
private long waitTime = 1500;
private float minValueSeen = Float.MAX_VALUE;
private float maxValueSeen = Float.MIN_VALUE;
private float lastMin... |
package com.knightly.cor;
/**
* 销售,可以批准5%以内的折扣
* Created by knightly on 2018/2/19.
*/
public class Sales extends PriceHandler {
@Override
public void processDiscount(float discount) {
if (discount <= 0.05) {
System.out.format("%s批准了这口:%.2f%n", this.getClass().getName(), discount);
... |
package com.sparshik.yogicapple.ui.groups;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.widget.LinearLayoutManager;
import android.supp... |
package com.beike.common.entity.trx;
import java.util.Date;
import com.beike.common.enums.trx.RefundHandleType;
import com.beike.common.enums.trx.RefundSourceType;
import com.beike.common.enums.trx.RefundStatus;
/**
* @Title: RefundRecord.java
* @Package com.beike.common.entity.trx
* @Description: 退款汇总... |
/*
* 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 object;
import java.util.Vector;
/**
*
* @author PhiLong
*/
public class Publisher {
private String PublisherID;
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.