text stringlengths 7 1.01M |
|---|
package wxzw.gamec.controller;
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 java.io.IOException;
@WebServlet("/helloworld")
public class hell... |
package net.wessendorf.ce.impl;
import net.wessendorf.ce.CloudEvent;
import java.io.Serializable;
import java.net.URI;
import java.util.Date;
import java.util.Map;
public class CloudEventImpl<T> implements CloudEvent<T>, Serializable {
private static final long serialVersionUID = 1;
private String eventTyp... |
package lavaplayer.source.youtube;
import java.io.IOException;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.uti... |
package com.sonar.vishal.medico.common.structure;
import com.google.gson.annotations.SerializedName;
public class SearchData extends Data {
@SerializedName("Keyword")
private String keyword;
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
... |
package org.whitesource.fs;
import org.junit.Before;
import org.whitesource.agent.*;
import org.whitesource.agent.api.model.AgentProjectInfo;
import org.whitesource.agent.api.model.Coordinates;
import org.whitesource.agent.dependency.resolver.npm.TestHelper;
import org.whitesource.agent.utils.Pair;
import org.whitesou... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... |
package io.rong.app.ui.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
/**
* Created by zhjc... |
package hr.fer.zemris.java.webserver;
/**
* Interface for classes which process client requests.
*/
public interface IWebWorker {
/**
* The actual processing done by the instances. The result of
* whatever must be written to the arguments output stream.
* @param context the context of the request which shou... |
package com.qatix.base.concurrent.queue;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
/**
* 双端队列,两边都可以插入,两端都可以取出
*/
public class LinkedBlockingDequeTest {
public static void main(String[] args) throws InterruptedException {
BlockingDeque<String> deque = new... |
package com.kafkamgt.uiapi.helpers.db.rdbms;
import com.kafkamgt.uiapi.dao.*;
import com.kafkamgt.uiapi.repository.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import java.util.Li... |
package io.fabric8.openshift.api.model.machineconfig.v1;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude... |
package testclasses.antidebug;
import it.oblive.annotations.AntidebugSelf;
import it.oblive.annotations.NativeObfuscation;
import java.time.Duration;
import java.time.Instant;
public class AntidebugSelfDebugging {
public AntidebugSelfDebugging() {
}
public static String pi(int digits) {
Instant... |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.inspections.quickfix;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.ope... |
package org.firstinspires.ftc.teamcode;
import android.graphics.Color;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robo... |
package com.example.ma806p.viewpagedemo;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an... |
/*
Copyright 2022 The Kubernetes 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 agreed to in writing, softwar... |
/*
* 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")... |
package com.weique.overhaul.v2.app.service.localtion;
import android.content.Context;
import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;
import com.weique.overhaul.v2.app.common.Constant;
/**
* 百度定位sdk 坐标获取工具类
*/
public class LocSdkClient {
private static LocSdkClient m... |
/*
* Copyright (c) 2018 Baidu, 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 app... |
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... |
package lee.code.code_63__Unique_Paths_II;
import java.util.*;
import lee.util.*;
/**
*
*
* 63.Unique Paths II
*
* difficulty: Medium
* @see https://leetcode.com/problems/unique-paths-ii/description/
* @see description_63.md
* @Similiar Topics
* -->Dynamic Programming https://leetcode.com//tag/dynamic-program... |
package com.apress.springrecipes.shop;
public class Battery extends Product {
private boolean rechargeable;
public Battery() {
super();
}
public Battery(String name, double price) {
super(name, price);
}
public boolean getRechargeable() {
return rechargeable;
}
... |
package com.jake.csamanagement.util;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTDecodeException;
import com.auth0.jwt.exceptions.TokenExpiredException;
import com.auth0.jwt.interfaces.DecodedJWT;
import java.util.Date;
pu... |
package us.ihmc.avatar.sensors.microphone;
import java.io.InputStream;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URL;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import us.ihmc.commons.thread.ThreadTools;
public abstract class DrillDetectionT... |
/*
* 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 may ... |
package com.lilithsthrone.game.inventory.enchanting;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.lilithsthrone.game.character.attributes.Attribute;
import com.lilithsthrone.game.character.fetishes.Fetish;
imp... |
package me.kirinrin.author.enumation;
/**
* LoginTypeEnum
*
* @author Felordcn
* @since 16 :23 2019/10/17
*/
public enum LoginTypeEnum {
/**
* 原始登录方式.
*/
FORM,
/**
* Json 提交.
*/
JSON,
/**
* 验证码.
*/
CAPTCHA
}
|
/*-
* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ======================================================... |
package com.fges.rizomm.m1iii.learningagreementAPI.services.user;
import com.fges.rizomm.m1iii.learningagreementAPI.components.SendMail;
import com.fges.rizomm.m1iii.learningagreementAPI.dto.user.UserDTO;
import com.fges.rizomm.m1iii.learningagreementAPI.entity.user.User;
import com.fges.rizomm.m1iii.learningagreement... |
/**
* 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.seovic.chronos.feed;
import com.seovic.chronos.Request;
import com.seovic.chronos.RequestFeed;
import java.time.Duration;
import java.util.concurrent.atomic.AtomicLong;
/**
* Limits duration (in milliseconds) of the underlying feed.
*
* @author Aleksandar Seovic 2015.04.24
*/
public class DurationL... |
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without rest... |
package com.atguigu.gulimall.product.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* spu信息介绍
*
* @author guoxiaolong
... |
package tn.esprit.spring.service;
import java.io.ByteArrayInputStream;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... |
package AllClasses;
import javafx.animation.Transition;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane;
import javafx.scene.paint.ImagePattern;
import javafx.util.Duration;
public class CageAnimation extends Transition {
public Cage cage;
AnchorPane anchorPane;
public ... |
/*
* Copyright (c) 2014 Spotify AB.
*
* 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 t... |
package chatapp;
// Client connection imports:
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.URL;
import java.net.UnknownHostException;
// UI:
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Pos;
im... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
package bio.terra.janitor.service.cleanup;
import bio.terra.stairway.FlightMap;
/** Constant of stairway {@link FlightMap} keys in Janitor. */
public final class FlightMapKeys {
public static final String TRACKED_RESOURCE_ID = "trackedResourceId";
public static final String CLOUD_RESOURCE_UID = "cloudResourceUid"... |
/*
* Copyright 2006 The Apache Software Foundation
*
* 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 ... |
/**
* @author Jakob Jenkov, Jenkov Development
*/
package com.jenkov.db.impl.mapping.method;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* A subclass of <code>GetterMapping</code> capable of inserting a <code>Float</code> into
* a <code>PreparedStatement</code>.
*
* @author Jakob Jenk... |
package com.j256.ormlite.jdbc.db;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.sql.SQLException;
import java.util.ArrayList;
import org.junit.Test;
import com.j256.ormlite.TestUtils;
import com.j256.ormlite.jdbc.JdbcConnectionSource;
import com.j256.ormlite.support.DatabaseConnectio... |
package com.darren.exception;
/**
* Project: light
* Author : Darren
* Time : 2017/7/19
* Desc : 接口异常响应码集合
* 异常状态码在此处统一定义,对外含义统一
*/
public enum ExceptionEnum {
SUCCESS(0, "SUCCESS"),
SIGN_ERROR(10001, "SIGN_ERROR"),
MISSING_PARAMS(10003, "MISSING_PARAMS"),
INTERNAL_ERROR(10004, "INTERNAL_ER... |
package org.zalando.intellij.swagger.traversal.path.swagger;
import com.intellij.psi.PsiElement;
public class DefinitionsInRootPathResolver implements PathResolver {
@Override
public final boolean childOfDefinitions(final PsiElement psiElement) {
return hasPath(psiElement, "$.*");
}
}
|
package webDomestika.bases;
import io.cucumber.java.After;
import io.cucumber.java.Before;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.WebD... |
/*
* Copyright 2002-2019 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... |
/* Copyright 2004 - 2007 Kasper Nielsen <kasper@codehaus.org> Licensed under
* the Apache 2.0 License, see http://coconut.codehaus.org/license.
*/
package org.coconut.cache.internal.service.memorystore;
import java.util.Collections;
import java.util.List;
import org.coconut.cache.CacheEntry;
import org.coc... |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v4.content;
public final class SharedPreferencesCompat
{
public static final class EditorCompat
{
public static EditorCompat... |
/*
* Copyright 2016 Pete Cornish
*
* 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... |
package com.codingame.game;
import java.util.List;
public class Creature extends Unit {
Point camp;
CreatureState state = CreatureState.peacefull;
String creatureType;
public Creature(double x, double y) {
super(x, y, 1, -1, 300, null);
this.camp = new Point(x, y);
}
@Overrid... |
package application;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.DateFormat;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
import java... |
package de.scandio.settingsframework.stores;
import com.atlassian.confluence.core.ContentPropertyManager;
import com.atlassian.confluence.pages.Page;
public class ConfluencePageXmlStore extends AbstractXmlStore {
private final ContentPropertyManager contentPropertyManager;
private final Page page;
publi... |
// Copyright 2018 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 applicable law... |
package org.dave.bats.util.serialization;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Store {
String key() default "";
boolean storeWithItem() default false;
boolean sendInUpdatePackage() default false;
}
|
package id.recharge.library.core.helper;
public class CommonMathHelper
{
public static float getDistanceBetweenTwoPoints(float x1, float y1, float x2, float y2)
{
return (float) Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
}
}
|
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class DriveTrain extends Sub... |
/*******************************************************************************
* 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... |
package com.ruoyi.project.vocdeliver.controller;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.vocdeliver.domain.dto.InsertVocDeliverRequestDto;
import com.ruoyi.pr... |
package HamsterYDS.UntilTheEnd.item.combat;
import HamsterYDS.UntilTheEnd.Config;
import HamsterYDS.UntilTheEnd.internal.ArrowManager;
import HamsterYDS.UntilTheEnd.internal.DisableManager;
import HamsterYDS.UntilTheEnd.internal.EventHelper;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukki... |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... |
/*
* Copyright 2019-2021 Bunjlabs
*
* 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 group244.zaicev.com;
import org.junit.Assert;
import org.junit.Test;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class BinaryTreeTest {
private BinaryTree<Integer> tree = new BinaryTree<>();
@Test
public void addTest() {
tree.add(1);
Assert.assertE... |
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... |
/*
* Copyright (C) 2012 DataStax 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 applicab... |
package edu.fiuba.algo3.modelo.batallas_de_dados;
public class DadoPersonalizado implements Dado {
private final int valor;
public DadoPersonalizado(int valor) {
this.valor = valor;
}
@Override
public void lanzar() {
}
@Override
public int obtenerValor() {
return th... |
package lab.chabingba.eventorganizer.Visual;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.AbstractList;
import lab.chabingba.eventorganizer.R;
/**
* C... |
package uk.gov.companieshouse.service;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.... |
package com.example.android.sunshine.sync;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import com.example.android.sunshine.data.SunshinePreferences;
import com.firebase.jobdispatcher.JobParameters;
import com.firebase.jobdispatcher.JobService;
/**
* Clase que contiene el có... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj2.command.CommandBase;
impo... |
package com.mimose.component.deduplicate.starter;
/**
* @author mimose
* @description
* @date 2021/5/15
*/
public interface IPartStarter {
/**
* start
*/
void start();
}
|
/*******************************************************************************
* Copyright 2014 Felipe Takiyama
*
* 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.apa... |
/* Generic definitions */
/* Assertions (useful to generate conditional code) */
/* Current type and class (and size, if applicable) */
/* Value methods */
/* Interfaces (keys) */
/* Interfaces (values) */
/* Abstract implementations (keys) */
/* Abstract implementations (values) */
/* Static containers (keys) */
/... |
package robosky.uplands.world.feature.plants;
import com.mojang.datafixers.Dynamic;
import java.util.Random;
import java.util.function.Function;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecr... |
package com.airbnb.lottie.model.content;
import com.airbnb.lottie.model.animatable.AnimatableIntegerValue;
import com.airbnb.lottie.model.animatable.AnimatableShapeValue;
public class Mask {
public enum MaskMode {
MASK_MODE_ADD,
MASK_MODE_SUBTRACT,
MASK_MODE_INTERSECT,
MASK_MODE_NONE
}
private ... |
/*
* 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... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.12.04 at 03:04... |
package com.dtflys.forest.springboot.test;
import com.dtflys.forest.exceptions.ForestRuntimeException;
import com.dtflys.forest.http.ForestRequest;
import com.dtflys.forest.http.ForestResponse;
import com.dtflys.forest.logging.DefaultLogHandler;
import com.dtflys.forest.logging.ForestLogger;
import com.dtflys.forest.r... |
package wvw.mobile.androjena;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android de... |
package star;
public class Number11111111 {
public static void main(String[] args) {
//number print like
//11111
//22222
//33333
for (int num = 1; num <= 3; num++) {
for (int number = 1; number <= 5; number++) {
System.out.print(num);
}
System.out.println();
}
}
}
|
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class p07_CollectTheCoins {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<String> inputs = new ArrayList<>();
for (int i = 0; i < 4; i++) {
String inpu... |
package com.spring.batch.input.xmlreader.domain;
import java.util.Date;
public class Customer {
private final long id;
private final String firstName;
private final String lastName;
private final Date birthdate;
public Customer(long id, String firstName, String lastName, Date birthdate) {
... |
package org.sonar.plugins.clojure;
import org.sonar.api.Plugin;
import org.sonar.plugins.clojure.language.ClojureLanguage;
import org.sonar.plugins.clojure.language.ClojureSonarWayProfile;
import org.sonar.plugins.clojure.rules.ClojureLintRulesDefinition;
import org.sonar.plugins.clojure.sensors.CommandRunner;
import ... |
/*
* Copyright (C) 2008 feilong
*
* 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.github.steveice10.mc.protocol.packet.ingame.client.window;
import com.github.steveice10.mc.protocol.data.MagicValues;
import com.github.steveice10.mc.protocol.data.game.entity.metadata.Position;
import com.github.steveice10.mc.protocol.data.game.world.block.CommandBlockMode;
import com.github.steveice10.pa... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package com.github.malitsplus.shizurunotes.data.action;
import com.github.malitsplus.shizurunotes.R;
import com.github.malitsplus.shizurunotes.common.I18N;
import com.github.malitsplus.shizurunotes.data.Property;
import com.github.malitsplus.shizurunotes.utils.Utils;
class PassiveDamageUpAction extends ActionParamete... |
/**
* 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 may... |
package com.alibaba.easyexcel.test.core.style;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
/**
* @author Jiaju Zhuang
*/
@Data
public class StyleData {
@ExcelProperty("字符串")
private String string;
@ExcelProperty("字符串1")
private String string1;
}
|
package Custom_List_Iterator;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.function.Consumer;
public class CustomList<T extends Comparable<T>> implements Iterable<T> {
private List<T> list;
public CustomList() {
this.list = new ArrayList<>();
}
... |
package byps.test.api.remote;
/*
* Serializer for byps.test.api.remote.BRequest_RemoteSetTypes_getInt2
*
* THIS FILE HAS BEEN GENERATED BY class byps.gen.j.GenSerStruct DO NOT MODIFY.
*/
import byps.*;
// DEBUG
// isEnum=false
// isFinal=true
// isInline=false
// #members=0
// checkpoint byps.gen.j.GenSerStruc... |
/*
* 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 may ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.language.perl.project.existing.sources;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
imp... |
package com.daimajia.slider.demo;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.daimajia.slider.library.SliderLayout;
/**
* Created by daimajia on 14-5-29.
*/... |
// Targeted by JavaCPP version 1.5-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.liquidfun;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.liquidfun.global.liquidfun.*;
/** Small color object for each particle */
@NoOffset @Properties(i... |
package com.twistlet.qir.admin.usermanagement.controller;
import static org.hamcrest.core.IsEqual.*;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.hamcrest.core.IsSame;
import org.junit.Before;
im... |
/*
* Copyright 2019-2020 Zheng Jie
*
* 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 in w... |
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... |
package com.dong.cms.utils;
import java.io.InputStream;
import java.util.Properties;
/**
*
* @ClassName: PropertiesUtil
* @Description: properties配置文件工具类
* @author dong
* @date May 6, 2019 4:26:46 PM
* @keywords :
*
*/
public class PropertiesUtil {
/**
* 根据key获取value,数据写在配置文件cms.properties中... |
import java.util.Objects;
/*
* 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.
*/
/**
*
* @author Wojciech Orzechowski
*/
class Person {
private int id;
private String name;... |
package com.casa.misc;
import java.util.List;
import com.casa.misc.forms.MerchantForm;
import com.smslai_eoddb.data.Tbbillspayment;
import com.smslai_eoddb.data.Tbcheckbook;
import com.smslai_eoddb.data.Tbmerchant;
import com.smslai_eoddb.data.Tbmiscellaneous;
import com.smslai_eoddb.data.Tbpassbookissuance;
public ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.