text stringlengths 10 2.72M |
|---|
package com.digitfaber.messaging.example.spring;
import com.digitfaber.messaging.MessagePublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import static com.digitfaber.messaging.example.spring.ExampleSubscriber.EXAMPLE_EXCHANGE_NAME;
@Configura... |
package bootcamp.test;
import org.testng.ITestListener;
import org.testng.ITestResult;
public class CustomListener implements ITestListener {
@Override
public void onTestStart(ITestResult result) {
System.out.println("Starting Test: " + result.getMethod().getMethodName());
}
}
|
package com.example.root.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.text.NumberFormat;
import java.util.Locale;
public class Main... |
import javafx.collections.ObservableList;
import javafx.scene.control.ListView;
import java.io.Serializable;
// contains all the data members for the server :- NOTE: METHODS NEED TO BE IMPLEMENTED IN BOTH SERVER AND CLIENT
public class MorraInfo implements Serializable {
// data members for player 1
private i... |
package Strings;
public class DuplicateWordNOSpace {
public static void main(String[] args) {
String s = "testing xx code testing";
int count = 0;
for (int i = 1; i < s.length()-4; i++) {
if (s.substring(i - 1, i + 5).equals("testing")) {
count++;
}
}
System.out.println(count);
}
}
|
package kr.pe.ssun.bark;
import com.google.firebase.auth.FirebaseUser;
/**
* Created by x1210x on 2016. 8. 15..
*/
public class MainPresenterImpl implements MainPresenter {
private MainView mMainView;
private MainModel mMainModel;
public MainPresenterImpl(MainView mainView, MainActivity activity) {
... |
package category.arraysandstring;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeMap;
public class DupilcateNumber {
public boolean containsNearbyDuplicateII(int[] nums, int k) {
Set<Integer> hash = new HashSet<Integer>();
int i=0,j=0;
while(j-i<=k && j<nums.... |
package com.example.accounting_app.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button... |
package com.geekparkhub.hadoop.order;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
/**
* Geek International Park | 极客国际公园
* GeekParkHub | 极客实验室
* Website | https://www.ge... |
package com.nogago.android.maps.activities;
import com.bidforfix.andorid.BidForFixActivity;
import com.bidforfix.andorid.BidForFixHelper;
import com.nogago.android.maps.plus.OsmandApplication;
public class OsmandBidForFixActivity extends BidForFixActivity {
@Override
public BidForFixHelper getBidForFixH... |
package com.example.retail.users;
import com.example.retail.util.CreateResponse;
import com.example.retail.util.JwtUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.crypto.bcrypt.BCrypt;
import org.springframework.we... |
package com.shangcai.dao.common.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.shangcai.dao.BaseDao;
import com.shangcai.dao.common.ICategoryDao;
import com.shangcai.entity.common.Category;
import com.shangcai.entity.common.Category.T;
... |
package com.test07;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MTest {
public static void main(String[] args) {
ApplicationContext factory = new ClassPathXmlApplicationContext("com/test07/applicationContext.xml");
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pack1;
/**
*
* @author gaurav.sharma
*/
public class DemoString {
public static void main(String[] args) {
String str1 = "hello";
String str2 = "hello";
if (str... |
package main.by.intexsoft.cassandraJpa.service;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import main.by.intexsoft.cassandraJpa.model.User;
import main.by.intexsoft.cassandraJpa.... |
package app0510.event;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
//JVM이 keyevent객체를 생성하면, 아래의 리스너에게 이벤트 객체를 전달하므로,
//개발자는 키보드와 관련된 원하는 작업을 아래의 클래스에서 완성지으면 된다
//아래의 keycontrol 클래스는 keylistener의 자식이므로, 키와 관련된 모든 이벤트를 청취할수있다
public class keyControl implements KeyListener{
@Override... |
package com.fang.example.spring.di;
/**
* Created by andy on 4/3/16.
*/
public class RecuseDamselQuest implements Quest {
public void embark() {
System.out.println("recuse me");
}
}
|
package input;
import calculation.otherExpressions.Value;
import org.junit.*;
import calculation.*;
import calculation.calculations.*;
public class QueueabilityTest {
static Typical
typVal = NodeType.VALUE,
typ2 = NodeType.EXPONENT;
static Nodeable
nod1, nod2, nod3;
st... |
package com.example.chinenzl.wintec_cbite;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.RelativeLayout;
import android.widg... |
package com.phplogin.sidag.myapplication;
import android.app.Activity;
import android.app.LoaderManager;
import android.content.CursorLoader;
import android.content.Loader;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.os.Bundle;
import android.app.Fragment;
import android.util.... |
package example.payrollNoOptional;
import example.money.Money;
import java.time.LocalDate;
import static java.util.Arrays.asList;
import java.util.List;
import java.util.UUID;
@SuppressWarnings("ALL")
public class Main {
private Employer subsidiary;
private LocalDate date;
private PersonRepository person... |
package com.tencent.mm.ak.a.b;
import com.tencent.mm.ak.a.a.c;
import com.tencent.mm.ak.a.c.f;
import com.tencent.mm.ak.a.g.b;
import com.tencent.mm.modelsfs.SFSContext;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.vfs.d;
import java.io.FileNotFoundExcept... |
package Hub;
import java.awt.Rectangle;
import processing.core.PApplet;
/**
* small opening for player to travel between rooms
* @author Emily
*
*/
public class Door extends Rectangle
{
private Room adjacentRoom;
private int direction;
private String tag;
private boolean showTag, visible;
... |
/**
* Date: 2018年10月23日 20:31 <br/>
*
* @author lcc
* @see
* @since
*/
package com.example.spring.integration; |
package de.zarncke.lib.io;
import java.io.IOException;
import java.io.InputStream;
import org.joda.time.DateTime;
import de.zarncke.lib.err.Warden;
import de.zarncke.lib.time.Clock;
import de.zarncke.lib.time.JavaClock;
/**
* This stream wraps another stream and tracks the time since creation and throw... |
package com.mod.authservice.security.jwt;
import com.mod.authservice.security.services.UserDetailsImpl;
import com.mod.authservice.security.services.UserDetailsServiceImpl;
import com.mod.authservice.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security... |
package com.testing.class10_HomeWork;
public class bicycle implements lunTai {
@Override
public void ganghua() {
System.out.println("自行车 轮胎需要有钢材料");
}
@Override
public void suliao() {
System.out.println("自行车 轮胎需要有塑料用品");
}
}
|
package org.crama.burrhamilton.repository;
import javax.transaction.Transactional;
import org.crama.burrhamilton.model.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import ... |
package analysis.experiments;
import analysis.utils.AnalysisUtils;
import analysis.utils.CsvWriter;
import datastructures.interfaces.IList;
public class Experiment3 {
public static final int NUM_TRIALS = 5;
public static final int NUM_TIMES_TO_REPEAT = 1000;
public static final long MAX_LIST_SIZE... |
package com.youthchina.domain.Qinghong;
import com.youthchina.dto.applicant.SkillsRequestDTO;
import java.sql.Timestamp;
public class AdvantageLabel {
private Integer label_id;
private String label_code;
private Integer stu_id;
private Integer is_delete;
private Timestamp is_delete_time;
priv... |
package model;
import controller.Controller;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class NovaPorukaBtnEvent implements EventHandler<javafx.event.ActionEvent> {
private Scene scene3;
private Stage primaryStage;
public NovaPo... |
package de.fhb.ott.pagetox.util;
import de.fhb.ott.pagetoxjava.service.PhantomService;
import org.openqa.selenium.server.RemoteControlConfiguration;
import org.openqa.selenium.server.SeleniumServer;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.... |
package org.opentosca.planbuilder.prephase.plugin.scriptiaonlinux.handler;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.ParserConfigurationException;
import org.opentosca.planbuilder.model.tosca.AbstractArtifactReference;
import org.opentosca.planbuilder.model.tosca... |
/*
* 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 ftp_server;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOExc... |
//Problem:112. Path Sum
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this... |
package com.tencent.mm.plugin.nearby.ui;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterVie... |
package com.rails.ecommerce.admin.api.bean;
import java.io.Serializable;
/**
* Class Name: CarDate.java
* Function:订单表
*
* Modifications:
*
* @author gxl DateTime 2015-1-9 上午10:08:46
* @version 1.0
*/
public class CarDate implements Serializable {
private static final long ... |
package org.gmart.devtools.java.serdes.codeGen.javaGen.model.old_referenceResolution;
///*******************************************************************************
// * Copyright 2020 Grégoire Martinetti
// *
// * Licensed under the Apache License, Version 2.0 (the "License"); you may not
// * use this file excep... |
package com.example.retrofit_firebase;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.Field;
import retrofit2.http.GET;
import retrofit2.http.PATCH;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
public... |
package algorithm.baekjoon.BruteForce;
/*
* 10448 - 유레카 이론
* 시작: 14:30
* 끝: 16:00
* 시간: 1시간 30분... <실수로인해 잡아먹은 시간이 너무 크다!!
*
* [ 고쳐야할 점 ]
* - 문제를 정확히 파악하고 설계한 후 코드로 옮겨야 한다
* - 이 문제같은 경우 막연히 삼각수 세개를 더한 값을 구한다고 생각해서 '연속된'세개의 합만 구하다보니 미궁에 빠진 문제다...
* 제발 설계를 먼저 해보고 코드로 옮기자 ㅠㅠ 이런 실수는 너무 치명적이다
*/
import java.... |
package com.ic.SysAgenda.resource;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
... |
package com.zhowin.miyou.mine.adapter;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhowin.base_library.model.UserLeve... |
package com.org.web;
import com.org.NotFoundException;
import com.org.po.Type;
import com.org.service.BlogService;
import com.org.service.TagService;
import com.org.service.TypeService;
import com.org.vo.BlogQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pa... |
package singleton;
import java.io.Serializable;
public class SingletonLesson implements Serializable{
enum MySingleton{
INSTANCE;
public void doJob(){
}
}
private static final SingletonLesson singleton=new SingletonLesson();
private SingletonLesson() {
}
private Obje... |
package hw.zoo;
import hw.zoo.model.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.lang.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
imp... |
package animatronics.network;
import java.util.List;
import animatronics.Animatronics;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpd... |
/**
* Copyright (C) 2009 BonitaSoft S.A.
* BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble
*
* 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 2.0 of the License, or
* (at... |
import java.util.ArrayList;
/**
* Test Person class, Student class, Employee class, and Manager Class. Also use ArrayList in Test.
* @version 1.8.0 09-16-2017
* @author Aaron Lam
*/
public class Test {
public static void main(String args[]){
//test the Person and Student
ArrayList<Person> peop... |
package org.ravi.helloworld;
public class Hello {
public String displayHelloMessage(String message){
String msg;
if(message != null && !message.isEmpty()){
msg = message;
}
else { msg = "hi";}
return msg;
}
}
|
package MutuallyExclusiveThreads;
public class Pressure extends Thread{
void raisePressure()
{
if(P.pressureGuage < P.safetyLimit - 15)
{
try
{
sleep(100);
}
catch(Exception e){}
P.pressureGuage += 15;
}
else;
}
public void run()
{
raisePressure();
}
}
|
package com.yixin.kepler.common.enums;
/**
* 微众银行车辆类型枚举类
* @author YixinCapital -- chenjiacheng
* 2018年07月09日 17:17
**/
public enum WBCarTypeEnum {
NEW_CAR("1","新车"),
USED_CAR("2","二手车");
private String value;
private String name;
WBCarTypeEnum(String value, String name) {
this.value = value;
... |
package com.wenxc.jsfunction;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.wenxc.afdc.FunctionHelper;
import com.wenxc.afdc.inte.AFDC;
/**
* Created by wenxc on 2016/4/8.
*/
public class BaseActivity extends AppCompatActivity implements AFDC {
protected FunctionHelper ... |
/**
* Paintroid: An image manipulation application for Android.
* Copyright (C) 2010-2013 The Catrobat Team
* (<http://developer.catrobat.org/credits>)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publishe... |
package jie.android.ip.screen.menu;
import aurelienribon.tweenengine.Tween;
import aurelienribon.tweenengine.TweenCallback;
import aurelienribon.tweenengine.TweenManager;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.But... |
package com.example.demo.controller;//package com.wangan.springdata.controller;
//
//
//
//@RestController
//public class UserController {
//
// @RequestMapping("/hello")
// public String hello(){
// return "hello";
// }
//
//}
|
package io.ygg.common;
import io.ygg.packet.Packet;
import io.ygg.tcp.TcpProcessor;
import java.io.IOException;
import java.net.InetAddress;
import java.nio.ByteBuffer;
import java.nio.channels.Channel;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.HashMap;
import jav... |
package com.tencent.mm.plugin.appbrand.jsapi;
import android.content.Intent;
import com.tencent.mm.plugin.appbrand.jsapi.JsApiLaunchApplication.1.1;
import com.tencent.mm.plugin.appbrand.jsapi.JsApiLaunchApplication.a;
import com.tencent.mm.pluginsdk.model.app.g;
import com.tencent.mm.protocal.c.aoh;
class JsApiLaunc... |
package com.tencent.mm.plugin.voip.video;
import android.os.Looper;
import com.tencent.mm.plugin.voip.model.v2protocal;
import com.tencent.mm.sdk.platformtools.ag;
import java.util.ArrayList;
public final class k {
public ArrayList<a> hfT = new ArrayList();
public int mRotateAngle = 0;
public v2protocal o... |
import java.util.*;
class Invoker {
private List<Command> history;
public Invoker() {
this.history = new LinkedList<>();
}
public void storeAndExecute(Command command) {
this.history.add(command);
command.execute();
}
}
|
package com.summer.web.basic.client.dto;
import java.io.Serializable;
import java.util.List;
/**
* Bo层返回体
*
* @author luke
* @date 2019/06/03
*/
public class PageOut<T extends Serializable> {
/**
* 记录总数
*/
private Long total;
/**
* 当前页码
*/
private Integer pageNo;
/**
... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
// Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.08.... |
public class MergeSort extends SortTpl
{
private static Comparable[] item;
private static void sort(Comparable[] list, int start, int end)
{
if (start >= end) {
return;
}
int middle = (start + end)/2;
sort(list, start, middle);
sort(list, middle+1, end)... |
package org.sagebionetworks.repo.manager;
import java.util.List;
import org.sagebionetworks.repo.model.UserInfo;
/**
* This manager supports sending system generated messages to users, the messages are sent from a noreply address
* and delivery failures are ignored (e.g. no delivery failure notification is sent b... |
package LightProcessing.common.item;
import LightProcessing.common.render.ModelHarvester;
import LightProcessing.common.tile.TileEntityHarvester;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.IItemRenderer;
public class ItemHarvesterRenderer implements IItemRenderer {
private ModelHarvester ... |
package application;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import jav... |
package com.zhouyi.business.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author 李秸康
* @ClassNmae: SysDataLogConditionsDto
* @Description: TODO
* @date 2019/8/19 16:12
* @Version 1.0
**/
@ApiModel(value = "数据日志条件")
@Data
public class SysD... |
package com.tt.miniapp.route;
import android.content.Context;
import android.text.TextUtils;
import com.tt.frontendapiinterface.ApiCallResult;
import com.tt.miniapp.AppConfig;
import com.tt.miniapp.AppbrandApplicationImpl;
import com.tt.miniapp.AppbrandServiceManager;
import com.tt.miniapp.LifeCycleManager;
i... |
package com.example.lib.db;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
/**
* @Author jacky.peng
* @Date 2021/4/14 9:19 AM
* @Version 1.0
*/
@Entity(tableName = DBParams.EVENT_TABLE_NAME)
public class EventEntity {
@PrimaryKey(autoGenerate = true)
private... |
package com.lti.handson2;
import java.util.Scanner;
public class Palindrome {
public static void main(String[] args)
{
Scanner sc= new Scanner(System.in);
System.out.println("Enter the string:");
String s=sc.next();
String x="";
for(int i=s.length()-1;i>=0;i--)
{
x=x+s.charAt(i);
}
if(s.equals(... |
package edu.stanford.iftenney;
import java.io.*;
import java.util.*;
import edu.stanford.nlp.io.*;
import edu.stanford.nlp.ling.*;
import edu.stanford.nlp.pipeline.*;
import edu.stanford.nlp.util.*;
import edu.stanford.nlp.ling.CoreAnnotations.*;
import org.json.simple.*;
import org.json.simple.parser.JSONParser;
imp... |
package myn;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.TextArea;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import javax.swing.ImageIcon;
import javax... |
package com.techelevator.dao;
import java.util.ArrayList;
import java.util.List;
import com.techelevator.dao.model.Product;
import com.techelevator.dao.model.ProductFilter;
import com.techelevator.dao.model.ProductSortOrder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
... |
package org.dmonix.io.filters;
import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
/**
* Simple filter that accepts all files regardless of path and name.
* <p>
* Copyright: Copyright (c) 2004
* </p>
* <p>
* Company: dmonix.org
* </p>
*
* @author Peter Nerg
* @sin... |
package ctx;
public interface Session
{
}
|
package com.katsura.repository;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import com.katsura.model.WebPage;
import com.katsura.model.Web... |
package com.yksoul.pay.payment.ways;
import com.google.auto.service.AutoService;
import com.yksoul.pay.api.IPaymentStrategy;
import com.yksoul.pay.api.IPaymentWay;
import com.yksoul.pay.domain.enums.WxPaymentEnum;
import com.yksoul.pay.domain.model.PayModel;
import com.yksoul.pay.exception.EasyPayException;
import com... |
/*
* LocalDateTimeXMLAdapter.java
* This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin.
* $Id$
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
*/
package ru.otus.adapters.xml;
import javax.xml.bind.annot... |
package com.fancy.ownparking.ui.main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.internal.NavigationMenuView;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.wid... |
package dia30enero;
import java.util.Scanner;
public class arreglosEjercicio1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int cantidad;
cantidad =2;
String Usuario[];
Scanner Teclado = new Scanner(System.in);
Usuario = new String [cantidad];
Usuario[0]= "Pablo, ... |
package Creational.Prototype;
import java.util.HashMap;
import java.util.Map;
/**
*
* A registry that holds prototypes.
*
*
* It creates a shallow copy of the object.
* Meaning it just copies values & references as is in the new object.
*
* So for example, new object will refer to the same ArrayList object.
... |
/*
* 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 ejercicio_3;
import java.util.Scanner;
/**
*
* @author jrodriguez
*/
public class Ejercicio_3 {
/**
* @param arg... |
package com.puxtech.reuters.rfa.RelayServer;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.lmax.disruptor.EventHandler;
import com.puxtech.reuters.rfa.Filter.Filter;
public class Quot... |
package by.epam.pia.learning.algorithmization.arraysofarrays;
//2. Дана квадратная матрица. Вывести на экран элементы, стоящие на диагонали.
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
public class Task2 {
private static final int RANGE = 20;
public static void main(String[]... |
package com.zafodB.ethwalletp5.UI;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
... |
public class Utilizador extends Object{
String nome;
String estado;
TipoUtilizador tipoUtilizador;
public Utilizador(String nome_, String estado_ , TipoUtilizador tipoUtilizador_) {
this.nome = nome_;
this.estado = estado_;
this.tipoUtilizador = tipoUtilizador_;
}
public String getEstado() {
retur... |
package com.smxknife.java2.generics;
import com.smxknife.java2.generics._class.Group;
/**
* @author smxknife
* 2019-04-17
*/
public class ArrayGeneric {
public static void main(String[] args) {
// Group<String>[] groups = new Group<String>[10];// 编译报错,不能创建确切类型的范型数组,因为java的泛型运行期是类型擦除,都是Object类型
Group<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 com.przemo.wicketguicontrols.windows.panels;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apach... |
package com.nmit;
import java.io.*;
import java.util.Hashtable;
public class Services {
public long ReadPointer(int intcn)
{
long num = 0;
File f1 = null;
try {
try
{
f1=new File("C:\\Users\\LENOVO\\workspace\\Servlet\\User's_Pointer_File\\P"+intcn+".txt");
if(!f1.exi... |
package poo;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Informe o primeiro número:");
Double n1 = sc.nextDouble();
System.out.println("Informe o segundo... |
package emailApp;
import java.util.Scanner;
public class Email {
private String firstName;
private String lastName;
private String department;
private String password;
private String email;
private int defaultPasswordLength=8;
private int emailBoxCapacity;
private String alternateEmail;
// constructor for f... |
package com.huawei.esdk.demo.utils;
import java.lang.reflect.Field;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
public class BeanToJsonUtils
{
public static String beanToJson(Object bean)
{
JSONObject jsonObject = JSONObject.fromObject(bean);
return jsonObject.toString(... |
public class Keyqueue {
// head und tail = 0
private Node head = null, tail = null;
// totalitems = 0
private int totalItems = 0;
public Keyqueue() {
}
// push item in queue
public void push(byte b) {
// erstelle neues Node objekt
Node newNode = new... |
package com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.activities;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import androidx.core.content.FileProvid... |
package com.tencent.mm.plugin.appbrand.appcache;
import com.tencent.mm.plugin.appbrand.appcache.s.a;
import com.tencent.mm.pluginsdk.g.a.c.m;
final class g {
static final a ffx = new a() {
public final void abs() {
}
public final void abt() {
}
public final void abu() {
... |
package cci_linked_lists;
import java.util.Stack;
import cci_linked_lists.SumLists_2_5.LinkedListNode;
/**
* Palindrome: Implement a function to check if a linked list is a palindrome.
*
* @author chenfeng
*
*/
public class Palindrome_2_6 {
public static void main(String[] args) {
// create test case
Lin... |
package com.tencent.mm.protocal.c;
import f.a.a.c.a;
import java.util.LinkedList;
public final class bvq extends bhd {
public String bKv;
public int blZ;
public String byN;
public String dxK;
public String sjf;
public int ssb;
public int ssc;
public String ssd;
public int sse;
... |
/*
* 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 mariopractica;
import java.awt.Image;
import java.awt.Rectangle;
import javax.swing.ImageIcon;
/**
*
* @author... |
package com.espendwise.manta.web.forms;
import com.espendwise.manta.util.validation.Validation;
import com.espendwise.manta.web.validator.AccountSiteHierarchyManageFilterFormValidator;
@Validation(AccountSiteHierarchyManageFilterFormValidator.class)
public class AccountSiteHierarchyManageFilterForm extends Abst... |
package com.sixmac.service.impl;
import com.sixmac.core.Constant;
import com.sixmac.dao.SysCredibilityDao;
import com.sixmac.entity.SysCredibility;
import com.sixmac.service.SysCredibilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.spr... |
package com.isystk.sample.web.base.controller.api.resource;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.isystk.sample.common.dto.Dto;
import lombok.Data;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResourceImpl implements Resource {
List<? ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.