text stringlengths 10 2.72M |
|---|
package ru.arg.skillsmart.algorithms;
public class BloomFilter
{
public int filter_len;
// 00000000000000000000000000000000
public int bitArray;
public BloomFilter(int f_len)
{
filter_len = f_len;
// создаём битовый массив длиной f_len ...
bitArray = 0;
}
// хэш-фу... |
/*
* Created by Angel Leon (@gubatron), Alden Torres (aldenml)
* Copyright (c) 2011-2014, FrostWire(R). 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
*
* ht... |
package se.joakimsahlstrom.monitor;
import org.junit.Test;
import se.joakimsahlstrom.monitor.model.Service;
import se.joakimsahlstrom.monitor.model.ServiceId;
import se.joakimsahlstrom.monitor.model.Status;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.ju... |
package Problem_3541;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int ... |
package Login;
import Crypto.KeyGeneratorRSA;
import Crypto.KeyManager;
import RemoteObject.CryptoComManager;
import RemoteObject.User;
import java.io.IOException;
import java.rmi.RemoteException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
public class LoginModel... |
package DAL;
// Generated Jan 13, 2015 5:22:16 PM by Hibernate Tools 4.3.1
/**
* Spel generated by hbm2java
*/
public class Spel implements java.io.Serializable {
private Integer id;
private Category category;
private Comment comment;
private String titel;
private String omschrijvingSpe... |
package py.edu.unican.facitec.formulario;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import jav... |
package Running;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Timing {
public String timeform(){
DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
Date date = new Date();
String timefr=dateFormat.format(date);
return timefr;
}
public String tim... |
package com.dian.diabetes.activity.sugar;
import java.util.List;
import com.dian.diabetes.activity.sugar.model.MapModel;
import com.dian.diabetes.dialog.PopDialog;
import android.content.Context;
/**
* 统计弹出选择框 最近月、最近三月、最近一星期
*/
public class TimePopUp extends PopDialog {
public TimePopUp(Context c... |
package com.kdgz.uwifi.backoffice.model;
import com.jfinal.plugin.activerecord.Model;
@SuppressWarnings("serial")
public class Businessapp extends Model<Businessapp>{
public static final Businessapp dao = new Businessapp();
}
|
package de.tu_darmstadt.elc.olw.api.media.video.lecturnity;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
im... |
package com.liuzhihang.doc.view.dto;
import com.intellij.psi.PsiElement;
/**
* @author liuzhihang
* @date 2020/2/28 10:40
*/
public class Header {
/**
* 节点
*/
private PsiElement psiElement;
/**
* 是否必须 1必须 0非必须
*/
private Boolean required;
/**
* 参数名
*/
private... |
package com.fh.param;
import com.fh.commons.Page;
public class ProductSearchParam extends Page {
private Integer typeId;
private Integer brandId;
public Integer getBrandId() {
return brandId;
}
public void setBrandId(Integer brandId) {
this.brandId = brandId;
}
public I... |
package com.pointinside.android.app.util;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import java.u... |
package com.whoisericballard.gsenchants.util;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.FallingBlock;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.util.Vector;
public class BlockUtil {
@SuppressWarnings("deprecation")
public static... |
package observer;
import commands.TrainingGuy;
public class OnlineViewer implements Observer{
private String viewerName;
private String position;
private TrainingGuy trainingGuy;
public OnlineViewer(String viewerName, TrainingGuy trainingGuy) {
this.viewerName = viewerName;
this.trainingGuy = trainingGuy;
}... |
package nz.sodium;
/**
* A cell that allows values to be pushed into it, acting as an interface between the
* world of I/O and the world of FRP. Code that exports CellSinks for read-only use
* should downcast to {@link Cell}.
*/
public class CellSink<A> extends Cell<A> {
/**
* Construct a writable cell wi... |
package com.ymu.letterprinter.letter;
import com.ymu.letterprinter.model.Segment;
import com.ymu.letterprinter.model.Point;
import java.util.Arrays;
/**
* Created by Yann on 22/07/2016.
*/
public class Z extends Letter {
public Z(int letterSize)
{
this.letterSize = letterSize;
int letter... |
package br.com.ocjp7.nio;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.DosFileAttributes;
public class BasicFileAttributesTeste {
public static void main(String[] args... |
package com.atakan.app.service;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.atakan.app.dao.TshirtRepository;
import com.atakan.app.store.m... |
/*
* © Copyright 2016 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
* verbatim in the file “COPYING“. In applying this licence, CERN does not waive the privileges and immunities granted
* to it by virtue of its status as an Intergovernmental Organization or submit itsel... |
package OhPe2021;
public class ehtolauseita {
public static void main(String[] args) {
boolean tilillaOnRahaa = false;
int a = 10;
int b = 20;
if ( a > b && a < 5) {
System.out.println("Molemmat ehdot toteutuvat!");
}
if (a < b || a == 6) {
System.out.println("Jompikumpi toteutui!... |
package com.karya.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springfra... |
package com.transport.comparator;
import java.util.Comparator;
import com.transport.model.Lorry;
/**
*
* @author edwarddavid
* @since 26Apr2020
* Deprecated on 28Apr2020: Used lambda expression instead (functional interface)
*/
public class LorryComparator implements Comparator<Lorry> {
@Override
public int... |
package com.class3601.social.testing;
import static org.junit.Assert.assertEquals;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import com.class3601.social.models.Friend;
import com.class3601.social.models.Game;
import com.class3601.social.models.GameOwner;
import com.class3601.... |
/*
* 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 registraclinic.paciente;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import java... |
package com.westmacott.tom.snakes;
public class Location {
public final int x;
public final int y;
public Location(int x, int y) {
this.x = x;
this.y = y;
}
@Override
public String toString() {
return x + "/" + y;
}
public static Location fromString(String where) {
return new Location(where);
}
pub... |
package com.classroom.services.domain.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations... |
package com.demo.springinaction.chapter3.dessert;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
@Component
@Qualifier("cold")
public class IceCream implements IDessert {
public void eat() {
System.out.println("Eat icecream!");
}
}
|
/*
* MIT License
*
* Copyright (c) 2016 Donato Rimenti
*
* 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,... |
package org.maple.jdk8.stream;
import java.util.stream.Stream;
/**
* @Author Mapleins
* @Date 2019-04-06 1:47
* @Description 演示流转字符串拼接
*/
public class Test5 {
public static void main(String[] args) {
Stream<String> stream = Stream.of("hello", " world", " !");
// StringBuilder sb = stream.col... |
package com.sapient.model;
public enum Status{
ready,open,development,closed
} |
/*
* Copyright (c) 2013-2014, Neuro4j.org
*
* 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 applicab... |
package com.sky.design.observer.base;
//具体观察者
public class ConcreteObserver extends Observer {
private String name;
private String observerState;
private ConcreteSubject subject;
public ConcreteObserver(ConcreteSubject subject,String name){
this.subject=subject;
this.name=name;
}
@Override
public void ... |
package com.doronzehavi.newsitem.data;
import android.net.Uri;
import android.provider.BaseColumns;
/**
* Created by doronzehavi on 3/6/17.
*/
public class NewsItemContract {
public static final String CONTENT_AUTHORITY = "com.doronzehavi.newsitem";
public static final Uri BASE_CONTENT_URI = Uri.parse("co... |
package space.oldtaoge.audioserver.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... |
package en05;
/**
* Created by C0116289 on 2017/05/15.
*/
public class sanple01 {
public static void main(String[] args) {
String istr = "katakuramachi";
String ostr;
ostr= istr.replaceAll("at","!");
System.out.println(ostr);
}
}
|
package structures;
import java.util.NoSuchElementException;
public class ArrayDeque<E> implements Deque<E> {
private int length, top = -1;
private E elements[];
public ArrayDeque(int size) {
length = size;
elements = (E[]) new Object[length];
}
public int size() {
... |
package com.wangzhu.utils;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestHttpClientUtils {
private static final Logger logger = LoggerFactory
.getLogger(TestHttpClientUtils.class);
@Test
publi... |
package com.example.yx_lib_zxing.scanlogin;
/**
* @author Created by rongkaifang
* @date Created at 3:20 PM on 2020/11/17
* @description
*/
public interface ShowMessagePermission {
void showMessageDialog();
}
|
package Lector13.Task7;
import com.sun.xml.internal.ws.commons.xmlutil.Converter;
public class GetIntTwo {
public static long m = 0;
public static String getIntTwo(int num) {
Long m = System.nanoTime();
String str1 = "";
str1 += num;
String str = "";
String outgoingLin... |
import java.util.Scanner;
public class VelocityAdd {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter velocity (v1): ");
float v1 = sc.nextFloat();
System.out.print("Enter velocity (v2): ");
float v2 = sc.nextFloat();
... |
package util;
public class Constants {
public static String WEBSITE_PROD_URL = "https://www.facebook.com";
// config
public static String REPORTS_PATH = System.getProperty("user.dir") + "\\Reports\\";
public static String DATA_XLS_SHEET = "Data";
public static String TESTCASE_XLS_SHEET = "Testcase";
public sta... |
package com.sby.po;
/**
* Created by zheng on 2018/6/15.
*/
public class BootySchool {
private Long id;
private String name;
private int star;
private String address;
private int teacherNumber;
private int studentNumber;
private String introduction;
public Long getId() {
... |
import java.util.*;
public class Count_digit {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int number=s.nextInt();
int digit=0;
while(number!=0) {
digit+=1;
number=number/10;
}
System.out.println(digit);
s.close();
}
}
|
import net.sf.json.JSONObject;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import bean.Pag... |
package ui.RegistryUiTest;
import javafx.scene.control.Label;
import org.junit.Assert;
import org.junit.Test;
import ui.custom.LoginUiCustomTest;
import static org.loadui.testfx.GuiTest.find;
/**
* Created by Алексей on 26.12.2016.
*/
public class DatabaseAndRegistryUiTest extends LoginUiCustomTest {
@Test
... |
package fr.cea.nabla.interpreter.runtime;
import org.graalvm.polyglot.Value;
import com.google.gson.JsonObject;
public abstract class NablaProviderObject {
protected final String providerName;
protected final String extensionName;
protected final String path;
protected final JsonObject options;
public NablaP... |
package cmc.vn.ejbca.RA.service;
import org.bouncycastle.asn1.DERSet;
import org.bouncycastle.asn1.x509.X509Name;
import org.bouncycastle.jce.PKCS10CertificationRequest;
import org.cesecore.util.CertTools;
import java.security.KeyPair;
public class WebClientService {
/**
* Generate PKCS10 Request
**/
... |
package com.cinema.biz.action;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JS... |
package com.tyj.venus.entity;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "t_gadmin")
public class Gadmin implements Serializable {
private Integer gid;
@NotEmpty(message = "角色名... |
package edu.cmu.cs4pe.a5;
/**
* A stack ADT. It utilizes {@link LinkedList} to be its underlying data structure. This is fit as
* the maximum number of elements to be put into stack is unknown or unpredictable to be within a
* reasonable range.
*
* @since 2016.11.11
*
* @author Weinan Qiu
*/
public class Stack... |
package com.encdata.corn.niblet.domain;
/**
* @Author: jinsi
* @Date: 2019/7/16 17:15
* @Description:
*/
public class Role {
private String enName;
private String chName;
public String getEnName() {
return enName;
}
public void setEnName(String enName) {
this.enName = enName... |
package com.keybellsoft.parseexample;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.parse.FindCal... |
package lt.itakademija.electors.kandidatas;
import lt.itakademija.electors.partija.PartijaEntity;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* Created by Pavel on 2017-01-12.
*/
@Entity
public class KandidatasEntity {
@Id
@GeneratedValue
private... |
package se.seb.mdm.sandbox.domain;
public class Wheel {
private Float diameter;
}
|
//https://www.acmicpc.net/problem/25418
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class bj25418 {
public static void main(String[] args) throws IOException {
BufferedReader br = new Buffere... |
package org.sid.entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class Commentaire implements Serializable {
@Id @GeneratedValue
priva... |
/**
*/
package iso20022.impl;
import org.eclipse.emf.ecore.EClass;
import iso20022.ConvergenceDocumentation;
import iso20022.Iso20022Package;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Convergence Documentation</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public clas... |
package alien4cloud.model.components;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public abstract class PropertyValue<T> extends AbstractPropert... |
package com.sl.web.home.dao;
import com.sl.web.home.vo.WebHomeVO;
import net.sf.json.JSONObject;
public interface WebHomeDAO {
JSONObject login(WebHomeVO vo);
JSONObject joinEmail(WebHomeVO vo);
JSONObject joinAccount(WebHomeVO vo);
JSONObject findAccount(WebHomeVO vo);
}
|
package view;
import view.customized_widgets.CustomizedButton;
import view.customized_widgets.CustomizedLabel;
import view.customized_widgets.CustomizedPanel;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public cla... |
package com.thoughtworks.demo.animal;
public class Animal {
private String name;
private String foot;
private String location;
public void eat(){
System.out.println("eat");
}
public void sleep(){
System.out.println("sleep");
}
public void roam(){
System.out.prin... |
package com.uapp.useekr.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;
import com.uapp.useekr.R;
import com.uapp.useekr... |
package de.theskyscout.challlenge.manager;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import java.util.ArrayList;
import java.util.Random;
public class RandommizierManager {
int lower = 0;
int upper = 1;
public static ArrayList<Material> MATS = new ArrayList<Material>();
... |
package com.logzc.webzic.reflection;
import com.logzc.common.util.IOUtil;
import com.logzc.webzic.exception.ZicException;
import org.objectweb.asm.ClassReader;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by lishuang on 2016/7/29.
*/
public class AsmHelper {
public static ClassReader ... |
package com.bwardweb.iterator.model;
public class ApplianceShopIterator implements Iterator{
private StockItem[] items;
private int position;
public ApplianceShopIterator(StockItem[] items){
this.items = items;
position = 0;
}
@Override
public boolean hasNext() {
if(position >= items.length || items[po... |
package com.example.randomlocks.listup.Modal;
import android.database.Cursor;
import com.example.randomlocks.listup.Adapter.DatabaseAdapter;
/**
* Created by randomlocks on 5/4/2016.
*/
public class DatabaseModel {
private Long rowId;
private String title;
private String checkboxText;
private l... |
package com.xinhua.api.domain.yYqtbcxBean;
import com.apsaras.aps.increment.domain.AbstractIncResponse;
import java.io.Serializable;
import java.util.List;
/**
* Created by lirs_wb on 2015/8/27.
* 犹豫期退保查询 应答
*/
public class YYQTBCXResponse extends AbstractIncResponse implements Serializable {
/**
*保险公司交易... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.suanimsatici;
import java.sql.Date;
/**
*
* @author pc
*/
public class waterreminder {
public int waterI... |
import at.ac.univie.swe2016.fm.VehicleManagement;
import at.ac.univie.swe2016.fm.fahrzeuge.Cars;
import at.ac.univie.swe2016.fm.fahrzeuge.Trucks;
public class Main {
public static void main(String[] args) {
VehicleManagement vm = new VehicleManagement("bin/vehicles.txt");
/*
// dodavanje novog objekta car u l... |
package com.spittr.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class SpittrSecu... |
package xtrus.ex.cms.server;
import static org.jboss.netty.channel.Channels.pipeline;
import java.util.concurrent.TimeUnit;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.handler.timeout.IdleStateHandler;
import org.jboss.netty.handler.ti... |
package com.mediafire.sdk.response_models.data_models;
/**
* Created by Chris on 12/23/2014.
*/
public class DoUploadResumableModel extends DoUploadModel {
private String key;
public final String getKey() {
return key;
}
}
|
package com.sutran.client.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.sutran.client.bean.GenTbFlota;
import com.sutran.client.util.CriteriaManager;
@Repository
public interface GenTbFlotaMapper {
int deleteByPrimaryKey(Integer id);
int insert(GenTbF... |
import java.io.*;
import java.util.*;
public class Main {
static Scanner in = new Scanner(System.in);
static PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) {
int t = in.nextInt();
for (int i = 0; i < t; i++) {
int n = in.nextInt();
in.nextLine();... |
/*
* Copyright (C) 2014-2015 Samuel Audet
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
* the Free Software Foundation (subject to the "Classpath" exception),
* either version 2, or any later version (collectively... |
package com.ants.theantsgo;
import android.app.Application;
import android.text.TextUtils;
import com.ants.theantsgo.config.Settings;
import com.ants.theantsgo.tool.ToolKit;
import com.ants.theantsgo.util.FileManager;
import com.ants.theantsgo.util.ListUtils;
import com.ants.theantsgo.util.PreferencesUtils;
import co... |
/*
* Copyright 2015 The RPC Project
*
* The RPC Project licenses this file to you 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 requ... |
package com.example.krishna.tripmaza;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
... |
package me.ThaH3lper.com.Crehop;
import me.ThaH3lper.com.Dungeon;
import me.ThaH3lper.com.dungeon.Tower;
import org.bukkit.Bukkit;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.CreatureSpawnEvent... |
package com.xeland.project;
public interface ClassF {
}
|
package com.xiezh.findlost.service;
import android.app.Service;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Binder;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.util.L... |
package numberPgms;
public class NumberToWords {
static void numberToWords(char num[])
{
int len = num.length;
if (len == 0)
{
System.out.println("The string is empty.");
return;
}
if (len > 4)
{
System.out.println("\n The given number has more than 4 digits.");
re... |
package com.brotherjing.aademo;
import com.brotherjing.aademo.beans.Word;
import com.brotherjing.aademo.beans.WordResponse;
import org.androidannotations.annotations.rest.Accept;
import org.androidannotations.annotations.rest.Get;
import org.androidannotations.annotations.rest.Rest;
import org.androidannotations.api.... |
package de.julianpadawan.timelog.insight;
import de.julianpadawan.timelog.model.Goal;
import de.julianpadawan.timelog.model.LogEntry;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.temporal.TemporalAdjusters;
public final class MonthStreakCalculator extends DurationAccumulatingStreakCal... |
package com.company;
import java.io.Serializable;
public abstract class Employee implements Serializable {
private String Name;
private int ID;
private int salary;
private int officeType;
public Employee(String name, int id, int salary/*, int officeType, int specialField1, boolean specialField2*/... |
package elder;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
/**
*
* Creates a height map object backed with data in the ASTER ASCII format
*
*/
public class ASTERHeightMap implements Heig... |
package Problem_1152;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine().trim();
... |
package com.alibaba.druid.bvt.sql.mysql.resolve;
import com.alibaba.druid.DbType;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLExpr;
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
import com.alibaba.druid.sql.ast.statement.*... |
/*
Author : M2CCI 2021 projet d'intégration groupe 01
*/
package m2cci.pi01.cybertheatremodel;
import java.time.LocalDateTime;
import java.util.Date;
import m2cci.pi01.cybertheatremodel.Sieges.Siege;
public class Billet {
protected Siege siege;
protected Representation representation;
protecte... |
package com.project.tz.repositories;
import com.project.tz.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User,Long> {
User findByUsername(String username);
User findById(long id);
void deleteById(long id);
}
|
package com.romens.yjkgrab.ui.fragment;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.vi... |
package com.aslamodaya.shapestrike.States;
/**
* Created by naveed.shihab on 16/11/2016.
*/
public enum ColourState {
RED("red"), GREEN("green"), BLUE("blue"), MAGENTA("magenta");
private final String type;
ColourState(String type){
this.type = type;
}
public String key(){
ret... |
/*
This class contains the blueprint for every Ticket.
*/
public class Ticket{
//Every Ticket has a non-zero price.
public int price;
public Ticket(int price){
this.price = price;
}
}
|
package com.hillel.javaElementary.classes.Lesson_6.IStudentStringConverter.implementation;
import com.hillel.javaElementary.classes.Lesson_4.People.Student;
import com.hillel.javaElementary.classes.Lesson_6.IStudentStringConverter.IStudentStringConverter;
public class IniStudentStringConverter implements IStudentStri... |
package com.awstechguide.cms.springjpah2.common;
public enum Status {
ACTIVE, INACTIVE,DELETED;
}
|
package com.cpl.kpi.source;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import com.cpl.kpi.Kpi;
public class Mapper extends org.apache.hadoop.mapreduce.Mapper<LongWritable, Text,Text,IntWritable >{
Text source = ne... |
package com.waylau.spring.boot.security.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.an... |
package com.trump.auction.reactor.api.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 拍中结果响应
*
* @author Owen
* @since 2018/1/8
*/
@ToString
@NoArgsConstructor
public class BidHitResponse ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.