text stringlengths 10 2.72M |
|---|
package br.com.becommerce.core.exception;
public class NotFoundException extends BusinessException {
private static final long serialVersionUID = -8011743156158774600L;
public NotFoundException(String messagePattern, Object... objects) {
super(messagePattern, objects);
}
}
|
package com.fleet.alg;
/**
* 编写一个函数来查找字符串数组中的最长公共前缀。
* <p>
* 如果不存在公共前缀,返回空字符串 ""。
* <p>
* 示例 1:
* <p>
* 输入: ["flower","flow","flight"]
* 输出: "fl"
* 示例 2:
* <p>
* 输入: ["dog","racecar","car"]
* 输出: ""
* 解释: 输入不存在公共前缀。
* 说明:
* <p>
* 所有输入只包含小写字母 a-z 。
*/
public class LongestCommonPrefix {
public stat... |
package com.tencent.tencentmap.mapsdk.a;
import android.content.Context;
import android.net.Proxy;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.util.Date;
import java.util.Locale;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
... |
import java.util.*;
import java.util.stream.*;
import java.io.*;
import java.math.*;
import java.awt.geom.*;
public class C {
public static final BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
public static final PrintWriter outWriter = new PrintWriter(System.out);
public static Obj... |
package oop.ex6.component.variable;
/**
* unAppropriate usage of variable assignment
*/
public class VariableUsageException extends VariableDeclarationException {
/** prevents annoying warning */
private static final long serialVersionUID = 1L;
}
|
package net.minecraft.network.play.client;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayServer;
public class CPacketConfirmTeleport implements Packet<INetHandlerPla... |
/*
* 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 jframework.ui;
import data.core.ui.PopupFrame;
import data.core.ui.UiCalendarPopup;
import jframework.ui.student.ListStudent;
... |
package com.lucky.watisrain.map;
import java.util.List;
import com.lucky.watisrain.Global;
import com.lucky.watisrain.backend.data.Path;
import com.lucky.watisrain.backend.data.Waypoint;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
imp... |
/**
* Project Name:WebScan
* File Name:DatabaseSourceDriver.java
* Package Name:databasesource
* Date:2014Äê1ÔÂ9ÈÕÏÂÎç9:20:13
* Copyright (c) 2014, hzycaicai@163.com All Rights Reserved.
*
*/
package databasesource;
import java.util.ArrayList;
/**
* ClassName:DatabaseSourceDriver
*
* @author hzycaicai
*... |
package edunova;
public class Zadatak7 {
//Program učitava brojeve sve dok se ne pojavi broj -1
//program ispisuje zbroj svih primljenih brojeva
public static void main(String[] args) {
int ukupno=0;
int broj;
while(true) {
broj = Metode.ucitajBroj("Učitaj broj");
if(broj==-1) {
bre... |
package javasearch;
public class SearchException extends Exception {
private String msg;
public SearchException(final String msg) {
this.msg = msg;
}
public final String getMessage() {
return this.msg;
}
}
|
package HI;
import javax.swing.JFrame;
import javax.swing.JPanel;
import problemDomain.Sale;
import problemDomain.Session;
import problemDomain.Store;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event... |
public class Main{
public static void main(String[] args) {
Volvo XC90 = new Volvo();
Volvo XC70 = new Volvo();
Volvo XC60 = new Volvo();
Volvo XC50 = new Volvo();
Volvo XC40 = new Volvo();
}
}
|
package com.cricmania.models;
import java.util.HashMap;
import java.util.Map;
import com.mongodb.MongoException;
import net.vz.mongodb.jackson.JacksonDBCollection;
import play.modules.mongodb.jackson.MongoDB;
public class MetaDataDocument extends Base {
private Map<String,Long> table;
private static JacksonDBCo... |
package com.brunocalou.guitarstudio;
import android.util.Log;
/**
* Created by bruno on 08/02/16.
*/
public class DistortionEffect extends Effect {
private final String LOG_TAG = "distortion_effect";
private int threshold;
DistortionEffect() {
nativePtr = _initNative();
}
public void s... |
package com.cyberdust.automation.utils;
import com.cyberdust.automation.application.AutomationUI;
import javax.swing.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class DeviceReader {
private static boolean runningIOSSimulator;
private static boolean runningAndroidDevice;
pr... |
package animatronics.api.energy;
public interface ITETransfersEntropy extends ITEHasEntropy {
}
|
package com.ews;
import com.ews.creativetabs.EwsTab;
import com.ews.init.ModRecipes;
import com.ews.proxy.CommonProxy;
import com.ews.util.Reference;
import com.ews.world.ModWorldGen;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.... |
package org.zz.jni;
public class mxImageTool {
static {
System.loadLibrary("mxImageTool");
}
/****************************************************************************
功 能:获取算法信息
参 数:
返回:算法信息
*****************************************************************************/
... |
package com.gestion.villes;
public class Ville {
private String Nom_Ville;
private int Nombre_habitants;
private int[] Precipitation_Mensuel = new int[12];
private int[] Temperature_Mensuel = new int[12];
public Ville(){
}
public Ville(String Nom_Ville, int Nombre_habitants, in... |
package com.summer.web.basic.context;
/**
* 微服务名称
*
* @author luke
*/
public enum SummerServiceEnum {
S_1001(1001, "用户服务"),
S_1004(1004, "订单服务"),
;
private int code;
private String name;
SummerServiceEnum(int code, String name) {
this.code = code;
this.name = name;
... |
package com.tencent.mm.plugin.websearch;
import com.tencent.mm.a.e;
import com.tencent.mm.g.a.bc;
import com.tencent.mm.plugin.websearch.api.p;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import java.io.File;
import java.io.FileInputStream;
impo... |
/*
* 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 Format;
/**
*
* @author Michi
*/
public class TextFormat {
public static String GetIntWithLeadingZeros(int number, int ... |
package com.general;
import com.general.eventSystem.Event;
import com.general.eventSystem.EventDispatcher;
import com.general.eventSystem.EventListener;
import java.util.Queue;
public abstract class AbstractElevator<E extends Event, P> implements EventListener<E> {
private Queue<E> eventQueue;
privat... |
package org.firstinspires.ftc.teamcode;
import com.disnodeteam.dogecv.CameraViewDisplay;
import com.disnodeteam.dogecv.DogeCV;
import com.disnodeteam.dogecv.detectors.roverrukus.GoldAlignDetector;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
im... |
package banyuan.day05.practice.p01;
/*
1.interface Inter{void show();}
class Outer{ 你的代码; }
class OuterDemo{
public static void main(String[] args){
Outer.method().show();
}
}
*/
/**
* @author newpc
*/
public interface Inter {
void show();
}
|
package com.teaman.data;
/**
* <h1> User </h1>
* <p>
* Interface containing methods to return user data
* </p>
*
* @author Aaron Weaver
* Team Andronerds
* waaronl@okstate.edu
* @version 1.0
* @since 1/30/16
*/
public interface User {
// String constants for columns within the user db.
... |
package twosumII;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Solution {
public List<List<Integer>> allPairs(int[] array, int target) {
// Write your solution here.
List<List<Integer>> result = new ArrayList<List<Inte... |
package ua.kpi.tef;
import java.util.Scanner;
/**
* Created by User on 17.03.2016.
*/
public class Controller {
// The Constants
public static final double PI = 3.14;
public static final int FOUR = 4;
// The Regex
// ?nick@mail.com?
public static final String REGEX_MAIL = "^([a-z0-9_-]+\\.)*... |
package ru.netology.web.data;
import com.github.javafaker.Faker;
import lombok.NoArgsConstructor;
import lombok.Value;
@NoArgsConstructor
public class DataHelper {
@Value
public static class AuthInfo {
String login;
String password;
}
public static AuthInfo getAuthInfo() {
re... |
package javaPractice2;
public class CountEvenAndCountOdd {
public static void main(String[] args) {
int num=12345;
int ecount=0;
int ocount=0;
int check;
while(num>0){
check=num%10;
num=num/10;
if(check%2==0) {
ecount++;
}else{
ocount++;
}}
System.out.println("ecount ="+ecount+","+"ocou... |
package com.rk.dp.structural.flyweight;
public class FlyweightMain {
// Flyweight pattern is primarily used to reduce the number of objects created and to decrease memory footprint.
// Flyweight pattern tries to reuse already existing similar kind objects by storing them and creates new object
// when no matching... |
package chatroom.model.message;
public abstract class UserMessage extends Message implements Displayable {
protected String sender;
public String getSender(){
return sender;
}
}
|
package jonceski.kliment.googlecertprepare.ui;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v7.app.AppCompatActivity;
impor... |
package br.com.higornucci.contracheque.dominio;
import org.junit.Ignore;
import org.junit.Test;
import java.math.BigDecimal;
import br.com.higornucci.contracheque.dominio.desconto.CalculadorDeDesconto;
import br.com.higornucci.contracheque.dominio.desconto.irrf.CalculadorDeIRRF;
import br.com.higornucci.contracheque... |
package com.example.ahmed.octopusmart.RecyclerAdapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.ahmed.octopusmart.Interfaces.... |
package com.bw.movie.mvp.view.apdater;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.Glide;
... |
package com.game.snakesAndLadder;
import java.util.List;
import java.util.Random;
public interface Dice {
int roll();
class CrookedDice implements Dice {
@Override
public int roll() {
Random random = new Random();
return List.of(2, 4, 6).get(random.nextInt(3));
... |
package net.sareweb.onddo.portlet.generic;
import java.util.Enumeration;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletPreferences;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.theme.The... |
package cz.educanet;
public class MathUtils {
/**
* Calculates the greatest common divisor.
* https://www.bbc.co.uk/bitesize/guides/z9hb97h/revision/5
* ie. for 8 and 12 => 4.
* ie. for 10 and 5 => 5.
* ect.
*
* @param a first number
* @param b second number
* @return ... |
package test.nz.org.take.compiler.scenario13.generated;
/**
* Class generated by the take compiler.
* This class represents the predicate ranking
* @version Mon Feb 18 10:34:07 CET 2008
*/
public class ranking {
public test.nz.org.take.compiler.scenario13.Bean slot1;
public long slot2;
public ranking(... |
package br.com.andreguedes.xti;
/**
* Compare operators
* @author Andre
*
*/
public class Aula15 {
// Aula 15 - Operadores de comparacao
public static void main(String[] args) {
int x = 6;
System.out.println(x == 7);
System.out.println(x != 6);
System.out.println(x < 3);
//System.out.println(x ins... |
package com.zen.spark.etl.conf.bill;
/**
* 聊天账单
* Created Tom
* 2017-03-07.
*/
public class BI10029 {
public static int billId = 0;// 账单ID
public static int gameId = 1;// 游戏ID
public static int ts = 2;// 时间戳
public static int userId = 3;// 用户ID
public static int gameSceneId = 4;// 游戏场次ID
pu... |
package com.kakaopay.moneyspread.network;
import com.kakaopay.moneyspread.domain.SpreadResponse;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
class HeaderTest {
@Test
@DisplayName("Header_Test")
public void findByRoomTokenAndSpreadYN... |
package edu.buet.cse.spring.ch03.v4.impl;
import org.springframework.stereotype.Component;
import edu.buet.cse.spring.ch03.v4.model.Instrument;
@Component("piano")
public class Piano implements Instrument {
private static final String PIANO_NAME = "Piano";
@Override
public String getName() {
return PIAN... |
package io.github.amitg87.semaphore.problems.childCare;
import io.github.amitg87.semaphore.lib.Mutex;
import io.github.amitg87.semaphore.lib.Semaphore;
import io.github.amitg87.semaphore.util.Runner;
/**
* At a child care center, state regulations require that there is always one adult present for every three child... |
package com.facebook.react.views.scroll;
import com.a;
import com.facebook.i.a.a;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.common.MapBuilder;
import com.facebook.react.uimanager.PixelUtil;
import java.util.Map;
public class ReactScrollViewCommandHelper {
public static Map<... |
package test3.suiteEx;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
public... |
package com.eres.waiter.waiter.model.events;
public class EventIAmTableChange {
private boolean type;
public boolean isType() {
return type;
}
public EventIAmTableChange(boolean type) {
this.type = type;
}
}
|
package corgi.hub.core;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.clou... |
package com.lins.myzoom.result;
/**
* @ClassName Result
* @Description TODO
* @Author lin
* @Date 2021/1/30 13:38
* @Version 1.0
**/
public class Result {
private int code;
public Result(int code){
this.code=code;
}
public int getCode() {
return code;
}
public void setCo... |
package arenaworker.abilityobjects;
import arenaworker.abilities.Ability;
public class Mine extends Grenade {
public Mine(Ability ability, double rotation, double radius, double amountOfForce, double damage, String color) {
super(ability, rotation, radius, amountOfForce, damage, false, color, 120);
... |
package com.tencent.mm.ac;
import com.tencent.mm.ac.a.g;
import com.tencent.mm.bt.h.d;
class z$7 implements d {
z$7() {
}
public final String[] xb() {
return g.diD;
}
}
|
/*
* 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 dao;
/**
*
* @author Leo
*/
public class Problema {
private int idproblema;
private int idproblemaatual;
privat... |
package com.milos.server;
import com.milos.domain.Answer;
import com.milos.domain.Message;
import com.milos.domain.logger.PrimitiveLogger;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
public class Receiver implements Runnable {
public interface Messag... |
package ec.com.yacare.y4all.activities.principal;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Typeface;
import android.media.MediaActionSound;
import android.os.Environment;
import android.support... |
package com.conn.port;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
/**
* TCP Port
* @author leesk
*
*/
public class TCPPort implements DevicePort
{
private final int defaultPort = 9100;
private final int timeout = 3000;
private static TCP... |
package org.inftel.socialwind.client.web.mvp.ui;
import org.inftel.socialwind.client.web.mvp.ClientFactory;
import org.inftel.socialwind.client.web.mvp.places.HotspotListPlace;
import org.inftel.socialwind.client.web.mvp.places.IntroduccionPlace;
import org.inftel.socialwind.client.web.mvp.places.PerfilPlace;
im... |
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
public final class bcx extends a {
public String rDt;
public int rKb;
public String rwt;
public int rxJ;
public int sfd;
protected final int a(int i, Object... objArr) {
int fQ;
if (i == 0) {
f.a.a.c.a ... |
package tez.levent.feyyaz.kedi.activities.details;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.... |
package org.springframework.fom;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.springframework.fom.annotation.FomSchedule;
import java.util.Set;
/**
*
* @aut... |
package com.marcuschiu.jpahibernateandh2database;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JpaHibernateAndH2DatabaseApplication {
public static void main(String[] args) {
SpringApplication.run(JpaHib... |
package com.dzz.policy.service.service.policy;
import com.alibaba.fastjson.JSON;
import com.dzz.policy.api.domain.dto.PolicyCommonHolderSaveParam;
import com.dzz.policy.api.domain.dto.PolicyCommonSaveParam;
import com.dzz.policy.api.domain.dto.PolicyCommonSubjectSaveParam;
import com.dzz.policy.service.domain.model.Po... |
package me.yamas.tools.utils;
public class StringUtil {
public static boolean containsIgnoreCase(String[] board, String string){
String[] arrayOfString;
int j = (arrayOfString = board).length;
for(int i = 0; i < j; i++){
String otherstring = arrayOfString[i];
if(otherstring.equalsIgnoreCase(string)){
... |
package at.xirado.bean.log;
import at.xirado.bean.Bean;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.classic.spi.IThrowableProxy;
import ch.qos.logback.classic.spi.ThrowableProxyUtil;
import ch.qos.logback.core.CoreConstants;
import ch.qos.logback.core.Lay... |
/*
* Copyright (C) 2016. ly(emiya.angra@gmail.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 applicabl... |
package fr.epita.quiz.tests;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import javax.inject.Inject;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.Con... |
package com.shangcai.action.customer;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.irille.core.repository.orm.Entity;
import com.irille.core.web.exception.ReturnCode;
import com.irille.core.web.exception.W... |
package com.nmoumoulidis.opensensor.model.processing;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.nmoumoulidis.opensensor.model.SensorDictionary;
/**
* Utility class. Provides trans... |
package br.edu.imed;
/**
*
* Classe de negócio (representa um conceito do mundo real para resolver um problema)
*
*/
public class Produto {
/*
* Atributos: o que sabemos sobre a classe (objeto)
*
* */
String descricao;
Double preco = 0d;
String fabricante;
// Integer: Wrapper para in... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package unalcol.types.real.array.sparse;
import unalcol.types.collection.vector.sparse.SparseElement;
import java.util.Iterator;
/**
* @author jgomez
*/
public class SparseRealVectorDotProduct {
protected Sparse... |
/*
* 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 Vistas;
import Clases.Cl_Compra;
import Clases.Cl_Conectar;
import Clases.Cl_Varios;
import Forms.frm_reg_compra;
import java.... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package unocerounocero;
import java.awt.event.*;
public class Controlador extends MouseAdapter {
private Modelo modelo; // ******** Modelo Vista Controlador
private int xPressed=0,yPressed=0;
private int numFigura=0;
private int numFiguras=0;
public Controlador(Modelo modelo) {
this.modelo = model... |
package com.example.university.commands;
import com.example.university.utils.RequestType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax... |
package com.bierocratie.ui;
import com.bierocratie.db.accounting.InvoiceDAO;
import com.bierocratie.db.persistence.PersistenceManager;
import com.bierocratie.model.accounting.Category;
import com.bierocratie.model.accounting.Tva;
import com.bierocratie.model.catalog.Capacity;
import com.bierocratie.model.catalo... |
package com.tencent.mm.plugin.nearby.a;
import com.tencent.mm.ab.l;
import com.tencent.mm.g.a.ka;
import com.tencent.mm.model.au;
import com.tencent.mm.pluginsdk.c.c;
import com.tencent.mm.protocal.c.aqv;
import com.tencent.mm.protocal.c.aqx;
import com.tencent.mm.sdk.b.b;
import java.util.Iterator;
import java.util.L... |
public interface Buf {
void buf(Character character);
}
|
package cn.edu.zucc.web.service;
import cn.edu.zucc.web.model.User;
import cn.edu.zucc.web.model.ViewRun;
import cn.edu.zucc.web.model.ViewTotal;
import java.util.List;
/**
* Created by zxy on 11/20/2016.
*/
public interface SearchService {
List<User> selectByKeyword(String keyword, int start, int size);
... |
package com.example.medicalprocess;
import java.security.NoSuchAlgorithmException;
import java.sql.SQLException;
import classes.Utilisateur;
import android.os.AsyncTask;
import android.widget.Toast;
public class SignUpAsyncTask extends AsyncTask<Object, Void, Void> {
SignUpActivity activity;
String nom;
String pr... |
package pe.gob.trabajo.service;
import pe.gob.trabajo.domain.Calperiodo;
import pe.gob.trabajo.domain.Datlab;
import java.time.LocalDate;
import java.time.Period;
import java.util.ArrayList;
public class PeriodosCtsGeneratorServiveImp implements PeriodosCtsGeneratorService{
/* Fechas para CTS*/
private stat... |
package string;
public class Exercise11 {
public String subBigInteger(String a, String b) {
StringBuilder res = new StringBuilder();
int count = 1;
int miss = 0;
int sub = 0;
if (a.length() < b.length() || (a.length() == b.length() && a.compareTo(b) < 0)) {
retu... |
package Exception.FileException;
public class FileWriteFailException extends FileException {
public FileWriteFailException(String message) {
super(message);
}
}
|
package com.tencent.mm.plugin.fav.a.a;
import com.tencent.mm.protocal.c.vv;
import com.tencent.mm.protocal.c.vx;
import com.tencent.mm.protocal.c.vy;
import com.tencent.mm.protocal.c.vz;
import com.tencent.mm.protocal.c.wa;
import com.tencent.mm.protocal.c.we;
import com.tencent.mm.protocal.c.wk;
import com.tencent.mm... |
package com.chat.zipchat.Activity;
import android.app.Activity;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.re... |
package uk.gov.hmcts.befta.dse.ccd;
import uk.gov.hmcts.befta.dse.ccd.definition.converter.ExcelTransformer;
import uk.gov.hmcts.befta.dse.ccd.definition.converter.JsonTransformer;
import java.io.File;
public class CcdBeftaUtils {
public static File convertJsonDefinitionToExcel(String jsonFolderPath) {
... |
package org.ecsoya.yamail.utils;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
import java.nio.charset.Charset;
public class IOUtils {
private static final int DEFAULT_BUFFER_SIZE = 1024 * 4;
private ... |
package JavaSessions;
import java.util.ArrayList;
public class ArrayListConcept {
public static void main(String[] args) {
//default class in java
ArrayList ar=new ArrayList();
System.out.println(ar.size());
//ar.add method
ar.add(100);//0
ar.add(200);//1
System.out.println(ar.size());
ar.add(... |
package pro.eddiecache.kits.disk.indexed;
import pro.eddiecache.kits.disk.AbstractDiskCacheAttributes;
public class IndexedDiskCacheAttributes extends AbstractDiskCacheAttributes
{
private static final long serialVersionUID = 1L;
private static final int DEFAULT_MAX_KEY_SIZE = 5000;
private int maxKeySize = DEFA... |
package fr.demos;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.htt... |
/**
* Created at 2008-01-23.
*/
package com.allinpay.generator.ibatis.generator;
import java.io.File;
/**
* @author pony
* 如果有任何对代码的修改,请按下面的格式注明修改的内容.
* 序号 时间 作者 修改内容
* 1. 2008-1-23 pony created this class.
*/
public class ServiceContextXmlGenerator extends AbstractConfigFileGenerato... |
package studio.baka.originiumcraft.entity;
import net.minecraft.entity.Entity;
import net.minecraft.util.Tuple;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class OCEntities {
public static final List<Tuple<Class<? extends Entity>,EntityRegistryProperties>> ENTITIYCLASSES =... |
package com.igitras.codegen.common.next;
/**
* Created by mason on 1/4/15.
*/
public interface CgMethod
extends CgMember, CgNameIdentifierOwner, CgModifierListOwner, CgTypeParameterListOwner, CgDocCommentOwner {
/**
* Returns the return type of the method.
*
* @return the method return typ... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* TvTasktime generated by hbm2java
*/
public class TvTasktime implements java.io.Serializable {
private TvTasktimeId id;
public TvTasktime() {
}
public TvTasktime(TvTasktimeId id) {
this.id = id;
}
public TvTaskti... |
package com.victor.stockpesistentdata.ui.adapter;
import android.content.Context;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android... |
package fiscal;
public enum FiscalAcaoCuidadoEspecialEnum {
LIVRE(1L), ALERTA(2L);
FiscalAcaoCuidadoEspecialEnum(Long value) {
this.value = value;
}
private Long value;
public void setValue(Long value) {
this.value = value;
}
public Long getValue() {
return value;
}
public... |
package com.tencent.mm.plugin.subapp.b;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.network.k;
import com.tencent.mm.network.q;
import com.tencent.mm.protocal.c.afw;
import com.tencent.mm.protocal.c.afx;
import com.tencent.mm.sdk.platformtools.x;
import jav... |
//package Genericity;
//
//import java.util.Collection;
//
///**
// * @ClassName FruitTray
// * @Description TODO
// * @Author WDH
// * @Date 2019/8/15 19:04
// * @Version 1.0
// **/
//public class FruitTray<T> {
//
// private T t;
//
// public T function(T t){
// return t;
// }
//
// public <T ... |
/*
* Davis Odom
* 8/26/15
* Removes the junk from a string, parses it into two ints and an operator,
* does the math and then spits out the result
*/
public class Calculator {
public static void main(String[] args) {
//The String
String string = "";
int num1=0,num2=0;
char operator = '+';
for(... |
package br.ita.sem4dia2.ModfAcessoCadeiaContrutores;
public abstract class TesteAbstrato {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.