text stringlengths 10 2.72M |
|---|
package com.dbs.portal.database.to.common;
import java.util.HashMap;
import java.util.Map;
public class GlobalPortletDataTransfer {
private Map<String, Object> portletSession = new HashMap<String, Object>();
private static GlobalPortletDataTransfer instance = null;
private GlobalPortletDataTransfer()... |
package com.li.sort;
public class SimpleSort {
/**
* 并归排序 思想两段已经排好序的子序列合并
* 注意 子序列合并的细节
*
* @param a
* @param left
* @param rigth
* @param end
*/
private static void merge(int a[], int left, int rigth, int end) {
int n1 = rigth - left + 1;
int n2 = end - ... |
package org.base.utils;
import org.reststackteam.reststack.exception.RuntimeExceptionWarning;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/**
* 时间相关的工具类.
*/
public class TimeUtil {
public static Simpl... |
package com.ff.factoryimage;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.... |
package codesquad.web;
import codesquad.support.test.AcceptanceTest;
import codesquad.support.test.HtmlFormDataBuilder;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.spri... |
/*
* Copyright 2020 WeBank
*
* 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 applicable law or agreed to in writi... |
package com.animation.app.view;
/**
* Created by sukenda on 15/08/16.
*/
public class App {
}
|
package rs2.net.packet.impl;
import rs2.model.game.entity.character.player.Player;
import rs2.net.packet.Packet;
import rs2.net.packet.PacketManager.PacketHandler;
/**
*
* @author Jake Bellotti
* @since 1.0
*/
public class FlashingSideIconHandler implements PacketHandler {
public static final int FLASH_ICON =... |
package pojo.valueObject.assist;
import pojo.valueObject.domain.StudentVO;
import pojo.valueObject.domain.TeamVO;
import javax.persistence.*;
/**
* Created by geyao on 2017/2/19.
*/
@Entity
@Table(name = "student_team")
public class StudentTeamVO {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
... |
package application;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import javax.swing.JSpinner.ListEdito... |
package com.example.kamil.ebookyourchildshealth.activity;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.app.NavUtils;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import com.example.kamil.ebookyourchildshealth.R;
/**
* Cr... |
import java.util.Scanner;
public class Task02_BeerAndChips {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String name = scan.nextLine();
double budget = Double.parseDouble(scan.nextLine());
int bottles = Integer.parseInt(scan.nextLine());
... |
package com.lmz.selenilum;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.JavascriptExecutor;
public class video {
public static void main(String[] args) throws InterruptedExcept... |
package com.mercadolibre.bootcampmelifrescos.repository;
import com.mercadolibre.bootcampmelifrescos.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, Long> {
User findByUserName(final String userName);
@Override
void de... |
package co.id.datascrip.mo_sam_div4_dts1.process.interfaces;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
public interface IC_Customer {
String URL_FIND_CUSTOMER = "customer_find",
URL_GET_NO_CUSTOME... |
package com.quaspecsystems.payspec.persistence.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "privilege")
@Entity(name = "privilege")... |
package com.news.demo.Utils.Result;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
public class ResultMap {
public static Object mapToObject(Map<Stri... |
package pw.react.backend;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import pw.react.backend.service.HttpClient;
import pw.react.backend.web.Quote;... |
package com.example.edvisor;
import androidx.appcompat.app.AppCompatActivity;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.Int... |
package com.redis.SpringBootRedis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
//@Component
public class RedisRun implements CommandLineRunne... |
package com.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... |
package com.dollarsbank.servlet;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Htt... |
//jDownloader - Downloadmanager
//Copyright (C) 2009 JD-Team support@jdownloader.org
//
//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 opti... |
/*
* LcmsScormSequenceService.java 1.00 2011-09-05
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the license agreem... |
package gov.usgs.earthquake.nshmp.site.www.basin;
/**
* Container class for basin term values:
* - z1p0
* - z2p5
*
* @author Brandon Clayton
*/
public class BasinValues {
final BasinValue z1p0;
final BasinValue z2p5;
public BasinValues(BasinValue z1p0, BasinValue z2p5) {
this.z1p0 = z1p0;
this... |
package com.ideaheap.lemkeHowson;
import java.util.ArrayList;
import java.util.List;
/**
* User: nwertzberger
* Date: 2/6/13
* Time: 8:41 PM
*/
public class PayoffPair {
public List<List<Double>> p1Payoffs = new ArrayList<List<Double>>();
public List<List<Double>> p2Payoffs = new ArrayList<List<Double>>()... |
package uebung1;
import java.time.LocalDate;
public interface IDate {
LocalDate getCurrentDate();
}
|
package cn.itcast.core.service;
import cn.itcast.core.pojo.entity.BuyerCart;
import cn.itcast.core.pojo.entity.BuyerCollect;
import cn.itcast.core.pojo.entity.Result;
import cn.itcast.core.pojo.item.Item;
import java.util.List;
public interface CollectService {
/**
* 将购买的商品加入到用户当前所拥有的收藏列表中
* @param co... |
package com.hkpj.jcw.utils;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
public final class DateUtil {
public static final Strin... |
package scater.Service;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import scater.DAO.ProductDAO;
import scater.POJO.Product;
import scater.common.Constant;
import csAsc.EIO.MsgEngine.CEIOMsgRouter.CParam;
public class... |
package com.example.codeclan.whisky_galore;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class WhiskyGaloreApplication {
public static void main(String[] args) {
SpringApplication.run(WhiskyGaloreApplication.c... |
package br.com.mixfiscal.prodspedxnfe.gui.applet;
import java.awt.FlowLayout;
import javax.swing.JApplet;
import javax.swing.JFileChooser;
import javax.swing.SwingUtilities;
public class SelecionadorArquivo extends JApplet {
public void init() {
try {
SwingUtilities.invokeAndWait(new Runnable(... |
package com.palak.devicemanager;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.... |
package com.esum.common.sftp;
import org.apache.log4j.PropertyConfigurator;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.UIKeyboardInteractive;
import com.jcraft.jsch.UserInfo;
/**
* Copyright(c) eSum Technologies, Inc. All rights reserved.
*/
public class SFTPConnectionCmd {... |
package org.vpontus.vuejs.web.rest.errors;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
public class TaskStatusNotFoundException extends AbstractThrowableProblem {
public TaskStatusNotFoundException() {
this("Task status not found.");
}
public TaskStatu... |
package br.com.wasys.library.exception;
import br.com.wasys.library.http.Error;
/**
* Created by pascke on 05/09/16.
*/
public class EndpointException extends Exception {
public Error error;
public EndpointException(Error error) {
if (error == null) {
throw new IllegalArgumentException("... |
package com.jgchk.haven.ui.detail;
public interface DetailNavigator {
void handleError(Throwable throwable);
void showReserveView(int numReservations);
void showReleaseView();
void onCapacityError();
void onReservationError();
}
|
package com.example.a77354.android_final_project;
import android.Manifest;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
im... |
package Command;
/**
* Created by thomas on 2/23/15.
*/
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;... |
/**
*
*/
package com.android.aid;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
i... |
package com.example.choonhee.hack2hired_21.activity.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.example.choonhee.hack2hired_21.R;
public class Mai... |
package pl.coderslab.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import pl.coderslab.model.Book... |
package com.gyg.d_sqlite;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
... |
package com.example.projetpfebam;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ProjetpfebamApplication {
public static void main(String[] args) {
SpringApplication.run(ProjetpfebamApplication.cl... |
package cn.hassan.spi;
/**
* Created with idea
* Author: hss
* Date: 2019/7/17 8:48
* Description:
*/
public class GoodPrinter implements Printer {
@Override
public void print() {
System.out.println("this is good printer");
}
}
|
package com.example.service;
import com.example.entity.Product;
import com.example.entity.User;
import java.util.List;
public interface UserService {
boolean subscribe(User user, Product product);
List<User> subscribedUsers(Product product);
}
|
/*
* 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"); you may ... |
package com.fanfte.singleton;
public class DCLSingleton {
private static volatile DCLSingleton singleton;
public static DCLSingleton getInstance() {
if(singleton == null) {
synchronized (Singleton.class) {
if(singleton == null) {
singleton = new DCLSing... |
package com.itcia.itgoo.dto;
import java.util.List;
import org.apache.ibatis.type.Alias;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
@NoArgsConstructor
@AllArgsConstructor
@Alias("smallmeeting")
@Data
@Accessors(chain=true)
public clas... |
package service;
import com.dubbo.entity.User;
import com.dubbo.service.UserService;
public class UserServiceImpl implements UserService {
public User queryById(String id) {
User u=new User().setId(id);
return u;
}
}
|
/*
* 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 servlet;
import session.CartObject;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
impo... |
package trungph.com;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.u... |
package info.tasks5.sumToChar;
import static org.junit.Assert.*;
import org.junit.Test;
public class SumToCharTest {
@Test
public void testSumCharValue() {
assertNotNull(SumToChar.sumCharValue());
assertEquals(15, SumToChar.sumCharValue());
assertTrue(SumToChar.sumCharValue() > 10 || 20 < SumToC... |
package in.ponram.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import in.ponram.dao.ReportRepository;
import in.ponram.dto.ProductDTO;
import in.ponram.model.Order;
@Service
public class ReportManager {
... |
package com.cjx.nexwork.activities;
import android.annotation.SuppressLint;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.os.Build;
import android.support.desi... |
/**
* This problem finds all possible solution to place n queens in a chess so that those queens do not kill themselves
* Remember, queens can kill each other when they are in same row, same column and diagonally
* Time complexity - exponential due to backtracking and space complexity
* Time complexity O(n*n)
... |
/*
* Created on 22/08/2008
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.citibank.ods.persistence.pl.dao;
import java.math.BigInteger;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.o... |
package com.dataart.was.entities;
public class WineType extends SimpleEntity{
}
|
package com.binary.smartlib.ui.fragment;
import android.annotation.TargetApi;
import android.app.Fragment;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInf... |
package book;
import controllers.BookController;
import models.Book;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import play.Application;
import play.data.FormFactory;
import play.data.format.Formatters;
import play.db.jpa.DefaultJPA... |
public class TrolleyItem {
private Product product;
private int quantity;
private Company company;
public TrolleyItem(Product product, int quantity, Company company) {
this.product = product;
this.quantity = quantity;
this.company = company;
}
public void changeQuantity(int quantity) {
this.quantity = ... |
package kow.test.filesystem;
import java.io.File;
import org.junit.Test;
public class TestEnoughSpace {
@Test
public void testHaveSpace() {
org.junit.Assert.assertEquals("must be true", true, EnoughSpace.canWrite(1));
}
@Test
public void testNotEnough() {
File file = new File(".");
long freeBytes ... |
package ru.goodroads.net.jsonrpc;
public class JSONRPCClientException extends Exception {
private static final long serialVersionUID = 1L;
public JSONRPCClientException(String message) {
super(message);
}
}
|
package com.ifeng.recom.mixrecall.common.model.item;
import java.util.List;
import java.util.Map;
import com.ifeng.recom.mixrecall.common.model.request.MixRequestInfo;
import lombok.Getter;
import lombok.Setter;
/**
* Created by jibin on 2018/1/23.
*/
@Getter
@Setter
public class MixResult {
/**... |
package intelligent.net.agent;
import org.apache.mina.statemachine.annotation.State;
import org.apache.mina.statemachine.annotation.Transition;
public class NodeStateHandler {
@State public static final String OK = "Normal";
@State public static final String ADJ = "Adjancies Problem";
@State public static... |
package com.example.nene.movie20.activity;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerVi... |
package com.ifeng.recom.mixrecall.core.channel.impl;
import com.ifeng.recom.mixrecall.common.constant.GyConstant;
import com.ifeng.recom.mixrecall.common.constant.RecomChannelEnum;
import com.ifeng.recom.mixrecall.common.model.Document;
import com.ifeng.recom.mixrecall.common.model.UserModel;
import com.ifeng.re... |
package com.example.user.kurswork;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.database.C... |
package status;
import task.Task_Status;
public class Testing extends Status{
public Testing() {
super("Testing", "Lorem ipsum dolor sit amet, consectetur adipiscing elit");
anterior = Task_Status.TO_DO;
siguiente = Task_Status.DONE;
}
}
|
/*
* TransactionDaoImplJDBC.java
*
* Created on 2008年2月24日, 下午3:54
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package tot.dao.jdbc;
import tot.dao.AbstractDao;
import tot.db.DBUtils;
import tot.util.StringUtils;
import tot.global.Sysconfig;
import tot.... |
package com.legaoyi.protocol.upstream.messagebody;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.legaoyi.protocol.message.MessageBody;
/**
* 终端升级结果通知
*
* @author <a href="mailto:shengbo.gao@gm... |
package slimeknights.tconstruct.tools.common.tileentity;
import net.minecraft.block.Block;
import net.minecraft.block.BlockPane;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemBlock;
imp... |
package ch.usz.fhirstack;
import android.content.Context;
import android.util.Log;
import com.birbit.android.jobqueue.JobManager;
import com.birbit.android.jobqueue.config.Configuration;
import com.birbit.android.jobqueue.log.CustomLogger;
import ca.uhn.fhir.context.FhirContext;
import ch.usz.fhirstack.dataqueue.Dat... |
package com.trump.auction.order.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class PaymentInfoModel implements Serializable {
/**
*
*/
private static final long serialVersionUID = -3107927688647724241L;
private Integer id;
private String paymentId;
... |
package com.example.krishna.tripmaza;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import java.util.ArrayList;
import static android.R.string.no;
public class HotelsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle sa... |
package com.payroll.presentation;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.payroll.business.Employee;
import com.payroll.business.FullTime;
import com.payroll.business.Month... |
package com.git.cloud.handler.automation.fw.impl;
import java.util.HashMap;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alibaba.fastjson.JSONObject;
import com.git.cloud.handler.automation.fw.FirewallCommonHandler;
import com.git.cloud.handler.automation.fw.mo... |
package com.pibs.action;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts... |
package gui;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Shape;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.text.AbstractDocument;
import javax.swing.text.BoxView;
import javax.swing.text.ComponentView;
import javax.swi... |
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
@WebServlet(name = "${Class_Name}Servlet", urlPatterns = "/${Class_Name}Servlet")
public class ${Class_Name}Servlet extends BaseServlet {
private void writerDate(HttpServletResponse res, String json)... |
package com.leverx.animals.repository;
import com.leverx.animals.dao.UserDao;
import com.leverx.animals.dao.UserDaoImpl;
import com.leverx.animals.entity.User;
import java.util.List;
import java.util.Optional;
public class UserRepositoryImpl implements UserRepository {
private final UserDao userDao;
public... |
package com.bigpotato.common.util;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
/**
* Created by hjy on 3/5/16.
*/
public class AppCommonUtil {
/**
* 构造给客户端的json字符串
* @param code
* @param msg
* @param data
* @return
*/
public static JSONObject cons... |
package Lec_07_Nested_Loops;
import java.util.Scanner;
public class Lab_07_08_MagicNumbers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведете цяло число за намиране на всички магически числа: ");
int inputNum = Integer.parseIn... |
package com.sum.flowable.service;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.google.auth.oauth2.GoogleCredentials;
import com.google.cloud.firestore.Firest... |
package ltd.getman.testjobproject.domain.models.sort;
import java.util.List;
import ltd.getman.testjobproject.domain.models.mechanizm.Mechanizm;
/**
* Created by Artem Getman on 18.05.17.
* a.e.getman@gmail.com
*/
public class InsertSort extends BaseSortedClass {
public InsertSort() {
super(TYPE.INSERT);
... |
package com.worldchip.bbp.ect.adapter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.worldchip.bbp.ect.R;
import com.worldchip.bbp.ect.entity.MusicInfo;
import com.worldchip.bbp.ect.entity.MusicInfo.MusicState;
import android.app.Activity;
import android.content.Context;
im... |
package com.alderson.zoo;
public abstract class Mammal extends Animal {
public Mammal(String species, String gender) {
super(species, gender);
}
} |
package com.deepakm.algo.backtrack.nqueen;
/**
* Created by dmarathe on 1/22/16.
*/
public class NQueenProblem {
int board[][];
int N = 0;
public NQueenProblem(int board[][]) {
if (board == null) {
throw new IllegalArgumentException("board cannot be null");
}
if (boar... |
package com.zenwerx.findierock.data;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
class FindieDbAdapter {
private static final String TAG = "findierock.FindieDbAdapter";... |
package us.gibb.dev.gwt.view;
public interface View<V> {
V getImpl();
}
|
package ch8;
public class NewExceptionTest {
public static void main(String[] args) {
try {
startInstall();
copyFiles();
} catch (SpaceException e) {
System.out.println("에러 메세지 : "+e.getMessage());
e.printStackTrace();
System.out.println("공간을 확보한 후에 다시 설치하시기 바랍니다.");
} catch(MemoryException me... |
package com.lovers.java.domain;
import java.util.Date;
public class UserPhoto {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user_photo.photo_id
*
* @mbg.generated Wed Sep 25 10:59:33 CST 2019
*/
private Integer photoId;
... |
/*
* 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.tfar.daoImpl;
import com.tfar.dao.AndrogeneDao;
import com.tfar.entity.Androgene;
import java.util.ArrayList;
import jav... |
package two.constructors;
/**
* @author Tedikova O.
* @version 1.0
*/
public class B extends A {
public Logger field = new Logger("B.field");
public static Logger CONSTANT = new Logger("B.CONSTANT");
{
System.out.println("B.block");
}
{
System.out.println("B.anotherBlock ");
... |
package com.talmir.mickinet.helpers;
import android.content.Context;
import android.net.wifi.p2p.WifiP2pManager;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import static android.os.Looper.get... |
package de.minestar.syncchest.core;
import org.bukkit.Location;
import org.bukkit.plugin.PluginManager;
import de.minestar.syncchest.commands.AddCommand;
import de.minestar.syncchest.commands.InfoCommand;
import de.minestar.syncchest.commands.RemoveCommand;
import de.minestar.syncchest.commands.SyncChestComma... |
package com.SearchHouse.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.SearchHouse.dao.HouseDao;
import com.Sear... |
package com.aps.arobot.sserver;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import android.app.Activity;
import android.app.I... |
//import com.alibaba.fastjson.JSONArray;
//import com.alibaba.fastjson.JSONObject;
//import com.fasterxml.jackson.databind.ObjectMapper;
//import com.mod.loan.Application;
//import com.mod.loan.util.qjldUtil.DecisionHelper;
//import com.mod.loan.common.message.OrderPayMessage;
//import com.mod.loan.common.message... |
package common.util;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import common.MsgCode;
import common.Severity;
import common.vo.Message;
import common.vo.MessageVo;
import play.libs.Json;
/**
* Created by yuan on 9/22/14.
*/
public class MessageUtil {
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.