text stringlengths 10 2.72M |
|---|
import org.junit.Assert;
import org.junit.Test;
import java.util.Dictionary;
public class ValidadorCustomPredicateTest {
@Test
public void garantirQueCustomPredicateNaoDeveRetornarInconsistenciasQuandoVerdadeiro() {
Validador validador = new Validador();
final Integer n = 5;
final Str... |
package com.example.demo.jpaTest.repository;
import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.jpaTest.vo.EmployeeVo;
@Repository
public interface EmployeeRepository extends JpaRepository<EmployeeVo, Long>{... |
package com.ispl.callses.Fragment;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.n... |
package com.soft1841.map;
import java.util.*;
public class StudentTest {
public static void main(String[] args) {
List<Student> list1 = new ArrayList<>();
list1.add(new Student(1, "黄敬理"));
list1.add(new Student(2, "袁腾飞"));
List<Student> list2 = new ArrayList<>();
list2.add(... |
package terusus.avro.protobuf;
import com.google.protobuf.DescriptorProtos.*;
import com.google.protobuf.Descriptors.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.List;
public class ProtobufHelper {
public static Descriptor getDescriptor(String descriptorFil... |
package hw10.task1;
public class Book implements Printable {
private final String type = "Book";
private String title;
public Book(String title) {
this.title = title;
}
public String getType() {
return type;
}
public String getTitle() {
return title;
}
pu... |
import java.util.Scanner;
/**
* Created by saif on 14/09/2016.
*/
public class Jeu {
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
System.out.println("Choisissez le nombre de joueurs : ");
int choix_joueur=sc.nextInt();
while(choix_joueur < 2){
... |
package com.company;
import java.util.ArrayList;
import java.util.Date;
import java.util.Random;
class Miner
{
private Creator creator;
private Block block;
private int number;
Miner(int number)
{
this.number = number;
}
void createBlock()
{
block = null;
crea... |
package com.trump.auction.trade.model;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* @author Administrator
* @date 2018/1/6
*/
@Data
@ToString
public class RobotInfoModel implements Serializable{
/**
* 主键
*/
private Integer id;
/**
... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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 require... |
import java.util.*;
public class Hanoi {
public static List<String> getSuccessor(String[] hanoi) {
// TO DO
// Implement the getSuccessor method
List<String> result = new ArrayList<>();
String disc;
String peg;
String print = "";
for(int i = 0... |
package com.gzy.paymentlistener.http;
public class RequestBean {
private double money;
private String key;
public RequestBean(double money, String key) {
this.money = money;
this.key = key;
}
public double getMoney() {
return money;
}
public void setMoney(double ... |
package com.rtw.myrpccore.client;
import io.netty.channel.ChannelFuture;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicLong;
/**
* @author rtw
* @since 2019-05-01
*/
public class ChannelManager {
public static CopyOnWriteArrayList<ChannelFuture> channelFutures = ne... |
package edu.erlm.epi.web.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.PathVariable;
import org... |
/*******************************************************************************
* Copyright 2014 See AUTHORS file.
* <p>
* 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
* <p>
* http://w... |
package com.example.songsbook;
/**
* Created by Promlert on 2017-11-16.
*/
public class Chord {
public final int id;
public final String name;
public final String picture;
public Chord(int id, String name, String picture) {
this.id = id;
this.name = name;
this.picture = pic... |
package xyz.ieden.customer.ribbon.server;
/**
* @author lianghongwei01
* @date 2018/9/28 16:03
*/
public interface IHelloService {
/**
* 获取 home/index
*
* @return
* @throws Exception
*/
String getHomeIndex() throws Exception;
}
|
package com.donytar;
import java.io.IOException;
import java.sql.SQLException;
public class Main {
public static void main(String[] args) {
try {
SqlWorker database = new SqlWorker("jdbc:mysql://localhost/my_db", "root", "Nathyrra");
//database.addRow("Bobic", "Gringo Dol... |
package cn.swsk.rgyxtqapp;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import ... |
package ui.RegistryUiTest;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.control.Label;
import org.junit.*;
import org.loadui.testfx.GuiTest;
import org.testfx.api.FxRobot;
import java.io.IOException;
/**
* Created by Алексей on 26.12.2016.
*/
public class RegistryUiTest extends Gu... |
package com.eagleshipperapi.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springfr... |
/*
* Copyright (c) 2016 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.db.generic.reg;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import pl.edu.icm.unity.db.generic.DependencyChangeListener;
import pl.edu.icm.u... |
/*
* 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 trabalhotheobaldo;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
/**
*
* @author victo... |
package application;
import application.securities.Security;
import application.securities.SecurityRepository;
import application.securities.prices.Price;
import application.securities.prices.PriceRepository;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
impor... |
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
public class Board {
private int N; // Board dimension
private int[][] goalBoard;
protected int[][] blocks;
private int[][] copy... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.algorithm.tree;
public class SumNumbers {
static int sum = 0;
public static int sumNumbers(TreeNode root) {
if(root == null){
return 0;
}
dfs(root,0);
return sum;
}
private static void dfs(TreeNode root, int father) {
if(root == null){
... |
/*
* Copyright (c) 2004 Steve Northover and Mike Wilson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, ... |
package JavaExe;
import java.util.Scanner;
public class FourFourteen {
public static void main(String[] args) {
System.out.println("数値を入力してください");
Scanner stdInt = new Scanner(System.in);
int number = stdInt.nextInt();
System.out.println("数値の合計を求めます");
int sum = 0;
String sentense = "";
for (int i = 0;... |
package com.saechimdaeki.chap04;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Flux;
public interface ItemRepository extends ReactiveCrudRepository<Item, String> {
Flux<Item> findByNameContainin... |
package extraction;
import image.PixelMap;
import java.util.ArrayList;
public class CovarianceMatrix
{
public static ArrayList<Integer[]> toVector( PixelMap pixMap )
{
ArrayList<Integer[]> pixvector = new ArrayList<Integer[]> ();
int width = pixMap.getWidth();
int height = pixMap.getHeight();
for(int i... |
package com.arthur.bishi.wangyi0828;
import java.util.Scanner;
/**
* @description:
* @author: arthurji
* @date: 2021/8/28 15:24
* @modifiedBy:
* @version: 1.0
*/
public class No3 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
... |
package com.txxlc.social.qq.connect;
import com.txxlc.social.qq.api.service.QQ;
import com.txxlc.social.qq.api.serviceimpl.QQImpl;
import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider;
import org.springframework.social.oauth2.OAuth2Template;
public class QQServiceProvider extends AbstractOAuth2Servi... |
package com.zjf.myself.codebase.fragment;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.view.ViewStub;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.RelativeLayout;
import android.widget.... |
package 泛型测试类项目;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* 测试证明, List<T>中可以添加任何T的子类
* @createTime 2018年3月12日 下午5:34:21
* @author MrWang
*/
public class TTest {
public static void main(String[] args) {
/*List<A> list = new ArrayList<>();
list.add(new B("hello"));
... |
package com.bofsoft.laio.customerservice.Adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bofsoft.laio.customerservice.R;
import com.bofsoft.laio.customerservice.Widget.LoadMo... |
package com.basicRest;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.Files.Payload;
import io.restassured.path.json.JsonPath;
public class SumValidation {
@Test
public void check() {
int sum=0;
JsonPath jsp=new JsonPath(Payload.coursePrice());
int count=jsp.getInt("c... |
package com.hcl.neo.eloader.microservices.producer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.Lo... |
package jire.task;
public abstract class CycledTask extends AbstractTask {
private final int cycles;
private int countdown;
public CycledTask(int cycles) {
this.cycles = countdown = cycles;
}
@Override
public final boolean run() {
if (--countdown < 1) {
countdown = cycles;
return super.run();
}
... |
package lab.tiyo.trigonometry;
import android.test.AndroidTestCase;
import junit.framework.Assert;
import org.junit.Test;
import lab.tiyo.fraction.models.Fraction;
import lab.tiyo.fraction.models.FractionNumber;
import lab.tiyo.fraction.models.TNumber;
import lab.tiyo.trigonometry.helpers.MathHelper;
/**
* Create... |
/**
* 湖北安式软件有限公司
* Hubei Anssy Software Co., Ltd.
* FILENAME : SmsInfoServer.java
* PACKAGE : com.anssy.venturebar.app.server
* CREATE DATE : 2016-8-28
* AUTHOR : make it
* MODIFIED BY :
* DESCRIPTION :
*/
package com.anssy.venturebar.app.server;
import com.anssy.venturebar.app.dao.SmsIn... |
package net.skycraftmc.SkyQuest.quest;
import java.util.List;
import org.bukkit.entity.EntityType;
import net.skycraftmc.SkyQuest.util.SkyQuestUtil;
public class KillObjective extends Objective
{
private int progress = 0;
private boolean completed = false;
public KillObjective(String objective, Strin... |
package com.appirio.service.resourcefactory;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;
import com.appirio.eventsbus.api.client.EventConsumer;
import com.appirio.eventsbus.api.client.EventProducer;
import com.appirio.eventsbus.ap... |
package com.news.demo.model.MongoDbModel;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(value = "CommdityDb")
public class CommdityDb {
private String name;
private String type;
private String state;
private String image_url;
private String title;
private String use... |
package com.legaoyi.platform.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter... |
package com.xljt.freight.service.Impl;
import com.xljt.freight.service.CarInfoService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.*;
/**
* The type Car i... |
package com.example.tejk.opengl_fingerpaint.meshes;
import com.example.tejk.opengl_fingerpaint.meshes.drawing.DrawingAlgorithm;
import com.example.tejk.opengl_fingerpaint.meshes.fbo.FBObject;
import com.example.tejk.opengl_fingerpaint.models.ColorV4;
public class BackgroundLayer {
// Background
private Textu... |
package com.oracle.curd.test;
import com.oracle.curd.bean.Ckin;
import com.oracle.curd.dao.CkinMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.con... |
package com.example.api.web.rest;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.server.ResponseStatusExce... |
package com.league.football.services;
public interface FootBallLeagueService {
public static final String EMPTY_STRING="";
public static final String COMMA_STRING=",";
public static final String COLLON_STRING=":";
public static final String ZERO_STRING="0";
public static final String ENCODE_UTF_STRING="utf-8";
p... |
package com.diegocasas.festival;
import android.app.ActionBar;
import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutM... |
package aviao;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import enums.Fileira;
import lombok.Getter;
@Getter
public class Aviao {
List<Reserva> reservas = new ArrayList<>();
public Aviao(){
for(Fileira fileira: Fileira.values())
for(int i = 1; i<=31; i++)
reservas... |
package com.sinodynamic.hkgta.dao.crm;
import com.sinodynamic.hkgta.dao.IBaseDao;
import com.sinodynamic.hkgta.entity.crm.CashvalueTopupHistory;
public interface CashvalueTopupHistoryDao extends IBaseDao<CashvalueTopupHistory> {
public void addCashvalueTopupHistory(CashvalueTopupHistory cth);
}
|
package com.jgw.supercodeplatform.trace.pojo.antchain;
/**
* 蚂蚁区块链存储entity, 同NodeBlockChainInfo,仅去掉interfaceId
*/
public class AntChainInfo {
private Long blockChainId;
private String productId;
private String productName;
private String traceBatchInfoId;
private String traceBatchName;
private String func... |
package model.dto.hr;
public class AuthInfoHR {
String authId;
String authPw;
String authName;
String authEmpNo;
String authTchNo;
public String getAuthId() {
return authId;
}
public void setAuthId(String authId) {
this.authId = authId;
}
public String getAuthPw() {
return authPw;
}... |
package dubbo;
import base.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by zhaoyf
*
* 2015/10/12
*/
public class Cosumer {
public static void main(String[] args) throws Exception {
System.out.println(Cosumer.class.getClassLoader().getResource(""... |
package com.soyun.travel;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class ChatRoomDAO {
@Autowired
SqlSessionTemplate mymy;
public ChatRoo... |
package kr.co.dao;
import java.util.List;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import kr.co.domain.TestDTO;
@Repository
public class TestDAOImpl implements TestDAO{
@Inject
private SqlSession sqlSession;
pr... |
package com.company.springer;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class TestCanvas {
Canvas canvas;
@Before
public void initialize() {
canvas = new Canvas();
}
@Test
public ... |
package utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* @version日志测试(可以连续输入不覆盖)
* @author XuFankang
* @Time:Jul 18, 2019
* TODO
*
*/
public class printLog {
public static Log log = LogFactory.getLog(printLog.class);
public static void store(String str) {
lo... |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package com.example.amr.apisapp;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.Men... |
package com.ass.dao;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.ass.model.Category;
import com.ass.model.Product;
import com.as... |
package model;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.junit.Test;
import Database.DBConnection;
public class ModelRunner {
// specify how many threads(users) to create
private final int USERS = 1;
... |
package com.corycharlton.bittrexapi.model;
import com.google.gson.annotations.SerializedName;
@SuppressWarnings("unused")
public class Currency {
@SerializedName("BaseAddress") private String _baseAddress;
@SerializedName("CoinType") private String _coinType;
@SerializedName("Currency") private String _c... |
package lotro.web;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.TreeMap;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
... |
package com.example.dojo.controller;
import java.util.ArrayList;
import javax.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springfra... |
package com.turios.activities.fragments.dialog;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import com.turios.util.Constants;
public class GenericOkDialogFragment extends DialogFra... |
package com.yunhetong.sdk.base;
import android.app.Application;
import android.content.Context;
import com.yunhetong.sdk.tool.YhtLog;
import com.yunhetong.sdk.tool.YhtSPUtils;
/**
* Token登录凭证的管理类
* 单例 在app生命周期内存活
*/
public final class TokenManager {
private static final String TOKEN = "TOKEN_DATA";
pri... |
package com.uiFramework.companyName.projectName.helper.assertion;
import org.apache.log4j.Logger;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import com.uiFramework.companyName.projectName.helper.logger.LoggerHelper;
public class VerificationHelper {
private Logger log = ... |
package pl.calculator.repository.messages;
import java.util.ArrayList;
import java.util.HashMap;
public class ErrorMessages {
private static HashMap<String, ArrayList<String>> mess = new HashMap<>();
public static void addMess(String id, String mes) {
mess.computeIfAbsent(id, k -> new ArrayList<>()).... |
package main.util;
import net.lingala.zip4j.core.ZipFile;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects... |
package Praticando;
import java.util.Scanner;
public class quadrado_area
{
public static void main(String[] args) {
Scanner leitor = new Scanner(System.in);
System.out.println("-------------------------------");
System.out.println("Digite o Lado do quadrado");
double lado = leitor.... |
package com.zantong.mobilecttx.weizhang.bean;
import java.util.List;
/**
* Created by zhengyingbing on 17/5/5.
*/
public class ViolationCarInfo {
private String carnum;
private String enginenum;
private String totalPrice;
public boolean isExpanded;
public void setExpanded(boolean expanded) {
... |
package frames;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JOptionPane;
import java.awt.Color;
import javax.swing.border.LineBorder;
import javax.swing.table.DefaultTableModel;
import db_operate.student_operate;
import net.miginfocom.swing.MigLayout;
import r... |
package com.metinkale.prayerapp.compass.classes.math;
import android.support.annotation.NonNull;
public class Util {
/**
* Converts a double to a value between 0 and 360
*
* @param x
* @return double in 0-360 range
*/
public static float floatrev(double x) {
return (float) (x ... |
package controller;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import model.Project;
import model.RatingQuestion;
import model.access.IRatingQuestionIdLoader;
import model.access.IRatingQuestionListLoader;
import model.access.IRatingQuestionM... |
package message;
import org.jbox2d.callbacks.ContactImpulse;
import org.jbox2d.callbacks.ContactListener;
import org.jbox2d.collision.Manifold;
import org.jbox2d.dynamics.contacts.Contact;
import component.CColidable;
public class ContactListenerSlick implements ContactListener {
@Override
public void beginContac... |
package net.oesterholt.taskgnome;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Point;
import java.awt.SystemTray;
import java.awt.Toolkit;
import java.awt.TrayIcon;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;... |
package org.mkcl.apps;
import java.util.Locale;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... |
package moobie.dao;
import java.sql.Date;
import java.util.List;
import java.util.ArrayList;
import java.util.Random;
import moobie.entidade.Pessoa;
public class PessoaDAO {
/*classe simulando conexao de dados*/
//Pessoa 1 e 2 possuem propriedade de veiculos
private Pessoa p1 = new Pessoa(1, "... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package se.kth.kthfsdashboard.user;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
... |
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class reversequeue {
public static void main(String[] args) {
Queue<Integer> q=new LinkedList<>();
Scanner sc =new Scanner(System.in);
int n=sc.nextInt();
int k=sc.nextInt();int arr[]=new int[k];
for(int i=0;i<n;i++)
{
... |
package online.lahloba.www.lahloba.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.text.format.DateUtils;
import android.util.TypedValue;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import jav... |
package menu;
import java.awt.Graphics;
import java.awt.Point;
import java.util.ArrayList;
import java.awt.Cursor;
import main_app.Handler;
public abstract class Menu {
ArrayList<Button> buttons;
Handler handler;
public Menu(Handler handler) {
this.handler = handler;
this.buttons = new ArrayList<Button>()... |
package dsl.socialparser;
import java.io.File;
import java.io.FileInputStream;
import dsl.socialparser.parser.CrawledPostParser;
import dsl.socialparser.types.CrawledComment;
import dsl.socialparser.types.CrawledPost;
public class ParserTest {
final static String EC_COMMENTS="{\"ec_comments\":";
public static ... |
package com.nematjon.edd_client_season_two;
import android.Manifest;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.Handler;
import android.widget.Toolbar;
import androidx.core.content.ContextCompat;
import androidx.swiperefreshlayout.widget.SwipeRefr... |
package controller.gerente;
import controller.TelaPrincipalController;
import entity.Funcionario;
import entity.Login;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javaf... |
/*
*
* SWT-Praktikum TU Dresden 2015
* Gruppe 32 - Computech
*
* Stephan Fischer
* Anna Gromykina
* Kevin Horst
* Philipp Oehme
*
*/
package computech.model;
import org.salespointframework.catalog.Catalog;
/**
*
* Contains every all-in-one computer in the shop.
*
*/
public interface ComputerCatalo... |
package com.lenovohit.mnis.base.manager;
public interface ICommonRedisSequenceManager {
/**
* 根据键值取编码
* @param key
* @return
*/
String get(String key);
}
|
package exo_abstraites;
public class Tigre extends Felin{
public Tigre(int poids, String couleur) {
super(poids, couleur);
// TODO Auto-generated constructor stub
}
@Override
void crier() {
System.out.println("Je feule");
}
}
|
package com.programapprentice.app;
import com.programapprentice.util.TreeNode;
import java.util.Stack;
/**
* User: program-apprentice
* Date: 10/7/15
* Time: 9:01 PM
*/
public class KthSmallestElementInABST_230 {
public int kthSmallest(TreeNode root, int k) {
Stack<TreeNode> stack = new Stack<TreeNod... |
package mbd.student.gurukustudent.activity.teacher;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.App... |
package com.data.main.dataSource;
import java.util.List;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.bind.RelaxedPropertyResolver;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.E... |
/*
* Copyright 2011 Upic
*
* This file is part of MailService.
*
* MailService is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
... |
package com.dromedicas.dao;
// Generated 28/03/2017 05:43:09 PM by Hibernate Tools 5.1.2.Final
import java.util.List;
import javax.naming.InitialContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.h... |
/*
Copyright 2015 Sébastien Vrillaud
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 agreed to in wr... |
package com.ardoise;
import com.ardoise.vue.Fenetre;
/**
* <b>La classe Main permet de lancer l'ardoise magique via sa méthode main</b>
*
* @author Oltenos
* @version 1
*/
public class Main {
/**
* Permet de lancer l'application
* @param args
*/
public static void main(String[] args) {
@SuppressWarni... |
import java.util.Arrays;
class ArraySortSpecificPart
{
public static void main(String[] args)
{
int ar[]={3,6,1,7,2,9,4,6};
//Converting array to toString
String s = Arrays.toString(ar);
System.out.println("Given Array element is: "+s);
//Sorting specific part of given array
Arrays.sort(ar,2,6);
Str... |
package com.brainacademy.gui.app.ui;
import com.brainacademy.gui.app.ui.forms.BaseForm;
import com.brainacademy.gui.app.ui.forms.RoutesForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.awt.BorderLayout;
import java.awt.Dimension;
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.