text stringlengths 10 2.72M |
|---|
package fun.jingo.jingo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
* @author idmin
*/
@Controller
public class IndexController {
@GetMapping("/")
public String hello(String name){
return "index";
}
}
|
import java.util.*;
import java.lang.Iterable;
import foop.*;
public class hw4{
public static void main(String[] args){
int round = 1;
//Generate Object
POOCasino casino = new POOCasino();
//System.out.println("-------------------!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-------------------");
CARD deck = new CARD(casino... |
package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class BubbleSortTest {
@Test
public void whenSortArrayWithTenElementsThenSortedArray() {
int[] testArray = {2, 4, 3, 1, 8, 9, 0, 5, 6, 7};
BubbleSort bubble = new BubbleSort();... |
package grpc.dsproject;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.util.Properties;
import javax.jmdns.JmDNS;
import javax.jmdns.ServiceInfo;
import grpc.dsproject.CalculateRequest.Operation;
import grpc.dsproject.Proje... |
/*======================================================================================================================
File Name : Project.java
Author : @author Raja Umer Saghir
Description : The Project Class to add data regarding Project belong to Tasks.
===================================================... |
package com.lenovohit.hcp.material.manager.print.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lenovohit.core.manager.GenericManager;... |
package com.example.demo.configuration;
import java.util.concurrent.Executor;
import java.util.concurrent.ForkJoinPool;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.AsyncConfigure... |
package ru.vyarus.dropwizard.guice.module.context.info;
import ru.vyarus.dropwizard.guice.module.context.ConfigScope;
/**
* Base interface for class configurations (extensions, installer).
*
* @author Vyacheslav Rusakov
* @since 04.07.2019
*/
public interface ClassItemInfo extends ItemInfo {
/**
* Shor... |
package com.taotao.service.impl;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import com.taotao.common.pojo.ImageResultPojo;
import com.taotao.common.ut... |
package com.example.springdemo.dto;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Getter
@Entity
@Table(name = "`MEMBER`", schema = "`MYBATISTEST`")
@NoArgsConstructor
public class MemberDTO {
@Id
@Column(name = "`MEMBER_SEQ`")
@GeneratedValue(... |
package org.epigeek.lguhc;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
public class MessageCreator {
private static String QuitJoin(Player player, boolean isjoin) {
String message = ChatColor.DARK_GRAY + "[";
message += isjoin ? ChatColor.GREEN: ChatColor.RED;
... |
package com.coupon.offer.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class Coupon implements Serializable {
private Integer couponId;
private String code;
private Date createDate;
private Date expireDate;
private Product product;
private List<User> users;
public I... |
package com.mpowa.android.powapos.apps.powatools;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import andr... |
package com.gsccs.sme.web.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.eao.gathering;
import javax.ejb.Local;
import org.inbio.ara.eao.BaseLocalEAO;
import org.inbio.ara.persistence.gathering.GatheringObservationCollection;
/**
*
* @author esmata
*/
@Local
public... |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2011 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... |
package com.seven.contract.manage.utils;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.Date;
/**
* @author seven
* java8 计算两个日期之间的天数
*/
public interface DateUtil {
/**
* 计算当前日期与{@code endDate}的间隔天数
*
* @par... |
package com.mycompany.javaintroonline.lesson1;
//4. Дано действительное число К вида ппп. ааа (три цифровых разряда в дробной и целой частях).
// Поменять местами дробную и целую части числа и вывести полученное значение числа.
public class Task4 {
public static double replaceThreeNumber(double k) {
Strin... |
// **********************************************************
// 1. 제 목:
// 2. 프로그램명: SubjComBean.java
// 3. 개 요:
// 4. 환 경: JDK 1.3
// 5. 버 젼: 0.1
// 6. 작 성: 이창훈 2005. 7. 16
// 7. 수 정:
// **********************************************************
package com.ziaan.common;
import ... |
package src;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Optional;
public class ConnectionManager {
private HttpURLConnection con;
private int timeout = 5000;
public boolean setupConnection... |
package dfs;
import java.util.*;
/**
* 水管工的游戏
*
* @author 丹丘生
*/
public class DFS_6 {
private static int[][] direction = {
{0, -1},
{1, 0},
{0, 1},
{-1, 0}
};
private static int[][] map;
private static int[][] book;
static int n;
static int... |
package io.ceph.rgw.client.core.async;
import io.ceph.rgw.client.ObjectClient;
import io.ceph.rgw.client.action.ActionExecutor;
import io.ceph.rgw.client.action.ActionFuture;
import io.ceph.rgw.client.action.ActionListener;
import io.ceph.rgw.client.converter.AsyncRequestConverter;
import io.ceph.rgw.client.converter.... |
package restaurantChain;
import java.util.List;
public class Chain {
public void addRestaurant(String name, int tables) throws InvalidName {
if(name==null || tables < 0 );
}
public Restaurant getRestaurant(String name) throws InvalidName{if(name==null);
return null;
}
public List<Restaurant> sort... |
package nh.automation.tools.service;
import org.springframework.stereotype.Service;
import nh.automation.tools.entity.User;
@Service
public interface UserService {
public User getUser(String userName);
}
|
package com.egame.app.tasks;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Properties;
impo... |
package ru.burykinsa.compilers;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.SneakyThrows;
import ru.burykinsa.compilers.model.Element;
import ru.burykinsa.compilers.model.ElementType;
import ru.burykinsa.compilers.model.Grammar;
import ru.burykinsa.compilers.model.Production;
import java.util.Ar... |
package com.tdh.urlInterceptor.zipkin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.sl... |
package br.com.gerenciadorcampeonatos.modelo;
public enum Modalidade {
FUTSAL,
CAMPO,
SUICO,
AREIA,
OUTROS
}
|
/* ***************************************************************************/
package com.abstracts.neo.enums;
/* ***************************************************************************/
/* ***************************************************************************/
import com.abstracts.neo.core.Browser;
import... |
package com.aipiao.bkpkold.acitivty.user;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import com.aipiao.bkpkold.R;
import com.aipiao.bkpkold.base.BaseActivity;
/*... |
import java.util.Scanner;
public class Uri1064{
public static void main(String args[]){
Scanner teclado = new Scanner(System.in);
float N, media=0;
int qtd=0;
for (int cont = 1; cont <=6; cont++){
N = teclado.nextFloat();
if (N > 0){
//System... |
package com.github.ytjojo.supernestedlayout.demo;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.design.widget.Snackbar;
import android.support.v4.view.GravityCompat;
import ... |
package com.lenovohit.ssm.payment.support.bankPay.model.request;
import com.lenovohit.ssm.payment.support.bankPay.config.Constants;
import com.lenovohit.ssm.payment.support.bankPay.model.response.BankRefundResponse;
/**
* 请求接口。
*
* @author zyus
*/
public class BankRefundRequest implements BankRequest<BankRefundR... |
package org.firstinspires.ftc.teamcode.opmodes.test;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import org.firstinspires.ftc.teamcode.opmodes.AlmondLinear;
@Autonomous(name="Motor Test",group ="test")
public class DriveTest extends AlmondLinear {
public void runOpMode() throws InterruptedExceptio... |
/*
* Created on Apr 13, 2004
* Created by Alon Rohter
* Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* 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 2
* of the L... |
package com.example.graduation.fragment;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... |
package wei.mark.standout.ui;
import java.util.Locale;
/**
* This class holds temporal touch and gesture information. Mainly used to hold
* temporary data for onTouchEvent(MotionEvent).
*
* @author Mark Wei <markwei@gmail.com>
*
*/
public class TouchInfo {
/**
* The state of the window.
*/
public int fi... |
package com.github.simy4.poc.model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.immutables.value.Value;
import javax.validation.Valid;
import java.util.List;
@Data
@Value.Immutable
@JsonDeserialize(as = ImmutableCreateEntity.class)
public interface CreateEntity {
String getName();... |
package com.minhvu.proandroid.sqlite.database.main.view.Adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.minhv... |
package cn.hellohao.pojo;
public class Config {
private Integer id;
private Integer sourcekey;
private Integer emails;
private String webname;
private String explain;
private String video;
private Integer backtype;
private String links;
private String notice;
private String baid... |
package factorypattern.noodle.abstractfactory.ingredient;
/**
* The common flour.
*
* @author Thomson Tang
*/
public class CommonFlour extends Flour {
}
|
package lxy.liying.circletodo.operation;
import android.app.ProgressDialog;
import android.support.v7.app.AlertDialog;
import android.view.Window;
import java.io.File;
import cn.bmob.v3.datatype.BmobFile;
import cn.bmob.v3.exception.BmobException;
import cn.bmob.v3.listener.DownloadFileListener;
import lxy.liying.ci... |
package com.geetuargo;
import java.util.Arrays;
import java.util.List;
import java.util.function.*;
public class consumer {
public static void main(String[] args) {
//Consumer<Integer> consumer = t -> System.out.println("Printing"+t);
//consumer.accept(6);
List<Integer> list1 = Arrays.asList(1,2,3... |
/*
* 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 uniza.diss.one.app;
import static com.sun.corba.se.impl.util.Utility.printStackTrace;
import org.jfree.chart.ChartFactory;
imp... |
interface SelectedStateListener {
void selectedStateChanged(Feature sender, FeatureState newState);
}
|
package com.gmail.filoghost.holographicdisplays.nms.v1_7_R4;
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftEntity;
import com.gmail.filoghost.holographicdisplays.nms.interfaces.entity.NMSWitherSkull;
import com.gmail.filoghost.holographicdisplays.object.line.CraftHologramLine;
import com.gmail.filoghost.hol... |
package com.zzh.config;
import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author zzh
* @version 1.0
* @date 2017/12/11 17:05
*/
@Configuration
public class FeignCustomConfig {
@Bean
public fei... |
package cn.com.hzzc.industrial.pro.entity;
/**
* @todo 首页gridview元素
* @author pang
*
*/
public class HomeItem {
public static String add_act = "0";
public static String all_act = "1";
public static String add_topic = "2";
public static String all_topic = "3";
// 类型标记
private String flag;
// 展示内容
private S... |
/**
* 采用charAt来一位一位的取,比较char来确定是否在0-9的数字,排除掉字符串,最后进行乘10进行组装。
* 注意边界和正负号的问题。
* 参考:https://www.programcreek.com/2012/12/leetcode-string-to-integer-atoi/
*
* 英文原题
* Implement atoi which converts a string to an integer.
*
* The function first discards as many whitespace characters as necessary until the first non-w... |
package com.example.ksundararajan.cs3235;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.wid... |
package org.bellatrix.services;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.Holder;
import org.bellatrix.data.Header;
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBin... |
package com.notthemostcommon.creditcardpayoff.User.dto;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
@Getter
@Setter
public class UserCreationDTO {
@NotEmpty
private String firstName;
@NotEmpty
private String lastName;
... |
package example.hello;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
public class Client {
private Client() {}
public static void main(String[] args) {
long i;
int numCliente = Integer.parseInt(args[1]);
... |
package io.zentity.devtools;
import org.testcontainers.elasticsearch.ElasticsearchContainer;
import org.testcontainers.utility.DockerImageName;
import org.testcontainers.utility.MountableFile;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.ut... |
package fi.hh.swd22.HHkysely.domain;
import javax.persistence.Entity;
@Entity
public class TextQuestion extends Question {
public TextQuestion() {
super();
this.setType("text");
}
public TextQuestion(String question, Survey survey) {
super("text", question, survey);
this.... |
package com.everis.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.everis.viewmodels.TotalProjetosViewModel;
public class TotalProjetosViewModelMapper implements RowMapper<TotalProjetosViewModel> {
@Override
public TotalProjetosViewModel... |
package StellarisDK.FileClasses.Helper;
public class StellarisColor {
private String type;
private double red;
private double green;
private double blue;
private double alpha = -1;
public StellarisColor(){
type = "hsv";
red = 0;
green = 0;
blue = 0;
alp... |
/*
* @(#) DateSimpleService.java 2021. 05. 14.
*/
package service;
import com.ddoriya.was.server.servlet.HttpRequest;
import com.ddoriya.was.server.servlet.HttpResponse;
import com.ddoriya.was.server.servlet.SimpleServlet;
import java.io.Writer;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormat... |
package com.skooltchdev.multiplechoicequiz2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class AmericasActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R... |
package tr.com.allianz.msdemo.dashboard.model;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
@Getter
@Setter
public class Car {
private long id;
private String brandAndModel;
private int year;
private long distance;
private BigDecimal pricePerDay;
/**
* chassis number
*/
p... |
import java.sql.*;
public class ConexaoMySQL implements I_Conexao{
// Parâmetros para se Estabelecer a Conexão com o Banco de Dados
private static Connection conexao;
private static final String DataBaseAdrress = "den1.mysql6.gear.host";
private static final String DataBaseName = "gerenciadoriot... |
package com.LambdaExpressions;
@FunctionalInterface
public interface OrderPredicate
{
boolean test(Order t);
} |
package com.slkk.rxjava_demo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.slkk.rxjava_demo.bean.MovieEntity;
import butterknife.Bind;... |
package towerofhanoi;
import java.util.Observable;
/**
* Solves the HanoiTower using a variety of methods.
* @author Daniel Xu <xudy>
* @version 2015.10.19
*
*/
public class HanoiSolver extends Observable {
private Tower left;
private Tower middle;
private Tower right;
private int... |
package biz.dreamaker.workreport.account.dto;
import biz.dreamaker.workreport.account.domain.Account;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.springframework.security.crypto.password.PasswordEncoder;
@Getter
@NoArgsConstructor
@AllArgs... |
package com.udacity.gradle.builditbigger;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.support.v4.app.LoaderManager;
import android.support.v4.content... |
package jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Hw2 {
private String username="mjskks94@naver.com";
private String password="Myh941021";
private static Connection dbTest;
Hw2(){
co... |
package com.wjfit.review;
//ЪѓБъ
public class Mouse implements IUSB{
public void swapData() {
System.out.println("ЪѓБъдквЦЖЏ");
}
}
|
/**
* Created with IntelliJ IDEA.
* User: Administrator
* Date: 12/03/13
* Time: 14:53
* To change this template use File | Settings | File Templates.
*/
public class PersonTest {
private static String[] testNames = {"Trulli", "Baumgartner", "Montoya",
"Sato", "Coulthard", "Barrichello"... |
package com.bnrc.busapp;
import org.json.JSONObject;
import com.ab.global.AbConstant;
import com.bnrc.ui.rjz.MainActivity;
import com.bnrc.util.AppResourcesUtils;
import com.bnrc.util.LocationUtil;
import com.bnrc.util.SharePrefrenceUtil;
import com.umeng.analytics.MobclickAgent;
import com.umeng.analytics.onlineconf... |
package kr.co.shop.batch.cmm.model.master;
import kr.co.shop.batch.cmm.model.master.base.BaseCmPushSendHistory;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Data
public class CmPushSendHistory extends BaseCmPushSendHistory {
}
|
package service.impl;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import model.Author;
import model.Comic;
import model.vo.AuthorComic... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.dto.inventory;
import org.inbio.ara.dto.BaseDTOFactory;
import org.inbio.ara.persistence.taxonomy.TaxonomicalRange;
/**
*
* @author asanabria
*/
public class TaxonomicalRangeDTOFactory extends... |
import java.util.Scanner;
public class M5_8TypeCasting {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
char a = read.next().charAt(0);
read.close();
int num = (int)a;
System.out.println("The ASCII code is: " + num);
... |
/*
* 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 Modelo;
import java.text.Collator;
import lombok.Data;
/**
*
* @author azm
*/
@Data
public class PortfolioModelo implement... |
package egovframework.usr.subj.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springfra... |
package org.obiz.sdtd.tool.rgwmap;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
public class LegendPanel extends Panel {
private Map<String, Path> icons;
private MapMagnifierPanel loupe;
Map<String,... |
package com.prj.controller;
import java.io.File;
import java.io.IOException;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.io.FileUtils;
import org.springframework.stereotype.Controller;
import o... |
package com.logzc.webzic.bean;
import com.logzc.webzic.bean.factory.BeanFactory;
import com.logzc.webzic.bean.factory.WidgetBeanFactory;
import com.logzc.webzic.bean.factory.anno.AnnotationBeanFactory;
import com.logzc.webzic.bean.factory.anno.ComponentAnnotationBeanFactory;
import com.logzc.webzic.bean.factory.anno.C... |
package cn.edu.wust.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ResponseCode {
SUCCESS(200,"请求成功"),
BAD_REQUEST(400,"参数不合法"),
RESOURCE_NOT_FOUND(404,"资源未找到"),
INTERNAL_SERVER_ERROR(500... |
/*
* Copyright 2003-2006 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
package Tests;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Point;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.testng.Assert;
import org.testng.... |
package ac.za.cput.adp3.xyzcongolmerate.factory.user;
import ac.za.cput.adp3.xyzcongolmerate.domain.user.UserRole;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class UserRoleFactoryTest {
@Test
public void buildUserRole() {
UserRole userRole = UserRoleFac... |
package com.itheima.day_06.demo_06;
public class Demo_06 {
public static void main(String[] args) {
GenericImpl<String> g1 = new GenericImpl<>();
g1.show("aaa");
GenericImpl<Integer> g2 = new GenericImpl<>();
g2.show(11);
GenericImpl<Double> g3 = new GenericImpl<>();
g3.show(12.23);
}
}
|
import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
int n,m,i,p,flag=0;
int a[]=new int[20];
Scanner s=new Scanner(System.in);
n=s.nextInt();
m=s.nextInt();
for(i=0;i<n;i++)
{
a[i... |
/**
*
*/
/**
* <!-- begin-UML-doc -->
* <!-- end-UML-doc -->
* @author bcouturi
* @generated "UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)"
*/
public class uploadToLockerUI {
/**
* <!-- begin-UML-doc -->
* <!-- end-UML-doc -->
* @generated "UML to Java (com.ibm.xtools.tran... |
package com.skilldistillery.jets;
public interface CargoCarrier {
// F i e l d s
// M e t h o d s
void loadCargo();
}
|
/* Ara - capture species and specimen data
*
* 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 L... |
package haibang.demo.jpa;
import java.sql.Date;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class Audit
{
@Column(name="CRT_DT")
private Timestamp createdDate;
@Column(name="CRT_USR", length=10)
private String createdUser;
... |
package com.ubuntu4u.ubuntu4u.ubuntu4u_client.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import com.ubuntu4u... |
package com.alura.appium.PageObjects;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import javafx.scene.input.InputMethodTextRun;
public class CadastroPageObject {
private AppiumDriver driver;
private MobileElement campoNome;
private MobileElement campoSenha;
... |
package tjava.base;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import static tjava.base.TailCall.ret;
import static tjava.base.TailCall.sus;
import static tjava.base.Case.*;
import static tjava.base.Result.*;
public abstract class List<A> {
public abstract A hea... |
/*
*Joaquín Bello Jiménez
*/
public class Aleatoriedad {
public static void main (String args[]) {
int[] numero = new int[50]; //Array que se generará de forma aleatoria
int aux = 0; //Variable uxiliar
int nuevo = 0; //Cuenta los números que no han aparecido
int contA = 0; //Contador del ... |
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import java.util.Arrays;
public class Test {
private static int Fib(int i) {
if(i==1|i==2){
return 1;
}else {
return Fib(i-1)+Fib(i-2);
}
}
public static void main(String[] args) {
Syste... |
package com.airelogic.artistinfo.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
public class MBArtist {
@JsonProperty("id")
private String id;
@JsonProperty("name")
private String name;
@JsonProperty("disambiguation")
private String disambiguation;
... |
package com.myth.springboot.entity;
public class Result {
private String te_id;
private String batch_id;
private String batch_name;
private String class_id;
private String class_name;
private String mark;
private String is_end;
private String b_type;
public String getTe_id() {
... |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Subsets {
public List<List<Integer>> subsets(int[] nums) {
List<Integer> comb = new ArrayList<>();
List<List<Integer>> result = new ArrayList<>();
deepSearch(nums, 0, comb, result);
return... |
package patterns.strategy.ducks;
/**
* Implementation of FlyBehavior for real patterns.strategy.ducks
*/
public class FlyWithWings implements FlyBehavior {
@Override
public void fly() {
System.out.println("I'm flying!!");
}
}
|
package net.maizegenetics.analysis.gbs.pana;
import net.maizegenetics.plugindef.AbstractPlugin;
import net.maizegenetics.plugindef.DataSet;
import net.maizegenetics.util.ArgsEngine;
import net.maizegenetics.util.DirectoryCrawler;
import net.maizegenetics.util.MultiMemberGZIPInputStream;
import org.apache.log4j.Logger;... |
package org.reactome.web.nursa.client.details.tabs.dataset;
import java.util.Arrays;
import java.util.List;
import java.util.function.BiPredicate;
public class ConfigFilter {
public static enum Conjunction {
AND,
OR
}
private Double cutoff;
private BiPredicate<Double, Double>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.