text stringlengths 10 2.72M |
|---|
package reactive;
public class Main {
public static void main(String[] args) {
// new DataLoader().load();
new ParallelDataLoader().load();
}
}
|
package rent;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStat... |
/*
2022-08-22
[Leetcode][Easy] 1528. Shuffle String
*/
class ShuffleString {
/*
* Runtime: 1 ms, faster than 100.00% of Java online submissions for Shuffle String.
* Memory Usage: 45 MB, less than 39.33% of Java online submissions for Shuffle String.
*/
public String restoreString(String ... |
package com.redstoner.remote_console.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxExcept... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package polskaad1340.window;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.e... |
package com.example.jiyushi1.dis.ws.local;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Map;
/**
* ... |
/*
* 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... |
package be.tarsos.dsp.example;
import be.tarsos.dsp.AudioEvent;
import be.tarsos.dsp.AudioProcessor;
public class AmplitudeProcessor implements AudioProcessor, AutoBand.OnUpdateBands{
private Client client;
private float pitch = 0;
private float offset = 0;
private float multiply = 1;
private flo... |
package pl.com.nur.springsecurityemailverification.model;
public enum AppRole {
USER,
ADMIN;
public String getName(){
return this.name();
}
}
|
package cn.algerfan;
/**
* 343. 整数拆分
* 给定一个正整数 n,将其拆分为至少两个正整数的和,并使这些整数的乘积最大化。 返回你可以获得的最大乘积。
* <p>
* 示例 1:
* 输入: 2
* 输出: 1
* 解释: 2 = 1 + 1, 1 × 1 = 1。
* 示例 2:
* 输入: 10
* 输出: 36
* 解释: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36。
* 说明: 你可以假设 n 不小于 2 且不大于 58。
*
* @author algerfan
*/
public class LeetCode343 {
publi... |
package org.levelup.web.controllers;
import org.levelup.model.Category;
import org.levelup.repositories.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.s... |
package br.com.tt.petshop.client;
import br.com.tt.petshop.exception.ErroNegocioException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.HttpServerErrorExc... |
package org.giveback.dscbanasthali.graph;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
public class AdjMatrixGraph {
private final boolean[][] adjMatrix;
private final int vertexCount;
public AdjMatrixGraph(int vertexCount) {
this.vertexCount = vertexCount;
... |
package com.carlos.theculinaryapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompa... |
package Model.impl;
import Bean.Message;
import Configure.RouterAndHostConfigure;
import Listener.RouterAndHostMomentStrListener;
import Model.IHost;
import Util.PrintUtil;
import Util.RandomUtil;
import java.util.*;
import java.util.concurrent.*;
/**
* @author dmrfcoder
* @date 2019-04-15
*/
public class Host im... |
package org.wuxinshui.boosters.designPatterns.singleton;
/**
* Created with IntelliJ IDEA.
* User: FujiRen
* Date: 2016/11/11
* Time: 7:31
* To change this template use File | Settings | File Templates.
*/
//饿汉模式
public class HungrySingleton {
//利用静态变量来记录singleton的唯一实例
private final static HungrySingleto... |
package lk.ac.mrt.cse.mscresearch.remoting;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import lk.ac.mrt.cse.mscresearch.remoting.dto.ClassDTO;
import lk.ac.mrt.cse.mscresearch.remoting.dto.JarDTO;
public interface ByteCodePersistor {
boolean isJarIndexed(String ... |
package com.rev.dao;
import java.io.Serializable;
import java.util.List;
public interface GenericRepository<T> {
Serializable save(T t);
List<T> findAll();
T findById(Serializable id);
boolean update(T t);
boolean deleteById(Serializable id);
}
|
package Tools;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.DisplayMode;
import java.awt.Graphics2D;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
... |
package utils;
/**
* Created by lamdevops on 7/22/17.
*/
public class ExceptionMailer {
public static void send(Throwable e) {
System.out.println(String.format("Sending email containing exception ", e));
}
}
|
package com.pdd.pop.sdk.http.api.response;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.PopBaseHttpResponse;
import java.util.List;
public class PddSmsSendRecordListQueryResponse extends PopBaseHttpResponse{
/**
* response
*/
@JsonProperty("sms_se... |
package com.appspot.smartshop.mock;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedList;
import com.appspot.smartshop.dom.ProductInfo;
import com.appspot.smartshop.map.MapService;
import com.appspot.smartshop.utils.Utils;
import com.google.android.maps.GeoPoint;
public class MockP... |
/**
* Copyright (C) 2014-2017 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICE... |
package com.biblio.api.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.biblio.api.core.Emprunt;
@Repository
public interface EmpruntRepository extends JpaRepository<Emprunt, Long> {
public Iterable<Emprunt> findByUtilisateur_Id(long id)... |
/*
* Copyright 2002-2022 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... |
package com.javarush.test.level15.lesson12.home04;
import static com.javarush.test.level15.lesson12.home04.Solution.readKeyFromConsoleAndInitPlanet;
/**
* Created by nik on 14.01.2017.
*/
public class Earth implements Planet
{
private static Earth earth;
private Earth(){}
static{
try{
... |
package com.ywd.blog.dao;
import java.util.List;
import java.util.Map;
import com.ywd.blog.entity.BlogType;
public interface BlogTypeDao {
public List<BlogType> countList();
public BlogType findById(Integer id);
public List<BlogType> list(Map<String, Object> map);
public Long getTotal(Map<String, Object> ... |
package com.pointinside.android.api.dao;
import android.database.Cursor;
import android.net.Uri;
public class PIMapAddressDataCursor
extends AbstractDataCursor
{
private static final AbstractDataCursor.Creator<PIMapAddressDataCursor> CREATOR = new AbstractDataCursor.Creator()
{
public PIMapAddress... |
package com.sbs.sbsattend;
import com.sbs.tool.MySignal;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
public class AdminActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.... |
package kim.aleksandr.backendless;
import android.util.Log;
import com.backendless.Backendless;
import com.backendless.BackendlessCollection;
import com.backendless.persistence.BackendlessDataQuery;
/**
* Created by User on 14.07.2016.
*/
public class CheckForConflictsThread extends Thread{
long tim... |
package com.tyler_hoffman.ventriloquist.common;
import java.util.Arrays;
import java.util.Hashtable;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.CompoundControl;
import javax.sound.sampled.Control;
import javax.sound.sampled.DataLine;
import javax.sound.s... |
package com.imooc.weixin6_0;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import an... |
/* Test 45:
*
* Ancora sull'invocazione di metodi.
*
* In questo test, facciamo riferimento alla forma:
*
* TypeName.MethodName
*/
package gimnasium;
class gemini {
static void pippo() {}
int pluto() { }
private static void cake() { }
public static void paperino() { }
protected... |
package com.itheima.day_06.demo_03;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
public class HashSetDemo_01 {
/*
产生十个不同的随机数,存储到Set中
*/
public static void main(String[] args) {
Random random = new Random();
Set<Integer> set = new HashSet<>();
while (set.size() < 10)
set.a... |
package c.c.quadraticfunction;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import... |
package com.szakdolgozat.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import javax.transaction.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.facto... |
package com.joalib.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
//import com.jaolib.book.manager.action.Boo... |
package net.awesomekorean.podo.lesson.lessonReviewRewards;
import net.awesomekorean.podo.lesson.lessons.Lesson;
import net.awesomekorean.podo.lesson.lessons.Lesson36;
import net.awesomekorean.podo.lesson.lessons.Lesson37;
import net.awesomekorean.podo.lesson.lessons.Lesson38;
import net.awesomekorean.podo.lesson.lesso... |
package com.example.Springsecurity.service;
import com.example.Springsecurity.domain.Book;
import java.util.List;
public interface BookService {
List<Book> getAllBooks();
Book insertBook(Book book);
Book updateBook(Book book);
Book getBookById(String id);
}
|
package cn.edu.cugb.information_program.go_test;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.EditText;
import android.widget.ListView;
import java.util.ArrayList;
import java... |
package net.lshift.lee.jaxb.xml.adapter;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import net.lshift.lee.jaxb.pojo.Parent;
import net.lshift.lee.jaxb.xml.ParentElement;
public class ParentAdapter extends XmlAdapter<ParentElement, Parent> {
@Override
public Parent unmarshal(ParentElement v) throws Ex... |
/*
* Copyright (c) 2017, 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... |
package com.lzw;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import ja... |
package com.code;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class JoinedPipes {
public static void main(String[] args) {
// initialize Input 1 : Length of pipes
// initialize Input 2 : No. of pipes
int input1[] = new int[] { 4, 7, 2, 5, 6, 3, 8, 12, 3 };
... |
package com.jyn.language.Java学习.集合;
import java.util.HashMap;
import java.util.IdentityHashMap;
/*
* 你真的了解IdentityHashMap与HashMap区别吗?
* https://blog.csdn.net/zzg1229059735/article/details/78991200
*/
public class IdentityHashMapTest {
/**
* 判断是否为同一Entry?
*
* HashMap
* if (e.hash == hash &&... |
package com.trump.auction.back.userRecharge.model;
import lombok.Data;
import java.util.Date;
/**
* Created by wangYaMin on 2018/1/10.
*/
@Data
public class AccountRechargeOrder {
private Integer id;
private Integer userId;
private String userName;
private String userPhone;
private Integer outM... |
package com.flower.api.handler;
import com.flower.common.bean.ResponseResult;
import com.flower.common.exception.BizException;
import com.flower.common.exception.SysException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.s... |
package com.kinsella.people.business.service;
import com.kinsella.people.data.entity.Address;
import java.util.List;
import java.util.Optional;
public interface AddressService {
Optional<Address> create(long id, long personId, String street, String city, String state, String postalCode);
Optional<Address> ... |
package com.mediafire.sdk.log;
import java.util.LinkedList;
import java.util.List;
/**
* Created by Chris on 5/26/2015.
*/
public class DefaultApiTransactionStore implements MFLogStore<ApiTransaction> {
public final LinkedList<ApiTransaction> apiTransactions = new LinkedList<ApiTransaction>();
private final... |
package cn.itcast.core.controller;
import cn.itcast.core.pojo.entity.PageResult;
import cn.itcast.core.pojo.entity.Result;
import cn.itcast.core.pojo.good.Brand;
import cn.itcast.core.service.BrandService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.apache.ibatis.io.ResolverUtil;
import org.spring... |
package de.evoila.cf.model.api.endpoint;
import de.evoila.cf.broker.model.ServiceInstance;
import de.evoila.cf.model.enums.BackupType;
import org.springframework.data.mongodb.core.mapping.DBRef;
import java.util.Map;
/**
* @author Johannes Hiemer.
*/
public class EndpointCredential {
@DBRef
private Servic... |
/* $Id$ */
package djudge.utils;
public class XMLConfigurable implements XMLConfigurableInterface
{
@Override
public String getConfigFilename()
{
return this.getClass().toString();
}
}
|
package com.aforo255.exam.repository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.aforo255.exam.domain.Invoice;
@Repository
public interface InvoiceRepository extends... |
import Framework.Settings;
public class Main {
public static void main (String[] args) throws InstantiationException, IllegalAccessException {
Settings Settings = new Settings();
Settings.setMutationRate(0.03);
Settings.setPopulationSize(50);
Settings.setNumberOfSurvivalInGeneration(5);
GeneticAlgori... |
package com.hunger.rpc.serialize;
import io.netty.buffer.ByteBuf;
import java.io.IOException;
/**
* Created by 小排骨 on 2018/1/10.
*/
public interface MessageCodecUtil {
int MESSAGE_LENGTH = 4;
/**
* 编码
* @param out
* @param message
* @throws IOException
*/
void encode(final By... |
package com.organisation.library.repository;
import com.organisation.library.entities.Author;
import org.springframework.data.repository.CrudRepository;
public interface AuthorRepository extends CrudRepository<Author, Long> {
}
|
/*
* AlleleDepthUtil
*/
package net.maizegenetics.dna.snp.depth;
import java.util.Arrays;
/**
* Depth compression utility. Depths are scored in byte (256 states). 0 to 127 are used for exact depth vaules.
* -128 to -1 are used for log approximations (1.0746^(-x)). This permits depths upto 10,482 to be stored
... |
package de.cuuky.varo.listener.saveable;
import org.bukkit.block.Chest;
import org.bukkit.block.DoubleChest;
import org.bukkit.block.Furnace;
import org.bukkit.block.Hopper;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryMoveItemEvent;
impo... |
package iotwearable.editor.factory;
import org.eclipse.gef.requests.CreationFactory;
import iotwearable.model.iotw.DHT11;
import iotwearable.model.iotw.IotwFactory;
/**
* Used to create new DHT11
*/
public class DHT11Factory implements CreationFactory{
@Override
public Object getNewObject() {
return IotwFactor... |
package Patterns;
/**
* 工厂方法
* Created by Administrator on 2017/9/23.
*/
public class FactoryMehtod {
//当一个类不知道它所必须创建的对象的类
//一个类希望由它的子类来指定它所创建的对象
//类将创建对象的职责委托给多个帮助子类中的某一个
//只有一个抽象产品类
//具体工厂类只能创建一个具体产品类的实例
public static void main(String[] args) {
IFactory2 factory = new Factory2();... |
package com.lenovohit.ssm.payment.hisModel;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToSt... |
package com.gxtc.huchuan.im.itemview;
import android.app.Activity;
import android.view.View;
import com.gxtc.commlibrary.recyclerview.base.ItemViewDelegate;
import com.gxtc.commlibrary.recyclerview.base.ViewHolder;
import com.gxtc.huchuan.R;
import com.gxtc.huchuan.im.provide.RedPacketMessage;
import com.gxtc.huchuan... |
package com.cb.cbfunny.qb.task;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.widget.ImageView;
import com.cb.cbfunny.qb.imgutils.AsyncImageGetUtil;
public class ImgLoadTask extends AsyncTask<String, Void, Bitmap> {
AsyncImageGetUtil loader;
ImageView imgageView;
String picUrl;
pr... |
package com.example.jeremychen.musicapp.utils;
/**
* Created by jeremychen on 2018/7/25.
*/
public class Music {
private String artistName;
private String musicName;
private String onlineMusicUrl;
private String picUrl;
private String collectionPrice;
private String trackPrice;
private ... |
package cn.com.onlinetool.fastpay.pay.wxpay.util;
import cn.com.onlinetool.fastpay.constants.EncryptionTypeConstants;
import cn.com.onlinetool.fastpay.pay.wxpay.config.WXPayConfig;
import cn.com.onlinetool.fastpay.pay.wxpay.constants.WXPayConstants;
import cn.com.onlinetool.fastpay.pay.wxpay.domain.WXPayDomain;
import... |
package pl.jwrabel.trainings.javandwro2;
import java.util.*;
/**
* Created by RENT on 2017-03-22.
*/
public class DateTest {
public static void main(String[] args) {
Date date1 = new Date(1, 12, 2016);
Date date2 = new Date(4, 6, 2016);
Date date3 = new Date(5, 6, 2010);
Date dat... |
package xml;
import domain.Offer;
import lombok.extern.slf4j.Slf4j;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.List;
@Slf4j
public class XmlExtractor {
public static void extract() {
... |
package com.arduino.bluetooth;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothServerSocket;
import android.bluetooth.BluetoothSocket;
import andro... |
package com.wired.base;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.zip.CRC32;
import java.util.zip.CheckedOutputStream;
import java.util.zip.ZipEntry;
import java.ut... |
package com.sshfortress.service.system;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sshfort... |
package com.zantong.mobilecttx.common.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.zantong.mobilecttx.common.adapter.CommonTwoLevelMenuAdapter;
import com.jcodecraeer.xrecyclerview.BaseAdapter;
import com.zantong.mobilecttx.base.fragment.BaseListFragment;
imp... |
package com.hunger.service;
/**
* Created by 小排骨 on 2018/1/22.
*/
public interface HelloService extends Service{
String sayHello(String user);
}
|
package ListaSimple;
public class NewMain {
public static void main(String[] args) {
Lista ls=new Lista();
ls.Ingresar(5);
ls.Ingresar(3);
ls.Ingresar(7);
ls.Ingresar(2);
System.out.println(ls.Mostrar());
}
}
|
package com.cqccc.common.web.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
public class MyWebMvcConfigurerAda... |
package com.cakeworld.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Data;
@Entity
@Data
public class SubscribedEmail {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
long id;
String email... |
package com.revature.simple;
public class JavaSimpleSolution implements JavaSimple {
@Override
public int castToInt(double n) {
n = int (n);
return 0;
}
@Override
public byte castToByte(short n) {
n = byte(n)
return 0;
}
@Override
public double divide(double operandOne, double operandTwo) throws... |
package com.daikit.graphql.test;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import com.daikit.graphql.dynamicattribute.GQLDynamicAttributeGetter;
import com.daikit.graphql.dynamicattribute.GQLDynamicAttributeSetter;
... |
package edu.athens.cs.gradegeneratortest;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import java.util.List;
... |
package hwl3;
public class CheckPrimeNumber {
public static void execute(int number) {
String result = "";
if ((number % 2 > 0) && (number % 3 > 0) && (number % 5 > 0) && (number % 7 > 0)) {
result =" " ;
} else
result = "не ";
System.out.println(number + " это " + result+" простое число");
}
}
|
package com.codigo.smartstore.xbase;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
// https://www.clicketyclick.dk/databases/xbase/format/dbf.html#DBF_STRUCT
/// struktura pliku XBAse
// http://wiki.dbfmanager.com/dbf-structure
// http://www.oocities.org/geoff_wass/dBASE/GaryWhite/dBASE/FAQ/qformt.htm
... |
package exceptions;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
public class NoEmptyClientAllowedException extends Exception {
private static final long serialVersionUID = -566099652872901161L;
public NoEmptyClientAllowedException() {
Shell shell = new Shell();
Me... |
/**
* This class is generated by jOOQ
*/
package schema.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.... |
/*
* 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 Controlador;
import Modelo.Empleado;
import Modelo.Movimiento;
import Modelo.ReporteReservacion;
import Modelo.Reservacion;
im... |
public class Markov {
private int[] salidas;
private int[] estados;
private double[] probI;
private double[][] A;
private double[][] B;
private int[] observaciones;
private double[][] alfa;
private double[][] beta;
public Markov()
{
}
public int[] getSalidas() {
... |
package com.qst.chapter03;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
public class ImageV... |
package com.hhdb.csadmin.plugin.tree.ui;
import java.io.IOException;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.Collection;
import javax.swing.JOptionPane;
import com.hh.frame.common.log.LM;
import com.hh.frame.csv.writer.CsvWriter;
import com.hh.frame.dbobj.hhdb.HHdbCk;
import com.hh.... |
package dk.webbies.tscreate.main;
import com.google.javascript.jscomp.parsing.parser.Parser;
import dk.webbies.tscreate.*;
import dk.webbies.tscreate.analysis.TypeAnalysis;
import dk.webbies.tscreate.analysis.declarations.*;
import dk.webbies.tscreate.analysis.declarations.types.DeclarationType;
import dk.webbies.tscr... |
package testing.ingtest;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
@Entity
public class Customers {
@Id
private int customerid;
private String name;
private String region;
private String brand;
private int phnumber;
private S... |
/*
* Copyright 2002-2022 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... |
package 序列化;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
/**
* Linkedlist
* HashMap自行实现序列化与反序列化
*/
public class SerializableArray {
public static void main(String[] args) {
ArrayList<String> list = ne... |
package com.example.pepi.calculatorapp;
/**
* Created by pepi_ on 08/19/2018.
*/
public class Calculator {
private double first,second;
public void setFirst(double first) {
this.first = first;
}
public void setSecond(double second) {
this.second = second;
}
public double ... |
package org.infinispan.distribution;
import org.infinispan.Cache;
import org.infinispan.commands.write.PutKeyValueCommand;
import org.infinispan.commands.write.ReplaceCommand;
import org.infinispan.interceptors.base.CommandInterceptor;
import org.infinispan.interceptors.distribution.L1NonTxInterceptor;
import org.infi... |
package br.com.senac.Interface;
public interface Animais {
public int getId();
public void setId(int id);
public String getEspecie();
public void setEspecie(String especie);
public String getLocomocao();
public void setLocomocao(String locomocao);
public float getTama... |
/**
* This class is generated by jOOQ
*/
package schema.tables;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.... |
package usc.cs310.ProEvento.dao;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import usc.cs310.ProEvento.model.Invitation;
import java.util.List;
@R... |
package edu.udc.psw.modelo;
public class FabricaFormas {// cria formas geometricas//
public static FormaGeometrica fabricarFormaGeometrica(String forma) {
int i = forma.indexOf(' ');
String nome = forma.substring(0,i);
FormaGeometrica formaGeometrica= null;
if(nome.equals(Linha.class.getSimpleNa... |
package com.navarro.todo.core.service;
import com.navarro.todo.core.dto.TodoDTO;
public interface TodoService {
Iterable<TodoDTO> list();
TodoDTO findById(Long id);
TodoDTO createOrUpdate(TodoDTO todo);
void delete(Long id);
}
|
package com.lehvolk.xodus.web.vo;
import java.io.Serializable;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
/**
* Light VO for entity presentation
* @author Alexey Volkov
* @since 12.11.2015
*/
@Getter
@Setter
public class LightEntityVO extends BaseVO {
private static final long serial... |
package com.example.vplayer.fragment.adapter;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.PorterDuff;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import andro... |
package jakebellotti.steamvrlauncher.model;
import java.util.Optional;
import javafx.scene.image.Image;
/**
*
* @author Jake Bellotti
*
*/
public class SteamApp {
private final int id;
private final int steamVRManifestFileID;
private final Optional<Image> image;
private final String appKey;
private final ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.