text stringlengths 10 2.72M |
|---|
package com.smxknife.mybatis._01_xml;
import org.apache.ibatis.executor.resultset.ResultSetHandler;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Signature;
import java.sql.Statement;
/**
* @author... |
package org.cap.dao;
import java.util.List;
import org.cap.model.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Repository("productDbDao")
@Transactional
public inter... |
package com.coding.java.lambda.part01;
/**
* Created by scq on 2018-07-26 11:11:17
*/
@FunctionalInterface
public interface MyPredicate<T> {
public boolean test(T t);
}
|
import java.util.Scanner;
public class Problem5_10 {
public static void main(String[] args) {
final int NUMBERS_PER_LINE = 10;
int count = 0 ;
for(int i = 100 ; i<= 1000;i++) {
//Test if number is divisible by 5 and 6
if( i % 5 == 0 && i % 6 == 0) {
count ++; // increment count
//Test if numbers pe... |
package com.lotto.app;
import org.apache.log4j.Logger;
import com.lotto.app.ServiceLocator;
import com.lotto.model.LottoResult;
import com.lotto.services.LottoService;
public class LottoApp {
private static Logger logger = Logger.getLogger(LottoApp.class);
private static LottoResult lottoResult;
public static vo... |
package com.qcwp.carmanager.enumeration;
import com.qcwp.carmanager.R;
/**
* Created by qyh on 2017/1/3.
*/
public enum ProfessionalTestEnum {
HectometerAccelerate(2),
KilometersAccelerate(5),
KilometersBrake(6),
Noise(7),
Unknown(0);
private final int value;
ProfessionalTestEnum(int ... |
package com.project.loginservice.service;
import com.project.loginservice.pojo.BuyerSignupPojo;
public interface BuyerSignupService {
BuyerSignupPojo validateBuyersignup(BuyerSignupPojo buyerSignupPojo);
BuyerSignupPojo getBuyer(Integer id);
}
|
package com.example.rashapp;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.media.MediaPlayer;
import android.os.AsyncTask;
import android.os.Build;
import ... |
package yincheng.gggithub.provider.viewholder;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.format.Formatter;
import android.view.View;
import android.view.ViewGroup;
import java.text.NumberFormat;
import butterknife.BindVie... |
/*
* created 09.01.2006
*
* Copyright 2009, ByteRefinery
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* $Id... |
package com.phplogin.sidag.gcm;
import android.app.IntentService;
import android.content.Intent;
import android.util.Log;
import com.google.android.gms.gcm.GoogleCloudMessaging;
import com.google.android.gms.iid.InstanceID;
import java.io.IOException;
/**
* Created by Siddhant on 11/14/2015.
*/
public class Regis... |
package com.asen.android.lib.permissions.core;
/**
* 权限监测的监听调用
*
* @author Asen
* @version v2.0
* @email 597356831@qq.com
* @date 2017/5/16 13:26
*/
public interface OnCheckPermissionListener {
/**
* 成功授予权限时回调
*/
public void permissionGranted();
}
|
package com.sales.entity;
import java.util.Date;
public class SalesOrderDetailEntity {
private Integer salesDetailId;
private Integer salesOrderId;
private Integer productId;
private String productName;
private String productSpu;
private String customCode;
private Integer productDeta... |
import java.util.*;
class kmax {
public static void main(String args[]) {
int j,i,n,k,max;
Scanner in=new Scanner(System.in);
n=in.nextInt();
int[] a=new int[n];
for(i=0;i<n;i++) {
a[i]=in.nextInt();
}
k=in.nextInt();
for(i=0;i<a.length-k;i++) {
max=a[i];
for(j=1;j<k;j++) {
if(a[i+j] > max)
max=a[i+j];
... |
public class whackAmoleRunner {
public static void main(String[] args) {
whackAmole wam=new whackAmole();
wam.makeButtons();
}
}
|
/**
* MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT
*
* Copyright (c) 2010-11 The Trustees of Columbia University in the City of
* New York and Grameen Foundation USA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
package tsubulko.entity;
import tsubulko.entity.Person;
import lombok.*;
import java.util.Date;
import java.util.LinkedList;
@Data
public class Employee extends Person {
public enum Education {
None,
Middle,
Hight;
}
private double salary;
private int experiense;
// private... |
package com.parkinglot;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.Mockito.*;
public class AttendantTest {
@Test
public void ShouldParkW... |
package jawale.ankita.stateslistproject;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class StatesAdapter extends RecyclerView.Adapter<States... |
package com.briup.apps.zhaopin.bean;
public class City {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column zp_city.id
*
* @mbg.generated Wed Dec 11 22:10:15 CST 2019
*/
private Long id;
/**
*
* This field was gene... |
/*
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package jvm_test;
import sun.misc.Launcher;
import java.net.URL;
/**
* Description: 查看Bootstrap ClassLoader加载的jar或class文件
*
* @author Baltan
* @date 2019-05-30 17:16
*/
public class Test2 {
public static void main(String[] args) {
URL[] urls = Launcher.getBootstrapClassPath().getURLs();
for ... |
package org.apache.commons.net.examples.mail;
import java.io.BufferedReader;
import java.io.Console;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Locale;
class Utils {
static String getPassword(String username, String password) throws IOException {
if ("-".equals(password)) {
... |
package project;
public class Order {
private Customer customer;
private Employee employee;
private Meal meal;
private int workRemaining;
public Order(Customer customer, Employee employee, Meal meal) {
this.customer = customer;
this.employee = employee;
this.meal = meal;
// Round down th... |
package edu.wpi.cs.justice.cardmaker;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import org.json.simple.JSONObject;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runti... |
package com.zen.model.manage.service.impl;
import com.zen.model.manage.bean.Feature;
import com.zen.model.manage.dto.ModelInfoDto;
import com.zen.model.manage.service.ManageService;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import... |
package net.sf.ardengine.rpg.multiplayer;
import com.google.gson.JsonObject;
import net.sf.ardengine.rpg.multiplayer.messages.*;
import net.sf.ardengine.rpg.multiplayer.network.INetwork;
/**
* Handles client game logic.
*/
public abstract class AClientCore extends ANetworkCore {
/**How many states is client de... |
package com.qgbase.netty;
/**
* @author : Winner
* @name :
* @date : 2019/5/13 0013
* @desc :
*/
public class Constant {
public static final short CMD_HEAD = (short) 29130;
public static final short CHECK_CODE = (short) 26;
public static Integer onOff = 0;
}
|
package domain;
public enum DeveloperType {
LAZY, EXPERIENCED, JUNIOR
}
|
package com.exercises.mmn12;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* @author Ori Ben Nun
*/
class Segment1Test {
@Test
void getPoLeft() {
Segment1 segment1 = new Segment1(new Point(2,4), new Point(6,0));
assertEquals(4,segment1.getPoLeft()... |
import com.thinking.machines.loyalty.dao.*;
import com.thinking.machines.loyalty.interfaces.*;
class GetCityByNameTestCase
{
public static void main(String data[])
{
try
{
CityDAOInterface cityDAOInterface=new CityDAO();
CityInterface cityInterface=cityDAOInterface.getByName(data[0]);
System.out.println(cityInterface.g... |
package com.paleimitations.schoolsofmagic.common.data.books;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.vertex.DefaultV... |
/*
* 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.udea.session;
import com.udea.Carro;
import com.udea.Cliente;
import java.util.List;
import javax.ejb.Stateless;... |
package ec.app.fixedpoint;
import ec.util.*;
import ec.*;
import ec.gp.*;
import xfp.trees.*;
public class ExprData extends GPData {
public CExpr x; // return value
// copy content to other AffineData
public void copyTo(final GPData gpd) {
((ExprData) gpd).x = x;
}
}
|
package com.rolandopalermo.facturacion.ec.common.util;
import java.util.HashMap;
public class Constantes {
/**
* Utility classes should not have a public constructor.
*/
private Constantes() {
}
public static final String API_DOC_ANEXO_1 = "Ver ficha técnica - Anexo 1";
@SuppressWarnings("serial")
public... |
package com.puti.pachong.service.wenda.impl;
import com.puti.pachong.entity.http.HttpRequest;
import com.puti.pachong.http.HttpRestRequest;
import com.puti.pachong.service.wenda.IAutoWendaService;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ste... |
package BlockchainUtil;
import proto.BlockchainService;
import java.util.*;
public class Block {
private BlockMeta metaData;
List<BlockchainService.Transaction> transactionList = new ArrayList<BlockchainService.Transaction>();
List<BlockchainService.Balance> balanceList = new ArrayList<BlockchainServic... |
package GUIModule;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
public class ActionResultsReport implements ActionListener {
public ArrayList<ArrayList<String>> previousResult;
public JTable table;
public ActionResultsReport(J... |
package pro.javatar.security.acl;
import org.springframework.security.acls.domain.BasePermission;
import org.springframework.security.acls.domain.GrantedAuthoritySid;
import org.springframework.security.acls.domain.PrincipalSid;
import org.springframework.security.acls.model.Permission;
import org.springframework.secu... |
package com.goldgov.dygl.module.portal.webservice.examrecord.web;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Q... |
public class Rational {
//instance variables
private int numerator;
private int denominator;
// constructors
public Rational(int numerator) {
this(numerator, 1);
}
public Rational(int numerator, int denominator) {
if(denominator < 0){
denominator = -1*denominator;
nu... |
package com.meti.asset;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class DefaultBuilder implements AssetBuilder {
@Override
public Asset build(File file) throws IOException {
FileReader reader = new FileReader(file);
//might ... |
package com.vinmein.foodiehuts.login.di;
import com.vinmein.foodiehuts.components.ResourceProvider;
import com.vinmein.foodiehuts.components.data.Prefs;
import com.vinmein.foodiehuts.components.Navigator;
import com.vinmein.foodiehuts.di.PerActivity;
import com.vinmein.foodiehuts.login.LoginActivity;
import com.vinme... |
package com.xm.user.domain;
import java.util.Date;
/**
* Created by xm on 2017/2/21.
*/
public class Blog {
private int id;
private String title;
private String author;
private String content;
private Date updateTime;
private String blogCatalog;
public String getTitle() {
return... |
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Login extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletExc... |
package com.liu.Class;
import java.io.Serializable;
public class leave implements Serializable{
private String leaveId;
private int leaveVin;
private int position;
public String getLeaveId() {
return leaveId;
}
public void setLeaveId(String leaveId) {
this.leaveId = leaveId;
}
p... |
package testSel.testSelVal;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class genericMethod {
WebDriver driver;
public genericMethod(WebDriver driver) {
this.driver=driver;
}
... |
/*
* Copyright (C) 2019-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 syncAlgorithm;
import java.util.Hashtable;
public class TreeAndPathEntryTable {
private FileTree tree;
private Hashtable<String, FileEntry> pathEntryTable;
public FileTree getTree() {
return tree;
}
public Hashtable<String, FileEntry> getPathEntryTable() {
return pathEntryTable;
}
public TreeAnd... |
package database;
import agenda.DB_AgendaManagement;
import document.DB_DocumentManagement;
import org.junit.After;
import org.junit.Before;
import request.DB_RequestManagement;
import user.DB_UserManagement;
import voting.DB_VotingManagement;
import java.io.File;
import java.io.IOException;
import java.net.URI;
impo... |
package com.ssm.wechatpro.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.o... |
package Question4;
public class main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
StackArray<Integer> stack = new StackArray<Integer>();
boolean expansionRule = false;
for(int i = 0; i< 30000; i++)
{
if(expansionRule)
stack.setExpansion... |
import java.time.LocalDate;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
// put your code here
Scanner scanner = new Scanner(System.in);
int year = scanner.nextInt();
int month = scanner.nextInt();
int minus = scanner.nextInt();
Sys... |
package nb.queryDomain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class CreditAccPriceHistory implements Serializable {
private Date date;
private BigDecimal acceptedPrice;
public CreditAccPriceHistory() {
}
public CreditAccPriceHistory(Date date, Bi... |
package zuoshen.array;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class 子数组中0和1个数相等的最长子数组长度 {
public static int sub_sum0(int[]arr){
if(arr==null||arr.length==0){
return 0;
}
for (int i = 0; i <arr.length ; i++) {
arr[i]=arr[i]==... |
package mashup.spring.elegant.search.application; |
package org.dempsay.demo.freemaker.api;
/**
* A Sample immutable
*
* @author shawn
*
*/
public class Sample {
public final String data;
protected Sample(final SampleBuilder builder) {
this.data = builder.data;
}
public static String data(final Sample sample) {
return sam... |
package Estruturas;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
/**
* Estrutura que representa uma palavra e suas ocorrências em vários documentos.
* Possui um String texto que representa a palavra em sí e um HashMap onde a
* chave é o id do docume... |
package br.com.pizzaria.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org... |
package basics;
import org.openqa.selenium.WebDriver;
import util.Commons;
/**
Req:
open the browser and Hit the URL "https://gmail.com" using the Java
Steps:
-------
1.Provide the driver software location ""C:\\chromedriver.exe" to the System.
Create the web driver Object using the driver software.
Sy... |
package com.mobica.rnd.parking.parkingbetests;
import com.mobica.rnd.parking.parkingbetests.support.TestSuiteData;
import com.mobica.rnd.parking.parkingbetests.support.RestAssuredProcessor;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotat... |
package primeiros_exercicios;
import java.util.Date;
import java.util.Scanner;
public class NumerosPrimos {
public static void main(String[] args) {
int a;
boolean primo=true;
Scanner valor = new Scanner(System.in);
System.out.print("Digite um numero: ");
a = valor.nextInt(... |
package com.youthchina.controller.user;
import com.youthchina.annotation.ResponseBodyDTO;
import com.youthchina.controller.DomainCRUDController;
import com.youthchina.domain.zhongyang.Gender;
import com.youthchina.domain.zhongyang.User;
import com.youthchina.dto.Response;
import com.youthchina.dto.StatusDTO;
import co... |
package Bank;
public class ClientsAccount {
Branch branch;
Account account;
Client client;
}
|
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package raktar;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class Raktar {
private List<Termek> termekek;
private List<Szett> szettek;
public Raktar() {
termekek = new ArrayL... |
package com.osce.server.portal;
import com.osce.entity.SysParam;
import com.osce.enums.SysParamEnum;
import com.osce.result.Result;
import com.osce.server.security.rsa.RsaKeyPairQueue;
import com.osce.server.utils.ImageCodeUtil;
import com.osce.server.utils.ParamUtil;
import com.sm.open.care.core.enums.YesOrNo;
import... |
package com.veveup.dao;
import com.veveup.domain.User;
import java.util.List;
public interface UserDao {
/**
* 查找所有用户
*
* @return
*/
List<User> findAll();
/**
* 通过传入name获得用户实例
*
* @param name
* @return
*/
User findUserByName(String name);
/**
* ... |
package com.oracle.demosjon.demojson;
import java.sql.Connection;
import oracle.soda.OracleCollection;
import oracle.soda.OracleCursor;
import oracle.soda.OracleDatabase;
import oracle.soda.OracleDocument;
import oracle.soda.rdbms.OracleRDBMSClient;
public class SodaController {
private Connection conn;
pu... |
package ru.itis.javalab.repositories;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.jdbc.core.simple.SimpleJdbc... |
package com.jk.jkproject.net.im.info;
import android.app.Activity;
import android.text.TextUtils;
import android.util.SparseArray;
import android.view.View;
import com.jk.jkproject.R;
import com.jk.jkproject.ui.msg.IUploadProgress;
import com.jk.jkproject.utils.Constants;
import com.jk.jkproject.utils.DateUtils;
imp... |
package spi.movieorganizer.repository;
import spi.movieorganizer.controller.tmdb.ITMDBController;
import spi.movieorganizer.controller.tmdb.TMDBController;
import spi.movieorganizer.controller.usermovie.IUserMovieController;
import spi.movieorganizer.controller.usermovie.UserMovieController;
import spi.movieorga... |
package org.browsexml.timesheetjob.dao.hibernate;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.browsexml.timesheetjob.dao.FulltimeAgreementDao;
import org.browsexml.timesheetjob.model.FulltimeAgreements;
import org.hibernate.HibernateException;... |
package capitulo08;
public class DateAndTimeTest {
public static void main(String[] args) {
DateAndTime Time1 = new DateAndTime (0,0,0,1,1,1);
DateAndTime Time2 = new DateAndTime (11,30,0,26,05,1998);
DateAndTime Time3 = new DateAndTime (18,57,0,21,12,2020);
DateAndTime Time4 = new DateAndTime (23,59,59,1,1... |
package it.polimi.se2019;
import it.polimi.se2019.model.GameBoard;
import it.polimi.se2019.model.deck.Deck;
import it.polimi.se2019.model.deck.Decks;
import it.polimi.se2019.model.deck.EmptyDeckException;
import it.polimi.se2019.model.grabbable.*;
import it.polimi.se2019.model.map.UnknownMapTypeException;
import org.j... |
package core;
import java.util.*;
public class Group extends Potato {
// Map of all members of group and each member's influence on group
private Set<Person> foundingMembers;
private HashMap<Person, Double> personInfluenceHashMap;
/** Constructs a core.Group at a Point location
* @param locatio... |
package com.airline.airline.airlinereseservation.pojos;
import java.util.Date;
public class BookingRequest {
public Long id;
public String username;
public String flightFrom;
public String flightTo;
public Date dateOfFlight;
public Long passengerId;
}
|
/*
* Copyright 2017 Google Inc. All Rights Reserved.
*
* 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 applic... |
package com.samal.springaop;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.function.Supplier;
public interface BeanBSupplier extends Supplier<BeanB> {
// @Autowired
// default void register(BeanA beanA) {
// System.out.println("via setter: A >> SupB" + getIndex());
// ... |
package com.clay.claykey.model;
import android.os.Bundle;
import com.clay.claykey.constant.BundleConstant;
import com.clay.claykey.constant.ParseConstants;
import com.clay.claykey.model.listener.ServiceFinishedListener;
import com.clay.claykey.object.dto.LoginResult;
import com.clay.claykey.object.parse.Door;
import ... |
package at.jku.isse.ecco.webdev.test;
import at.jku.isse.ecco.webdev.HelloWorldApplication;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import java.io.IOException;
public class WebDevTest {
@Test(groups = {"integration", "webdev"})
pu... |
package io.github.liuzm.distribute.common;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* @author lxyq
*/
public class Message implements Serializable{
/**
*
*/
private static final long serialVersionUID = -3549947862637908997L;
... |
package commands;
import interfaces.Command;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.apache.log4j.Logger;
import output.DisplaySystem;
/**
* @author Ksiona
* CommandProcessor
*/
... |
package com.giwook.algorithm.lesson4_countingElements;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
/**
*
* @author 93Hong on 2020-09-06
*
*/
public class PermCheck {
public int solution(int[] A) {
// write your code in Java SE 8
Set<Integer> integers = new HashSet<>();
for ... |
package com.example.thetravlendar;
import android.app.SearchManager;
import android.content.ContentValues;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.s... |
package application;
import java.util.Locale;
import java.util.Scanner;
import entities.Triangle;
public class Program {
public static void main(String[] args) {
double xA, xB, xC, yA, yB, yC;
Locale.setDefault(Locale.US);
Scanner scan = new Scanner(System.in);
Triangle x, y;
x = n... |
import java.util.ArrayList;
import java.util.List;
public class Scrabble {
public Integer calculateScore(String letters){
int score = 0;
for (int i =0; i < letters.length(); i++) {
if(letters.charAt(i) == 'a' || letters.charAt(i) == 'e' ){
score += 1;
}
if(letters.charAt(i) == 'z'... |
package com.tencent.mm.wallet_core.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class EditHintView$9 implements OnClickListener {
final /* synthetic */ EditHintView uYF;
EditHintView$9(EditHintView editHintView) {
this.uYF = editHintView;
}
... |
package ljx.com.ashin.jms;
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*;
/**
*
* Created by AshinLiang on 2017/10/24.
*/
public class JmsProducerTopi {
public static void main(String[] args) {
//创建工厂
ConnectionFactory connectionFactory = new ActiveMQConnectionFactor... |
package com.puxtech.reuters.rfa.Common;
import java.util.*;
import org.apache.mina.core.future.WriteFuture;
import org.apache.mina.core.service.IoServiceStatistics;
import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.puxtech.reuters.rfa.Publish... |
import java.util.Stack;
public class TelaInicial extends javax.swing.JFrame {
/**
* Creates new form TelaInicial
*/
public TelaInicial() {
initComponents();
a_estrela.setVisible(false);
algoritmo_genetico.setVisible(false);
}
/**
* This method is called from w... |
package de.johni0702.minecraft.gui.versions.forge;
import de.johni0702.minecraft.gui.utils.EventRegistrations;
import de.johni0702.minecraft.gui.versions.MatrixStack;
import de.johni0702.minecraft.gui.versions.callbacks.InitScreenCallback;
import de.johni0702.minecraft.gui.versions.callbacks.OpenGuiScreenCallback;
imp... |
package com.smxknife.energy.services.alarm.infras.converter;
import com.smxknife.energy.services.alarm.infras.entity.AlarmRuleMeta;
import com.smxknife.energy.services.alarm.spi.domain.AlarmRule;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import java.util.List;
/**
* @author smxknife
* 2021/5/17
... |
package com.licyun.util;
import com.licyun.model.User;
import com.licyun.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import java.io.BufferedOutputStream;
import java.io.File... |
/*
* UserEntityJsonAdapter.java
* This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin.
* $Id$
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
*/
package ru.otus.adapters.json;
import ru.otus.adapters.Data... |
/**
* MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT
*
* Copyright (c) 2010-11 The Trustees of Columbia University in the City of
* New York and Grameen Foundation USA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
package com.bozhong.lhdataaccess.application;
import com.bozhong.lhdataaccess.client.common.constants.ServiceErrorEnum;
import com.bozhong.lhdataaccess.client.domain.core.Result;
/**
* 一个请求上下文
*
* @author bin
* @create 2018-04-27 下午5:13
**/
public class Context<P, M> {
private P param;
private Result<... |
package com.tencent.mm.ipcinvoker.extension;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
public class XParcelableWrapper implements Parcelable {
public static final Creator<XParcelableWrapper> CREATOR = new 1();
public f dne;
/* synthetic */ XParcelableWr... |
import java.io.IOException;
import java.util.Scanner;
public class SwitchStringFile {
private Scanner scanner;
private String switchchoise;
public String SwitchString(){
WorkStrings workStrings = new WorkStrings(new Scanner(System.in));
workStrings.scanner();
do {
... |
package br.com.helpdev.quaklog.processor.parser.objects;
import br.com.helpdev.quaklog.processor.parser.ParseObject;
import lombok.Builder;
import lombok.Data;
import lombok.NonNull;
@Data
@Builder
public class ClientBeginParseObParser implements ParseObject {
@NonNull
private String gameTime;
@NonNull
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.