text stringlengths 10 2.72M |
|---|
package securities_trading_platform;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;... |
package com.insta.entities;
// Generated Aug 2, 2015 3:40:21 PM by Hibernate Tools 4.3.1
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
im... |
//Pass a pointer (reference) back to the current object
public class ThisKeyword3 {
private SomeClass anotherObject = new SomeClass(); //classe aleatória //anotherObject -> SomeClass #2nd
public static void main(String[] args) {
ThisKeyword3 anObject = new ThisKeyword3(); ... |
/*
* Sonar Flex Plugin
* Copyright (C) 2010 SonarSource
* dev@sonar.codehaus.org
*
* This program 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 o... |
package com.study.hystrix.service;
import org.springframework.stereotype.Service;
import java.util.*;
/**
* リモートインターフェース
*/
@Service
public class QueryServiceRemoteCall {
/**
* 単一処理
* @param code
* @return
*/
public HashMap<String, Object> queryCommodityByCode(String code) {
try... |
package usantatecla.mastermind.models;
import java.util.ArrayList;
import java.util.List;
class GameMemento {
private List<ProposedCombination> proposedCombinations;
public GameMemento(List<ProposedCombination>proposedCombinations) {
this.proposedCombinations = new ArrayList<>();
for (ProposedCombinatio... |
package com.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import com.model.Product;
import com.util.StringUtil;
public class ProductDao {
public int productAdd(Connection con,Product product)throws Exception{
String sql="insert into t_product values(null,?,?,?,?,?... |
package com.twu.model;
import com.twu.infrastructure.ManageBooks;
public class Book {
private double index;
private String title;
private String author;
private int publicationYear;
private boolean available;
public Book(double index, String title, String author, int publicationYear, boolean... |
package com.travelportal.domain.rooms;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import play.db.jpa.JPA;
@Entity
@Table(name="... |
package org.christophe.marchal.redis.client.jedis.utils;
//----------------------------------------------------------
//Compute square root of large numbers using Heron's method
//----------------------------------------------------------
import java.math.*;
public class BigSquareRoot {
private static BigDecimal Z... |
package com.slort.model;
// Generated by MyEclipse Persistence Tools
import java.util.Date;
import java.util.Set;
/**
* Flota generated by MyEclipse Persistence Tools
*/
public class Flota extends AbstractFlota implements java.io.Serializable {
// Constructors
/** default constructor */
public Flota() {
}
... |
package org.mge.general;
public class OuterClass {
private int a = 10;
class InnerClass extends OuterClass{
private int b = 20;
void showInner() {
System.out.println("Outer.a=" + OuterClass.this.a);
}
}
void shouOuter() {
InnerClass in = new InnerClass();
System.out.println(in.b);
}
}
class Outer... |
package heap;
import array.Array;
public class MaxHeap<E extends Comparable<E>> {
private Array<E> date;
public MaxHeap() {
this.date = new Array<>();
}
public MaxHeap(int capacity) {
this.date = new Array<>(capacity);
}
public MaxHeap(E [] arr) {
this.date = date;
... |
package com.cloudera.oryx.common.lang;
import java.io.Closeable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.rmi.runtime.Log;
public class JVMUtils {
private static final Logger log = LoggerFactory.getLogger(JVMUtils.class);
private static final OryxShutdownHook SHUTDOWN_HOOK = new... |
package com.company.domains;
import com.company.exceptions.snakeNotFoundException;
import java.util.HashMap;
public class Snake {
int id=0;
HashMap<Integer,Pair> snakes;
public Snake(){
snakes=new HashMap<>();
id=0;
}
publ... |
package mop.test.java.backend.utilities;
import java.io.File;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
public class FileTest {
@Test
public void testFi... |
/*
Nazlee Yahia
p1200800
*/
public class partieb {
public static void main(String[] args) {
char poste[] = {'A', 'P', 'O', 'P', 'A', 'P', 'A', 'P'};
int nbCafe[] = {3, 1, 5, 1, 2, 1, 0, 3};
int age[] = {25, 18, 23, 20, 50, 24, 52, 29};
int n = 8;
int intr[] = new int[4];
float floatr[] = new float[2];
... |
/**
* Copyright (C) 2012 Jacob Scott <jascottytechie@gmail.com>
* Description: ( TODO )
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
package org.fhcrc.honeycomb.metapop.coordinate;
import org.fhcrc.honeycomb.metapop.coordinate.Coordinate;
/**
* Created on 10 Apr, 2013.
* @author Adam Waite
* @version $Rev: 1925 $, $Date: 2013-04-12 11:26:27 -0700 (Fri, 12 Apr 2013) $
*
*/
public interface CoordinateProvider {
int getMaxRow();
int get... |
package com.example.guanghuili.checkesandchess.ChessPractice;
//import Piece;
import java.util.ArrayList;
import java.util.List;
public class King extends Piece {
private List<Point> moves = new ArrayList<>();
public King(Boolean isBlack, int row, int column){
super(isBlack,row,column);
this... |
package id3;
import shared.*;
/* Driver class, used to create,initialize,run inducers */
/** Basic Driver class used to interface the ID3Inducer.
* @author James Louis Created implementation.
*/
public class Driver {
/** The main driving function.
* @param args Command line arguments. The fir... |
package com.sunzequn.sdfs.ui;
import com.sunzequn.sdfs.file.FileMeta;
import com.sunzequn.sdfs.node.NodeInfo;
import com.sunzequn.sdfs.rmi.ClientTimeThread;
import com.sunzequn.sdfs.rmi.RemoteClient;
import com.sunzequn.sdfs.utils.FileUtil;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt... |
package com.uwetrottmann.trakt5.services;
import com.uwetrottmann.trakt5.entities.AccessToken;
import com.uwetrottmann.trakt5.entities.AccessTokenRefreshRequest;
import com.uwetrottmann.trakt5.entities.AccessTokenRequest;
import com.uwetrottmann.trakt5.entities.ClientId;
import com.uwetrottmann.trakt5.entities.DeviceC... |
package jp.co.sakamoto.androidproject.framework.dagger;
import android.content.Context;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import jp.co.sakamoto.androidproject.AndroidApplication;
@Module
class AppModule {
@Singleton
@Provides
Context provideContex... |
import java.util.TimeZone;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class BackgroudTask implements ServletContextListener {
private ExecutorService executor;
public void... |
package com.company.blog.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class MvcConfig implements WebMvcConfigurer ... |
package com.ybg.rbac.resources.domain;
import java.io.Serializable;
@SuppressWarnings("serial")
public class SysColorI implements Serializable {
private Integer id;
private String colorclass; // 颜色
private String description;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id... |
package org.ubiquity;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Factory for the different kinds of common collections.
* Implementing this interface allows you to choose the implementations.
*
* Date: 24/04/12
*
* @author François LAROCHE
*/
public in... |
package pe.oranch.restaurantroky.request;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
import pe.oranch.restaurantroky.Config;
/**
* Created by Daniel on 02/11/2017.
*/
public class UpdateComidasRequest extends StringRequest ... |
package com.tencent.mm.plugin.game.ui;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.game.a.b;
import com.tencent.mm.plugin.game.model.v;
class GameCenterBaseUI$1 implements Runnable {
final /* synthetic */ GameCenterBaseUI jVk;
GameCenterBaseUI$1(GameCenterBaseUI gameCenterBaseUI) {
t... |
package de.unitrier.st.soposthistory.gt.GroundTruthApp;
import de.unitrier.st.soposthistory.gt.util.GTLogger;
import net.miginfocom.swing.MigLayout;
import org.sotorrent.posthistoryextractor.blocks.CodeBlockVersion;
import org.sotorrent.posthistoryextractor.blocks.TextBlockVersion;
import org.sotorrent.posthistoryextr... |
package com.demo.domain;
import com.demo.domain.builder.GitRepoBuilder;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import java.util.Arrays;
import java.util.List;
import static org.assertj... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.presenter.impl.attr.model;
import net.nan21.dnet.core.api.annotation.Ds;
import net.nan21.dnet.core.api.annotation.DsField;
import net.nan21.... |
package spring_mvcForms;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
public final class StudentRowMapper implements RowMapper<Student> {
public Student mapRow(ResultSet rs, int rowNum) throws SQLException ... |
import java.util.ArrayList;
import java.util.List;
public class Sprint {
private int begin;
private int end;
private String name;
private User user;
private List<Task> taskList;
public Sprint(int begin, int end, String name,User user) {
super();
this.begin = begin;
this.end = end;
this.name = n... |
package com.tw.wallet;
import com.tw.wallet.exceptions.AmountInWalletExceededException;
public class Wallet {
private final Money amountInWallet;
public Wallet() {
amountInWallet = new Money();
}
public void put(Money money) {
amountInWallet.add(money);
}
public void take(Mo... |
package org.rebioma.client;
import com.google.gwt.user.client.rpc.IsSerializable;
public class UserExistedException extends Exception implements IsSerializable {
public UserExistedException() {
this(null);
}
public UserExistedException(String msg) {
super(msg);
}
} |
static int countingValleys(int n, String s) {
int Down = 0;
int valleys = 0;
for(int i=0;i<s.length();i++)
{
if(s.charAt(i) == 'U'){
Down -= 1;
if(Down == 0)
valleys++;
}
else if(s.charAt(i) == 'D')
... |
package edu.buet.cse.spring.ch03.v4;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import edu.buet.cse.spring.ch03.v4.model.Performer;
public class App {
public static void main(String[] args) {
ApplicationContext appContext = ... |
/**
* Test scenario that uses constants (object refs) in rules.
*/
package test.nz.org.take.compiler.scenario5; |
import com.google.common.base.Function;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selen... |
package com.fleet.initializr.service;
import com.fleet.initializr.entity.Application;
/**
* @author April Han
*/
public interface ProjectGeneratorService {
void generator(Application application) throws Exception;
}
|
package net.liuzd.spring.boot.v2.mappper;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import javax.annotation.Resource;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.junit.Assert;
import org.junit.Test;
import org.ju... |
package com.Appthuchi.Appqlthuchi.moder;
public class LoaiThu {
public String tenLoaiThu;
public int maLoaiThu;
public String getTenLoaiThu() {
return tenLoaiThu;
}
public void setTenLoaiThu(String tenLoaiThu) {
this.tenLoaiThu = tenLoaiThu;
}
public int getMaLoaiThu() {
... |
/*
* 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 wickersoft.root;
import com.earth2me.essentials.Essentials;
import com.griefcraft.lwc.LWCPlugin;
import com.sk89q.wor... |
package unitserver;
import tools.Unit;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Created by troy on 07.10.2016.
* Bean ready +
* Класс наследуюется от HashMap<String, Unit>
* где в качестве ключа выступает уникальное имя Юнита, а в качестве значение экземпляр класса U... |
package com.example.healthmanage.ui.activity.integral.adapter;
import androidx.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.healthmanage.R;
import com.example.healthmanage.ui.activity.integral.response.IntegralDetai... |
package com.tarena.shoot;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.util.Arrays;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import javax... |
/**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2014, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free softw... |
package eiti.sag.facebookcrawler.accessor.jsoup;
import java.util.HashMap;
import java.util.Map;
public class FacebookAuthCookies {
private final String cUser;
private final String datr;
private final String xs;
public FacebookAuthCookies(String cUser, String datr, String xs) {
this.cUser = ... |
package com.msh;
import io.micronaut.runtime.EmbeddedApplication;
import io.micronaut.test.annotation.MockBean;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import jakarta.inject.Inject;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import javax.servlet.http.HttpS... |
package single;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
public class CustomerAction {
private SessionFactory sessionFactory;
public CustomerAction(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
public Cus... |
package com.infor.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "tbl_inforuser")
public class InforUser {
public InforUser()... |
package com.trs.om.CustomAuthorization;
import com.trs.om.CustomAuthorization.bean.AccessToken;
import com.trs.om.CustomAuthorization.bean.UserAuthorizationToken;
import com.trs.om.dao.UserGroupDao;
import com.trs.om.dao.impl.GenericHibernateDAO;
import com.trs.om.generic.GenericQBCService;
import com.trs.om.generic.G... |
package consumer;
import org.apache.kafka.clients.consumer.*;
import java.util.Arrays;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
/**
* @date 2019/9/18 17:07
* @author: <a href=mailto:xuzj@bonree.com>胥智钧</a>
* @Description:
**/
public class Consumer {
private final static String topic... |
package jupiterpa.masterdata;
import java.util.*;
import jupiterpa.util.*;
import jupiterpa.IMasterDataServer.*;
public class MasterData {
String type;
Map<EID,Object> entries = new HashMap<EID,Object>();
public MasterData(String type) {
this.type = type;
}
public void put(EID key, Object e... |
package pl.cwanix.opensun.db.controllers;
import java.util.List;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
i... |
package banyuan.day02.practice02;
import java.util.Scanner;
/**
* @author 陈浩
*/
public class P01 {
public static void main(String[] args) {
System.out.println("请输入数字:");
Scanner in = new Scanner(System.in);
int X = in.nextInt();
System.out.println(((X % 2) == 0) ? "偶数" : "奇数");
... |
package tachyon.command;
import java.io.IOException;
import tachyon.Constants;
import tachyon.TachyonURI;
import tachyon.conf.CommonConf;
import tachyon.util.CommonUtils;
/**
* Class for convenience methods used by TFsShell.
*/
public class Utils {
/**
* Removes Constants.HEADER / Constants.HEADER_FT and host... |
package com.takshine.marketing.controller;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package au.org.ala.spatial.web.services;
import au.org.ala.spatial.analysis.scatterplot.Scatterplot;
import au.org.ala.spatial.analysis.scatterplot.ScatterplotDTO;
import au.org.ala.spatial.analysis.scatterplot.Scatterp... |
package com.yash.product_management.dao;
import java.util.List;
import com.yash.product_management.model.Product;
public interface ProductDAO {
/**
* Returns a list of products
* @return
*/
public List<Product> getAllProducts();
/**
* gets the product by id
* @param productId
* @return
*/
publi... |
package enums;
public enum PacketCommand {
REQUEST_SENSOR_DATA,
REQUEST_MODE,
REQUEST_CONTROL_PARAMETERS,
REQUEST_ROUTE_STATUS,
REQUEST_MAP_LOCATION,
REQUEST_LATERAL_DISTANCE,
REQUEST_CONTROL_DECISION,
REQUEST_STOP_LINE_FOUND,
REQUEST_PASSED_DISTANCE,
REQUEST_TEMPERATURE,
S... |
package com.example.instagram.fragments.like;
import android.widget.ImageView;
import android.widget.TextView;
public class LikeModel {
private int imageLikeCircle, imageLike;
private String textLike;
private long textData;
public LikeModel() {
}
public LikeModel(int imageLikeCircle, int im... |
package com.halilayyildiz.game.model;
import java.util.Map;
import com.halilayyildiz.game.mancala.PlayerMove;
public interface IGame
{
String getId();
GameType getType();
int getMaxPlayerCapacity();
boolean isFull();
int addPlayer(IPlayer player);
void setActivePlayerId(String playerId);
Map<String, IPl... |
package subjects.sample;
import java.util.Stack;
/**
* @description: 给定两个二叉树,想象当你将它们中的一个覆盖到另一个上时,两个二叉树的一些节点便会重叠。
* <p>
* 你需要将他们合并为一个新的二叉树。合并的规则是如果两个节点重叠,那么将他们的值相加作为节点合并后的新值,否则不为 NULL 的节点将直接作为新二叉树的节点。
* <p>
* 示例 1:
* <p>
* 输入:
* Tree 1 Tree 2
* 1 2
* / \ ... |
package com.wt.jiaduo.service;
import org.springframework.data.domain.Page;
import com.wt.jiaduo.dto.jpa.XiaomaiBaifenbing;
public interface XiaomaiBaifenbingService {
public Page<XiaomaiBaifenbing> findAll(Integer pageNum,Integer pageSize);
public XiaomaiBaifenbing saveOne(XiaomaiBaifenbing xiaomaiBaifenbing);
p... |
import java.util.List;
import com.google.api.gax.rpc.ApiStreamObserver;
import com.google.cloud.speech.v1.SpeechRecognitionAlternative;
import com.google.cloud.speech.v1.StreamingRecognizeResponse;
import com.google.common.util.concurrent.SettableFuture;
//defining a whole new class and override each of the methods fo... |
package com.qq149.zhibj149.domain;
import java.util.ArrayList;
/**
* 分类信息封装
* 使用Gson解析时,对象书写技巧
* 1.逢{}创建对象,逢【】创建结合(ArrayList)
* 2.所有字段名称要和json返回字段高度一致
* @author zhuww
* @description: 149
* @date :2019/5/20 15:40
*/
public class NewsMenu {
//根据json定义变量
public int retcode;
public ArrayList<Integer> ... |
package com.gld.znaqm.service.impl;
import com.gld.znaqm.mapper.UserMapper;
import com.gld.znaqm.model.User;
import com.gld.znaqm.service.UserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class UserServiceImpl implements UserService {... |
/*
* Copyright (C) 2007 Bastian Schenke (bastian.schenke(at)gmail.com) and
* <a href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</a>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published... |
package com.cnk.travelogix.custom.zif.erp.ws.opportunity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ZifProdCatActivities complex type.
*
* <p>The... |
package com.espendwise.manta.service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
import org.apache.log4j.Logge... |
package com.espendwise.manta.web.validator;
import org.apache.log4j.Logger;
import com.espendwise.manta.model.view.ShoppingControlItemView;
import com.espendwise.manta.util.Constants;
import com.espendwise.manta.util.RefCodeNames;
import com.espendwise.manta.util.Utility;
import com.espendwise.manta.util.arguments.A... |
package com.timmy.customeView.countdownTime;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.os.CountDownTimer;
import android.support.annotation.Nullable;
... |
package Algorithm;
public class a2 {
public ListNode addTwoNumbers(ListNode l1, ListNode l2) {
int count=0;
if (l1==null)return l2;
if (l2==null)return l1;
ListNode res=new ListNode(-1);
ListNode cur=res;
while (l1!=null||l2!=null){
int x=(l1==null)?0:l1.... |
package com.paytechnologies.cloudacar;
import java.util.HashMap;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import com.paytechnologies.DTO.NavDrawerItems;
import com.paytechnologies.cloudacar.adapters.Adapter... |
/*
* 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 mouse.server.network.event;
import mouse.server.network.ClientConnectionHandler;
/**
*
* @author Kevin Streicher <e1025890@... |
package modi.member.pac2;
import modi.member.pac1.A;
public class C {
public C() {
A a =new A();
a.var1 =1;
// a.var2 =1;//default(x)
// a.var3 =1;//private(x)
a.method1();
// a.method2();//default(x)
// a.method3();//private(x)
}
}
|
package com.project.database.repository;
import com.project.database.entities.VidomistMarkEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface VidomistMarkRepository ... |
public class CelestialObject {
protected double velocity = 828000;
public void setVelocity(double velocityVal) {
velocity = velocityVal;
}
public double getVelocity() {
return velocity;
}
}
|
package task73;
/**
* @author Igor
*/
public class Main1 {
public static void main(String[] args)
{
double half = 1d/2d;
double third = 1d/3d;
int count = 0;
for (int d = 5; d <= 12000; d++)
{
for (int n = (d/3)-1; n < (d/2)+1; n++)
{
if (gcd(n,d) == 1)
{
double temp... |
package com.rolandopalermo.facturacion.ec.web.controller;
import java.io.File;
import java.io.IOException;
import javax.xml.bind.JAXBException;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.Me... |
package com.app.sapient.grade.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
imp... |
package tez.levent.feyyaz.kedi.receivers;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import android.widget.Toast;
public c... |
package com.sietecerouno.atlantetransportador.sections;
import android.app.ActionBar;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.annotation.NonNull;
import android.support.constraint.Constr... |
import java.util.*;
import java.util.Arrays;
import java.math.BigInteger;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] arr = new int[n];
for (int i = 0; i < arr.length; i++) {
arr[i] = sc.nextInt();
}
int[] t = n... |
package blackjackbuildone;
//Austin
//Luis
import java.io.IOException;
import java.util.Scanner;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
/****
* <3 = hearts
* <> = diamond
* $$ = Spade
* ** = Club... |
package com.prog.test.designpattern;
public enum PreventSingletonByEnum {
INSTANCE;
public void doDisplay() {
System.out.println("Test Singleton by Enum");
}
}
|
package com.ifeiyang.bijia;
import java.io.InputStream;
import zback._Test;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import android.widget.TextView;
im... |
/*
* Copyright 2015 The Apache Software Foundation.
*
* 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 applica... |
package ch.noseryoung.uk.domainModels.auction.dto;
public class AuctionDTO {
//Fields
private int id;
private String name;
private String reason;
private Float price;
// Standard empty constructor
public AuctionDTO() {
}
// Getters and setters
public int getId() {
... |
package Models;
public class StudentsList {
private int userID,classID,roleID;
private String username,studentName,gender;
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public int getUserID() {
return userID;
}
public void setUserID(int userI... |
package com.jim.multipos.ui.mainpospage.di;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import com.jim.multipos.R;
import com.jim.multipos.config.scope.PerActivity;
import com.jim.multipos.config.scope.PerFragment;
import com.jim.multipos.core.BaseActivityModule;
import com.jim.mu... |
import java.util.Optional;
public class Optionals {
public static void main(String[] args) {
World world = generateWorld();
// Displaying building tenant name:
// 1) 'Old school'
boolean found = false;
if (world != null) {
Country country = world.getCountry("Australia");
if (country != null) {
... |
package com.hesoyam.pharmacy.pharmacy.exceptions;
public class PharmacyNotFoundException extends Exception {
public PharmacyNotFoundException(Long id){
super(String.format("Pharmacy with ID '%s' not found", id));
}
}
|
package com.parrello.tvseries.notification.ws;
import javax.jws.WebService;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.util.ArrayList;
import java.util.Date;
import java.util.Properties;
/**
* Created by nicola on 27/11/14.
*/
@WebService(end... |
/*
* 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... |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionTest {
public static void main(String[] args) throws SQLException, ClassNotFoundException {
// TODO Auto-generated method stub
Connection con=null;
Class.forName("org.postgresql.... |
package compare;
import java.util.*;
/**
* @Author weimin
* @Date 2020/10/7 0007 20:36
*/
public class Lion implements Comparable{
private String name;
private Integer age;
public Lion(String name, Integer age) {
this.name = name;
this.age = age;
}
@Override
public String... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.