text stringlengths 10 2.72M |
|---|
package com.material.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotyp... |
package practico9;
public class E8 {
public static void main(String[] args) {
int sumaImpar=0;
for (; sumaImpar<=25 ;) {
int n = (int)(Math.random()*11);
if(n%2==0) {
System.out.println(n+" - PAR");
}else {
System.out.println(n+" - IMAR");
sumaImpar=sumaImpar+n;
}
}
System.out.p... |
package com.soa.servlet;
import com.soa.data.Book;
import com.soa.ejb.BookManager;
import com.soa.jms.BookRegisterService;
import javax.ejb.EJB;
import javax.inject.Inject;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.h... |
import java.util.*;
public class PeacefulLine {
public String makeLine(int[] x) {
Arrays.sort(x);
int current = -1;
int count = 0;
int max = 0;
for(int i = 0; i < x.length; ++i) {
if(x[i] == current) {
++count;
} else {
... |
package com.ex.musicdb.service;
import com.ex.musicdb.model.entities.ArtistEntity;
import com.ex.musicdb.model.view.ArtistViewModel;
import java.util.List;
public interface ArtistService {
void seedArtist();
ArtistEntity findByName(String artist);
List<String> findAllArtists();
}
|
package com.jd.jarvisdemonim.views;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Bitma... |
package com.sshfortress.common.util;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import com.maxmind.geoip.*;
/**
* <p class="detail">
* 功能:通过GeoIp获取IP的相关信息
* 需要导入<dependency>
<groupId>com.maxmind.minfraud</groupId>
<artifactId>minfraud</artifactId>
<version>1.7... |
package com.project.universitystudentassistant.ui.timetable;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import com.project.universitystudentassistant.data.Repository;
im... |
package MicroVersionoFFacebook;
public class Node {
private Person person;
private Node next;
public Node(Person name)
{
this.person = name;
setNext(null);
}
public Node getNext()
{
return next;
}
public void setNext(Node next)
{
this.next = next;
}
public Person ge... |
package at.fhv.teama.easyticket.server.venue.ticket;
import at.fhv.teama.easyticket.dto.CategoryDto;
import at.fhv.teama.easyticket.server.mapping.MapperContext;
import at.fhv.teama.easyticket.server.address.AddressMapper;
import at.fhv.teama.easyticket.server.person.PersonMapper;
import at.fhv.teama.easyticket.server... |
package ca.mcgill.ecse223.kingdomino.view;
import ca.mcgill.ecse223.kingdomino.controller.KingdominoController;
import ca.mcgill.ecse223.kingdomino.controller.TODomino;
import ca.mcgill.ecse223.kingdomino.controller.TOPlayer;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event... |
package sandbox;
import ssh.SSHUtils;
import javax.swing.*;
public class Exec{
public static void main(String[] arg){
try{
String user="QA MAC 10";
String host="192.168.2.11";
String command=JOptionPane.showInputDialog("Enter command", "set|grep SSH");
String output = SSHUtils.sshExec(user, host, comm... |
package fr.skytasul.quests.api.requirements;
import java.util.Map;
import org.bukkit.entity.Player;
import fr.skytasul.quests.api.QuestsAPI;
import fr.skytasul.quests.api.objects.QuestObject;
public abstract class AbstractRequirement extends QuestObject {
protected AbstractRequirement() {
super(Que... |
package br.com.mixfiscal.prodspedxnfe.domain.own;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
i... |
package controlador;
import java.util.Vector;
import modelo.ItemComanda;
import modelo.Mozo;
public class ComandaView {
private Vector<ItemComanda> itemsComanda;
private Mozo mozo;
private float total;
public ComandaView(Mozo mozo) {
super();
this.itemsComanda = new Vector<ItemComanda>(... |
package com.kharis.expense.tracker.model.request;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
@Data
public class CreateCategoryRequest {
@NotBlank(message = "Category Name is required")
... |
/*
* Copyright 2002-2023 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright © 2020-2022 ForgeRock AS (obst@forgerock.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... |
/*
Copyright (C) 2013-2014, Securifera, Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and... |
package view;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class InfoPanel extends JPanel {
private static final long serialVersionUID = 1L;
... |
package dao;
import java.util.List;
import entity.Student_info;
public interface Student_infoDAO {
int save(Student_info stu);
Student_info getStudentInfo(int student_number,String student_name);//这个方法在学生信息类里并没有用
Student_info getStudentInfo(int student_number);
String delStudentInfo(int id);
void update(Stude... |
package com.taim.backendservice.configuration;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration
public class Client... |
package com.ecommerceserver.controller;
import java.util.List;
import com.ecommerceserver.model.Category;
import com.ecommerceserver.services.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind... |
/*
* 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 bookstore.GUI;
import bookstore.BLL.BaoCaoDTBLL;
import bookstore.BLL.BaoCaoPNBLL;
import bookstore.BLL.BaoCaoPXBLL;
import bo... |
import tcdIO.*;
class c1ex11 {
public static void main (String args[]) {
Terminal terminal;
Cube shape;
Cube shape2;
int area;
int volume;
shape = new Cube(15);
area = shape.calculateArea();
volume = shape.calculateVolume();
terminal = new Terminal("Chapter 1: Exerci... |
package com.cmm.pay.recharge;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Ma... |
package cn.itcast.bookstore.book.web.servlet;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.Test;
import net.sf.json.JSONArray;
impor... |
public class BankTester{
public static void main(String[] args){
//acounts for later use
Account firstAcc = new Account("Laffan, Cassandra", "123ABC", 0);
Account secondAcc = new Account("Ali-Clarke, Jinnah", "122AAC", 1000);
Account thirdAcc = new Account("MacLellan, Erin", "123a3a", 1000);
Acco... |
package com.fanfte.concurrent.juc;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by tianen on 2018/10/25
*
* @author fanfte
* @date 2018/10/25
**/
public class TestAutomicInteger {
public static void main(String[] args) {
AtomicInteger atomicInteger = new AtomicInteger();
S... |
package day07;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ElectronicShop {
static int getMoneySpent(int[] keyboards, int[] drives, int budget) {
int sum = 0;
List<Integer> totalHarga = new ArrayList<Integer>();
for (int i = 0; i < keyboards.length; i++) {
... |
package gameobjects;
import interfaces.Broadcaster;
import java.util.ArrayList;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.command.Command;
import org.newdawn.slick.geom.Shape;
import commands.DieCommand;
public class DeadlyObject extends StaticObject implemen... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. 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 required ... |
package az.itcity.etaskify.controller;
import az.itcity.etaskify.dto.OrganizationDto;
import az.itcity.etaskify.dto.UserDto;
import az.itcity.etaskify.service.OrganizationService;
import az.itcity.etaskify.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ht... |
/* ====================================================================
*
* Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved.
*
* ==================================================================== *
*/
package com.aof.webapp.action.prm.bill;
import java.sql.SQLException;
import java.util.ArrayLis... |
package practice;
public class ContinueDemo {
public static void main(String[] args) {
// WAP to display the following output
// 1 2 3 4 6 7 8 9 10
for (int i = 1; i <= 10; i++) {
if (i == 5) {
continue;
}
System.out.print(i + " ");
}
}
}
|
package com.in28mins.jdbctojpademo.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Passport {
@Id
@GeneratedValue
private Integer id;
private String number;
protected Passport() {
super();
}
public Integer getId() {
r... |
package com.eclipseop.discordbot.music;
import com.google.api.services.youtube.model.SearchResult;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.MessageEmbed;
import java.awt.*;
/**
* Created by Eclipseop.
* Date: 8/6/2018.
*/
public class SongSelection {
private final SearchResul... |
package com.orkunduzgun.mongodbandamazonconnection;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.M... |
package KvbRadFinder.Geocoding;
import KvbRadFinder.Geocoding.MapQuestGeocodingApi.MapQuestGeocodingApiAdapter;
import dagger.Binds;
import dagger.Module;
@Module
public interface GeocodingModule {
@Binds
GeocodingService geocodingService(MapQuestGeocodingApiAdapter mapQuestGeocodingApiAdapter);
}
|
package _21_design_patterns.factory_method;
public abstract class Shape {
public abstract String showArea();
}
|
package com.brainacademy.mvc;
public class StudentView {
public void show(Student student) {
System.out.println("Name: " + student.getName());
System.out.println("Group: " + student.getGroup());
System.out.println("School: " + student.getSchool());
}
}
|
package com.fixit.core.data.mongo;
import org.bson.types.ObjectId;
import com.fixit.core.data.DataModelObject;
public interface MongoModelObject extends DataModelObject<ObjectId> {
ObjectId get_id();
void set_id(ObjectId _id);
}
|
/*
* Copyright (c) TIKI Inc.
* MIT license. See LICENSE file in root directory.
*/
package com.mytiki.blockchain.features.latest.block;
import java.time.ZonedDateTime;
public class BlockAORsp {
private String hash;
private String previousHash;
private String address;
private ZonedDateTime created... |
public static String charCount(String s){
StringBuilder sb = new StringBuilder();
HashMap<Character, Integer> map = new HashMap<Character, Integer>();
if (s==null || s.length()==0) return null;
for (int i=0;i<s.length(); i++){
if (map.containsKey(s.charAt(i))){
map.put(s.charAt(i), map.get(s.charAt(i))+1... |
package org.elasticsearch.plugin.zentity;
import com.fasterxml.jackson.databind.JsonNode;
import io.zentity.devtools.AbstractITCase;
import org.apache.commons.io.IOUtils;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.entity.ContentType;
import org.elasticsearch.client.Request;
import java.io.I... |
package com.emed.shopping.service.admin.goods;
import com.emed.shopping.base.BaseService;
import com.emed.shopping.dao.model.admin.goods.ShopGoods;
import java.util.List;
import java.util.Map;
/**
* @Author: 周润斌
* @Date: create in 上午 14:46 2018/1/16 0016
* @Description:
*/
public interface GoodsService extends B... |
package com.google.android.libraries.photoeditor.filterparameters;
import android.content.Context;
public class CropFilterParameter extends FilterParameter {
public int getFilterType() {
return 6;
}
protected int[] getAutoParams() {
return new int[]{42, 41, 40, 43, 44, 45, 46};
}
... |
package io.breen.socrates.model.event;
import io.breen.socrates.model.wrapper.SubmissionWrapperNode;
import io.breen.socrates.util.ObservableChangedEvent;
/**
* The event that is generated by a SubmittedFileWrapperNode when a grade report is saved for it.
*/
public class GradeReportSavedEvent extends ObservableChan... |
package com.opentangerine.genotype.html;
import java.util.*;
import java.util.stream.Stream;
/**
* @author Grzegorz Gajos
*/
public class El {
private String name;
private List<Renderable> in = new ArrayList<>();
private Map<String, String> attrs = new LinkedHashMap<>(); // we want to keep inserts!
... |
package com.eshop.controller.command;
import javax.servlet.http.HttpServletRequest;
import com.eshop.model.dao.DBException;
import com.eshop.model.service.ProductsService;
import com.eshop.model.entity.Product;
import com.eshop.model.entity.User;
import com.eshop.model.entity.Role;
import com.eshop.controller.Attrib... |
package com.contact.contact;
import android.app.Activity;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Text... |
package br.com.wasys.gfin.cheqfast.cliente.service;
import org.apache.commons.collections4.CollectionUtils;
import io.realm.Realm;
import io.realm.RealmObject;
import io.realm.RealmResults;
/**
* Created by pascke on 04/07/17.
*/
public class RealmService {
public static <T extends RealmObject> Long getNextI... |
package com._08_method_Reference;
@FunctionalInterface
interface Deneme1 {
public String denemeMessage1();
}
interface Deneme2 {
public String denemeMessage2();
}
public class Example_1 {
public String message() {
return "hello word";
}
public static void main(String[] args) {
E... |
package com.needii.dashboard.dao;
import com.needii.dashboard.model.ShippersPriceCombo;
import java.util.List;
/**
* @author modani
*
*/
public interface ShippersPriceComboDao {
List<ShippersPriceCombo> findAll();
ShippersPriceCombo findOne(long id);
ShippersPriceCombo findComboType(Integer comboT... |
package chess;
import boardgame.BoardException;
public class ChessExeception extends BoardException {
public ChessExeception (String msg){
super(msg);
}
}
|
package dakrory.a7med.cargomarine.Models;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
import java.util.List;
public class vehicalsDataAllList {
@SerializedName("error")
private String error;
@SerializedName("data")
private List<vehicalItemOfAllList> data;
public cl... |
package Shapes;
public class Rectangle {
//instance variables - global
public String color;
public int width;
public int height;
private String name;
//Getter
public String getName(){
return name;
}
//Setter
public void setName(String name){
this.name = name;
... |
package com.atguigu.java;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
import org.junit.Test;
/*
函数式接口 : 只包含一个抽象方法的接口,称为函数式接口。
我们可以在一个接口上使用 @FunctionalInterface 注解,这样做可以检查它是否是一个函数式接口
*/
public class FunctionalTes... |
package com.example.ordenado;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import java.util.Arrays;
import java.util.Random;
public class MainActivity extends AppCompatAc... |
package com.esum.wp.ims.notifyinfo.dao;
import java.util.Map;
import com.esum.appframework.dao.IBaseDAO;
import com.esum.wp.ims.notifyinfo.NotifyInfo;
public interface INotifyInfoDAO extends IBaseDAO{
public Map saveNotifyInfoExcel(NotifyInfo info);
}
|
package com.weex.sample.utlis;
import android.content.Context;
import android.content.Intent;
/**
* 扫描工具类
*
* @author violetjack
*/
public class ScanUtil {
/**
* 扫描
*/
public static void doScan(Context context) {
Intent intent = new Intent("com.android.scanservice.scan.button.down", nul... |
package ee.upcourse.trainingmanager.model;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@Entity
@ToString
@Table(name = "user")
public class User {
@Id
... |
package pl.edu.agh.cyberwej.business.services.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pl.edu.agh.cyberwej.business.services.api.GroupMembershipSer... |
package br.com.secia.apisecia.controller;
import br.com.secia.apisecia.security.SeciaUserDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
impor... |
package ui.cli;
import ui.Translator;
/**
* @author Rigès De Witte, Simon Peeters,Barny Pieters,Laurens Van Damme
*
*/
public class ConsoleApp {
private domain.Controller domain;
private java.util.Scanner scanner = new java.util.Scanner(System.in);
public ConsoleApp() {
domain = new domain.Controller();
T... |
package leetCode;
import java.util.LinkedList;
import java.util.List;
public class BinaryTreeInorderTraversal {
public List<Integer> inorderTraversal(TreeNode root) {
List<Integer> list = new LinkedList<Integer>();
add(list, root);
return list;
}
private void add(List<Integer> list, TreeNode node) {
if (n... |
package com.eegeo.mapapi.services.routing;
import java.util.concurrent.Callable;
import java.util.List;
import androidx.annotation.UiThread;
import androidx.annotation.WorkerThread;
import android.util.SparseArray;
import com.eegeo.mapapi.INativeMessageRunner;
import com.eegeo.mapapi.IUiMessageRunner;
import com.eeg... |
package com.example.android.worldheadlines.utilitaries;
public class Constants {
/**
* Constants for Main and Search User Query
*/
public static final String BASE_URL = "https://newsapi.org/v2/top-headlines";
public static final String COUNTRY = "country";
public static final String COUNTRY_... |
package org.upmc.obolink.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.upmc.obolink.model.User;
/**
* The interface Repository of the user.
*/
@Repository("userRepository")
public interface UserRepository extends JpaRepository<... |
package pp;
import pp.model.xml.CGlad;
import java.io.IOException;
import java.util.List;
/**
* @author alexander.sokolovsky.a@gmail.com
*/
public class StuffManagerStub implements StuffManager {
StuffManager delegate;
public StuffManagerStub(StuffManagerImpl stuffManager) {
this.delegate = stuffManager;
}
... |
package com.zeppe.minhasfinancas.model.entity.enuns;
public enum StatusLancamento {
PENDENTE, CANCELADO, EFETIVADO
}
|
package com.rengu.operationsoanagementsuite.Task;
import com.rengu.operationsoanagementsuite.Configuration.ApplicationConfiguration;
import com.rengu.operationsoanagementsuite.Entity.HeartbeatEntity;
import com.rengu.operationsoanagementsuite.Service.DeviceService;
import com.rengu.operationsoanagementsuite.Service.UD... |
import java.util.Arrays;
import java.util.HashMap;
public class TwoSum {
public int[] twoSum(int[] nums, int target) { // O(n^2)
int arr[]= new int[2];
for(int i=0; i<nums.length ; i++){
for (int j=i+1 ; j<nums.length; j++){
if(nums[i] + nums[j] == target){
... |
package trung.lab;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
Date date = new Date(12,22,2014);
System.out.println( "Hello World!" + date.toString());
for(int i = 0; i< 10 ; i++)
{
date.nextDay();
date.toString();
System.out.println(date);
... |
package com.paragon.sensonic.utils;
public interface CustomItemClickListener {
default void onItemClickListener(int position){}
default void onItemClickListener(int position, int view){}
default void onItemClickListener(int position, String value){}
default void onItemClickListener(int position, Object... |
package com.edgit.server.jsf.handlers;
import java.nio.file.Path;
import java.util.List;
import javax.ejb.Local;
import javax.persistence.EntityManager;
import com.edgit.server.jpa.GitFile;
public interface PersistenceService {
EntityManager getEntityManager();
GitFile create(GitFile parent, Str... |
package no.ntnu.stud.ubilearn.server.models;
public class Article {
private String name;
private String text;
public Article(String name, String text) {
this.name = name;
this.text = text;
}
public String getName() {
return name;
}
public String getText() {
return text;
}
}
|
package com.artauction.domain;
import java.util.Date;
import lombok.Data;
@Data
public class TradeVO {
private int gno;
private String userid;
private Date tdate;
private int tprice;
}
|
package com.mgseb.wordgame.game;
public enum Difficulty {
BABY, EASY, MEDIUM, HARD
}
|
package agency.CGLibDynamic;
import agency.cstatic.HelloImpl;
/**
* @author yudong
* @create 2019-11-22 11:39
*/
public class Main {
public static void main(String[] args) {
CGLibProxy cgLibProxy = new CGLibProxy();
HelloImpl hello = cgLibProxy.getProxy(HelloImpl.class);
hello.say("cgL... |
package com.xianzaishi.wms.tmscore.dto;
import com.xianzaishi.wms.tmscore.vo.DistributionWaitSeqDO;
public class DistributionWaitSeqDTO extends DistributionWaitSeqDO {
} |
package com.csair.datatrs.common.segment;
import com.csair.datatrs.common.FieldSegment;
/**
* 普通区分
* Created by cloudoo on 2015/7/17.
*/
public class CommonsFieldSegment implements FieldSegment {
private String split = ",";
public CommonsFieldSegment(){
}
public CommonsFieldSegment(String split)... |
package mydomain.needit;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.Nullable... |
package org.usfirst.frc.team3164.lib.util;
/**
* Schedule things
* @author jaxon
*
*/
public class Scheduler extends Thread {
private int waitMillis;
private ICallback cb;
/**
* Schedule things! :D
* @param wait how long; millis
* @param cb callback to call
*/
public Scheduler(int wait, ICallback cb) {... |
package cardGames;
import java.util.ArrayList;
import java.util.List;
public class PlayerDatabase {
private List <Player> players;
public PlayerDatabase() {
players = new ArrayList <Player> ();
}
public void addPlayer (Player p) {
players.add(p);
}
public boolean removePlayer (Player p... |
/*
* MIT License
*
* Copyright (c) 2023 Glare
*
* 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, modify, me... |
package ru.job4j.calculate;
/**
* Calculate.
* @author Aliaksandr Kuzura.
* @since 25.05.2019.
* @version 1.
*/
public class Calculate {
/**
* Main.
* @param args
*/
public static void main(String[] args) {
System.out.println("HelloWorld");
}
/**
* Method echo.
... |
package cliente;
public abstract class ContatoBase{
public String getId() {
return null;
}
public void setId(String id) {
}
public String getEmail() {
return null;
}
public void setEmail(String email) {
}
public ContatoBase(String id, String email) {
}
}
|
package com.example.my_publish;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import android.widget.Toast;
import com.example.Class.GetAllParams;
import com.example.Class.Person;
import com.example.firstprogram.R;
import ... |
package com.beike.core.service.trx.coupon;
import com.beike.common.entity.coupon.CouponActivity;
/**
* @title: CouponActivityService.java
* @package com.beike.core.service.trx.coupon
* @description: 优惠券活动service
* @author wangweijie
* @date 2012-10-30 下午12:07:38
* @version v1.0
*/
public in... |
package com.coupon.offer.model;
import java.io.Serializable;
public class SocialMedia implements Serializable {
private Integer socialMediaId;
private String facebookPage;
private String instagram;
private String twitter;
private String buzz;
public Integer getSocialMediaId() {
return socialMediaId;
}
pu... |
package com.aranzazu.appnoites;
import java.util.ArrayList;
import com.aranzazu.appnoites.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ExpandableListActivity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
im... |
package com.revolut.moneytransfer.factory;
import com.revolut.moneytransfer.dao.AccountDao;
import com.revolut.moneytransfer.dao.TransactionDao;
import com.revolut.moneytransfer.dao.UserDao;
import com.revolut.moneytransfer.dao.impl.AccountDaoImpl;
import com.revolut.moneytransfer.dao.impl.TransactionDaoImpl;
import c... |
package work.binder.ui;
import java.util.ArrayList;
import java.util.List;
public class Package {
private List<String> _packages;
private List<String> _ipAddresses;
public Package() {
setPackage(new ArrayList<String>());
setIpAddresses(new ArrayList<String>());
}
public List<St... |
package com.ynyes.xunwudao.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 订单商品
*
* 记... |
package pages;
import java.util.NoSuchElementException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import pages.Page;
public class FaceBookHomePage extends Page {
@FindBy(id="email")... |
package workwithexcel;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class Excel_Demo {
static XSSFWorkbook workbook;
static XSSFSheet sheet;
public Excel_Demo(String excelPath, String sheetName) {
// TODO Auto-generated constructor stub
try {
//... |
package ru.job4j.chess;
/**
* Класс Figure реализует сущность "Шахматная фигура".
*
* @author Goureyev Ilya (mailto:ill-jah@yandex.ru)
* @version 2
* @since 2017-05-03
*/
abstract class Figure {
/**
* Объект поля, в котором находится фигура.
*/
private Cell cell;
/**
* Ц... |
package com.radionica.nikolafilipovic.instagramlite.models;
/**
* Created by Nikola Filipović on 16.4.2016..
*/
public class User {
private String name;
private int imageResId;
public User() {
}
public User(String name, int imageResId) {
this.name = name;
this.imageResId = ima... |
package javaProject;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
public class Dbi {
static Connection dbconn;
ResultSet results = null;
static PreparedStatement sql;
static String dbPath = "jdbc:mysq... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.