text stringlengths 10 2.72M |
|---|
package data;
import java.awt.Point;
public class ThreePointLine
{
private Point leftP;
private Point midP;
private Point rightP;
public ThreePointLine() {}
public ThreePointLine(Point leftP, Point rightP)
{
this.leftP = leftP;
this.rightP = rightP;
calMidP();
}
ThreePointLine(int x1, int y1, in... |
package com.myou.appclient.util;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.util.Log;
import com.google.gson.stream.JsonReader;
/**
* @description: 解析json<br>
* @author: j... |
package com.alibaba.druid.bvt.sql.eval;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.druid.sql.visitor.SQLEvalVisitorUtils;
import com.alibaba.druid.util.JdbcConstants;
public class EvalMethodRightTest extends TestCase {
public void test_ascii() throws Exception {
Assert.a... |
/*
* Copyright 2008-2018 shopxx.net. All rights reserved.
* Support: localhost
* License: localhost/license
* FileId: MsLp3bW8EwSmOyfaLczNUp+xJ/Kg5sBa
*/
package net.bdsc.service;
/**
* Service - 配置
*
* @author 好源++ Team
* @version 6.1
*/
public interface ConfigService {
/**
* 初始化
*/
void init();
} |
/*
* Copyright (C) 2012 www.amsoft.cn
*
* 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... |
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
public class Player {
private int kolona;
private int red;
public Player(int kolona, int red) {
this.kolona = kolona;
this.red = red;
}
public int getKolona() {
return ... |
package com.jtexplorer.entity.enums;
/**
* RequestEnum class
*
* @author 苏友朋
* @date 2019/06/15 17:28
*/
public enum RequestEnum {
/**
* 用于接口返回错误标识
*/
REQUEST_ERROR_NO_LOGIN("用户未登录或者登录信息已失效。", "10001"),
REQUEST_ERROR_LOGIN_INFO("登录信息有误。", "100011"),
REQUEST_ERROR_LOGIN_ACCOUNT_EMPTY("登录... |
package com.lzm.KnittingHelp.db.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import com.lzm.KnittingHelp.db.entity.StepEntity;
im... |
package entity;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class Column {
/**
* 所有单元格
*/
private List<Cell> cells;
/**
* 列名
*/
private String colName;
/**
* 名称与行索引
*/
private Map<String, Integer> rowNamesMap = new Linked... |
package matthbo.mods.darkworld.biome;
import java.util.Random;
import matthbo.mods.darkworld.init.ModBlocks;
import matthbo.mods.darkworld.world.DarkWorldGenerator;
import net.minecraft.init.Blocks;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenDe... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.ApplicationName;
import com.yahoo.config.provision.InstanceName;
import com... |
package com.sample1.dao.impl;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.sample1.dao.SampleRepos... |
package rpcrobin_.net_common;
/**
* Created by robin on 2017/8/9.
*/
public class NetConstant {
public static final int PORT=8088;
}
|
package com.ssi.cinema.backend.data.entity;
import java.util.Date;
import java.util.Objects;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.validation.constraints.NotNull;
@Entity
public class RoomStatus extends AbstractEntity {
@NotNull
@OneToOne
private Room room;
@NotNull... |
package com.cinema.sys.model.base;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name="sys_area")
public class TArea {
@Id
@Column(name="area_id")
private String id;
private Integer nid;
private String parentId;
... |
package model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
public class Appointment {
// A common method to connect to the DB
private Connection connect() {
Connection con = null;
try {
Class.forName("co... |
import java.net.*;
import java.io.*;
/*
Server
socket()
bind()
listen()
accept()
read()
write()
Client
socket()
connect()
write()
read()
*/
/*
Socket()
Creates an unconnected socket, with the system-default type of SocketImpl.
Socket(InetAddress address, int port)
Creates a stream socket and connects it to the s... |
package com.accolite.au.mappers;
import com.accolite.au.dto.BusinessUnitDTO;
import com.accolite.au.models.BusinessUnit;
import org.mapstruct.Mapper;
import java.util.List;
@Mapper(componentModel = "spring")
public interface BusinessUnitMapper {
BusinessUnit toBusinessUnit(BusinessUnitDTO businessUnitDTO);
... |
/*
* File: TempSensor.java
* Author: David Green DGreen@uab.edu
* Assignment: Fall2018P1toP3 - EE333 Fall 2018
* Vers: 1.0.1 10/11/2018 alf - added default constructor
* Vers: 1.0.0 08/18/2018 dgg - initial coding
*/
/**
* TempSensors are unique and consist of a unique ID assigned at creation
* (starting at ... |
package com.zym.blog.dto;
import com.zym.blog.model.Admin;
import com.zym.blog.model.Right;
import java.io.Serializable;
import java.util.Date;
/**
* 登录用户菜单权限信息dto
* @author Gavin
* @date 2016-10-18
*/
public class AdminMenuRightDto implements Serializable {
private Integer rightId;
private Integer rig... |
package com.redhat.service.bridge.manager.models;
import java.time.ZonedDateTime;
import java.util.Objects;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.... |
package IO;
/**
* Created by Netai Benaim
* for G-Lab, Hebrew University of Jerusalem
* contact at: netai.benaim@mail.huji.ac.il
* version:
* <p>
* this is Protocol in IO
* created on 9/12/2016
*/
public enum Protocol {
DELIMITER ("#"), REWARD ("REW");
private final String str;
Protocol(String st... |
package com.example.demo.security;
import com.example.demo.model.AppUser;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService... |
package model.dto.shop;
public class couponDTO {
String cCode;
public String getcCode() {
return cCode;
}
public void setcCode(String cCode) {
this.cCode = cCode;
}
public couponDTO(String cCode) {
super();
this.cCode = cCode;
}
public couponDTO() {}
}
|
package ioreadstring.transaction;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
public class TransactionManager {
List<BankAccount> accounts = new ArrayList<>();
public void uploadListFromFile(String path) {
try ... |
package com.trump.auction.back.configue.datasource;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.beans.factory.annotation.Value;
im... |
package com.zantong.mobilecttx.interf;
import android.view.View;
public interface IBaseFragment {
public void initView(View view);
public void initData();
}
|
package cn.run;
import java.io.FileNotFoundException;
import java.io.IOException;
import cn.domain.Config;
import cn.net.Service;
public class Run {
/**
* @param args
*/
public static void main(String[] args) {
Config scon = new Config("Service.properties");
System.out.println(scon.getInt("ServerPort")... |
package template;
import java.sql.ResultSet;
import java.sql.SQLException;
/*
* A class to store simple information about a template statement.
*/
public class Template {
int templateID;
String statement;
public Template(ResultSet rs){
try {
templateID = rs.getInt("t... |
package it.univr.domain;
public interface AbstractValue {
public AbstractValue leastUpperBound(AbstractValue other);
public AbstractValue widening(AbstractValue other);
public String toString();
public AbstractValue greatestLowerBound(AbstractValue value);
public AbstractValue narrowing(AbstractValue value);
... |
package Replica3.resource;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Paths;
import java.sql.Timestamp;
import java.util.Date;
public class Log {
private File file;
private BufferedWriter write... |
package com.jstf.selenium;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Point;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import... |
/*
* Created on 2005-2-5
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.aof.component.helpdesk;
import java.io.Serializable;
/**
* @author Daniel Liao
*
* To change the template for this generated type comment go t... |
/*
* 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 Fruit;
/**
*
* @author Go Eun Sung
*/
public abstract class Fruit {
private int price, weight;
//constructor
... |
import java.util.ArrayList;
public class ConvertBSTtoGreaterTree {
/**
* Given a Binary Search Tree (BST), convert it to a Greater Tree such that
* every key of the original BST is changed to the original key plus sum of
* all keys greater than the original key in BST.
* Input: The root of a Binary Search T... |
package dev.demo.spring5webfluxrest.coverters;
import dev.demo.spring5webfluxrest.commands.CategoryCommand;
import dev.demo.spring5webfluxrest.domain.Category;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class CategoryCommandToCategory... |
package com.assignment.nalin.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import jav... |
/*
* Name: Luis Gustavo Grubert Valensuela Z#:23351882 lvalensuela2015@fau.edu
* Course: JavaProgramming
* Professor: Dr. Mehrdad Nojoumian
* Due Date:04/12/2018 Due Time: 11:30PM
* Assignment Number: lab 08
* Last Changed: 03/29/2018
*
* Description:
* Program to show the creation of an interface
... |
package com.example.proyectogrupal;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widg... |
/* 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 com.bnrc.util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
im... |
/*
* 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 pelatihan.java.project.uts.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServle... |
package com.funnums.funnums.animation;
/**
* Created by Rabia on 24/03/19.
*/
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.Log;
public class Animation {
private Frame[] frames;
private double[] frameEndTimes... |
/* ComponentsCtrl.java
Purpose:
Description:
History:
Tue Aug 9 19:41:22 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
packa... |
package controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.con... |
package egovframework.adm.cfg.ccm.service;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
public interface CourseClassificationService {
public List selectCourseClassificationList(Map<String, Object> commandMap) throws Exception;
public int updateCourseClassification(... |
public class test {
public static void main(String[] args) {
Cerchio c = new Cerchio(2);
System.out.println(c.toString());
}
}
|
import java.util.Scanner;
public class Game {
int welcome() throws InterruptedException {
System.out.println("Welcome to BlackJack!\n");
Thread.sleep(1000);
Scanner scanner = new Scanner(System.in);
int inputNum;
while (true) {
try {
System.out.... |
package com.github.sd;
import java.io.*;
import java.security.*;
import java.security.interfaces.*;
import java.security.spec.*;
import java.util.*;
import com.nimbusds.jose.*;
import com.nimbusds.jose.crypto.*;
import com.nimbusds.jwt.*;
import net.iharder.Base64;
/**
* User: Daniil Sosonkin
* Date: 4/4/2018 3:01 ... |
/*
* 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 library.system.dao;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java... |
package com.restcode.restcode.domain.model;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@Entity
@Table(name="categories")
public class Category {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@NotNull
private String categoryName;
//Falt... |
/**
*
*/
package com.neu.html_factory;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.neu.html.B;
import com.neu.html.Body;
import com.neu.html.Div;
import com.neu.html.HTML;
import com.neu.html.Head;
import com.neu.html.Node;
import com.neu.html.Titl... |
package com.dexter.myhome.menu;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatButton;... |
/*
* 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.csci360.alarmclock;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.ti... |
package liu.test.Mockito;
/**
* 账户
* @author LIU
*
*/
public class Account {
private RailwayTicket railwayTicket; //火车票
public RailwayTicket getRailwayTicket() {
return railwayTicket;
}
public void setRailwayTicket(RailwayTicket railwayTicket) {
this.railwayTicket =... |
package com.baitap;
import java.util.Scanner;
public class Bai1 {
public static void main(String[] args) {
String ten;
double diem;
Scanner sc = new Scanner(System.in);
System.out.println("Nhap ten :");
ten = sc.nextLine();
System.out.println("Nhap diem :");
diem = sc.nextDouble();
// Xuat ... |
package com.HyperStandard.llr.app;
import android.app.Application;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
/**
* Created by mitch on 7/7/14.
*/
public class LLerApplication extends Application
{
@Override
public void onCreate()
{
super.onCreate();
CalligraphyConfig.initDefault( "fonts/Roboto... |
package io.github.yizhiru.thulac4j;
import io.github.yizhiru.thulac4j.model.SegItem;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
/**
* SegOnly 分词,结果没有词性.
*/
public final class SegOnly extends BaseSegmenter<String> {
public SegOnly(String weightPath, String featurePat... |
/*
* 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 DataOperations;
import DataObjects.Candidate_Profile_Object;
import java.lang.reflect.Array;
import java.sql.Connection;
impor... |
package com.hzero.order.app.service.impl;
import com.hzero.order.api.controller.dto.OrderReturnDTO;
import com.hzero.order.app.service.OrderService;
import com.hzero.order.app.service.SoLineService;
import com.hzero.order.domain.entity.Conditions;
import com.hzero.order.domain.entity.Order;
import com.hzero.order.doma... |
/*
* 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... |
package pl.dkiszka.bank.events;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import pl.dkiszka.bank.models.User;
/**
* @author Dominik Kiszka {dominikk19}
* @project bank-application
* @date 21.04.2021
*/
@AllArgsConstructor
@Builder
@Getter
public class UserRegisteredEvent {
... |
package com.gp.extract.twitter.util;
import java.io.*;
import java.nio.charset.Charset;
import java.util.ArrayList;
public class IOUtil {
public static interface Logger{
String getLogId();
}
public static interface Loadable{
void load() throws IOException;
void save() throws IOExc... |
package com.consumercredits.pagesdod;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class TriggerViewSearchPage {
public static WebElement element;
public static WebElement trigger_search(WebDriver driver, String trigger_name) {
... |
package com.itheima.service.impl;
import com.itheima.dao.RoleDao;
import com.itheima.dao.UserDao;
import com.itheima.domain.Role;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import... |
package com.edasaki.rpg.help;
import java.util.ArrayList;
import java.util.Collections;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import com.edasaki.core.menus.MenuItem;
public class HelpCommandsSingleton {
protected static final Object[][] COMMANDS = {
... |
package com.school.book.controller;
import com.school.book.entity.UserInfo;
import com.school.book.service.UserInfoService;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.... |
package seleniumdemo;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class GoogleExample {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = SeleniumU... |
import java.io.*;
import java.util.Scanner;
class InvalidDirectory extends Exception{
public InvalidDirectory(){
super("InvalidDirectory");
}
public InvalidDirectory(String s){
super(s);
}
}
class HW01_1 {
public static void main(String[] args) {
try {
Scanner in=new Scanner(System.in);
... |
package chemistry;
/**
* a class that checks the chemical syntax of an input string
*
* @author ted
*
*/
public class ChemicalSyntaxChecker {
/**
* enum of the possible characters in a chemical molecule
* used to record what character was in the string
* @author ted
*
*/
public enum ... |
package alien4cloud.deployment.matching.services.location;
import java.util.Set;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.ArrayUtils;
import alien4cloud.component.CSARRepositorySearchService;
import alien4cloud.model.components.CSAR... |
public class ToBinary {
public static void toBinary(long decimal, String result) {
if (decimal == 0) {
System.out.println("\nResult binary -> ");
for (int i = result.length() - 1; i >= 0; i--) {
System.out.print(result.charAt(i));
}
System.out... |
package com.training.domains;
import java.util.*;
public class University {
private String universityName;
private String city;
private List<Department> depts;
public void getDeptDetails(long deptId){
int i=0;
for(i=0;i<depts.size();i++){
if(depts.get(i).getDeptId()==deptId){
System.out.... |
package ch.alika.cukes.shopping.domain;
import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
class MoneyTest {
private static final Money $0_00 = new Money(0, 0);
private static final Money $8_40 = new Money(8, 40);
private s... |
import javax.naming.ldap.Control;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
* Author: Natalie Dorshimer
* Last Modified: April 8, 2020
*/
/**
* This frame provides the user interface for interacting with the paint program
* It consists of a control panel, a painting panel, and a mouse... |
package pl.edu.agh.to2.commands;
public class NopCommand implements Command {
@Override
public void execute() {
}
@Override
public void revert() {
}
@Override
public String toString() {
return "\\" + System.lineSeparator();
}
}
|
package com.yj.zzgjj.gjj.view.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
impo... |
package com.tdr.registrationv3.http;
import rx.Subscription;
/**
* Created by parry
*/
public interface LifeSubscription {
void bindSubscription(Subscription subscription);
}
|
package com.tessoft.nearhere.activities;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.text.Tex... |
/*
* 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 decription;
/**
*
* @author eliot
*/
import java.io.*;
import java.security.*;
import java.security.spec.*;
import jav... |
package test.pageObject.scenario;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import test.components.JSExecutorService;
import test.pageObject.AnswerContainerPageObject;
impo... |
import java.util.Vector;
public class RunnerVertex
{
public static void main(String[] args)
{
/*Vector<Vertex> vec = new Vector<Vertex>();
String[] strArray = new String[]{"LA", "NYC", "BASKING RIDGE", "MORRISTOWN"};
for(String s : strArray)
{
Vertex<String> v = new Vertex<String>(s);
vec.add(v);
... |
import java.util.ArrayList;
import java.util.List;
public class ObserverExample_03 {
public static void main(String[] args) {
JavaDeveloperJobSite jobSite = new JavaDeveloperJobSite();
jobSite.addVacancy("First Java Position");
jobSite.addVacancy("Second Java Position");
Observer ... |
package com.github.hualuomoli.core.spring.prop;
import java.util.Properties;
/**
* 配置文件预处理,如果配置文件需要对内容处理,需要实现该接口
* @see 如数据库密码加密,需要指定处理类的class全路径property.pre.class=....
* @author hualuomoli
*
*/
public interface PropertyPreDealWith {
// 预处理,将处理的key放回原props
void deal(Properties props);
}
|
/*
* 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 vista;
import controlador.Controlador;
import controlador.controllerCategoria;
import controlador.controllerCompra;
import cont... |
package com.tutorial.minirest.controller;
import com.tutorial.minirest.DTOTicket;
import org.springframework.http.HttpStatus;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/api")
public... |
/**
* 21-03-03
* 13_FibonacciNumbers_FibFrog
*/
package codility.lesson;
import java.util.*;
class FibFrog {
// Other Solution
// 참고) https://jackjeong.tistory.com/47
final static Map<Integer, Integer> fiboMap=new HashMap<>();
public int solution(int[] A) {
int N=A.length;
for(in... |
package com.t1808a.entity;
import com.t1808a.model.StudentModel;
import java.util.ArrayList;
public class Student extends Person {
private String rollNumber;
private ArrayList<String> errors;
public Student(){
}
public Student(String rollNumber , String name, String dob, String address, Strin... |
package com.just4fun.dao;
/**
* Created by sdt14096 on 2017/4/13.
*/
public interface UserDao {
void add(String user);
}
|
import java.util.Scanner;
public class main{
public static void main(String[]args){
Scanner l=new Scanner(System.in);
System.out.print("Hora :");
int a=l.nextInt();
int b=l.nextInt();
int c=l.nextInt();
if(a>=0&&a<24){
if(b>=0&&b<60){
if(c>=0&&c<60){
System.out.println("La hora: "+a+":"+b+":"+c+" Es correcta")... |
package com.sims.validator;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import com.sims.model.Category;
@Component
public class MedicineValidator implem... |
package com.example.sinoyd.frameapplication.KotlinFrame.Code.db_Weekly_inspection;
import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;
/**
* 作者: scj
* 创建时间: 2018/6/12
* 版权: 江苏远大信息股份有限公司
* 描述: com.example.sinoyd.frameapplication.KotlinFrame.Code.db_Weekly_inspection
*/
@Table(name = "Co... |
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
@RunWith(Parameterized.class)
public class OneOreFourParameters {
@Parameterized.Parameters
public stat... |
package br.com.filemanager.ejb.service.impl;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import br.com.filemanager.ejb.dao.ConteudoDAO;
import br.com.filemanager.ejb.model.Conteudo;
import br.com.filemanager.ejb.service.ConteudoService;
@Stateless
public class ConteudoServiceImpl implements ConteudoService {
... |
/*
* Copyright 2019 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package lka.wine.jdbc;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import lka.wine.dao.PurchaseDetail;
import lka.wine.dao.TastingNote;
import lka.wine.dao.WineDetails;
public class WineDetailsQuery implements Restable<WineDetails> {
@Override
public WineDetai... |
package com.vuze.tests.swt.tableview;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;
import org.gudy.azureus2.core3.util.Debug;
import org.gudy.azureus2.plugins.ui.tables.*;
import org.gudy.azureus2.ui.swt.shells.GCStringPrinter;
import org.gudy.azureus2.ui.swt.views.table.TableCellSWT;
import org.gu... |
package statemachine.parsing.builders;
import statemachine.models.State;
import statemachine.models.Transition;
import statemachine.parsing.Definition;
import statemachine.utils.exceptions.StateMachineException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.... |
package com.example.student.cmpe137_android_lab3v2;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.google.android.youtube.player.YouTubeBaseActivity;
import com.google.android.youtube.player.YouTubeInitializationResult;
import com.google.android.youtube.player.YouTubePlay... |
package com.gsccs.sme.plat.svg.service;
import java.util.List;
import com.alibaba.fastjson.JSONArray;
import com.gsccs.sme.plat.svg.model.RegTypeT;
public interface RegtypeService {
public void insert(RegTypeT regtype);
public void update(RegTypeT regtype);
public void delChannel(Long id);
public RegTypeT fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.