text
stringlengths
10
2.72M
package orm.integ.eao; import java.util.ArrayList; import java.util.List; import orm.integ.dao.DataAccessObject; import orm.integ.dao.annotation.KeyTypes; import orm.integ.dao.annotation.Table; import orm.integ.eao.model.Entity; import orm.integ.eao.model.EntityModel; import orm.integ.eao.transaction.DataChangeListen...
package pop3; import java.io.IOException; import java.lang.reflect.Type; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import java.util.TreeSet; import com.google.gson.Gson; import com.google.gson.reflec...
/* * Copyright (c) 2016, 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 * * Unles...
public class Planet{ public double xxPos; public double yyPos; public double xxVel; public double yyVel; public double mass; public String imgFileName; public Planet(double xP, double yP, double xV, double yV, double m, String img){ xxPos=xP; yyP...
package ru.otus.sua.L14.webserver; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.context.support.SpringBeanAutowiringSupport; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.Http...
package main; import java.util.Iterator; import java.util.List; import classes.Book; import classes.BookDAOImpl; import interfaces.BookDAO; /** * @author dylan * */ public class DAOPatternMain { /** * @param args */ public static void main(String[] args) { BookDAO myLibrary = new Boo...
package com.github.muravyova.githubreporeader.models; import com.github.muravyova.githubreporeader.App; import com.github.muravyova.githubreporeader.R; import com.github.muravyova.githubreporeader.network.Document; import com.github.muravyova.githubreporeader.network.Repository; import com.github.muravyova.githubrepor...
package 线程安全; /* 在java中,我们通过同步机制来解决线程安全问题。 1、同步代码块 Synchronized(同步监视器){//同步监视器俗称锁,任何一个类的对象都可以作为一把锁 //需要同步的代码(即操作共享数据的方法) } 2、同步方法 与同步代码块一样,该方法将同步代码块抽象为一个方法,在方法中加上synchronize关键字即可。只不过 不需要显式声明监视器。 对于非静态的同步方法,监视器是this 对于静态的同步方法,监视器是类本身。 与实现ru...
package com.evan.demo.yizhu.woshi_fragment; import android.content.Context; import android.graphics.Color; import android.graphics.Typeface; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import...
package com.bnrc.adapter; import java.util.List; import java.util.Map; import com.bnrc.ui.rjz.other.ItemDelListener; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.BaseAdapter...
/** * */ package eu.fbk.dycapo.factories.bundles; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import android.os.Bundle; import android.util.Log; import eu.fbk.dycapo.models.Location; /** * @author riccardo * */ public abstract class LocationBundle { public stati...
package com.rabitmq.consumer.config.queue; import org.springframework.amqp.core.Queue; import org.springframework.amqp.core.QueueBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class RabbitMQQueueConfig { @Bean Queue ...
package com.trump.auction.back.push.service; /** * Author: zhanping */ public interface NotificationDeviceService { }
package practices.written; /** * 京东测开笔试:修路,求最大利润 */ import java.util.*; public class FixRoad { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); if (n <= 0) return; int[] arr = new int[n - 1]; ...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.explorer.client.misc; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder...
package cn.v5cn.v5cms.front.interceptor; import cn.v5cn.v5cms.entity.Site; import cn.v5cn.v5cms.service.SiteService; import cn.v5cn.v5cms.util.SystemConstant; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.handl...
package com.yxkj.facexradix.rtc; import android.os.Bundle; import android.widget.FrameLayout; import android.widget.LinearLayout; import com.tencent.rtmp.ui.TXCloudVideoView; import com.tencent.trtc.TRTCCloud; import com.tencent.trtc.TRTCCloudDef; import com.tencent.trtc.TRTCCloudListener; import com.tencent.trtc.TR...
package com.example.web.springboot.domain.user; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; public interface UserRepository extends JpaRepository<User,Long> { Optional<User> findByEmail(String email); //Optional은 무엇을 판단할 때 사용 , User가 생성되어 있는지 여부를 판단 }
package com.lyj.test; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor; import o...
/* * Copyright (C) 2009 University of Washington * * 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 ...
package com.finance.service; import com.finance.dao.UserDao; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; import j...
/* * 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 hadoop.inputformat.db; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.lib.db.DBConfiguration; import org.apache.hadoop.mapreduce.lib.db.DBInputFormat; import org.apache....
/** * @author Dylan Ragaishis (Dylanrr) */ package hw4; /** * Abstract scoring category class that checks if the current hand satisfies the FullHouse category * @extends addScoreAbstract * @see hw4.addScoreAbstract() * @see hw4.mainAbstract() */ public class FullHouse extends addScoreAbstract{ /** * Const...
package com.ca.rs; import java.time.format.DateTimeFormatter; import static java.time.format.DateTimeFormatter.ofPattern; import static java.util.TimeZone.getDefault; public class Constants { public static final DateTimeFormatter TIMESTAMP_FORMAT = ofPattern("HH:mm - d MMM YYYY").withZone(getDefault().toZon...
/* * (C) Mississippi State University 2009 * * The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is * a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries * and wapplets are ...
package com.kachunchan.javamediaplayer.controller; import com.kachunchan.javamediaplayer.model.MediaLibrary; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.control.ListCell; import javafx.scene.control.L...
package com.ChrisIngram; public class VehicleInfo { private int VIN; private double odometer; private double consumption; private double lastOilChange; private double engineSizeInL; public int getVIN() { return VIN; } public void setVIN(int VIN) { this.VIN = VIN; } public double getOdo...
package walke.base.tool; import android.content.Context; import android.content.SharedPreferences; public class SharepreUtil { public static SharedPreferences getSharedPreferences(Context context) { return context.getSharedPreferences("isSave", Context.MODE_PRIVATE); } public static void ...
package sr.hakrinbank.intranet.api.service; import sr.hakrinbank.intranet.api.model.BlackListedPersonRetailBanking; import java.util.List; /** * Created by clint on 5/29/17. */ public interface BlackListedPersonRetailBankingService { List<BlackListedPersonRetailBanking> findAllBlackListedPersonRetailBanking()...
package bean; 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 java.io.IOException; import java.sql.Connection; import java.sql.ResultSet; import ...
package cn.itheima.methodPractice; public class GetArrayPrint { /* 9、定义一个方法,它可以接收一个int类型数组,并遍历输出数组中的元素。 在main方法中调用该方法。(有参数无返回值) */ public static void main(String[] args) { int[] arr = {11, 22, 33, 44, 55}; printArray(arr); } private static void printArray(int[] arr) { for (int i = 0; i < arr.length; ...
package com.ipartek.formacion.nombreproyecto.ejercicios; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; /** * Ejercicio para buscar en la tabla 'persona' todas las que contenga su email * la cadena de texto "spambob" * * @author...
package com.social.server.dao; import com.social.server.entity.Dialog; import com.social.server.entity.User; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Pa...
import java.util.Scanner; public class Java_Paradigmas_Progamacao { public static void main(String[] args) { float num1, num2; char op; Scanner s = new Scanner(System.in); System.out.print("Informe o primeiro número: "); num1 = s.nextInt(); System.out.print("Informe o segundo número: "); num2 = s.next...
/* * 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.lambda.test; /** * * * @author IBM */ public class RunnableTest { public static void main(String... args){ //Normal expression Runnable run1 = new Runnable(){ @Override public void run(){ System.out.println("Hello World!!!"); } }; //With lambda expression Runnab...
/* * @(#) EbmsContainerLogDAO.java * Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ebms.ebmscontainerlog.dao.impl; import java.util.List; import com.esum.appframework.exception.ApplicationException; import com.esum.appframework.dao.impl.SqlMapDAO; import com.esum.wp.ebms.ebmscon...
package com.ucl.request; import com.ucl.common.Pagination; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; /** * Created by jiang.zheng on 2017/9/18. */ public class OrderRequest extends Pagination { @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date startDate;...
package com.fehead.community.mapper; import com.fehead.community.entities.ActivityUser; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p> * * @author ktoking * @since 2020-04-03 */ public interface ActivityUserMapper extends BaseMapper<ActivityUser> { }
package hopper; import hopper.GUI.MainGUI; import hopper.GUI.MapDisplay; import hopper.GUI.TestGUIController; import hopper.interpreter.CollectCommand; import hopper.interpreter.Command; import hopper.interpreter.CommandQueue; import hopper.interpreter.MapCommand; import hopper.mapping.Garbage; import hopper.mapping.M...
package com.tripper; import android.Manifest; import android.content.Intent; import android.graphics.Color; import android.content.pm.PackageManager; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.TextView; import com.google.a...
package server; import UtilityClasses.MessageFX; import UtilityClasses.Permissions; import UtilityClasses.TokenizerInterfaceImpl; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoade...
/* * 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 ppro.contoller; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.uti...
/** * Copyright (C) 2008 Atlassian * * 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 t...
package br.com.rafagonc.tjdata.models; import javax.persistence.*; @Entity public class Cookie { @Id @GeneratedValue( strategy= GenerationType.AUTO ) private Long id; @Column(nullable = false) private String key; @Column(nullable = false) private String value; @Column(nullable = t...
package com.xianzaishi.wms.tmscore.vo; import com.xianzaishi.wms.tmscore.vo.WaveDetailVO; public class WaveDetailDO extends WaveDetailVO { }
package com.Hierarchical_Inheritance; class ClassA { public void dispA() { System.out.println("disp() method of ClassA"); } } class ClassB extends ClassA { public void dispB() { System.out.println("disp() method of ClassB"); } } class ClassC extends ClassA { public void...
package com.travel.lodge.userservice.domain; import lombok.Data; import javax.persistence.*; @Entity @Data public class HotelUser { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String email; private String firstName; private String lastName; private St...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package assignment6; import java.awt.image.BufferedImage; import java.util.Scanner; /** * * @author Kareem */ public class Location { // Initializing the variables private final Scene[] ...
/** * 湖北安式软件有限公司 * Hubei Anssy Software Co., Ltd. * FILENAME : VerifyCacheServer.java * PACKAGE : com.anssy.venturebar.base.server * CREATE DATE : 2016-8-27 * AUTHOR : make it * MODIFIED BY : * DESCRIPTION : */ package com.anssy.venturebar.base.server; import com.anssy.webcore.common.Bas...
public class UniquePaths { public int uniquePaths(int m, int n) { int ans[][] = new int[m+1][n+1]; for(int i=1;i<=m;i++){ ans[i][1] = 1; } for(int i=1;i<=n;i++){ ans[1][i] = 1; } for(int i=2;i<=m;i++){ for(int j=2;j<=n;j++){ ...
package com.crm.acute.pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.crm.acute.generics.WebDriverUtils; public class CreatingNewOrganization { @FindBy(name = "acc...
package com.project.board.web.Comment.dto; import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.Setter; @Getter @Setter @RequiredArgsConstructor public class DeleteCommentDto { // 댓글 UID private Long COMMENT_UID; }
package webservice.stub; import javax.xml.namespace.QName; import javax.xml.ws.*; import java.net.MalformedURLException; import java.net.URL; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.9-b130926.1035 * Generated source version: 2.2 * */ @WebServiceClient(name = "ServiceReceiverImplServic...
package com.ti.servlet; import java.io.IOException; import java.io.PrintWriter; 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 com....
/* * Copyright 2016 TeddySoft Technology. All rights reserved. * */ package tw.teddysoft.gof.abstractFactory; public class WindowsFactory extends AbstractFactory { @Override public Drive createDrive(String type, int index) { SimpleDriveFactory driveFactory = new SimpleDriveFactory(); return driveFactory.cr...
package com.aftermoonest.tell_me_something_important.repository; import com.vaadin.flow.component.textfield.EmailField; import java.util.List; public interface Controller { Integer countOfElementsOnPage = 10; void save(Object item, String key); List<Item> get(); boolean find(String key); bool...
/* * 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...
/* * traverse a map by achieving its EntrySet * * */ package Map; import java.util.HashMap; import java.util.Map; import java.util.Random; import java.util.TreeMap; /** * * @author YNZ */ class TraverseMap { Map<String, Number> map = new HashMap<>(10); Random random = new Random(3...
package com.consultorio.model; import java.util.Date; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.OneToMany; import javax.persistence.Temporal; import javax.persistence.TemporalType; import com.consultorio.val...
package org.coresystems.services; import org.coresystems.models.Company; import org.coresystems.repositories.CompanyRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; @Service public class Compan...
/* * Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.oauth.as.token; import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Response; impor...
package de.cuuky.varo.threads.dailycheck; import de.cuuky.varo.Main; import de.cuuky.varo.config.config.ConfigEntry; import de.cuuky.varo.config.messages.ConfigMessages; import de.cuuky.varo.logger.logger.EventLogger.LogType; import de.cuuky.varo.player.VaroPlayer; public class SessionCheck extends Checker { ...
package com.example.hp.cold_chain_logistic.fragment; import android.content.DialogInterface; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.AlertDialog; import android.util.Log; import android.view.LayoutInflater; import andro...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package rearrangeword.rearrange; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashSet; import rearrangeword.reader.Lexicon; /...
package com.prenevin.application.service.impl; import com.prenevin.application.domain.Tool; import com.prenevin.application.repository.api.ToolRepository; import com.prenevin.application.service.api.ToolService; import com.prenevin.library.crud.service.impl.BaseCrudServiceImpl; import org.springframework.stereotype.Se...
package com.example.push.controller; import com.example.push.export.ResultMapUtil; import com.example.push.export.error.BusinessException; import com.example.push.model.CmdbServerInfo; import com.example.push.model.PushGroup; import com.example.push.model.PushSubscriber; import com.example.push.service.CmdbService; im...
package org.lastresponders.uberassignment.service; import org.lastresponders.uberassignment.data.model.ImageSearchResult; import java.util.List; /** * Created by sjan on 1/15/2015. */ public interface ISearchService { public List<ImageSearchResult> imageSearch(String searchTerm); public List<ImageSearch...
package com.example.tennisscorekeeper; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import java.util.*; public class MainActivity extends AppCompatActivity implements View.On...
package com.wirelesscar.dynafleet.api.types; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class fo...
package edu.betygreg.domain; public class GradeTek implements Grade { private String grade = "U"; //TODO kan den vara u? public GradeTek (String grade){ this.grade = grade; } @Override public String getGrade() { return grade; } @Override public Grade setGrade(String g...
/** * 异步事件的定义. */ package xyz.noark.core.event;
package fr.unice.polytech.isa.polyevent.entities.exceptions; public class ClientDejaCreeException extends Exception { private String mail; public ClientDejaCreeException(String mail) { this.mail = mail; } public ClientDejaCreeException() { } public String getMail() { return...
import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JOptionPane; import javax.swing.JTextPane; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.event.ActionListener; import j...
package redempt.crunch.functional; import redempt.crunch.token.TokenType; import redempt.crunch.token.Value; /** * Represents a lazy function call with other lazy values as function arguments * @author Redempt */ public class FunctionCall implements Value { private Value[] values; private Function function; p...
package poker; import java.util.ArrayList; import java.util.Random; /** * * @author Danil */ public class Baraja { private static ArrayList<Carta> baraja= new ArrayList<>(); //Tanto baraja como mano son ArrayList de tipo Carta private static ArrayList<Carta> mano= new ArrayList<>(); private static S...
package org.garret.perst.reflect; /** * Replacement of java.lang.reflect.Method class */ public class Member { Type owner; int modifiers; protected Member(int modifiers) { this.modifiers = modifiers; } /** * Get member modifiers. There are not predefined modifiers, such as PU...
package com.arthur.leetcode; /** * @program: leetcode * @description: 重复叠加字符串匹配 * @title: No686 * @Author hengmingji * @Date: 2021/12/22 10:26 * @Version 1.0 */ public class No686 { public int repeatedStringMatch(String a, String b) { int m = a.length(); int n = b.length(); String te...
package com.san.fieldXForm; import org.springframework.data.repository.CrudRepository; public interface FieldXFormRepository extends CrudRepository<FieldXForm, Integer> { }
import java.util.Scanner; public class micro06 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int numero=0; System.out.print("Digite um numero de 1 a 5: "); numero = s.nextInt(); switch(numero) { case 1: System.out.println("Um"); break; case 2: System.out...
package com.zc.pivas.printlabel.controller; import com.google.gson.Gson; import com.zc.base.common.controller.SdDownloadController; import com.zc.base.orm.mybatis.paging.JqueryStylePaging; import com.zc.base.orm.mybatis.paging.JqueryStylePagingResults; import com.zc.pivas.printlabel.entity.PrintLogBean; import ...
package matthbo.mods.darkworld.block.fluid; import matthbo.mods.darkworld.init.ModFluids; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.ut...
/* ------------------------------------------------------------------------------ * 软件名称:美播移动 * 公司名称:美播娱乐 * 开发作者:sg.z * 开发时间:2014年7月29日/2014 * All Rights Reserved 2012-2015 * ---------------------------------------------------------------------...
package Scrabble; import java.io.InputStream; final public class TileImgLoader { public static InputStream load(String pathName){ InputStream inputPicture = TileImgLoader.class.getResourceAsStream(pathName); if(inputPicture == null){ inputPicture = TileImgLoader.class.getResourceAsStream("/"+pathNam...
import java.io.*; import java.util.*; public class Main { static Scanner in = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); static int[] names = new int[26]; static int combination (int n) { return n * (n - 1) / 2; } public static void main(String[] args) { int...
package org.jasypt.util.filehandler; import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.util.Properties; import org.apache.commons.io.FilenameUtils; import org.jasypt.intf.cli.JasyptEncryptorUtil; /** * This class will handle encryption/decryption of simple files.</br> ...
package com.pdd.pop.sdk.http.api.request; import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty; import com.pdd.pop.sdk.http.api.response.PddSmsRemainSettingDetailQueryResponse; import com.pdd.pop.sdk.http.HttpMethod; import com.pdd.pop.sdk.http.PopBaseHttpRequest; import com.pdd.pop.sdk.common.util.JsonUti...
package com.staniul.teamspeak.commands.core; public class Command { private String command; private String description; private int scope; public Command() { } public Command(String command, String description, int scope) { this.command = command; this.description = descriptio...
package com.stratio.pf.sparkAT.coverage.hdfs; import com.stratio.qa.cucumber.testng.CucumberRunner; import com.stratio.spark.tests.utils.BaseTest; import cucumber.api.CucumberOptions; import org.testng.annotations.Test; @CucumberOptions(features = { "src/test/resources/features/pf/coverage/hdfs-coverage.feat...
public interface ClasseDirigida { void plaClasseMaquina (); void plaClassePiscina (); void plaClasseDirigida (); }
package kiemtra; import java.util.ArrayList; import java.util.Scanner; public class Quanlynhanvien extends Nhanvien { public static ArrayList<Quanlynhanvien> qlnv = new ArrayList<Quanlynhanvien>(); private Scanner s = new Scanner(System.in); public Quanlynhanvien(String ma, String hoTen, double luong) { super(m...
import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Scanner; class Pi { private static final BigDecimal ONE = new BigDecimal(1);//constant with Value 1 private static final BigDecimal TWO = new BigDecimal(2);//constant with Value 2 private static final BigDecimal FOUR = ne...
package org.wuxinshui.boosters.designPatterns.simpleFacthory.moreMethods; /** * Created by FujiRen on 2016/10/30. * 简单工厂模式不属于23中涉及模式,简单工厂一般分为:普通简单工厂、多方法简单工厂、静态方法简单工厂。 */ public class SendFactory { public Sender produceEmail() { return new Email(); } public Sender produceSms() { return n...
package it.bibliotecaweb.service.utente; import java.util.List; import javax.servlet.http.HttpServletRequest; import it.bibliotecaweb.dao.utente.UtenteDAO; import it.bibliotecaweb.model.Utente; import it.bibliotecaweb.service.IBaseService; public interface UtenteService extends IBaseService<Utente> { public void...
package com.ddup.mapper; import com.ddup.dto.QuestionQueryDTO; import com.ddup.model.Question; import java.util.List; public interface QuestionExtMapper { int incView(Question question); int incCommentCount(Question question); List<Question> selectRelated(Question question); Integer countBySearch(Qu...
package DAO.Dbtable; import Helpers.DbTable; /** * Classe Prog_allen_manu che estende l'helpers DbTable */ public class Prog_allen_manu extends DbTable { public Prog_allen_manu(){ name="prog_allen_man"; sql=""; } }
package arrival.storm; import arrival.util.TimeUtil; import backtype.storm.task.TopologyContext; import backtype.storm.topology.BasicOutputCollector; import backtype.storm.topology.OutputFieldsDeclarer; import backtype.storm.topology.base.BaseBasicBolt; import backtype.storm.tuple.Fields; import backtype.storm.tuple.T...
package org.shujito.cartonbox.model; public class Response { private String reason; private boolean success; /* constructor */ public Response() { this.reason = null; this.success = false; } /* getters */ public String getReason() { return reason; } public boolean isSuccess() { ret...
import static junit.framework.TestCase.assertTrue; import static org.junit.Assert.assertFalse; import java.security.NoSuchAlgorithmException; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; public class BloomFilterTest { private List<String> dictionary; @Before p...