text stringlengths 10 2.72M |
|---|
package ChatClient;
import javafx.application.Application;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.stage.Modality;
import javafx.stage.Stage;
import java.io.IOException;
import java.util.List;
pu... |
package com.codicesoftware.plugins.hudson.util;
import hudson.Util;
import hudson.util.FormValidation;
import java.util.regex.Pattern;
public class FormChecker {
private static final Pattern WORKSPACE_REGEX = Pattern.compile("^[^@#/:]+$");
private static final Pattern SELECTOR_REGEX = Pattern.compile(
... |
package com.longlysmile.service.impl;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.longlysmile.entity.AttackRecord;
import com.longlysmile.mapper.AttackRecordMapper;
import com.longlysmile.service.AttackRecor... |
package elementfactory;
import elementfactory.base.Element;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.pagefactory.ElementLocator;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationHandler;
import java.lang.reflec... |
package com.cts.resources;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.cts.beans.Login;
import com.cts.service.LoginService;
@RestCon... |
package com.sarf.service;
import java.util.List;
import com.sarf.vo.Qna_BoardVO;
import com.sarf.vo.SearchCriteria;
public interface Qna_BoardService {
// 게시물 작성
public void write(Qna_BoardVO boardVO) throws Exception;
// 게시물 목록 조회
public List<Qna_BoardVO> list(SearchCriteria scri) throws Exception;
// 게시물... |
package com.perhab.napalm.implementations.interfaceImplementation;
import java.util.concurrent.Callable;
public class AnonymousInnerClass implements InterfaceImplementation {
@Override
public Integer add(Integer a, Integer b) throws Exception {
Callable<Integer> callable = new Callable<Integer>... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.presenter.impl.contact.qb;
import net.nan21.dnet.core.presenter.action.query.QueryBuilderWithJpql;
import net.nan21.dnet.module.bd.presenter.i... |
package com.joyfulmath.calculator.houseloan;
import java.util.ArrayList;
import com.joyfulmath.calculator.R;
import com.joyfulmath.calculator.Engine.CaculaterEngine;
import com.joyfulmath.calculator.Engine.CalculaterEngineListener;
import com.joyfulmath.calculator.Engine.CaculaterEngine.EngineParams;
import com.joyfu... |
package com.beiyelin.projectportal.entity;
import com.beiyelin.addressservice.entity.EmbeddableAddress;
import com.beiyelin.commonsql.jpa.BaseDomainEntity;
import com.beiyelin.commonsql.jpa.MasterDataEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsCons... |
package com.google.android.gms.c;
final class ba implements Cloneable {
static final bb bab = new bb();
boolean bac;
int[] bad;
bb[] bae;
int fi;
public ba() {
this(10);
}
private ba(int i) {
this.bac = false;
int ad = ad(i);
this.bad = new int[ad];
... |
package basic;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class Exercise09Test {
@Test
public void test_calPI(){
assertEquals(new Exercise09().calPI(), "3.141598");
}
}
|
package com.google.android.gms.analytics.internal;
import android.util.DisplayMetrics;
import com.google.android.gms.c.al;
import java.util.Locale;
public final class af extends o {
af(q qVar) {
super(qVar);
}
protected final void mE() {
}
public final al og() {
np();
Dis... |
package com.book.web;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.bookapp.dao.Book;
import com.bookapp.model.service.BookService;
public class Main {
public static void main(String[] args) {
... |
package com.stackroute.muzix.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
/*creates a table track with id, name, comment columns using @Entity @Id @Column annotation */
/*lombok annotations @Data @AllArgsConstructor @NoArgsConstructor are u... |
package net.minecraft.client.renderer.entity;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelOcelot;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityOcel... |
/*
* Copyright (c) 2014. igitras.com
*
* 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 ... |
/*
* 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 net.plazmix.core.api.common.command;
import net.plazmix.core.api.common.util.Builder;
import java.util.List;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;
/**
* @author MasterCapeXD
*/
public interface CommandElementBuilder<B ext... |
package cz.ladicek.swarm.reproducer.SWARM_1929;
import org.eclipse.microprofile.faulttolerance.ExecutionContext;
import org.eclipse.microprofile.faulttolerance.FallbackHandler;
public class HelloFallback implements FallbackHandler<String> {
@Override
public String handle(ExecutionContext context) {
re... |
package com.vehicletracking;
public interface BaseFilter {
}
|
package app.com.example.ozgur.sunny;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.ShareActionProvider;
import android.util.Log;
import and... |
this and and and then and this
|
/*
* 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 controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
imp... |
package com.spbsu.flamestream.runtime.edge.socket;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.Client;
import com.esotericsoftware.kryonet.Connection;
import com.esotericsoftware.kryonet.Listener;
import com.spbsu.flamestream.runtime.edge.Front;
import com.spbsu.flamestream.core.data.Pay... |
package edu.eci.arsw.par1t;
import edu.eci.arsw.par1t.priv.DataLoaderOne;
import edu.eci.arsw.par1t.priv.Logger;
import edu.eci.arsw.par1t.priv.SorterTwo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class DataProcessor {
... |
package com.dreamcatcher.member.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.simple.JSONObject;
import com.dreamcatch... |
package io.peppermint100.server.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@Entity(name = "ITEM_TABLE")
@DiscriminatorColumn(name = "item_type"... |
package bibliotheque;
import java.util.List;
public interface ServiceLoader {
List<Service> load(Bibliotheque b);
}
|
/*
* 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 db.dao;
import beans.Article;
import beans.Image;
import beans.ShareSiteUser;
import java.util.Date;
import java.util.List;
im... |
package Project7api;
public class UsingString {
public static void main(String[] args){
String str= "I am a Java Developer";
System.out.println(str.length());
System.out.println(str.toUpperCase());
System.out.println(str.toLowerCase());
}
}
|
package com.perhab.napalm.statement;
public class StatementNotInitalizableException extends RuntimeException {
public StatementNotInitalizableException(String message, Exception e) {
super(message, e);
}
public StatementNotInitalizableException(String message) {
super(message);
}
}
|
package com.company.FirstBeginTasks;
import java.util.Scanner;
public class Main {
/**
* to moj pierwszy komentarz wielolinijkowy
* nie podam tu nic więcej
*/
public static void main(String[] args) {
/* Scanner scanner = new Scanner(System.in);
System.out.print("Podaj liczbą dla x... |
package de.peterkossek.s10;
import java.awt.Component;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;
import ja... |
/*
* Gretty
*
* Copyright (C) 2013-2015 Andrey Hihlovskiy and contributors.
*
* See the file "LICENSE" for copying and usage permission.
* See the file "CONTRIBUTORS" for complete list of contributors.
*/
package org.akhikhl.examples.gretty.websocket;
import jakarta.websocket.ClientEndpoint;
import jakarta.webs... |
package com.tencent.mm.protocal.c;
import f.a.a.b;
import f.a.a.c.a;
import java.util.LinkedList;
public final class asz extends bhd {
public int jQd;
public String jRi;
public String lPl;
public int rJr;
public String rVi;
public String rVj;
public String rVk;
public int rVl;
publ... |
package com.smxknife.java2.serializable;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
/**
* @author smxknife
* 2018/11/2
*/
public class EmployeeDeserializeDemo {
public static void main(String[] args) {
Employee e = null;
... |
package com.yougou.dto.input;
import com.yougou.dto.BaseDto;
/**
*
* @author 杨梦清
*
*/
public class InputDto extends BaseDto {
private static final long serialVersionUID = 7978719981956480110L;
/** 商家编码 **/
private String merchant_code;
public String getMerchant_code() {
return merchant_code;
}
publi... |
package collection.visualizer.examples.bean;
import java.beans.PropertyChangeEvent;
import java.util.Date;
import javax.swing.JPanel;
import bus.uigen.shapes.Shape;
import collection.visualizer.common.ListenableVector;
import collection.visualizer.datatype.bean.ABeanBuffer;
import collection.visualizer.datatype.bean... |
/*
* Copyright (C) 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 applicable la... |
package com.demo.utils;
public class DataUtils {
public static Object[][] getData(String tcName,String sheetName,XlReader x){
int tcStartRow =0;
while(!x.getCellData(sheetName, 0, tcStartRow).equals(tcName)){
tcStartRow++;
}
System.out.println(tcStartRow);
int colStartRow =tcStartR... |
package com.tencent.mm.plugin.wallet.balance.a.a;
import com.tencent.mm.protocal.c.bcp;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.vending.c.a;
class o$4 implements a<bcp, bcp> {
final /* synthetic */ o oZs;
o$4(o oVar) {
this.oZs = oVar;
}
public final /* synthetic */ ... |
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
class Solution {
public ListNode reverseBetween(ListNode head, int m, int n) {
//1 2 3 4
boolean set = true;
if(head == null |... |
package main;
import java.util.ArrayList;
import java.util.List;
class Team {
private static final int MAX_SALARY = 50000;
// 5 people, one of each
Player pointGuard;
Player shootingGuard;
Player powerForward;
Player smallForward;
Player center;
int totalSalary = 0;
public Team() {
// TODO Auto-generated... |
package Test;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
/**
* @author admin
* @version 1.0.0
* @ClassName findDepth.java
* @Description 阿里笔试题 找到一个多维数组的维度
* @createTime 2021年03月16日 00:00:00
*/
public class findDepth {
public static int findDepth(ArrayList array){
... |
package cn.aurora.ssh.service;
import java.util.List;
import java.util.zip.ZipInputStream;
import org.activiti.engine.repository.Deployment;
public interface IWorkflowService {
void saveDeployByZIP(ZipInputStream in, String fileName);
List<Deployment> findDeploymentAll();
}
|
/*
* Copyright (c) 2013, 2017, 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 com.smxknife.algorithm.demo01.quicksort;
import com.google.common.base.Preconditions;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @author smxknife
* 2019-04-29
*/
@Slf4j
public class QuickSort {
publ... |
package test.thread;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
/**
* Copyright (c) by www.leya920.com
* All right reserved.
* Create Date: 2017-02-14 ... |
package com.company;
import org.junit.Test;
import java.util.Stack;
// WXG 技术研究1面 5道笔试题
public class Main_WXG {
static String path = "/Users/sunyindong/workspace/TestJava/Leetcode/src/main/resources/";
@Test
public void test1() {
// System.out.println(isLucky("1"));
System.out.println(isLucky("14"));
Sys... |
package com.takshine.wxcrm.domain;
public class TaskParent {
private String taskid=null;
private String parentid=null;
private String parenttype=null;
public String getTaskid() {
return taskid;
}
public void setTaskid(String taskid) {
this.taskid = taskid;
}
public String getParentid() {
return parentid;... |
/*
* 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.wrtecnologia.servicecep.service;
import com.wrtecnologia.servicecep.util.CepUtil;
import com.wrtecnologia.servicecep.dto.CepDTO;
import com.wrtecnologia.servicecep.domain.Cep;
import com.google.gson.Gson;
import com.wrtecnologia.servicecep.mapper.CepDTOMapper;
import org.springframework.stereotype.Service;... |
package fontys.sot.rest.client;
import fontys.sot.rest.client.classes.OrdersRequestHandler;
import fontys.sot.rest.client.classes.ProductsRequestHandler;
import fontys.sot.rest.service.enums.Role;
import fontys.sot.rest.service.models.LineItem;
import fontys.sot.rest.service.models.Order;
import fontys.sot.rest.servic... |
package com.mentonica.subcraft.players;
import com.mentonica.subcraft.get.data.Constants;
import com.mentonica.subcraft.get.data.Variables;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLCon... |
package com.stark.innerclass;
/**
* 局部内部类
* 1.定义在方法体,甚至比方法体更小的代码块中
* 2.类比局部变量。
* 3.局部内部类是所有内部类中最少使用的一种形式。
* 4.局部内部类可以访问的外部类的成员根据所在方法体不同。
* 如果在静态方法中:
* 可以访问外部类中所有静态成员,包含私有
* 如果在实例方法中:
* 可以访问外部类中所有的成员,包含私有。
* 局部内部类可以访问所在方法中定义的局部变量,但是要求局部变量不会被修改(通常使用final 关键字)。
* 5.局部类内部类不能定义除了常量以外静态成员
*/
public class LocalI... |
package gr.excite.atm.service;
import gr.excite.atm.model.Demand;
public interface IDistributer {
public void giveMoney(Demand demand);
public void setNextDistributer(IDistributer nextDistributer);
}
|
package pl.szczodrzynski.edziennik.ui.modules.settings;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.Media... |
package no.nav.vedtak.felles.prosesstask.impl;
import java.time.LocalDateTime;
/** IdentRunnable som tar id og Runnable. */
class IdentRunnableTask implements IdentRunnable {
private final Long id;
private final Runnable runnable;
private final LocalDateTime createTime;
IdentRunnableTask(Long id, Run... |
/*
*/
package com.cleverfishsoftware.loadgenerator;
/**
*
* @author peter
*/
public class Common {
public static final int ONE_KB = 1024;
public static final int ONE_MB = 1000 * ONE_KB;
public static boolean NotNullOrEmpty(String value) {
return value != null && value.length() > 0;
}
... |
import java.io.*;
import java.net.*;
public class s2
{
public static void main(String [] args)
{
if(args.length!=1)
{
System.out.println("Error in args listed");
System.exit(0);
}
try
{
//InetAddress h=InetAddress.getByName(args[0]);
int port=Integer.parseInt(args[0]);
//String m=args[2];
... |
package com.hqhcn.android.entity;
public class Gps extends GpsKey {
private String kskm;
private String carinfoId;
private String gps;
public String getKskm() {
return kskm;
}
public void setKskm(String kskm) {
this.kskm = kskm == null ? null : kskm.trim();
}
public... |
package by.whiskarek.notes.models;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.Ignore;
import androidx.room.Index;
@Entity(primaryKeys = {"noteId", "tagId"},
foreignKeys = {
@ForeignKey(entity = Note.class,
... |
package com.tencent.mm.plugin.luckymoney.ui;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.luckymoney.ui.LuckyMoneyWishFooter.b;
class LuckyMoneyWishFooter$5 implements OnClickListener {
final /* synthetic */ LuckyMoneyWishFooter kXP;
final /* synthetic */ b ... |
package com.utils;
import lombok.extern.log4j.Log4j;
import java.util.Properties;
/**
* Kafka配置文件
* */
@Log4j
public class KafkaConfigUtil {
public static String topic="example";//Kafka的topic
public static String fieldDelimiter = ",";//字段分隔符,用于分隔Json解析后的字段
public static Properties buildKafkaProps(){
... |
package com.coding.java.serialize.byteserialize.jdkserializer2;
import java.io.*;
/**
* @author scq
*/
public class JavaSerializer implements ISerializer {
@Override
public <T> byte[] serializer(T obj) {
try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Obj... |
package practica7_ej4;
import java.util.ArrayList;
//Eventual: datosEmpleado, honorariosPorHora, pagarSalario()
public class Eventual {
private ArrayList <String> datosEmpleado = new ArrayList<String>();
private double honorariosPorHora;
Eventual(){
super();
this.honorariosPorHora = 0;
}
Eventual(Arra... |
package com.hungtdo.demoactionbar;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import an... |
package com.test.xiaojian.simple_reader.ui.adapter;
import android.content.Context;
import com.test.xiaojian.simple_reader.model.bean.SortBookBean;
import com.test.xiaojian.simple_reader.ui.adapter.view.BookSortListHolder;
import com.test.xiaojian.simple_reader.ui.base.adapter.IViewHolder;
import com.test.xiaojian.si... |
package rti.calculator;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class OptionsPage extends Activity {
private float angle;
private EditText angle_box;
@Override
public void on... |
package com.bozhong.lhdataaccess.infrastructure.dao;
import com.bozhong.lhdataaccess.domain.DoctorInDiagnosisDO;
import com.bozhong.lhdataaccess.domain.DoctorOutDiagnosisDO;
import com.bozhong.lhdataaccess.domain.OrganizStructureDO;
import java.util.List;
/**
* User: 李志坚
* Date: 2018/11/5
* 住院诊断数据的DAO
*/
public ... |
package me.hoon.config;
import me.hoon.account.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframewo... |
package edu.nyu.cs.jsd410;
/**
* A class which represents customers to be partake in the queue that is exhibited in the Main class.
* @author juliansmithdeniro
*
*/
public class Customer {
private int id;
private int arrivalTime;
private int waitTime;
private int doneTime;
/**
* Default constructor for ... |
/*
* 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 carros;
import java.util.ArrayList;
/**
*
* @author Estudiante
*/
public class Escenario {
private String no... |
package com.thoughtworks.domain.product_list;
import com.thoughtworks.domain.product_detail.Product;
import java.util.List;
/**
* Created on 12-06-2018.
*/
public class ProductList {
private final List<Product> mData;
public ProductList(final List<Product> data) {
mData = data;
}
public ... |
package ru.skel2007.warren.controller;
import java.util.concurrent.CompletableFuture;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframewor... |
package org.kuribko.moviecatalog.parser;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
import org.jsoup.select.Elements;
import org.kuribko.moviecatalog.model.Movie;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframewo... |
package collection.test;
import java.util.ArrayList;
import java.util.List;
/*
* List
* 순서를 가지면서(내부적으로 index로 관리된다) 객체를 지정하는 방식
* 중복은 허용된다
*/
public class ArrayListTest3 {
public static void main(String[] args) {
List<String> list = new ArrayList<String>();
//Order(입력된 순서) | Sorting(알파벳 순서)
... |
package com.im.interfaces;
import java.io.IOException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;
public abstract cl... |
package com.example.mvptask.utils;
import com.example.mvptask.TaskApplication;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.text.DecimalFormat;
public final class CommonUtils {
/**
*
* @param value
* @return formatted decimal format with grouping... |
package hashtable;
/**
* @author: ZhiHao
* @date: 2021/1/7
* @version: 1.0
*/
class LinkedList {
/**
* 虚拟头节点,私有不可修改
*/
private Student head = new Student(-1, "");
/**
* 插入学生信息
*
* @param student 插入学生的信息
*/
public void add(Student student) {
if (head.next == nu... |
package test;
import static org.junit.Assert.*;
import com.sun.jnlp.JNLPClassLoaderUtil;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Categories;
import org.junit.experimental.categories.Category;
import org.junit.runner... |
package net.minecraft.nbt;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
public class NBTTagLongArray extends NBTBase {
private long[] field_193587_b;
NBTTagLongArray() {}
public NBTTagLongArray(long[] p_i47524_1_) {
th... |
package zm.gov.moh.core.repository.database.entity.system;
import java.util.HashMap;
import zm.gov.moh.core.repository.database.dao.Synchronizable;
import zm.gov.moh.core.repository.database.entity.domain.Person;
import zm.gov.moh.core.repository.database.entity.domain.PersonName;
public enum EntityType {
PATIE... |
package pl.cwanix.opensun.agentserver.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import lombok.Getter;
import lombok.Setter;
import pl.cwanix.opensun.commonserver.properties.SUNServerExt... |
package FirstSteps.PrimitiveTypes.FloatAndDouble.Challenge;
public class FloatAndDoubleChallenge {
public static void main(String[] args) {
int myIntValue = 5 / 3;
float MyFloatValue = 5F / 3F;
double myDoubleValue = 5D / 3D;
double myDoubleValue1 = 5.00 / 3.00; // the same as doin... |
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.io.*;
class chess{
public static void main(String[] args) {
board b=new board();
b.menu();
b.board();
}
} |
import java.sql.*;
public class Main {
public static void main(String[] args) {
/*Напишите код, который выведет среднее количество покупок в месяц для каждого курса за
2018 год. Учитывайте диапазон месяцев, в течение которого были продажи. Подробнее в примере.*/
/*String query = "SELECT cours... |
package com.xebia.retail.repo;
import org.springframework.data.jpa.repository.JpaRepository;
import com.xebia.retail.model.AffiliatedUser;
/**
*
* @author ashish
*
* Affiliated user Repository
*
*/
public interface AffiliatedUserRepo extends JpaRepository<AffiliatedUser, Integer> {
}
|
/**
*
*/
package exception;
/**
* Classe do tipo Exception que ao fazer a verificacao do erro lança a mensagem na ordenacao dos pratos e refeicoes no menu do restaurante
* @author Gabriel Alves - Joao Carlos - Melissa Diniz - Thais Nicoly
*
*/
@SuppressWarnings("serial")
public class ErroOrdenacaoException exte... |
/* 1: */ package com.kaldin.reports.action;
/* 2: */
/* 3: */ import com.kaldin.questionbank.topic.dao.impl.TopicImplementor;
/* 4: */ import com.kaldin.questionbank.topic.dto.TopicDTO;
/* 5: */ import com.kaldin.reports.dto.TopicQuestionCountDTO;
/* 6: */ import java.util.ArrayList;
/* 7: *... |
package com.yc.biz;
import java.util.List;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import com.yc.bean.GoodsType;
@Repository
public interface GoodsTypeBiz {
/**
* 查找所有的商品类型
* @return
*/
public List<GoodsType> findAllGoodsType();
... |
package mum.lesson5.problem1;
public class Square extends Rectangle{
public Square(String color, double height, double width) {
super(color, height, width);
}
@Override
public double calculateArea(){
return this.height*this.width;
}
@Override
public double calculatePerimeter(){
return 2*this.width+2*... |
/*
* Copyright (c) 2008-2011 by Jan Stender,
* Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.mrc.operations;
import java.io.IOException;
import org.xtreemfs.foundation.logging.Logging;
import org.xtreemfs.foundation.logging.Loggi... |
/*
* SUNSHINE TEAHOUSE PRIVATE LIMITED CONFIDENTIAL
* __________________
*
* [2015] - [2017] Sunshine Teahouse Private Limited
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Sunshine Teahouse Private Limited and its suppliers,
* if any. The inte... |
package com.kps.dsk;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class DSKControllerThread extends Thread {
private static final long SLEEP_DURATION = 16;
private final transient DSKControlle... |
package timeseries.tests;
import java.util.ArrayList;
import java.util.Arrays;
import junit.framework.TestCase;
import timeseries.functions.Patterns;
public class TestSignature extends TestCase {
public void testSignature1() throws Exception {
assertEquals("=>=<<=<>>=<=====>", Patterns.getSignature(new ArrayList... |
package boj2839;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int goal = sc.nextInt();
int maxNumFor3kg = goal / 3;
int numFor5kg = 0;
int min = 5000/3;
for(int i=0; i <= maxNumFor3kg; i++) {
if(( goal - 3*i ) ... |
/**
* Engine / Assets
*/
package edu.self.engine;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.Map;
/**
* Assets Class
*/
public class Assets {
/**
* Debug
*/
private static final Logger debug = Logger.getLogger(Assets.class.getName());
... |
package chapter04;
import java.util.Scanner;
public class Exercise04_17 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter a year: ");
int year = input.nextInt();
System.out
.println("Enter a month: (first three letters of a month name... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.