text stringlengths 10 2.72M |
|---|
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JPanel.java to edit this template
*/
package UserInterface;
import java.awt.CardLayout;
import javax.swing.JPanel;
import model.Car_directory;
/**
*
* ... |
package sim.departamento;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@Table(name="departamento")
public class Departamento implements Serializable {
/**
*
*/
private static final long serialVersionUID = 2432674944803742910L;
@Id
@GeneratedValue
@Column(name="id_depa... |
package com.eazy.firda.eazy.adapter;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.android.volley.too... |
package evilp0s.Collection;
import evilp0s.PrintUtil;
import junit.framework.TestCase;
import model.User;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class CollectionUtilTest extends TestCase {
public void testList() throws Exception {
... |
package com.example.owner.cs125finalproject;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.media.SoundPool;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import... |
// [카카오 인턴] 키패드 누르기
package com.level01.키패드누르기;
public class MTest {
public static void main(String[] args) {
int[] numbers = { 1, 3, 4, 5, 8, 2, 1, 4, 5, 9, 5 };
String hand = "right";
Soulution solution = new Soulution();
System.out.println(solution.solution(numbers, hand));
}
}
class Soulution {
publ... |
package de.jmda.app.uml.main;
import java.io.IOException;
import de.jmda.fx.cdi.FXAppRunner;
public class UMLKitRunner
{
public static void main(String[] args) throws IOException
{
FXAppRunner.run(UMLKit.class, args);
}
} |
package cn.bs.zjzc.model.impl;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
import cn.bs.zjzc.App;
import cn.bs.zjzc.model.IUserModel;
import cn.bs.zjzc.model.bean.User;
import cn.bs.zjzc.model.callback.HttpTaskCallback;
import cn.b... |
package com.smxknife.algorithm.demo02._01_min_stack;
import java.util.Stack;
/**
* @author smxknife
* 2021/2/19
*/
public class MinStack1 {
/**
* 存放原始的压入顺序的数据
*/
private Stack<Integer> stackData;
/**
* 存放每一步的最小值
*/
private Stack<Integer> stackMin;
public MinStack1() {
stackData = new Stack<>();
... |
package com.tencent.mm.plugin.nearby.ui;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mm.R;
import com.tencent.m... |
package mnm.mods.tabbychat.core;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.text.WordUtils;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import com.google.common.collect.Lists;
import com... |
package it.unica.pr2.ristoranti;
import java.util.*;
public class Menu extends TreeMap<String, Double>{
public String mostExpensive(){
String key = null;
Double max = new Double(0);
Set<String> keyset = this.keySet();
for(String s : keyset){
if(this.get(s) > max){
max = this.get(s);
key = s;
... |
package it.polimi.se2019.controller.weapons.optional_effects;
import it.polimi.se2019.rmi.UserTimeoutException;
import it.polimi.se2019.controller.GameBoardController;
import it.polimi.se2019.model.player.Player;
import it.polimi.se2019.view.player.PlayerViewOnServer;
import java.util.ArrayList;
import java.util.List... |
package com.tencent.mm.plugin.voiceprint.ui;
import com.tencent.mm.R;
import com.tencent.mm.plugin.voiceprint.ui.VoiceCreateUI.2;
import com.tencent.mm.plugin.voiceprint.ui.a.a;
class VoiceCreateUI$2$1 implements a {
final /* synthetic */ 2 oGj;
VoiceCreateUI$2$1(2 2) {
this.oGj = 2;
}
publi... |
package com.mssngvwls.model;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
pub... |
import java.util.*;
public class pirmaUzduotis {
public static void main(String[] args) {
Scanner x = new Scanner(System.in);
System.out.println("Įveskite skaičių nuo 1 iki 7");
int a = x.nextInt();
if ((a>0)&&(a<=7)) {
switch (a) {
case 1:
System.out.println("Monday");
break;... |
package com.example.plasticcabinets.controller;
import com.example.plasticcabinets.exception.ResurceNotFoundException;
import com.example.plasticcabinets.model.Products;
import com.example.plasticcabinets.repository.ProductsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... |
package primeirosProgramas;
import javax.swing.JOptionPane;
public class MexendoComSwitch {
public static void main(String []agrs) {
String dia = JOptionPane.showInputDialog("Qual o dia da semana?");
switch (dia) {
case "SEGUNDA":
case "TERÇA":
case "QUARTA":
case "QUINTA":
System.out.println("Bom d... |
package com.example.kalkulatorfelgiopon;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.... |
package JulyLong20;
import java.util.Scanner;
public class chefStr1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t-->0) {
int n = sc.nextInt();
int[] ar = new int[n];
int tskipedStr = 0;
int diff = 0;
for(int i=0;i<n;i++) {
ar[i]... |
public class PatronObserverMonitor
{
public static void main(String argv[]) {
Emisor[] emisor = new Emisor[GestorDeEventos.N_EVENTOS];
Observador[] observador = new Observador[GestorDeEventos.N_OBSERVADORES];
GestorDeEventos ge = new GestorDeEventosMonitor();
for (int eid = 0; eid < GestorDeEventos.N_... |
package com.example.android.inventoryapp.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.android.inventoryapp.data.StorageContract.ProductsEntry;
public class InventoryDbHelper extends SQLiteOpenHelper {
pub... |
package UI;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import IO_File.FileManager;
import Model.ModelManager;
import Model.TaiKhoan;
im... |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2015 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class CheckUserInfo {
public int menuItemValidate(int min, int max) {
String regex = "[0-9]{1}";
// create user input
Scanner scanner = new Scanner(System.in);
while (true) {
... |
package edu.umn.cs.recsys.dao;
import com.google.common.collect.ImmutableSet;
import it.unimi.dsi.fastutil.longs.Long2ObjectMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import org.apache.commons.lang3.text.StrTokenizer;
import org.lenskit.data.dao.DataAccessException;
import org.lenskit.util.io.Line... |
package aula06;
import java.util.ArrayList;
public class Ementa {
private class DiaEmenta {
Prato prato;
DiaSemana dia;
DiaEmenta (Prato aPrato, DiaSemana aDia) {
this.prato = aPrato;
this.dia = aDia;
}
Prato getPrato() {
return prato;
}
DiaSemana getDia() {
return dia;
}
@Overr... |
package com.jlgproject.fragment;
import android.view.View;
import com.jlgproject.R;
import com.jlgproject.base.BaseFragment;
/**
* Created by sunbeibei on 2017/8/22.
*/
public class MyWallet_ShouRu extends BaseFragment {
@Override
public int getLoadViewId() {
return R.layout.my_wallet_list;
}
... |
package com.tencent.mm.plugin.sns.ui;
class af$b {
int elS;
int elT;
int nPV;
private af$b() {
}
/* synthetic */ af$b(byte b) {
this();
}
}
|
package com.sinata.rwxchina.component_home.activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageVi... |
package com.kush.lib.expressions.types.factory;
import com.kush.lib.expressions.types.Type;
import com.kush.lib.expressions.types.TypedValue;
class NullValue extends BaseTypedValue {
private final Type type;
public NullValue(Type type) {
this.type = type;
}
@Override
public boolean isNu... |
package clientFx.controller;
import javafx.application.Platform;
import javafx.concurrent.Task;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyCode;
import javafx.scene... |
package Manufacturing.Machine.CanTreatmentMachine;
import Manufacturing.CanEntity.Can;
import Manufacturing.Ingredient.Ingredient;
import Manufacturing.Machine.CanMachine;
import Presentation.Protocol.IOManager;
import java.util.ArrayList;
import java.util.List;
/**
* 处理罐头
*
* @author 卓正一
* @since 2021/10/28 10:... |
package com.espendwise.manta.web.forms;
import com.espendwise.manta.model.view.GroupReportListView;
import com.espendwise.manta.util.SelectableObjects;
import java.util.List;
public class GroupReportFilterResultForm extends AbstractFilterResult<SelectableObjects.SelectableObject<GroupReportListView>> {
private ... |
package shared;
import java.lang.*;
/** Internal structure for the InsanceList class. Used for taking samples from the
* list.
* @see InstanceList
*/
public class InstSampleElement { // used for sample_with_replacement--should not be
// global, but needed for template instantiation
/** This class... |
package io.github.gronnmann.coinflipper.events;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import io.github.gronnmann.coinflipper.animations.Animation;
public class AnimationDeleteEvent extends Event{
private static final HandlerList handlers = new HandlerList();
public static HandlerList ... |
package com.polsl.edziennik.desktopclient.controller.teacher.activities;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import com.polsl.edziennik.desktopclient.controller.teacher.TeacherAction;
import com.polsl.edziennik.desktopclient.view.teacher.ReportsForTeacher;
import com.polsl.edzien... |
package calendarCode;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.uti... |
package com.lins.myzoom.dao;
import com.lins.myzoom.pojo.Tag;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* @ClassName TagRepository
* @Description TODO
* @Author lin... |
package com.spark.others;
import java.util.Arrays;
import java.util.List;
import org.apache.spark.Accumulator;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.VoidFunction;
public clas... |
package fr.tenebrae.MMOCore.Items.Archer;
import net.minecraft.server.v1_9_R1.Entity;
import net.minecraft.server.v1_9_R1.NBTTagCompound;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import fr.tenebrae.MMOCore.Items.IWeaponItem;
import fr.tenebrae.MMOCore.Items.Item;
import fr.tenebrae.MMOC... |
package de.ybroeker.assertions.json;
import org.assertj.core.util.CheckReturnValue;
/**
* @author ybroeker
*/
public interface JsonElementAssert {
@CheckReturnValue
JsonAssert and();
}
|
package game.scenes.ExampleScene;
import engine.GameEngine;
import engine.Renderer;
import engine.Scene;
import engine.gfx.Sprite;
import engine.gfx.Vector2;
import engine.objects.GameObject;
public class ExampleGameObject extends GameObject {
public ExampleGameObject(Scene scene, Vector2 position) {
supe... |
package br.com.uva;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import ja... |
package com.tencent.mm.plugin.setting.ui.setting;
import com.tencent.mm.plugin.setting.a.f;
import com.tencent.mm.sdk.platformtools.al.a;
class SettingsSelectBgUI$1 implements a {
final /* synthetic */ SettingsSelectBgUI mTS;
SettingsSelectBgUI$1(SettingsSelectBgUI settingsSelectBgUI) {
this.mTS = se... |
package com.jayqqaa12.mobilesafe.ui.software;
import android.os.Bundle;
public class MyAppsActivity extends AppsActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
setMyApps(true);
super.onCreate(savedInstanceState);
}
}
|
package domain;
import domain.enums.Faces;
import domain.enums.Suit;
public class Card {
private final Faces faces;
private final Suit suit;
public Card(Faces faces, Suit suit) {
this.faces = faces;
this.suit = suit;
}
public Card(String string) {
String[] splitted = str... |
package com.colingodsey.quic.pipeline.component;
import io.netty.util.ReferenceCountUtil;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.function.Consumer;
import com.colingodsey.quic.packet.frame.Frame;
public class FrameOrdering<T extends Frame.Orderable> {
protected SortedSet<T> queue... |
package com.example.iutassistant.Model.Connectors;
import com.google.firebase.database.DataSnapshot;
public interface FirebaseConnector {
public void convertDataSnapShot(DataSnapshot dataSnapshot);
public void setErrorStatus(String error);
public void onDataNotExist();
}
|
package com.bin.clock;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.widget.TabHost;
public class MainActivity extends Activity {
private TabHost tabHost;
@Override
protected void onCreate(Bundle savedInstan... |
package com.kashu.repository;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.Batch... |
package com.tencent.mm.plugin.scanner.ui;
import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mm.R;
import com.tencent.mm.platf... |
package br.com.entelgy.liferay.dxp.pages;
import br.com.entelgy.liferay.dxp.constants.Wait;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.ui.ExpectedConditions;
import or... |
package com.jmeter.plugin.util;
import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.RegistryConfig;
/**
* @Author: liuzhanhui
* @Decription:
* @Date: Created in 2019-01-15:10:07
* Modify date: 2019-01-15:10:07
*/
public class Test {
public static void main(String[] args) {
... |
package ru.skel2007.warren;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import ru.skel2007.warren.tinkoff.TinkoffProperties;
@SpringBootApplication
@EnableConfi... |
import java.awt.*;
import java.applet.*;
import java.io.*;
/*
<applet code="AppletMax3" width=500 height=500>
<param name="a" value="10">
<param name="b" value="20">
<param name="c" value="30">
</applet>
*/
public class AppletMax3 extends Applet
{
int a;
int b;
int c;
int d;
String str;
public void star... |
package org.jbpm.jsf.core;
import java.util.TimeZone;
import org.jbpm.jsf.core.handler.AddCommentHandler;
import org.jbpm.jsf.core.handler.AssignTaskHandler;
import org.jbpm.jsf.core.handler.CancelHandler;
import org.jbpm.jsf.core.handler.CompleteTaskHandler;
import org.jbpm.jsf.core.handler.DeleteHandler;
import org... |
package cn.com.ykse.santa.repository.dao;
import cn.com.ykse.santa.repository.entity.DemandDO;
import cn.com.ykse.santa.repository.entity.PrjDO;
import cn.com.ykse.santa.repository.entity.PrjDemandCfgDO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface PrjDemandCfgDOMapper {
in... |
package com.thinhlp.cocshopapp.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.squareup.picasso.Picasso;
import com.thinhlp.cocshopapp.R;
import com.thinhlp.cocshopapp.enti... |
package com.spring.boot;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.spr... |
package com.tencent.mm.ui.chatting.b;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.storage.bd;
import co... |
package test;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TestTest extends TestCase{
private test.Test test;
@Before
public void setUp() throws Exception {
test = new test.Test();
}
@... |
package com.cskaoyan.bean;
/**
* @auther 芮狼Dan
* @date 2019-05-20 00:28
*/
public class PCountCheck {
private String pCountCheckId;
private String processId;
private String checkItem;
private int sample;
private int checkNumber;
private int unqualify;
private double qualify;... |
package com.youthchina.service.application;
import com.youthchina.dao.qingyang.CompanyMapper;
import com.youthchina.dao.qingyang.JobMapper;
import com.youthchina.domain.Qinghong.Location;
import com.youthchina.domain.qingyang.*;
import com.youthchina.exception.zhongyang.exception.NotFoundException;
import com.youthchi... |
/*
* 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.
*/
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
impo... |
package com.lbsp.promotion.entity.model;
public class Operate extends BaseModel{
private String name;
private String index;
private String code;
private String alias;
private String description;
private String status;
private String visable;
public String getName() {
return nam... |
package com.df.ld31.triggers;
import com.df.ld31.*;
import com.df.ld31.level.*;
import com.df.ld31.triggers.*;
public class Dispenser extends Trigger
{
private int key;
private boolean activated = false;
public Dispenser(int x, int y, int w, int h, int key)
{
super(x, y, w, h);
this.key = key;
}
public ... |
package other;
import org.litepal.annotation.Encrypt;
import org.litepal.crud.DataSupport;
public class User extends DataSupport{
private int id;
private String nicname;
private String username;
@Encrypt(algorithm = AES)
private String password;
private String headImg;
@Encrypt(algorithm ... |
package moe.vergo.seasonalseiyuuapi;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.cucumber.java.DefaultDataTableCellTransformer;
import io.cucumber.java.DefaultDataTableEntryTransformer;
import io.cucumber.java.DefaultParameterTransformer;
import java.lang.reflect.Type;
/***
* This performs auto-ma... |
package com.espendwise.manta.dao;
import com.espendwise.manta.model.view.CountryView;
import com.espendwise.manta.util.Constants;
import com.espendwise.manta.util.QueryHelp;
import com.espendwise.manta.util.RefCodeNames;
import com.espendwise.manta.util.Utility;
import javax.persistence.EntityManager;
import java.uti... |
package leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* @author kangkang lou
*/
public class Main_126 {
public List<List<String>> findLadders(String beginWord, String endWord, List<String> wordList) {
List<List<String>> lists = new ArrayList<>();
return lists;
}
publ... |
package com.OovEver.easyCrawle.event;
/**
* 事件枚举
*
* @author OovEver
* 2018/5/17 23:36
*/
public enum ElvesEvent {
// 全局启动
GLOBAL_STARTED,
// 爬虫启动
SPIDER_STARTED
}
|
package cn.com.ykse.santa.service.impl;
import cn.com.ykse.santa.repository.dao.KeludeIssueDOMapper;
import cn.com.ykse.santa.repository.dao.MetricsIssueTrendDOMapper;
import cn.com.ykse.santa.repository.dao.ModuleMetricsApplyDOMapper;
import cn.com.ykse.santa.repository.entity.IssueStatusStatisticsDO;
import cn.com.y... |
package kr.ko.nexmain.server.MissingU.gcm.controller;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import kr.ko.nexmain.server.MissingU.common.Constants;
import kr.ko.nexmain.server.MissingU.common.utils.MsgUtil;
import kr.ko.nexmain.server... |
package rectangle;
public class Rectangle {
private double width;
private double height;
private static String color;
public Rectangle() {
this(1, 1);
setColor("yellow");
}
public Rectangle(double width, double height) {
setWidth(width);
setHeight(height);
... |
package com.liu.asus.yikezhong;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import an... |
// For two trees to be mirror images, the following three
// conditions must be true
// 1 - Their root node's key must be same
// 2 - left subtree of left tree and right subtree
// of right tree have to be mirror images
// 3 - right subtree of left tree and left subtree
... |
import java.util.Scanner;
public class kthMinElementArr {
public static void main(String [] args){
Scanner in=new Scanner(System.in);
int N=in.nextInt();
int k=in.nextInt();
int A[]=new int [N];
int i=0;
while(N-->0){
A[i++]=in.nextInt();
}
kthMinEle(A, k, 0, i-1);
}
static void kthMinE... |
package com.medic.quotesbook.models;
import com.google.api.client.json.GenericJson;
/**
* Created by capi on 01/02/15.
*/
public interface MessageBasedModelInterface {
public void fromMessage(GenericJson message);
public GenericJson toMessage();
}
|
package com.example.root.monerotest.InitActivity.RestoreWallet;
import android.app.Fragment;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
... |
package com.anydecisions.dao.admin;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Repository;
import org.springframewor... |
package test;
import codewars.JomoPipi;
import org.testng.annotations.Test;
import static org.testng.AssertJUnit.assertEquals;
public class JomoPipiTest {
@Test
public void basicTest1() {
assertEquals("1112111121311", JomoPipi.numericals("Hello, World!"));
}
@Test
public void basicTest2()... |
package com.pia.workshop.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.b... |
package edu.authentcate.api.web;
import edu.authentcate.api.model.TermsAndConditions;
import edu.authentcate.api.model.User;
import edu.authentcate.api.service.ApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.spring... |
package project.dbms.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.... |
package com.sunli.decembermultiple.commenpage.home.classify_menu.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.sunli.decembermultiple... |
package Excepciones.Java;
/**
*
* @author Luis H. Alves
*/
public class limiteCaracteres extends Exception{
String mensaje = "Limite de caraacteres de la BD superado.";
public String getMensaje() {
return mensaje;
}
public void setMensaje(String mensaje) {
this.mensaje = mensaje;
... |
package nc.view;
import nc.model.ModelOutput;
import java.util.ArrayList;
/**
* Created by samok on 20.05.2017.
*/
public class NetView implements ModelView, Observer {
private ModelOutput model;
private ArrayList<String> output;
public NetView( ModelOutput model){
this.model = model;
}
... |
package com.example.adminjs.jiaosheng11004;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Adminjs on 2017/11/4.
*/
public class MunActivity extends AppCompatActivity{
@Override
protected void onCreate(@Nullable Bundle ... |
package org.jboss.perf.test.server.enums;
public enum TestRunStatus {
FAILED(0),
SUCCESSFULL(1),
EXCLUDED(2),
TESTED(3);
private int code;
private TestRunStatus(int code) {
this.code = code;
}
public int getCode() {
return code;
}
}
|
package ru.android.messenger.model.utils;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import ru.android.messenger.model.dto.Dialog;
import ru.android.messenger.model.dto.Message;
import ru.android.messenger.model.dto.User;
import ru.android.messenger.model.dto.chat.ChatDialog;
import ru.... |
package com.xiaoxiao.controller;
import com.xiaoxiao.pojo.XiaoxiaoNotice;
import com.xiaoxiao.service.backend.TinyNoticeService;
import com.xiaoxiao.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... |
package com.jim.multipos.ui.cash_management.presenter;
import com.jim.multipos.core.Presenter;
import com.jim.multipos.data.db.model.till.TillManagementOperation;
import java.util.List;
/**
* Created by Sirojiddin on 09.02.2018.
*/
public interface CloseTillDialogFragmentPresenter extends Presenter{
void init... |
package com.gili.msmservice.service.Impl;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.http.MethodType;
import com.... |
/* 1: */ package org.linphone.core;
/* 2: */
/* 3: */ class LinphoneAuthInfoImpl
/* 4: */ implements LinphoneAuthInfo
/* 5: */ {
/* 6: */ protected final long nativePtr;
/* 7: 38 */ boolean ownPtr = false;
/* 8: */
/* 9: */ private native long newLinphoneAut... |
package javabasico.aula19labs;
import java.util.Scanner;
/**
* @author Kim Tsunoda
* Objetivo Ler um vetor A com 20 elementos. Construir dois vetores B e C, sendo que nos vetor B e C serão armazenados o valores pares e ímpares de A, respectivamente.
*/
public class Exercicio30 {
public static void ma... |
import java.util.*;
import tester.*;
// This class represents tests for Algorithms, StringComp, and IntComp Classes
class ExamplesAlgorithms {
// These are sample ArrayLists of Strings and Integers
ArrayList<String> slist = new ArrayList<String>();
ArrayList<Integer> ilist = new ArrayList<Integer>();
... |
package app.playground2;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import util.Address;
import util.DBConstants;
import util.Name;
public class InsertExample
{
private static fin... |
package com.teaman.data.entities;
import com.parse.ParseClassName;
import com.parse.ParseQuery;
import com.teaman.accessstillwater.base.BaseParseObject;
/**
* <h1> [Insert class name here] </h1>
* <p>
* [Insert class description here]
* </p>
* <p>
* [Insert additional information here (links, code snippets, etc... |
package com.blackdragon2447.AAM.util.obj;
public class EmptyConstructorExeption extends Exception{
private static final long serialVersionUID = 967838652164620067L;
public EmptyConstructorExeption(){}
public EmptyConstructorExeption(String str){
super(str);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.