text stringlengths 10 2.72M |
|---|
package com.example.audiodemo;
import androidx.appcompat.app.AppCompatActivity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
MediaPlayer mplayer;
public void playAudio(View view){
mplayer.start();
}
... |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package edu.tsinghua.lumaqq.ecore.face;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see ... |
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
public class JsonUtilityTest {
public static final String TEST_JSON_TREE_SIMPLE_NO_MATCH = "{\"a\":\"abc... |
package org.bouncycastle.pqc.jcajce.provider.test;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.Security;
import java.security.Signature;
imp... |
package com.zking.t251.a;
public class a {
String A = "yangxuan";
}
|
package Chapter4DynamicProgramming.LongestCommonSubsequence;
public class Solution {
public static void main(String[] args) {
System.out.println(solve("counter", "counteract"));
}
public static int solve(String s1, String s2) {
int m = s1.length();
int n = s2.length();
int[... |
package com.tencent.mm.plugin.aa.ui;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import com.tencent.mm.ab.l;
import com.tencent.mm.bp.a;
import com.tencent.mm.plugin.wxpay.a.f;
im... |
package fanli.selfcode.kmp;
import java.util.Arrays;
// str1= "BBC ABCDAB ABCDABCDABDE"
// str2="ABCDABD"
public class KMP_Algorithm {
public static void main(String[] args) {
String str1 = "BBC ABCDAB ABCDABCDABDE";
String str2 = "BCDABD";
// int[] D = cal_D(str2);
// System.out.pri... |
package rent.common.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import rent.common.entity.ParameterTypeEntity;
import rent.common.projection.Parame... |
package org.buaa.ly.MyCar.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.buaa.ly.MyCar.entity.Store;
import org.buaa.ly.MyCar.exception.NotFoundError;
import org.buaa.ly.MyCar.http.dto.StoreDTO;
import org.buaa.ly.MyCar.logic.StoreLogic;
import org.buaa.ly.MyCar.service.StoreService;
import org.buaa.ly.MyC... |
package 파일시스템;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JOptionPane;
public class 파일에쓰기 {
public static void main(String[] args) {
try {
// 1 test2.txt스트링을 file객체로 만들어준다
// 2 test2.txt파일로 java프로그램간에 stream까지 만들어준다
String day = JOptionPane.showInputDialog("날짜 입력");
... |
package instructable.server.ccg;
import instructable.server.utils.InstUtils;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.google.common.collect.Maps;
import com.jayantkrish.jklol.ccg.lexicon.StringContext;
import com.jayantkrish.jklol.preprocessing.FeatureGenerator;
public cl... |
package lt.kvk.i11.radiukiene.utils;
/**
* Created by Vita on 4/23/2018.
*/
public class GS {
public String id;
public String name;
public String waste_id;
public String title;
public String wasteCollect_date;
public String wasteCollection_id;
public String getId() {
return id;... |
package jdbchomework.utils;
import jdbchomework.exceptions.DbConnectionException;
import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.slf4j.LoggerFactory;
public class HibernateUtil {
private static org.slf4j.Logger log = LoggerFactory.... |
package COM.JambPracPortal.BEAN;
import COM.JambPracPortal.DAO.DAO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class viewCert... |
package unalcol.types.collection.list;
import java.util.NoSuchElementException;
/**
* <p>Title: Queue</p>
* <p>
* <p>Description: A queue </p>
* <p>
* <p>Copyright: Copyright (c) 2009</p>
* <p>
* <p>Company: Kunsamu</p>
*
* @author Jonatan Gomez
* @version 1.0
*/
public class Queue<T> extends List<T> {
... |
package com.github.vinja.util;
import java.util.concurrent.atomic.AtomicLong;
public class IdGenerator {
private static AtomicLong id = new AtomicLong(1);
public static String getUniqueId() {
long v = id.getAndIncrement();
return String.valueOf(v);
}
}
|
package demo;
//我们称一个数 X 为好数, 如果它的每位数字逐个地被旋转 180 度后,我们仍可以得到一个有效的,且和 X 不同的数。要求每位数字都要被旋转。
//
// 如果一个数的每位数字被旋转以后仍然还是一个数字, 则这个数是有效的。0, 1, 和 8 被旋转后仍然是它们自己;2 和 5 可以互相旋转成对方;6 和 9 同理,除了这些以外其他的数字旋转以后都不再是有效的数字。
//
// 现在我们有一个正整数 N, 计算从 1 到 N 中有多少个数 X 是好数?
import java.util.Scanner;
// 思路:包含 2 5 6 9 中任意一个... |
package fr.polytech.al.tfc.account.controller.mock;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import fr.polytech.al.tfc.account.model.Account;
import fr.polytech.al.tfc.account.model.Transaction;
import fr.polytech.al.tfc.account.repository.AccountRe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package UI;
import Service.Impl.InstallmentMonthlyManagerImpl;
import java.awt.Frame;
import java.awt.event.KeyEvent;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.table.DefaultTableModel;
impor... |
import java.net.*;
import java.io.*;
import java.util.*;
import p2pBLL.*;
public class P2PServer {
final long chunkSize = 102400;
int _listeningPortNumber = -1;
int _maxClientsLimit = 0;
String _fileToSplit = "";
ServerSocket _listener;
public P2PServer(int portNumber, int maxClientLimit, String fileToSplit) ... |
package demoudp;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketExcep... |
package corgi.hub.core.mqtt.bean;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Terry LIANG on 2016/12/24.
*/
public class Subscription implements Serializable {
private int requestedQos;
private String clientId;
private String topic;
private boolean cleanSession;
private ... |
///*
// * 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 br.com.des.forlogic.controller;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSe... |
package extra_Practices;
public class Book {
String title="";
String author="";
String tableOfContents="";
int nextPage=1;
public Book(String title, String author){
this.title=title;
this.author=author;
}
public String gettableOfContents(){
return tableOfContents;
}
... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 agre... |
package com.xiaoysec.hrm.business.department.entity;
import java.util.Set;
import com.xiaoysec.hrm.business.employee.entity.Employee;
import com.xiaoysec.hrm.common.base.BaseEntity;
public class Department extends BaseEntity<Department> {
private static final long serialVersionUID = 1L;
private Integer id;
priva... |
package edu.sjsu.fly5.services;
public class EmployeeServiceProxy implements edu.sjsu.fly5.services.EmployeeService {
private String _endpoint = null;
private edu.sjsu.fly5.services.EmployeeService employeeService = null;
public EmployeeServiceProxy() {
_initEmployeeServiceProxy();
}
publ... |
package wallettemplate;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Scanner;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple... |
package org.idea.plugin.atg;
import com.google.common.collect.ImmutableList;
import com.intellij.facet.FacetTypeId;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.util.ScalableIcon;
import com.intellij.ui.LayeredIcon;
import com.intellij.util.PlatformIcons;
import org.idea.plugin.atg.module.AtgModuleF... |
package pl.java.scalatech.test.configurator;
import lombok.extern.slf4j.Slf4j;
import org.fest.assertions.Assertions;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.test.... |
package com.rails.ecommerce.admin.order.controller;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.... |
package fr.lteconsulting;
public class EmployeTempsPartiel extends Employe
{
public EmployeTempsPartiel( String nom )
{
super( nom );
}
@Override
public double getSalaire( float nbHeuresTravaillees )
{
if( nbHeuresTravaillees < 40 )
{
return super.getSalaire( nbHeuresTravaillees );
}
else
{
re... |
/*
* 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 computersales;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JFr... |
package com.cg.project.castleglobalproject.home.fragments;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import androi... |
/*
* 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 tableClasses;
/**
*
* @author Mert
*/
public class tableStatusAndPhotos {
private int id;
private String statu... |
package net.senmori.vanillatweaks.tasks;
import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
public class MinecartSpawnTask extends BukkitRunnable {
private final Location loc;
private final EntityType type;
... |
package com.example.ahmed.octopusmart.RecyclerAdapter;
import android.content.Context;
import android.graphics.Paint;
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.Rating... |
package 并发;
/**
* @Author: Mr.M
* @Date: 2019-04-09 10:47
* @Description:
**/
public class SynchronizedDemo {
public static void main(String[] args) {
}
public synchronized void spi() {
System.out.println(11);
}
}
|
package com.pine.template.mvvm.vm;
import com.pine.tool.architecture.mvvm.vm.ViewModel;
/**
* Created by tanghongfeng on 2019/3/1
*/
public class MvvmHomeVm extends ViewModel {
}
|
package com.graduation.yearbook.Http.HttpProvider;
import com.graduation.yearbook.application.BaseApplication;
import com.squareup.okhttp.Cache;
import com.squareup.okhttp.ConnectionPool;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.apache.OkApacheClient;
import org.apache.http.client.HttpClient... |
/*
* 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 vasylts.blackjack.deck.card;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import java.util.funct... |
package bootcamp.test.actions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import bootcamp.selenium.basic.LaunchBrowser;
public class RightClick {
public static void main(String[] args) {
WebDriver dri... |
package it.polimi.se2019.view.player;
import it.polimi.se2019.rmi.UserTimeoutException;
import it.polimi.se2019.rmi.ViewFacadeInterfaceRMIClient;
import it.polimi.se2019.rmi.ViewFacadeInterfaceRMIServer;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Co... |
package commandlineparser.handlers;
import commandlineparser.parser.*;
import java.util.List;
public class ExitCommandHandler implements CommandHandler {
private boolean exitRequested;
public boolean isExitRequested() {
return exitRequested;
}
public void setExitRequested(boolean exitRequest... |
package com.mrcsoft.game.core;
import java.awt.*;
import java.awt.image.BufferedImage;
/**
* Created with IntelliJ IDEA.
* User: Marek
* Date: 24.02.13
* Time: 18:06
* To change this template use File | Settings | File Templates.
*/
public class Surface {
private BufferedImage image;
private Graphics ... |
/**
*
*/
package com.goodhealth.algorithm.NKExercise;
/**
* @author 24663
* @date 2018年8月24日
* @Description 描述 给定 n 个不同的正整数,整数 k(k <= n)以及一个目标数字 target。 在这 n 个数里面找出 k个数,
* 使得这 k 个数的和等于目标数字,求问有多少种方案? 样例 给出 [1,2,3,4],k=2, target=5,[1,4] 和
* [2,3] 是 2 个符合要求的方案,返回 2。
*/
public class K_su... |
package com.example.demo;
import java.lang.reflect.Array;
import java.util.Arrays;
public class Recusrion {
int[] arr = new int[100];
public static void main (String[] args){
Recusrion test = new Recusrion();
test.recursive1To10(1, 0);
System.out.println(test.count7(710265477));
... |
package com.Barclay.AsynTasks;
import org.json.JSONObject;
import com.Barclay.global.GlobalApplication;
import com.Barclay.global.HttpRequest;
import com.Barclay.hackatron.LandingActivity;
import com.Barclay.hackatron.R;
import android.app.ActionBar.LayoutParams;
import android.app.Dialog;
import android.app.Progres... |
package com.home.web.model;
public class Alumno {
private String _id;
private long id;
private String licencia;
private String nombre;
private String apellido1;
private String apodo;
public Alumno() {
super();
// TODO Auto-generated constructor stub
}
public Alumno(String licencia... |
/*
* (C) Copyright 2016 Richard Ballard.
*
* 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 ... |
package me.eccentric_nz.tardissonicblaster;
import java.util.UUID;
import me.eccentric_nz.TARDIS.enumeration.COMPASS;
import me.eccentric_nz.TARDIS.utility.TARDISStaticUtils;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import... |
package com.pawi.writer;
import com.pawi.data.Block;
import com.pawi.data.CFClass;
import com.pawi.data.ExtractedContent;
import com.pawi.data.Result;
import com.pawi.data.TestCase;
/**
* The {@link SingleTestFormatter} formats a TestCase into a string so that it is easy to print all relevant values of one test case... |
package com.yida.design.model.impl;
import com.yida.design.model.HummerModel;
/**
*********************
* @author yangke
* @version 1.0
* @created 2018年4月20日 下午5:39:45
***********************
*/
public class HummerH2Model extends HummerModel {
@Override
public void start() {
System.out.print... |
package cn.zhz.auntaunt.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;
import java.util.List;
im... |
package PresentationLayer;
import DBAccess.OrderMapper;
import FunctionLayer.LoginSampleException;
import FunctionLayer.Order;
import FunctionLayer.User;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.ArrayList;
impo... |
package com.tencent.mm.pluginsdk.ui.tools;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.provider.MediaStore.Images.Media;
import android.provider.MediaStore.Images.Thumbnails;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.wi... |
package com.codemine.talk2me;
public class ChattingInfo {
protected int otherLinearLayout;
protected int ownLinearLayout;
protected int otherHeadPortraitId;
protected int ownHeadPortraitId;
protected String otherDialogMsg;
protected String ownDialogMsg;
protected MsgType msgType;
protec... |
package com.nbu.projects.dentistappointmentsys.controllers.models;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.sql.Timestamp;
import java.util.Date;
public class EventInfoModel {
private Long id;
private St... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE All rights reserved.
*
* This software is the confidential and proprietary information of SAP Hybris ("Confidential Information"). You shall
* not disclose such Confidential Information and shall use it only in accordance with the terms of the license
*... |
package com.acme.orderserver.queue.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FinalizeOrderCommand extends Command {
@JsonProperty("paymentId")
private Long paymentId;
@JsonProperty("orderId")
private Long o... |
package com.example.demo.controller;
import com.example.demo.model.pojo.ProductImage;
import com.example.demo.model.repository.ProductImageRepository;
import com.example.demo.utility.exceptions.TechnoMarketException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.ann... |
package com.qimou.sb.web.entity;
import java.io.Serializable;
public class Role implements Serializable{
private static final long serialVersionUID = 1L;
private int roleID = 0 ;//角色ID
private String roleName = null ;//角色名称
private String bak = null ;//备注说明
public int getRoleID() {
return roleID;
}
publi... |
package 并发.多线程求和;
/**
* @Author: Mr.M
* @Date: 2019-05-14 09:44
* @Description:
**/
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import ja... |
package figures.quadrilaterals;
public class Quadrilateral{}
class ConvexQuadrilateral extends Quadrilateral{}
class Trapezoid extends ConvexQuadrilateral{}
class Parallelogram extends Trapezoid{}
class Rectangle extends Parallelogram{}
class Rhombus extends Parallelogram{}
class Square extends Rhombus{} |
package app.integro.sjbhs;
import androidx.viewpager.widget.ViewPager;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import java.util.ArrayList;
import app.integro.sjbhs.adapters.PhotosAdapter3;
import app.integro.sjbhs.apis.ApiClient... |
package ru.mindbroker.lesson01;
import ru.mindbroker.common.Tester;
public class Main {
public static void main(String[] args) {
System.out.println("String length test start.");
Tester tester = new Tester(new StringLengthTask(), "Lesson01/0.String/");
tester.runTest();
System.out.... |
package Automation_QA_New.pageobjectsfactory;
import Automation_QA_New.paramcontainers.GeneralProperties;
import Automation_QA_New.webdriver.driverexts.WebDriverExt;
import org.apache.log4j.Logger;
/**
* Created by aneutov on 2/3/2017.
*/
public class PageObjectTemplate
{
protected WebDriverExt driver;
prot... |
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.*;
public class Restaurant {
final Lock lockvwto = new ReentrantLock(true);
final Lock lockotc = new ReentrantLock(true);
final Lock lockotb = new ReentrantLock(true);
final Lock lockod = new ReentrantLock(true);
... |
package net.Ganesh.shoppingbackend.dao;
import java.util.List;
import net.Ganesh.shoppingbackend.dto.Product;
public interface IProductDAO {
//Basic crud operations
Product get(int id);
List<Product> list();
boolean add(Product product);
boolean update(Product product);
boolean delete(Prod... |
package com.example.dao;
import com.example.model.Book;
import java.util.List;
public interface BookDaoImpl {
List<Book> getAllBook();
Book findBookById(int id);
void addNewBook(Book book);
void updateBookById(Book book);
void updateQuantityBookById(int quantity, int idBook);
void deleteBookB... |
package it.usi.xframe.xas.bfimpl.sms.providers.vodafonepop;
public class PopAccount {
private String user = null;
private String password = null;
private String protocol = null;
public String getUser() {
return user;
}
public void setUser(String val) {
user = val;
}
public String getPassword() {
retur... |
package it.unica.pr2.autostrada;
import java.util.*;
public class Berlina extends Mezzo implements Auto{
String colore;
String targa;
public Berlina(String colore, String targa){
super(colore, targa);
this.colore = colore;
this.targa = targa;
}
public String targa(){
return this.targa;
}
}
|
package com.module.auth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationMan... |
package com.fillikenesucn.petcare.utils;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... |
package com.top.demo.configuration;
import com.top.demo.component.LoginHandlerInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.se... |
public interface TextFormat {
public String getContent();
}
|
package ec.edu.uce.vista;
import android.content.Intent;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xs... |
package com.fhbean.springboot.mongodb.reposistory;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.fhbean.springboot.mongodb.entity.ResourceComment;
public interface ResourceCommentRepository extends MongoRepository<ResourceComment, String> {
}
|
/*
* 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 nlp_1;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileNotFo... |
package com.yeahbunny.stranger.server.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotat... |
package com.wzy.service;
import org.springframework.beans.factory.FactoryBean;
/**
* @ClassName ExampleFactoryBean
* @Desc TODO
* @Author Administrator
* @Date 2019/6/28 14:12
**/
public class ExampleFactoryBean implements FactoryBean<Example3> {
public ExampleFactoryBean() {
System.out.println("ExampleFacto... |
package it.usi.xframe.xas.bfintf;
/**
* Local interface for Enterprise Bean: XasSecurity
*/
public interface XasSecurityLocal
extends
it.usi.xframe.xas.bfintf.IXasSecurityServiceFacade,
javax.ejb.EJBLocalObject {
}
|
/**
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.dao.manager.mapper;
import java.util.List;
import java.util.Map;
import javax.inject.Named;
import com.rofour.baseball.controller.model.manager.SysNoticeInfo;
import com.rofour.baseball.dao.manager.bean.SysNoticeBean;
/**
* @ClassName: SysNotice... |
package test_funzionali;
import static org.junit.Assert.*;
import java.util.Calendar;
import org.junit.Before;
import org.junit.Test;
import sistema.*;
public class SS4AggiungereUnCinemaPerUnGestoreCinema {
ApplicazioneAmministratoreSistema adminApp;
Calendar adminBirthday;
Calendar managerBirthday;
@Before
... |
package Game;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
import static Game.Model.*;
public class ReadScore
{
static public void readScores()
{
Scores.clear();
Scanner s = null;
try
{
s = new Scanner... |
package Lists;
import java.util.ArrayList;
import java.util.List;
public class MyArrayList {
public static void main(String[] args) {
List<String> fruits = new ArrayList<>();
fruits.add("apple");
fruits.add("mango");
System.out.println(fruits);
ArrayList<Integer> marks = new ArrayList<>();
... |
package angel.v.devil;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.Runnable;
import java.lang.Thread;
import java.net.ServerSocket;
import java.net.Socket;
public class CustomServerSocket {
public ServerSocket server;
private int port = 7777;
pu... |
package com.example;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DataLoaderStub implements DataLoader {
public List<Group> loadGroups() {
List<Group> groups = new ArrayList<>();
SimpleDateFormat... |
// Sun Certified Java Programmer
// Chapter 2, P129
// Object Orientation
public interface Chewable extends Sweetable {
}
|
package org.caps.spring.bean.factory.support;
import org.caps.spring.bean.BeanDefinition;
import org.caps.spring.bean.factory.BeanCreationException;
import org.caps.spring.bean.factory.BeanDefinitionStoreException;
import org.caps.spring.bean.factory.BeanFactory;
/**
* @author Caps.Xia
*/
import org.dom4j.Document... |
package com.test;
import java.util.List;
public class ListEx {
private List<String> list;
public ListEx() { }
public void printList() {
for(String p : list) {
System.out.println("게임명 : " + p);
}
}
public List<String> getList() {
return list;
}
public void setList(List<String... |
package com.sparknetworks.loveos.integration;
import com.sparknetworks.loveos.application.filtermatches.UserMatchedDTO;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import or... |
/*
* 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 calc;
import java.awt.Component;
import java.awt.GridLayout;
import javax.swing.ButtonGroup;
import javax.swing.JBut... |
package ru.itis.javalab.servlets;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Writer;
/**
* created: 21... |
package cn.droidlover.xdroid.demo.model;
import android.widget.Button;
import java.util.List;
/**
* Created by Administrator on 2017/2/12 0012.
*/
public class MovieInfo extends BaseModel {
private List<Item> movies;
public List<Item> getResults() {
return movies;
}
public void setResult... |
package com.dbs.hack2hire.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name ="fid")
public class FIDEntity {
@Id
@GeneratedValue
@Column(name = "id")
private int id;
... |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package BPMN.util;
import BPMN.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* The ... |
package tom.graphic.ThreeD;
import java.awt.Color;
import java.awt.Event;
import java.awt.Graphics;
import java.io.PrintStream;
// Referenced classes of package tom.graphic.ThreeD:
// Comparator, Object3D
public class Elem3D
implements Comparator {
public static final int ELEM_NOT_VISIBLE = -1000;
protected fl... |
package com.tefper.daas.parque.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
@Entity
@Table(name = "customer")
@Data
public cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.