text stringlengths 10 2.72M |
|---|
package item.repository;
import item.domain.Dispenser;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DispenserRepository extends CrudRepository<Dispenser, Integer > {
}
|
import java.util.Scanner;
public class bj2675 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
for(int i=0;i<n;i++){
String str= new String();
StringBuilder strb= new StringBuilder();
int num=i... |
/*
* Class wrappers of primitive types offer static service methods.
* converting digit numbers from String to numeric primitive type.
* String class offers another way around, converting number to string.
*/
package NumberWraper;
/**
*
* @author YNZ
*/
public class UserNumbers {
/**
* ... |
package com.kangyonggan.app.simconf.controller.web;
import com.alibaba.fastjson.JSON;
import com.kangyonggan.app.simconf.config.Config;
import com.kangyonggan.app.simconf.model.Conf;
import com.kangyonggan.app.simconf.service.ConfService;
import com.kangyonggan.app.simconf.util.CryptoUtil;
import com.kangyonggan.app.s... |
package com.najasoftware.fdv.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteException;
import android.support.annotation.NonNull;
import com.najasoftware.fdv.model.Item;
import com.najasoftware.fdv.model.Pedido;
import j... |
package org.jinku.sync.application.server.comet;
import com.alibaba.fastjson.JSON;
import com.google.common.base.Preconditions;
import io.netty.channel.ChannelHandlerContext;
import org.apache.commons.lang3.StringUtils;
import org.jinku.sync.domain.repository.UserSessionRepository;
import org.jinku.sync.application.ao... |
import javafx.scene.control.Button;
import javafx.scene.control.MenuButton;
import javafx.scene.image.ImageView;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
/**
* @author sufu
*/
public class GardenDesignView {
private GridPane gridPane;
/**
* 初始化... |
package com.minoon.disco.sample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.minoon.disco.Logger;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class TopActivity extends A... |
package com.hhdb.csadmin.plugin.table_open.ui;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
public class HHTableColumnCellRenderer extends DefaultTableCellRenderer {
/**
*
*/
private static final long... |
package org.sinhro.ForeignLanguageCourses.service;
import lombok.Getter;
import org.sinhro.ForeignLanguageCourses.domain.Language;
import org.sinhro.ForeignLanguageCourses.domain.Listener;
import org.sinhro.ForeignLanguageCourses.domain.Statistic;
import org.sinhro.ForeignLanguageCourses.repository.ListenerRepository;... |
package io.projekat.predmet;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.stereotype.Service;
@Service
public class PredmetService {
private List<Smer> smerovi = new ArrayList<>(Arrays.asList(new Smer("1","Racunarska tehnika i softverkos inzenjerstvo")));
... |
public class MovieNetflixQueue {
public static void main(String[] args) {
NetflixQueue a = new NetflixQueue();
Movie b= new Movie("A dogs journey", 8 );
Movie c= new Movie("End game", 10);
Movie d= new Movie("Avengers", 9);
a.addMovie(b);
a.addMovie(c);
a.addMovie(d);
a.printMovies();
System.out.p... |
package com.yun.android.util;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnecti... |
package FlowerGirl;
import org.w3c.dom.ranges.Range;
import java.util.*;
public class Bouquet {
private final Set<Flower> flowerSet = new HashSet<>();
private final Set<Accessory> accessoriesSet = new HashSet<>();
private Comparator<Flower> flowerComparator = (x, y) -> x.level.compareTo(y.level);
pu... |
package com.siss.web.delegate.mae;
import com.siss.entity.mae.Funcionario;
import com.siss.exception.EntityException;
import com.siss.ifacade.mae.FuncionariosFacadeRemote;
import com.siss.web.resource.WebConstants;
import com.siss.web.Util;
import com.siss.web.util.locator.ServiceLocator;
import java.util.List;
import... |
package filippov.vitaliy.poibms3_8.ui.tools;
import android.content.Context;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import filippov.vitaliy.poibms3_8.Data.Events.CalendarEvents;
import filippov.vitaliy.poibms3_8.Data.Events.Event;
public c... |
package com.pronix.android.apssaataudit.Dal;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import com.pronix.android.apssaataudit.common.Constants;
import com.pronix.android.apssaataudit.common.Sqlit... |
package by.bytechs.xml.entity.cashStatus;
import javax.xml.bind.annotation.*;
/**
* @author Romanovich Andrei
*/
@XmlAccessorType(value = XmlAccessType.FIELD)
@XmlType(name = "PhysicalCUListXml", propOrder = {"physicalCUElm"})
@XmlRootElement(name = "physicalCUList")
public class PhysicalCUListXml {
@XmlElement... |
package chess;
import chess.board.*;
import javafx.application.Application;
import javafx.geometry.*;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.*;
import javafx.stage.Stage;
public class Chessboard extends Application {
private Boa... |
package com.lab4;
import java.util.Scanner;
public class demo1 {
public static void main(String[] args) {
int n , sum = 0 ,temp;
Scanner scanner = new Scanner(System.in);
do {
System.out.println("Nhap so phan tu mang :");
n = scanner.nextInt();
} while (n<0);
// Khoi tao mang
int arry[] = n... |
/*
* Created on Sep 7, 2004
*/
package craterstudio.text;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Hash... |
package com.me.interview.services;
import com.me.interview.api.TransactionResponse;
import reactor.core.publisher.Mono;
public interface ITransactionsServices {
Mono<TransactionResponse> getTransactions(String accountID, String fromDate, String toDate);
}
|
package 数据结构.线性结构.线性表;
/**
* Created by Yingjie.Lu on 2018/8/30.
*/
/**
* @Title: 通过顺序存储实现的线性表
* @Date: 2018/8/30 9:21
*/
public class MyArrayList {
private Object[] arr = new Object[10];//默认初始化数组大小为10个
private int size=0;//记录数组里面的个数
public int size(){
return size;
}
/**
* @... |
package com.eshop.service.impl;
import com.eshop.dao.OrderDao;
import com.eshop.dao.impl.OrderDaoImpl;
import com.eshop.domain.Basket;
import com.eshop.domain.Order;
import com.eshop.domain.Product;
import org.junit.Before;
import org.junit.Test;
import java.time.LocalDate;
import java.util.ArrayList;
import java.uti... |
package com.yhkx.core.storage.dao.entity;
import org.hibernate.validator.constraints.Length;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
... |
package dataAccess.abstracts;
import java.util.List;
import entities.concretes.Course;
public interface CourseDao extends EntityRepository<Course>{
List<Course> getByCourseName(String courseName);
List<Course> getByTeacherName(String teacherName);
}
|
package dataobject;
public class Product {
private int id;
private String pCode;
private String pName;
private Category category;
private Brand brand;
private UnitOfMeasure unitofmeasure;
private double pPrice;
private String description;
public Product(){
id = 0;
pCode = null;
pName = ... |
package com.beadhouse.in;
public class NotifyParam extends BasicIn {
private String token;
private int notifyType;
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public int getNotifyType() {
return notifyTyp... |
package domain;
import java.io.Serializable;
/**
* Created by rodrique on 4/19/2018.
*/
public class MainCourse extends Menu{
String mainID;
String foodItem;
public MainCourse() {
}
public MainCourse(String mainID, String foodItem) {
this.mainID = mainID;
th... |
package com.lenovohit.ssm.payment.support.bankPay.model.builder;
import com.lenovohit.core.utils.StringUtils;
/**
* Created by zyus
*/
/**
* @author lenovo
*
*/
public class BankDownloadRequestBuilder extends BankRequestBuilder {
private String checkDate; //对账日期 字符(8)YYYYMMDD 必输
private String... |
/* $Id$ */
package djudge.judge.interfaces;
import djudge.judge.JudgeTaskResult;
public interface Submitter
{
void submitResult(JudgeTaskResult result);
}
|
package ch.ethz.geco.t4j.internal.json;
/**
* Represents a json stream object.
*/
public class StreamObject {
public Long id;
public String name;
public String url;
public String language;
}
|
package controller;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.cell.Propert... |
package com.example.converter;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class ModelConverter {
@Autowired
private ModelMapper mapper;
public <T, K> T toDTO(K entity, Class<T> dtoC... |
package com.cts.model;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
//@DiscriminatorValue("mang")
//@Table(name="mgrs")
@Table(name="mgrs_Only")
public class Manager extends Emp {
@Column(name="allowence")
priv... |
package com.codecool.shop.controller;
import com.codecool.shop.Utils;
import com.codecool.shop.dao.ProductCategoryDao;
import com.codecool.shop.dao.implementation.Db.ProductCategoryDaoJdbc;
import com.codecool.shop.dao.implementation.Db.SupplierDaoJdbc;
import com.codecool.shop.dao.implementation.Mem.ProductCategoryDa... |
package com.santosh;
public class Main {
public static void main(String[] args) {
int count = 1;
while (count != 6) {
System.out.println("count = " + count);
count++;
}
System.out.println("resetting the count...");
count = 1;
while (true) {
... |
/*
* SingleMessageCodec.java
*
**********************************************************************
Copyright (c) 2013 - 2014 netty-apns
***********************************************************************/
package apns.netty.codec;
import io.netty.buffer.ByteBuf;
import io.nett... |
package com.needii.dashboard.model;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
/**
* The persistent class for the currency database table.
*
*/
@Entity
@NamedQuery(name="Currency.findAll", query="SELECT c FROM Currency c")
public class Currency implements Serializable {
priv... |
package com.github.andlyticsproject.admob;
public class AdmobAccountRemovedException extends Exception {
private static final long serialVersionUID = 1L;
private String accountName;
public AdmobAccountRemovedException(String string, String accountName) {
super(string);
this.setAccountName(accountName);
}
... |
package com.nisira.view.Activity;
import android.animation.ObjectAnimator;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.TextInputEditText;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.LinearL... |
//TetrisT.java
public class TetrisT extends TetrisPiece
{
public TetrisT()
{
filledSquares[0][0][1] = true;
filledSquares[0][0][2] = true;
filledSquares[0][0][3] = true;
filledSquares[0][1][2] = true;
filledSquares[1][0][3] = true;
filledSquares[1][1][2] = true;
filledSquares[1][1][3] = true;
fill... |
/*
* Copyright 2018 Neil Lee <cnneillee@163.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 applicable ... |
package com.microsoft.bingads.v11.api.test.entities.ad_extension.review;
import com.microsoft.bingads.v11.api.test.entities.PerformanceDataTestHelper;
import com.microsoft.bingads.v11.bulk.entities.BulkAdGroupReviewAdExtension;
import org.junit.Test;
public class BulkAdGroupReviewAdExtensionReadWriteTest {
@Test... |
CoffeeMachineInterface.java
public interface CoffeeMachineInterface {
void chooseFirstSelection();
void chooseSecondSelection();
}
~~~~~~~~~~~~~~~~
Submit OldCoffeeMachine.java here
public class CoffeeTouchscreenAdapter implements CoffeeMachineInterface {
OldCofffeeMachine theMachine;
public void selec... |
package com.san.field;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.ArrayList;
import java.util.List;
@Service
public class FieldService {
@Autowired
private FieldRepository fieldRepository;
public List<Field> getAll() {... |
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
/*
* @lc app=leetcode.cn id=32 lang=java
*
* [32] 最长有效括号
* 使用栈
*
* 两种case需要入栈:
* 匹配到( ;
* 一、入栈条件为1.栈为空 2.当前字符是'(' 3.栈顶符号位')',因为三种条件都没办法消去成对的括号。
* 二、计算结果:符合消去成对括号时,拿当前下标减去栈顶下标即可
*
*
*/
// @lc code=start
class Solution {
clas... |
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
public class xmlToZip {
public static void main(String[]... |
package cc.ipotato.reflect;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class GetMethodTest {
public static void main(String[] args) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException, ClassNotFoundException {
... |
package Client;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.*;
public class Client {
private String clientName = "defaultName";
private Socket socket;
private Client(String adress, int port) {
try {
... |
package com.jobnotes.com.jobnotes.models;
/**
* Created by edwardbenzenberg on 5/17/17.
*/
import java.util.Date;
/**
* @author edwardbenzenberg
*
*/
public class Notes {
int id;
String jobName;
String note;
String dateAdded;
Date dateFinished;
String status;
public Notes(){
... |
package cn.edu.zju.gd.r;
/*
* https://leetcode.com/problems/reverse-string/#/description
*
* 344 Reverse String
*
* example: Given s = "hello", return "olleh".
*
*/
public class ReverseString {
public static void main(String[] args) {
String s = "hello";
System.out.println(reverseString(s));
}
publi... |
package render;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;
import org.newdawn.slick.geom.Shape;
import actors.Effect;
import actors.Status;
/* Uses a spriteSheet and an actor's status to draw it. */
public class A... |
package com.android.myvirtualnutritionist.ui.diary.nutrition;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class CaloriesViewModel extends ViewModel {
private MutableLiveData<String> totalCalories;
private MutableLiveData<String> n... |
package Lector13.Task7;
public class GetIntThree {
public static String getIntTree (int num){
Long m = System.nanoTime();
String str ="";
if (num > 9999999999l)
{
str = "0000000000";
}
else {
if (num < 10) {
str = str.concat("0... |
public class BucketSortDemo {
public static void main(String[] args) {
int[] array = { 23, 24, 22, 21, 26, 25, 27, 28, 21, 21 };
BucketSort m = new BucketSort(array, 20, 30);
m.sort();
for (int i = 0; i < array.length; i++) {
System.out.print(array[i] + " ");
}
}
}
|
package com.zc.schedule.product.scheduleRule.dao;
import java.util.List;
import java.util.Map;
import com.zc.base.orm.mybatis.annotation.MyBatisRepository;
import org.springframework.stereotype.Repository;
import com.zc.schedule.common.base.NormalDao;
@MyBatisRepository(value = "groupDao")
public inter... |
package com.test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.test.base.Solution;
public class SolutionB implements Solution
{
@Override
public int maxProfit(int[] prices)
{
if (null == prices || prices.length < 2)
{
return 0;
... |
package com.metoo.foundation.dao;
import org.springframework.stereotype.Repository;
import com.metoo.core.base.GenericDAO;
import com.metoo.foundation.domain.FootPoint;
@Repository("footPointDAO")
public class FootPointDAO extends GenericDAO<FootPoint> {
} |
class TestGit{
///666
} |
package com.company.polygon;
import com.company.pixel.PixelDrawer;
import com.company.line.LineDrawer;
import com.company.polygon.drawer.RegularPolygonDrawer;
import com.company.screen_conversion.RealPoint;
import com.company.screen_conversion.ScreenPoint;
import java.awt.*;
public class PolygonDrawerLine impleme... |
package jsonparser;
import java.util.HashMap;
import java.util.Set;
public class DictObject extends JsonObject {
HashMap<String, JsonObject> dict;
public DictObject() {
dict = new HashMap<>();
}
public Set<String> keySet() {
return dict.keySet();
}
public JsonOb... |
package com.openfarmanager.android.core.network.mediafire;
import android.database.Cursor;
import com.mediafire.sdk.MFApiException;
import com.mediafire.sdk.MFException;
import com.mediafire.sdk.MediaFire;
import com.mediafire.sdk.api.FileApi;
import com.mediafire.sdk.api.FolderApi;
import com.mediafire.sdk.api.respo... |
package cn.t.server.dnsserver.protocol;
import cn.t.server.dnsserver.constants.RecordClass;
import cn.t.server.dnsserver.constants.RecordType;
/**
* @author yj
* @since 2020-01-01 10:45
**/
public class Request {
private Header header;
private String domain;
private byte labelCount;
private RecordT... |
import game.Gamer;
import game.Memento;
/**
* Created by kilo on 2018/8/24.
* 进行游戏的类
* 事先保存Memento的实例,之后根据需要恢复Gamer的状态
* 决定何时拍照,何时撤销以及保存Memento角色
*/
public class Main {
public static void main(String[] args) {
Gamer gamer = new Gamer(100);//最初持有金钱数为100
Memento memento = gamer.createMemento();/... |
package pinno.demo.hackernews.screen.collection.viewholder;
import android.support.annotation.NonNull;
import android.view.View;
import pinno.demo.hackernews.base.BaseViewHolder;
import pinno.demo.hackernews.base.ListItem;
public class LoadingViewHolder extends BaseViewHolder<ListItem> {
private final int viewType... |
/*
* (C) Mississippi State University 2009
*
* The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is
* a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries
* and wapplets are ... |
package gamePackage;
import gamePackage.myFrame;
import java.awt.Dimension;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class gameNumberPanel
{
private gameStateSingleton StateGame = gameStateSingleton.getInstance();
public gameNumberPanel(JPanel to... |
package com.it306.test;
/**
* The property class. Extends Cell and adds method to store
* Player object reference.
* @author Amith Kini
*
*/
public class Property extends Cell{
private Player powner;
public Property(String name, int pos, int value, String colourGroup){
setName(name);
set... |
package arcs.android.demo.service;
import arcs.api.UiRenderer;
import arcs.demo.services.AlertService;
import arcs.demo.services.ClipboardService;
import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import dagger.multibindings.IntoMap;
import dagger.multibindings.StringKey;
@Module
public abstract clas... |
package org.odk.collect.android.activities;
import java.io.IOException;
import java.net.URISyntaxException;
import org.apache.http.client.ClientProtocolException;
import org.json.JSONArray;
import com.mpower.database.feedbackdatabase;
import com.mpower.model.Querydata;
import com.mpower.util.HttpRequest;
import a... |
package com.mycompany.gaviao.service;
import com.mycompany.gaviao.model.Cliente;
import com.mycompany.gaviao.model.ClienteEndereco;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.criterion.Restrictions;
import ... |
package pl.rakowiecki;
import java.util.Scanner;
public class Main extends NumberFormatException {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Wpisz zdanie: ");
String sentence = scanner.nextLine();
int leftBracket = 0;... |
package PACKAGE_NAME;public class VipUser {
}
|
package jp.ac.it_college.std.s14011.pdp.mediator;
/**
* Created by s14011 on 15/06/16.
*/
public class Main {
static public void main(String args[]) {
new LoginFrame("Meditor Sample");
}
}
|
package com.sparta.malik.model;
import com.sparta.malik.util.Printer;
import java.time.LocalDate;
public class EmployeeDTO {
private int id;
private String prefix;
private String firstName;
private char middleInitial;
private String lastName;
private char gender;
private String email;
... |
package cn.cndoppler.newsandshopping.fragment;
import android.view.View;
import cn.cndoppler.newsandshopping.R;
import cn.cndoppler.newsandshopping.comment.BaseFragment;
public class LeftMenuFragment extends BaseFragment {
private View view;
@Override
public View initView() {
view = View.infla... |
package com.pooyaco.person.web.bundle;
import com.pooyaco.gazelle.web.bundle.GazelleResourceEnum;
public enum PersonResources implements GazelleResourceEnum {
PERSON_LIST("ليست افراد"),
FIRST_NAME("نام"),
LAST_NAME("نام خانوادگي"),
BIRTHDAY("تاريخ تولد"),
PERSON_INFO("مشخصات افراد"),
CITY("شه... |
package com.xinhua.xdcb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>nuclearVO complex type�� Java �ࡣ
*
* <p>����ģʽƬ��ָ�������ڴ����е�Ԥ�����ݡ�
*
* <pre>
* <complexType name="nuclearVO">
* <com... |
package com.test;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class ListComparisonInJava8 {
public static void test() {
List<String> nameList1 = Stream.of("birendra", "raoushni", "bijay", "rakesh", "rahul", "radha")
.collect(Colle... |
package cookie_session;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Servlet implem... |
package pkgbinternal;
public class InternalBHelper {
public String doIt() {
return "from pkgbinternal.InternalBHelper";
}
}
|
/*
* Copyright 2018 Rundeck, Inc. (http://rundeck.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 appli... |
/*
* Copyright (C) 2017 Philippe GENOUD - Université Grenoble Alpes - Lab LIG-Steamer
*
* 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 License, or
* (at your optio... |
package com.spreadtrum.android.eng;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.TextView;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.nio.ch... |
package com.example.demo;
import com.example.demo.bean.req.CreditCardReq;
import com.example.demo.entity.CreditCard;
import com.example.demo.repository.CreditCardRepository;
import com.example.demo.service.CreditCardService;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.ju... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jearl.ejb.model;
import java.io.Serializable;
/**
*
* @author bamasyali
*/
public interface BaseEntity<PRIMARY> extends Serializable {
PRIMARY getPrimayKey();
Integer getPrimayKeyAsInteger();
}... |
package database;
public class ViewPet {
}
|
package tree;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**TODO 待优化
* 501. 二叉搜索树中的众数 给定一个有相同值的二叉搜索树(BST),找出 BST 中的所有众数(出现频率最高的元素)。
*
* 假定 BST 有如下定义:
*
* 结点左子树中所含结点的值小于等于当前结点的值 结点右子树中所含结点的值大于等于当前结点的值 左子树和右子树都是二叉搜索... |
package ui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import... |
package yinq.situation.fragments;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioGroup;
import com.yinq.cherrydia... |
package com.jxtb.test.service;
import com.jxtb.test.entity.Test;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: Administrator
* Date: 17-3-24
* Time: 下午5:11
* To change this template use File | Settings | File Templates.
*/
public interface ISessionService {
public List<Test> findAllTest(... |
package binary.tree.max.path.sum;
/**
* Created by yebingxu on 8/22/15.
*/
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int val) {
this.val = val;
}
}
class Flag {
boolean isValid;
public Flag(boolean valid) {
isValid = valid;
}
}
public class ... |
package com.generator;
import java.util.Random;
import com.vehicles.Bus;
import com.vehicles.Car;
import com.vehicles.Truck;
import com.vehicles.Vehicle;
import com.vignett.BusVignett;
import com.vignett.CarVignett;
import com.vignett.TruckVignett;
import com.vignett.Vignett;
import com.vignettTaskExeptions.InvalidDr... |
package de.varylab.discreteconformal.unwrapper;
import static de.varylab.discreteconformal.util.CuttingUtility.cutManifoldToDisk;
import static de.varylab.discreteconformal.util.CuttingUtility.cutToSimplyConnected;
import static de.varylab.discreteconformal.util.CuttingUtility.cutTorusToDisk;
import java.util.Collect... |
package com.project.phase2;
import com.project.Crew;
public class Quest {
private String name;
private Crew givenBy;
private boolean accepted =false;
public Quest(String name, Crew givenBy) {
this.name = name;
this.givenBy = givenBy;
}
public String getName() {
return name;
}
public void setName(... |
package com.bestone.dao;
import com.bestone.model.*;
import java.util.List;
public interface ArticleDao22 {
//新建社区文章
void save(ArticleModel22 article22);
//根据用户查询文章列表
List<UserArticle22> findShequByUser(UserModel user);
//查询所有的社区文章(不区分作者)
List<UserArticle22> findAllShequArticle();
//查... |
package com.example.bob.health_helper.Community.contract;
import com.example.bob.health_helper.Base.BaseMvpContract;
public interface AddQuestionContract extends BaseMvpContract{
interface View extends BaseView {
void onPublishQuestionSuccess();
void onPublishQuestionFailed();
}
interface ... |
package com.tripper.db.relationships;
import androidx.room.Embedded;
import androidx.room.Entity;
import androidx.room.Relation;
import com.tripper.db.entities.Day;
import com.tripper.db.entities.DaySegment;
import java.util.List;
public class DayWithSegmentsAndEvents {
@Embedded public Day day;
@Relation(
... |
package com.example.graduation.fragment;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.