text stringlengths 10 2.72M |
|---|
package presentation.customer.view;
import javafx.beans.property.*;
/**
* Created by 啊 on 2016/12/7.
*/
public class ViewOrder {
private StringProperty orderID;
private StringProperty hotelName;
private StringProperty roomType;
private StringProperty roomNum;
private StringProperty peopleNum;
... |
package ua.training.model.dao.service.implementation;
import ua.training.model.dao.DayRationDao;
import ua.training.model.dao.service.DayRationService;
import ua.training.model.entity.DayRation;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
public class DayRationServiceImp implements ... |
package courierserviceapp.domain;
import java.util.Objects;
public class DeliveryStaff {
private int id;
private String hpNo;
private boolean available;
public DeliveryStaff(int id, String hpNo, boolean available){
this.id = id;
this.hpNo = hpNo;
this.available = available;
}
public int getId(){
ret... |
package utilities;
import drivetrain.DriveIO;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class RobotDashboard { //class to put connect to smart dashboard
private static RobotDashboard dashboard;
public static void init() {
}
public static void update() {
//update gyro values
S... |
package rdfsynopsis.eval;
public abstract class AbstractCompositeEvaluator extends AbstractEvaluator {
public AbstractCompositeEvaluator(String title, boolean timeStamp) {
super(title, timeStamp);
}
}
|
package com.apress.spring;
import com.apress.spring.service.JournalService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.authn.remote;
/**
* Represents a remote group membership
* @author K. Benedyczak
*/
public class RemoteGroupMembership extends RemoteInformationBase
{
publ... |
package swing;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
public class Test_Swing_JMenu extends JFrame {
public Test_Swing_JMenu() {
super("Teste JMenu");
JMenuBar barraMenu = new JMenuBar();
JMenu menuConta = new JMenu("Conta");
JM... |
package com.jrd.timedmailsender;
import org.junit.Before;
import org.junit.Test;
import javax.mail.MessagingException;
import java.io.IOException;
/**
* Created by jrd on 2016-04-28.
*/
public class MailSenderTest {
private Configuration configuration;
private MailSender mailSender;
private FileMana... |
package nom.hhx.cache.factory;
import nom.hhx.cache.factory.CacheBuilder.Settings;
import org.junit.Before;
import org.junit.Test;
public class CacheBuilderTest
{
private CacheBuilder builder;
@Before
public void setUp()
{
builder = new CacheBuilder();
}
@Test
public void Tes... |
public class BarException extends Exception
{
public BarException(String message)
{
super(message);
}
}
|
package swea_d4;
import java.util.Arrays;
import java.util.Scanner;
public class Solution_9282_초콜릿과건포도 {
static int result;
static int n, m;
static int[][] map;
static int[][][][] dp;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int TC = sc.nextInt();
for (int t = 1; t <= ... |
package com.esum.ebms.v2.transaction.log;
import com.esum.framework.common.util.DateUtil;
import com.esum.framework.common.util.MessageIDGenerator;
public class ErrorLog {
private String mErrorLogId = null;
private String mTxId = null;
private String mErrorCodeId = null;
private String mLogTime = DateUtil.getCYMD... |
package domain;
import java.io.Serializable;
/**
* Created by rodrique on 4/19/2018.
*/
public abstract class Menu
{
String menuID;
public Menu() {
}
public String getMenuID() {
return menuID;
}
public void setMenuID(String menuID) {
this.menuID = m... |
package com.xdc;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import com.UtilClass.myDataOutputStream;
import com.hbaseClients.HBaseClient;
public class SplitRasFile { ... |
package mc.kurunegala.bop.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import mc.kurunegala.bop.dao.AssessmentMapper;
import mc.kurunegala.bop.model.Assessment;
import mc.kurunegala.bop.model.AssessmentSearcher;
@Serv... |
package cn.shizihuihui.ssweddingserver.service;
import cn.shizihuihui.ssweddingserver.entity.Guest;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author song
* @since 2019-10-24
*/
public interface IGuestService extends IService<Guest> {
}
|
package com.blog.dao.impl;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import com.blog.Idao.IUserDao;
import com.blog.bean.PingLun;
import com.blog.bean.User;
import com.blog.util.DBUtil;
public class UserDao implements IUserD... |
package com.kplex.swarm;
import com.kplex.node.Node;
import com.kplex.particle.ContinuousParticle;
import com.kplex.particle.Particle;
import com.kplex.particle.acceleration.Acceleration;
import com.kplex.particle.acceleration.LinearlyChangingCognitive;
import com.kplex.particle.acceleration.LinearlyChangingSocial;
im... |
package com.atguigu.java2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
/*
一 存储对象的容器: 数组,集合
二1.数组在内存存储方面的特点:
1.数组初始化以后,长度就确定了。
2.数组声明的类型,就决定了进行元素初始化时的类型
2.数组在存储数据方面的弊端:
1.数组初始化以后,长度就不可变了,不便于扩展
2.数组中提供的属性和方法少,不便于进行添加、删除、插入等操作,且效率不高。同时无法直接获取... |
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/Perso... |
package cn.com.signheart.component.core.security.system;
import cn.com.signheart.component.core.core.PlatFormContext;
import cn.com.signheart.component.core.security.model.TbPermissmionPO;
import cn.com.signheart.component.core.security.model.TbRolePO;
import cn.com.signheart.component.core.security.model.TbRolePermis... |
1.使用消息中间件的原因
-当系统过于庞大时 如果单线程的去进行服务之间的调用,响应时间会过于漫长,对系统压力较大
当被调用的所有服务都处理完成才会返回结果.
2.消息中间件作用
-异步通知被调用的服务,直接返回结果(异步)
-服务直接解耦合
-可以帮助服务横向扩展
-服务之间调用可以保证顺序
3.概念
关注数据的发送和接受,利用高效可靠的异步消息传递来集成分布式系统
-----------------------------------------------------------------------------------
3.JMS规范
java中关于面向消息中间件的API,用于在两个应用程序之间或分布式... |
/*
* Created by SixKeyStudios
* Added in project Technicalities
* File configmanagers.items.nature / NatureConfigManager
* created on 21.5.2019 , 22:25:52
*/
package technicalities.configmanagers.craftingstations;
import technicalities.configmanagers.ConfigManager;
import technicalities.configmanagers.ConfigWrap... |
class ContainsDuplicate {
public boolean containsDuplicate(int[] nums) {
HashSet<Integer> set=new HashSet<>(Arrays.stream(nums).mapToObj(e -> (int) e).collect(Collectors.toSet()));
//System.out.println(set);
if(set.size()!=nums.length)
return true;
else
return... |
package com.zzp.nacos.user.mapper;
import com.zzp.nacos.user.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 用户表 Mapper 接口
* </p>
*
* @author zzp
* @since 2020-09-17
*/
public interface UserMapper extends BaseMapper<User> {
}
|
package controller;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import model.Noticia;
import model.Secao;
import model.Usuario;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
imp... |
/*
* 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 cliente;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
i... |
package com.flushoutsolutions.foheart.modules;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.flushoutsolutions.foheart.application.FoHeart;
import com.flushoutsolutions.foheart.globals.Variables;
import com.flushoutsolutions.foh... |
package com.framgia.fsalon.screen.login;
import com.framgia.fsalon.BasePresenter;
import com.framgia.fsalon.BaseViewModel;
/**
* This specifies the contract between the view and the presenter.
*/
interface LoginContract {
/**
* View.
*/
interface ViewModel extends BaseViewModel<Presenter> {
... |
package Model;
import DBconnections.Javaconnect;
import java.sql.*;
import javax.swing.JOptionPane;
public class ExerciseModel {
private Connection con;
private Javaconnect conectDB;
private ResultSet rs;
private PreparedStatement pst;
private String id,username,date,time,exercise,calpermin... |
package com.pky.smartselling.configuration;
import java.util.Optional;
import com.pky.smartselling.domain.employee.Employee;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springframework.security.authentication.AnonymousAuthenticationToken... |
package com.ranpeak.ProjectX.activity;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.widget.Button;
import android.wi... |
/* I will define all the variables first. Then I will type cast them to represent their int value.
* Then I need to figure out how to format using the printf command to make the output and comparason look pretty and easy to read.
* Lastly, I will watch the Youtube video for the J-Unit testing.
* I am putting t... |
/*
* Copyright 2016-2017 the original author or authors.
*
* Licensed under the BLK License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.blk.com
*/
package com.sandy.infrastructure.jdbc.support;
import java.util.List;
import javax.sql.Dat... |
package com.redstoner.remote_console.authentication.methods;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.security.NoSuchAlgorithmException;... |
package boletin_6_1;
import java.util.Scanner;
public class Número {
private int num;
public Número(int num){
this.num = num;
}
public Número(){
Scanner sc = new Scanner(System.in);
}
public int getNum(){
return num;
}... |
package com.example.hemil.papa_johns;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.T... |
package org.usfirst.frc.team5114.MyRobot2016.auton.commands;
import org.usfirst.frc.team5114.MyRobot2016.Robot;
import org.usfirst.frc.team5114.MyRobot2016.commands.RunLauncher;
import org.usfirst.frc.team5114.MyRobot2016.subsystems.BallLaunch;
import org.usfirst.frc.team5114.MyRobot2016.subsystems.DriveTrain;
public... |
package com.jihu.shiro.demo.configrution;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.servlet.Filter;
import javax.servlet.FilterRegistration;
@Configuration
public class ShiroConfigration {
}
|
package im.compIII.exghdecore.entidades;
import java.sql.SQLException;
import java.util.Collection;
import im.compIII.exghdecore.banco.MobiliaDB;
import im.compIII.exghdecore.exceptions.CampoVazioException;
import im.compIII.exghdecore.exceptions.ConexaoException;
import im.compIII.exghdecore.exceptions.RelacaoExcept... |
package com.example.demo.entity;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
@Entity
@Table(name = "Fe2n_Match")
public class Match {
@Id
@SequenceGenerator(name = "pk_sequence", sequenceName = "Fe2n_Match_id_seq",allocationSize = 1)
@GeneratedValue(strategy = Generatio... |
package OhPe2021;
// Ohjelman nimi on Ekaohjelma
public class Ekaohjelma {
// ohjelman päälohko
public static void main(String[] args) {
System.out.println("Hoi Maailma!");
}
}
|
package wifi;
import java.io.PrintWriter;
import java.nio.ByteBuffer;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import rf.RF;
/**
* Use this layer as a starting point for your project cod... |
/**
* Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
* Copyright (c) 2006-2018, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ============================================... |
package com.legaoyi.common.util;
import java.security.MessageDigest;
public class PasswordHelper {
public static String SHA1(String password, String salt) throws Exception {
byte[] bytes = salt.getBytes("utf-8");
MessageDigest msgDigest = MessageDigest.getInstance("SHA");
if (salt != null && bytes.length > 0)... |
package za.ac.cput.views.curriculum.subject;
/**
* UpdateSubject.java
* Author: Shane Knoll (218279124)
* Date: 20 October 2021
*/
import com.google.gson.Gson;
import okhttp3.*;
import org.json.JSONArray;
import org.json.JSONObject;
import za.ac.cput.entity.curriculum.Subject;
import javax.swing.*;
import java.... |
package com.patrickmcgeever.java8.lambdaexpressions;
/**
* Created by patrick on 12/07/2014.
*/
// This annotation will cause a compile error if I try to add another abstract method
@FunctionalInterface
public interface MyInterface {
default String defaultOne() {
return "Default 1";
}
default S... |
package java0722;
import java.util.*;
public class BookMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
NameDTO name = null;
BookDTO book = null;
BookService bookser = new BookService();
List<NameDTO> nameList = new Arr... |
package pl.edu.icm.unity.server.utils;
import java.io.File;
import java.io.FileNotFoundException;
/**
* Performs an action when a file change is detected. This should be executed
* periodically, for example using a scheduled executor service.
*
* @author schuller
*/
public class FileWatcher implements Runnable
... |
package com.example.projet_mobile;
import android.app.Activity;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os... |
package com.jgermaine.fyp.rest.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import ... |
package liu.java.util.concurrent.locks;
public class Test {
}
|
package com.esum.boot;
public class BootMainTestHelper {
public static String XTRUS_HOME="c:\\server\\xtrus-4.4.3-SNAPSHOT";
public static String XTRUS_HOSTNAME="localhost";
}
|
package gov.nih.mipav.model.scripting.parameters;
import gov.nih.mipav.model.scripting.ParserException;
/**
* A unsigned short parameter used in either the recording or execution of a script action.
*/
public class ParameterUShort extends Parameter {
// ~ Instance fields
// ------------------------------... |
package algorhithm;
import java.util.Arrays;
public class InsertionSort {
public static void main(String[] args) {
int[] array = {1,7,20,611,21};
int temp = 0;
int j=0;
for(int i=1; i<array.length; i++) {
temp = array[i];
// System.out.println(Arrays.toString(array));
for(j=i-1; j>=0 &&... |
package com.beike.dao.edm;
import java.util.Map;
import com.beike.dao.GenericDao;
import com.beike.entity.edm.CancelEdmEmail;
/**
*
* @author 赵静龙 创建时间:2012-10-18
*/
public interface CancelEDMMailDao extends GenericDao<CancelEdmEmail, Long>{
/**
* 保存所取消订阅邮箱信息
* @param edmCancelEmailInfo
*/
... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... |
package com.phila.samergigabyte.philabooksx;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import andro... |
package com.zhicai.byteera.activity.traincamp.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout... |
package study01;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(args[0]);
System.out.println(args[1]);
/*
1000, 1001번
scanner 함수가 기억나지 않았을 때는 ... |
/*
* Copyright © 2020-2022 ForgeRock AS (obst@forgerock.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... |
package com.itea.java.basic.l14.linked;
public class MyLinkedList implements MyList {
private MyLinkedListElement first;
private MyLinkedListElement last;
public void add(Integer elem) {
if (first == null) {
MyLinkedListElement myLinkedListElement = new MyLinkedListElement(null, n... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark... |
<<<<<<< HEAD
package in.vamsoft.excersise1.shape1;
public class RectangleTest {
/**
* The main method.
* @param args LOGIN - login of user PASSWORD - password
*/
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
Rectangle r = new Rectangle(10 * Math.random(), 20 * Mat... |
package sr.hakrinbank.intranet.api.service.bean;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PostFilter;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
imp... |
package learn.java.proxy.cglib;
public class Test {
public static void main(String[] args) {
AliSmsService proxy = (AliSmsService) CglibProxyFactory.getProxy(AliSmsService.class);
proxy.send("java");
}
}
|
import java.util.ArrayList;
import java.util.Random;
import java.util.Stack;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.Semaphore;
/**
*
*
* @author Kevin Hartman <kfh6034@rit.edu>
*/
public abstract class Employee extends Thread {
protected final Employee supervisor;
private... |
package com.proxiad.games.extranet.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum MandatoryParameter {
INIT_TIMER_SECONDS("INIT_TIME", "3600", ParameterType.NUMBER, null),
AUDIO_BACKGROUND_DEFAULT_VOLUME("AUDIO_BACKGROUND_DEFAULT_VOLUME", "10", ParameterType.... |
package registration;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import java.util.Optional;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import... |
package com.zhaojun.io;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.concurrent.TimeUnit;
/**
* @auther zhaojun0193
* @create 2017/9/23
*/
public class NioClient {
public static void main(String[] args) {
... |
package me.ivt.com.ui.cusbehavior;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
public class CusB... |
package com.cqut.model;
import java.util.Date;
public class ChargeDetail {
private String chargedetailid;
private String userid;
private Long money;
private Date starttime;
private Date endtime;
public String getChargedetailid() {
return chargedetailid;
}
public void setC... |
package easii.com.br.iscoolapp.fragmentos;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.app.Ale... |
package com.SearchHouse.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.SearchHouse.mapper.PriceContainsMapper;
import com.SearchHouse.pojo.PriceContain;
import com.SearchHouse.service.PriceCont... |
package edu.cricket.api.cricketscores.rest.source.model;
import java.util.List;
public class LeagueSeasonGroupStanding {
private Ref team;
private List<LeagueSeasonGroupStandingRecord> records;
public Ref getTeam() {
return team;
}
public void setTeam(Ref team) {
this.team = team... |
package ua.siemens.dbtool.serializers.WorkPackageType;
import com.google.gson.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import ua.siemens.dbtool.model.auxilary.WorkPackageType;
import ua.siemens.dbtool.model.entities.Project;
import java.lang.reflect.... |
package com.lenovohit.hwe.treat.web.his;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.we... |
package com.example.reminiscence;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import java.util.Lis... |
package liza.weatherappdlc.Api;
import liza.weatherappdlc.Models.CurrentWeather;
import liza.weatherappdlc.Models.WeatherForecast;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface ApiService {
String currentWeatherUrlPath = "/data/2.5/weather?units=imperial";
St... |
/**
* **************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2011 PrimeSense Ltd. *
* *
* This file is p... |
/*
* And the password is strong enough (has one capital letter and one number)
*
*
*/
package Regex;
/**
*
* @author YNZ
*/
public class PasswordValidate {
public static void main(String[] args) {
String pwd0 = "dell";
String pwd1 = "Q343433rtfg9_";
String pwd2 = "... |
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collections;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and ... |
package netty.nio;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.*;
public class NIOMessageServe... |
package com.spakai.builder;
import com.spakai.flow.FlowAOutput;
import com.spakai.flow.FlowBOutput;
import com.spakai.flow.FlowCInput;
public class FlowCInputBuilder implements Builder<FlowCInput> {
private final FlowBOutput mandatoryflowBOutput;
private FlowAOutput optionalflowAOutput;
public FlowA... |
/**
*
*/
package com.miaoqi.authen.core.authentication;
import com.miaoqi.authen.core.properties.SecurityConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web... |
package swiss.kamyh.elo.arena.scenario;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scoreboard.Team;
import swiss.kamyh.elo.enumerate.ScenarioEnum;
import swiss.kamyh.elo.gui.scorboard.ScoreboardTimerized;
import java.util.ArrayL... |
package com.metoo.module.app.manage.buyer.action;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax... |
/*
* 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.koshish.java.hibernate.ecommerce.DAO.impl;
import com.koshish.java.hibernate.ecommerce.DAO.CategoryDAO;
import com.koshish... |
package com.pelephone_mobile.mypelephone.ui.components.device;
/**
* Created by Gali.Issachar on 18/12/13.
*/
public class DeviceSizeItem {
private String deviceSize;
private String devicePrice;
public DeviceSizeItem(String deviceSize, String devicePrice){
this.deviceSize = deviceSize;
... |
package core.server.game.controllers.equipment;
import java.util.Set;
import cards.Card;
import cards.equipments.Equipment;
import cards.equipments.Equipment.EquipmentType;
import commands.client.game.DecisionUIClientCommand;
import commands.client.game.ShowCardSelectionPanelUIClientCommand;
import core.player.Player... |
package com.worldchip.bbp.ect.db;
import java.util.ArrayList;
import java.util.List;
import com.worldchip.bbp.ect.entity.AlarmInfo;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;
public class ClockData {
/**
* 添加闹钟
* @param contex... |
package controller;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import domain.Person;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
publ... |
package convertBST538;
import dataStructure.*;
import java.util.Stack;
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
public class Solution {
private int sum = 0;
/**
* 递归
... |
package model;
import java.util.Scanner;
public class Seventwo {
static int min(int a, int b, int c) {
int minimum = 0;
if (a > b) {
if (b > c) {
minimum = c;
} else {
minimum = b;
}
} else {
if (a > c) {
minimum = c;
} else {
minimum = a;
}
}
return minimum;
}
public ... |
package com.javarush.test.level10.lesson11.home06;
/* Constructors of the class Human
Write a class Human with 6 fields. Come up with 10 different constructors for it and implement them. Each constructor should have meaning.
*/
public class Solution
{
public static void main(String[] args)
{
}
publ... |
package com.example.pojo;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class EmployeeExampleTest {
@Test
void setOrderByClause() {
}
@Test
void getOrderByClause() {
}
} |
/***
* Description: Write a Java application in NetBeans that
* utilizes a class written for the application called Document.
* The application creates instances of Document objects and
* utilizes its properties and methods.
***/
package lcpn87documents;
/**
*
* @author Carlie
*/
public class Lcpn87Documents... |
package com.joseadilson.realm.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.TextView;
import com.joseadilson.realm.AddDisciplinaActivity;
import com... |
import java.util.Scanner;
public class Grades {
public static String letterGrade(double score) {
if (score <= 100 && score >= 90) {
return "A";
} else if (score <= 89 && score >= 80 ) {
return "B";
} else if (score <= 79 && score >= 70) {
return "C";
} else if (score <= 69 && score >= 60) {
retur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.