text stringlengths 10 2.72M |
|---|
package ru.moneydeal.app.pages;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecyc... |
package com.company;
public class HeronsFormula {
public static void main(String[] args) {
double area;
area=Triangle(3,3,3);
System.out.println("A triangle with sides 3,3,3 has an area of "+ area);
area=Triangle(3,4,5);
System.out.println("A triangle with sides 3,4,5 has an area of "+area);
... |
package hdfs.daemon;
import java.io.Serializable;
import java.util.Collection;
import hdfs.FileDescriptionI;
public interface FragmentDataI extends Serializable, Iterable<Integer> {
FileDescriptionI getFile();
String getFragmentsPath();
void setFragmentsPath(String path);
String getFragmen... |
package com.sameer.springdemo;
public class TrackCoach implements Coach {
@Override
public String getDetailWorkout() {
// TODO Auto-generated method stub
return "Run Run";
}
}
|
package com.laychv.module_arch.mvc.controller;
import com.laychv.module_arch.R;
import com.laychv.module_arch.mvc.Book;
import com.laychv.module_arch.mvc.module.BookModel;
import java.util.List;
/**
* 控制器层
* 处理业务逻辑,调用模型层的操作,并对外暴露接口
* 根据Model层的方法,加上我们的业务逻辑处理,对外提供方法并暴露接口
* 看delete这个方法,判断List是否为空(业务逻辑),使用mode.delet... |
package cd.com.a.daoImpl;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import cd.com.a.dao.MemberDao;
import cd.com.a.model.memberDto;
@Repository
public class MemberDaoImpl implem... |
package sarong;
import sarong.util.StringKit;
import java.io.Serializable;
/**
* One of Mark Overton's subcycle generators from <a href="http://www.drdobbs.com/tools/229625477">this article</a>
* (specifically, an un-investigated generator mentioned in the code attached to the article), a lera^lera^lera with
* th... |
package com.huawei.esdk.demo.common;
public interface Constant {
/**
* session无效
*/
int SESSION_NOT_CORRECT = 1351614476;
/**
* siteUri为空
*/
int SITEURI_IS_NULL = 570789891;
/**
*
*/
int ERROR_CODE_DEVICE_CONN_ERROR = 2130000012;
}
|
package com.semester_project.smd_project.Activities;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.semester_project.smd_project.R;
public class HomePage extends AppCompatActivity {
priva... |
package example.jamesb.moviessample.util.concurrency;
import android.os.Handler;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import javax.inject.Inject;
import androidx.annotation.NonNull;
public class ExecutionContext {
private final MainThreadContext mainThreadContext... |
package com.ace.production.test;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import android.test.AndroidTestCase;
import com.ace.production.text.SMSContent;
import com.ace.production.text.SMSContentParser;
public class SMSContentParserTest extends Androi... |
package com.cognizant.springlearn04.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author Shiya... |
package problem18;
/**
* @author Jackid
* JDK-version:1.8
* Problem:牛客网-剑指offer《数组中重复的数字》
* Result:已通过了所有的测试用例
*/
/*题目描述:
在一个长度为n的数组里的所有数字都在0到n-1的范围内。
数组中某些数字是重复的,但不知道有几个数字是重复的。
也不知道每个数字重复几次。请找出数组中任意一个重复的数字。
例如,如果输入长度为7的数组{2,3,1,0,2,5,3},那么对应的输出是第一个重复的数字2。
*/
public class Solution {
// Parameters:
// numbers... |
package ars.ramsey.interviewhelper.widget.Calendar;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.DatePicker;
... |
package com.wisape.android.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PaintFlagsDrawFilter;
import android.graphics.RectF;
import andro... |
package com.tencent.mm.plugin.wallet_payu.create.ui;
import android.text.Editable;
import android.text.TextWatcher;
class WalletPayUStartOpenUI$1 implements TextWatcher {
final /* synthetic */ WalletPayUStartOpenUI pES;
WalletPayUStartOpenUI$1(WalletPayUStartOpenUI walletPayUStartOpenUI) {
this.pES =... |
package rjm.romek.awscourse.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import com.amazonaws.services.ec2.AmazonEC2;
import com.amazonaws.services.ec2.AmazonEC2ClientBuilder;
impo... |
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.Scanner;
public class ClientCommandListener implements Runnable, KeyListener
{
Client client;
Scanner sc;
public ClientCommandListener(Client client)
{
this.client = client;
sc = new Scanner(System.in);
... |
package com.company;
import Jama.Matrix;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class ReadFileCSV {
public ReadFileCSV() {
}
public Matrix ReadFileTrain() {
String csvFile = "/home/nghia/Desktop/hoc may/1-prostat... |
package c.t.m.g;
import android.content.IntentFilter;
final class v implements Runnable {
v() {
}
public final void run() {
try {
p.e();
m.a().registerReceiver(p.m(), new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
} catch (Throwable th) {
}
... |
package org.alienideology.jcord.event.handler;
import org.alienideology.jcord.event.channel.group.user.GroupUserJoinEvent;
import org.alienideology.jcord.internal.object.IdentityImpl;
import org.alienideology.jcord.internal.object.ObjectBuilder;
import org.alienideology.jcord.internal.object.channel.Group;
import org.... |
package com.example.pangrett.astroweather.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
public class Database extends SQLiteOpe... |
/*
* Copyright 2010-2013 Robert J. Buck
*
* 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 ag... |
package ca.mohawk.jdw.shifty.server.utils;
/*
I, Josh Maione, 000320309 certify that this material is my original work.
No other person's work has been used without due acknowledgement.
I have not made my work available to anyone else.
Module: server
Developed By: Josh Maione (000320309)
*/
import ca.... |
package com.example.spendingtrackerandroid.ui.transactions;
import android.content.Context;
import android.os.Bundle;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonArrayRequest;
... |
package com.lazypanda.algorithms.greedy;
import java.util.Arrays;
/**
* Union-Find algorithm implementation to detect a cycle in a graph with no self loops.
*
* A disjoint-set data structure is a data structure that keeps track of a set of elements
* partitioned into a number of disjoint (non-overlapping) subsets... |
package cordova.plugin.zk.plugin;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Handler;
import android.os.Message;
import com.alipay.sdk.app.PayTask;
import com.ewell.guahao.nanji... |
/* This file was generated by SableCC (http://www.sablecc.org/). */
package node;
import analysis.*;
@SuppressWarnings("nls")
public final class AIfelseLogic extends PLogic
{
private PTerm _if_;
private TQuery _query_;
private TLBrace _thenin_;
private PImpl _then_;
private TColon _colon_;
pr... |
/**
* Copyright (C) 2010 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
package it.htm.entity;
import javax.persistence.*;
@Entity
@Table(name = "user_project")
@IdClass(UserProjectPK.class)
public class UserProject {
@ManyToOne(cascade = CascadeType.MERGE)
@Id
@PrimaryKeyJoinColumn
private User user;
@ManyToOne(cascade = CascadeType.MERGE)
@Id
@PrimaryKeyJo... |
//在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。
//
// 示例 1:
//
// 输入: [3,2,1,5,6,4] 和 k = 2
//输出: 5
//
//
// 示例 2:
//
// 输入: [3,2,3,1,2,4,5,5,6] 和 k = 4
//输出: 4
//
// 说明:
//
// 你可以假设 k 总是有效的,且 1 ≤ k ≤ 数组的长度。
// Related Topics 堆 分治算法
// 👍 1105 👎 0
package me.alvin.leetcode.editor.cn;
import... |
package com.client;
import org.springframework.messaging.simp.stomp.StompCommand;
import org.springframework.messaging.simp.stomp.StompHeaders;
import org.springframework.messaging.simp.stomp.StompSession;
import org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter;
import java.lang.reflect.Type;
impor... |
package com.daffatahta.go2workapp.activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import... |
package com.yunhe.basicdata.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunhe.basicdata.dao.CommclassMapper;
import com.yunhe.basicdata.entity.Commclass;
import com.yunhe.basicdata.service.ICommclassService;
import org.springframework.stereotype.Service;
import javax.a... |
package lab4;
public class BinaryTree
{
private Node root;
private int count; // Keep track of how many Nodes are in the tree
private int arrayCount; // Keeps track of the position in the String array;
// Explicit Constructor
public BinaryTree()
{
this.root = null;
this.count = 0;
this.arra... |
public class Star2 {
public static void main(String[] args) {
for(int j=4; j>0; j--)
{
for(int i=j; i>0; i--)
{
System.out.print("*");
}
System.out.println();
}
}
}
|
package com.trantienptit.sev_user.chatbot23.dao;
import android.content.Context;
import android.util.Log;
import com.trantienptit.sev_user.chatbot23.R;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.MarshalFloat;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimit... |
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class FormatConfig {
@XmlAttribute
private String columnName... |
package controller;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import model.Historial;
import util.HibernateUtil;
import util.Ut... |
package com.zero.qa.testcases;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.zero.qa.base.TestBase;
import com.zero.qa.pages.AccountSummaryPage;
import com.zero.qa.pages.Home;
import com.zero.qa.pages.Log... |
package com.linda.framework.rpc.service;
import com.linda.framework.rpc.HelloRpcService;
import com.linda.framework.rpc.HelloRpcTestService;
import com.linda.framework.rpc.LoginRpcService;
import com.linda.framework.rpc.RpcService;
import com.linda.framework.rpc.client.AbstractRpcClient;
import com.linda.framework.rpc... |
package ogo.spec.game.model;
public class Food extends Inhabitant
{
}
|
package com.example.coffemachine.repository;
import com.example.coffemachine.model.InventoryItem;
/**
* holds InventoryItems instances
*
* @author siddu
*
*/
public interface InventoryManager {
public InventoryItem getInventory(String inventoryName);
public InventoryItem addIngredient(InventoryItem inventor... |
package br.udesc.controller.tablemodel;
import br.udesc.model.entidade.Sala;
import java.util.ArrayList;
import javax.swing.table.AbstractTableModel;
/**
* Classe resposável modelar a table de Sala.
* Implementando todos os métodos da Interface nativa AbstractTableModel.
* @author PIN2
*/
public class ... |
//package edu;
import java.util.ArrayList;
import java.util.Iterator;
class LAll{
private ArrayList<LBody> arBody = new ArrayList<>();
private ArrayList<LBody> arBodiesToAdd = new ArrayList<>();
private ArrayList<LBody> arBodiesToRemove = new ArrayList<>();
private Iterator<LBody> activeIt = null;// = arB... |
package Weapons;
import Weapons.WeaponLibrary.Axe;
import Weapons.WeaponLibrary.Dagger;
import Weapons.WeaponLibrary.Sword;
public class WeaponFactory {
public IAttack create(WeaponType type){
if (type.equals(WeaponType.AXE)){
return new Axe(50);
} else if (type.equals(WeaponType.DAGG... |
package com.myatnoe.burpplefood.network;
/**
* Created by User on 1/15/2018.
*/
public interface BurppleDataAgent {
void loadBurppleFeatures();
void loadBurpplePromotions();
void loadBurppleGuides();
}
|
package mk.petrovski.weathergurumvp.data.remote.model.error_models;
import java.util.List;
/**
* Created by Nikola Petrovski on 2/13/2017.
*/
public class ErrorModel {
private List<MsgErrorModel> error;
public List<MsgErrorModel> getError() {
return error;
}
public void setError(List<MsgErrorModel> e... |
package com.app.thread;
public class WhatIsWrong1 extends Thread{
public static Object lock1 = new Object();
public static Object lock2 = new Object();
public void method1() {
synchronized (lock1) {
delay(500); //some operation
System.out.println("method1: " + Thread.curren... |
package br.com.treinar.web.servlet;
import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... |
package org.webmaple.worker.config;
import redis.clients.jedis.JedisPool;
/**
* @author lyifee
* 使用worker构建爬虫时需要实现此接口
* 提供爬虫需要使用的jedispool
* on 2021/2/19
*/
public interface JedisSPI {
JedisPool getJedisPool();
}
|
package com.dominion.prog2.game;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
public class CardStack implements Iterable<Card> {
private ArrayList<Card> cards;
private ArrayList<StackChanged> listeners = new ArrayList<>();
/**
* Cons... |
package com.example.healthmanage.ui.activity.legaladvice;
import android.os.Bundle;
import com.example.healthmanage.BR;
import com.example.healthmanage.R;
import com.example.healthmanage.base.BaseActivity;
import com.example.healthmanage.databinding.ActivityLegalAdviceBinding;
import com.example.healthmanage.widget.T... |
package parse;
import java.util.ArrayList;
import java.util.Stack;
import static parse.InfixToPostfix.isDouble;
/**
* Created by Matthew on 9/12/2016.
*/
public class Denominator {
//public long totalTime = 0, evals = 0;
private String postfix, variable;
private double value, variableValue;
priva... |
package it.uniroma3.siw_progetto.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import it.uniroma3.siw_progetto.model.ClinicaAccessPoint;
import it.uniroma3.siw_progetto.model.TipoEsame;
public class ListTipoesame implements Action {
@Override
public String perf... |
/**
* @author ${Prashanth Thipparthi}
*/
package com.example.demo.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.model.Sample;
/*
* This class contains functions which performs CRUD operations on the Sample table in the database
*/
public interface SampleDAO extends J... |
package Pages;
import org.openqa.selenium.WebDriver;
public class HomePage extends HomeOR {
public HomePage(WebDriver driver){
super(driver);
}
public void redirectToOtherPage(String url){
driver.navigate().to(url);
}
public void forword(){
driver.navigate().forward();
}
public void back(){
... |
package com.example.parkminhyun.trackengine;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageV... |
/*
* Created on Mar 9, 2006
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package com.ibm.jikesbt;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class BT_AnnotationA... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package com.example.vineet.easybuy;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class loantypeoption extends AppCompatActivity {
@Override
protected void onCreate(Bundle s... |
package com.mrenesinau.tampilmeja.SearchMeja;
import com.google.gson.annotations.SerializedName;
public class Meja {
@SerializedName("idmeja") private int idmeja;
@SerializedName("nmmeja") private String nmmeja;
@SerializedName("model") private String model;
@SerializedName("nama_status_meja") priva... |
package info.kldeng.concurrency;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class FileSearcher implements Runnable {
private String initPath; /* 待查找目录 */
private String fileName; /* 待查找文件 */
private ThreadGroup tg; /* 所属的threadGroup */
public FileSearcher(String initPath, ... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.example.demo.service.imp;
import com.example.demo.dao.UserDao;
import com.example.demo.entity.User;
import com.example.demo.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.u... |
package edu.wpi.cs.justice.cardmaker.http;
import java.util.ArrayList;
public class ListImageResponse {
public ArrayList<String> ImgList;
public final int statusCode;
public final String error;
public ListImageResponse (ArrayList<String> list, int code) {
this.ImgList = list;
this.statusCode = code;
this... |
/**
* Copyright © 2020 Guillermo Rebaza (grebaza@gmail.com)
* Adapted from com.github.jcustenborder.kafka.connect.transform.common.ToJSON
*
* 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... |
package com.sdk4.boot.apiengine;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sdk4.boot.bo.LoginUser;
import com.sdk4.common.util.DateUtils;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import java.util.Date;
import java.util... |
package paqueteServlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashMap;
import javax.servlet.Se... |
package problems;
import java.util.*;
public class Paranthasis_balenced {
public static void main(String[] args) {
String s="([]){";
System.out.println(isValid(s));
}
public static boolean isValid(String s) {
Stack<Character> st=new Stack<>();
boolean res... |
package com.travix.medusa.busyflights.service.adapter;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import org.springframe... |
package com.crewmaker.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@NoArgsConstructor
@Entity
@Table(name="userOpinion")
public class UserOpinion {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="userOpinionID")
private Long user... |
package ca.ubc.cpen391team17;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.suppo... |
package dev.schoenberg.kicker_stats.rest.dto;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class PlayersDto {
@XmlElement(name = "players")
public List<PlayerDto> players;
protected PlayersDto() {}
public PlayersDto(... |
package org.cloudfoundry.vr;
import java.io.IOException;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.core.io.ClassPathResource;
import org.springframework.http.HttpEntity;
import... |
package com.dazhi.config;
import com.dazhi.naming.api.config.PropertySourcesUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.Configuration... |
package cn.xdl.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.xdl.dao.EtAdminDao;
import cn.xdl.entity.EtAdmin;
import java.util.List;
@Service
public class EtAdminService {
@Autowired
private EtAdminDao dao;
public List<... |
package org.usfirst.frc.team1247.robot.commands;
public class PnuematicsCommand extends BaseCommand {
public PnuematicsCommand() {
requires(pnuematics);
}
// Called just before this Command runs the first time
protected void initialize() {
super.initialize();
}
@Override
protected void execute() {
if ... |
package com.ssm.wechatpro.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.o... |
package Servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.catalina.User;
import org.apache.catalina.servlet4previ... |
/**
* @author Paweł Włoch ©SoftLab
* @date 17 sty 2019
*/
package com.softlab.ubscoding.webserver.test.websocket;
import static org.junit.Assert.assertTrue;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;... |
package com.linda.framework.rpc.aio;
import com.linda.framework.rpc.Service;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.CompletionHandler;
/**
* TCP连接AIO接收
*
* @author lindezhi
* 2016年6月13日 下午3:00:39
*/
public class RpcAcceptCompletionHandlerImpl implements CompletionHandler<As... |
package GameService;
import Player.Player;
import java.io.Serializable;
public class PlayerID implements Serializable {
private int playersID = 0;
public PlayerID(int id){
this.playersID = id;
}
public int getPlayersID() {
return playersID;
}
public void setPlayersID(int pla... |
package com.sanqing.factory;
import com.sanqing.dao.MessagePermissionDAO;
import com.sanqing.daoImpl.MessagePermissionDAOImpl;
/**
* ╗˝╚íMessagePermissionDAOÂ嵐
* @author grass
*
*/
public class MessagePermissionDAOFactory {
public static MessagePermissionDAO getMessagePermissionDAO(){
return new MessagePermi... |
package com.smxknife.java.ex30;
import java.util.stream.Stream;
/**
* @author smxknife
* 2019/9/8
*/
public class _Demo {
public static void main(String[] args) {
Stream.iterate(0, i -> i + 1).limit(10)
.forEach(idx -> new Thread(() -> {Bird.INSTANCE.print();}, "th_" + idx).start());
System.out.println(B... |
package amit.chefling_amit;
import android.widget.Toast;
import mobi.upod.timedurationpicker.TimeDurationPicker;
import mobi.upod.timedurationpicker.TimeDurationPickerDialogFragment;
/**
* Created by amit on 10/28/2016.
*/
public class PickerDialogFragment extends TimeDurationPickerDialogFragment {
public in... |
package sort;
public class sortUtils {
/**
* 交换数据i和j2个位置的值
* @param array
* @param i
* @param j
*/
public static void change(int[] array, int i,int j){
int temp=array[i];
array[i]=array[j];
array[j]=temp;
}
/**
* 数据往后移
* @param array
* @param from
* @param to
* @return
*/
public static... |
package com.Collections_TreeSetUsingNavigateSetInterface;
public class NoOfElement {
}
|
package entities;
import java.util.Scanner;
public class Count {
//Attributes
private String nCount;
private String nameUser;
private double balance;
private char ask;
//Construct
public Count() {
Scanner sc = new Scanner(System.in); // Start to read
System.out.print("Enter account number: ");
thi... |
package telecom.executors.kostanay;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.github.junrar.Archive;
import com.github.junrar.exception.RarException;
import com.github.junrar.impl.... |
package controller;
import javafx.animation.TranslateTransition;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene... |
package com.pa.miniEip.controller;
import com.pa.miniEip.model.Answer;
import com.pa.miniEip.model.Form;
import com.pa.miniEip.service.AnswerService;
import com.pa.miniEip.service.FormService;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http... |
package com.sneaker.mall.api.service;
import com.sneaker.mall.api.model.Goods;
import com.sneaker.mall.api.model.Order;
import java.util.List;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional... |
package org.simpleflatmapper.converter.joda.impl;
import org.joda.time.ReadableInstant;
import org.joda.time.format.DateTimeFormatter;
import org.simpleflatmapper.converter.Converter;
public class JodaReadableInstantToStringConverter implements Converter<ReadableInstant, String> {
private final DateTimeFormatte... |
package org.alienideology.jcord.event.guild.emoji;
import org.alienideology.jcord.Identity;
import org.alienideology.jcord.handle.guild.IGuild;
import org.alienideology.jcord.handle.guild.IGuildEmoji;
/**
* @author AlienIdeology
*/
public class GuildEmojiUploadEvent extends GuildEmojiEvent {
public GuildEmojiU... |
// Sun Certified Java Programmer
// Chapter 1, P76_6
// Declarations and Access Control
abstract class Phone1 extends Electronic {
}
|
package com.dahua.design.behavioral.obsever;
public abstract class AbstractTiktok {
abstract void addFans(AbstractFans fans);
abstract void notifyFans(String message);
}
|
package banking.services;
import framework.dto.ReportDTO;
import framework.services.Report;
import framework.services.ReportService;
import banking.factories.ReportFactory;
public class ReportServiceImp implements ReportService {
private static ReportServiceImp instance;
private ReportFactory factory;
private... |
package sapronov.pavel.managementrestapi.entities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import sapronov.pavel.managementrestapi.utils.PatchAndPutReady;
import javax.persistence.*;
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
public class... |
import java.util.*;
public class HighFive_1086 {
public static int[][] highFive(int[][] items) {
TreeMap<Integer, PriorityQueue<Integer>> data = new TreeMap<>();
for (int[] item : items) {
int id = item[0], score = item[1];
if (!data.containsKey(id)) data.put(id, new Priority... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.