text
stringlengths
10
2.72M
package br.com.drem.testes; /** * @author AndreMart * @contacts: andremartins@outlook.com.br;andre.drem@gmail.com * @tel: 63 8412 1921 * @site: drem.com.br */ import javax.persistence.EntityManager; import br.com.drem.entity.Cidade; import br.com.drem.entity.Estado; import br.com.drem.entity.Pais; import br.com.d...
/** * Created by Joe on 8/28/2014. */ public class HelloWorld { public static void main(String[] args) { //Scott Hadzik and Joe Grundvig boolean myBoolean = true; byte myByte = 10; //1 byte int myInt = 101; //4 bytes long myLong = 1000; //8 bytes float...
package alien4cloud.it.topology; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.Arrays; import java.util.List; import ja...
package main; import java.util.Scanner; import DaoClass.AllPrint; import DaoClass.DeleteClass; import DaoClass.FileSaveClass; import DaoClass.InsertClass; import DaoClass.SelectClass; import DaoClass.UpdateClass; import DaoInterface.DaoImpl; import fileload.FileLoadClass; public class mainClass { public static voi...
package me.bayanov.lambdas; public class Person { private String name; private int age; public Person(String name, int age) { if (name == null) { throw new NullPointerException("Name must be not null"); } if (age < 0) { throw new IllegalArgumentException("Ag...
package almacenes; public enum DireccionMovimiento { ADENTRO, AFUERA }
package defenseSystem; import java.awt.Graphics; import java.util.LinkedList; public class Handler { public LinkedList<Sprite> sprite = new LinkedList<Sprite>(); public void tick() { for(int n=0; n<sprite.size(); n++) { sprite.get(n).tick(); } } public void render(Graphics g) { for(int n=0;n<spr...
package com.cse118.movementdetector; import androidx.appcompat.app.AppCompatActivity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.util.Log; import andr...
package com.ut.module_lock.entity; import com.ut.database.entity.Record; import java.io.Serializable; import java.util.List; /** * author : chenjiajun * time : 2018/12/3 * desc : */ public class OperationRecord implements Serializable { private String time; private List<Record> records; public ...
package com.rachelgrau.rachel.health4theworldstroke.Activities; import android.content.Context; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android....
package edu.udc.psw.modelo; import edu.udc.psw.modelo.manipulador.ManipuladorFormaGeometrica; public class Circulo implements FormaGeometrica { private static final long serialVersionUID = 6L; private double raio; private double perimetro; private double area; public Circulo() { ...
package com.itheima.health.service.impl; import com.alibaba.dubbo.config.annotation.Service; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.itheima.health.dao.PermissionDao; import com.itheima.health.entity.PageResult; import com.itheima.health.entity.QueryPageBean; import com.i...
/* * 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 services; import com.google.gson.Gson; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statem...
package rmi; import java.rmi.Remote; import java.rmi.RemoteException; public interface MathInterface extends Remote { int sum( int num1, int num2 ) throws RemoteException; int sub( int num1, int num2 ) throws RemoteException; }
import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import java.io.IOException; import java.nio.charset.CharacterCodingException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class WikipediaPageRankMapper extends Mapper<LongW...
/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.j1902.shopping.controller; import com.github.pagehelper.PageInfo; import com.j1902.shopping.mapper.CountOrderMapper; import com.j1902.shopping.model.OrdersQv; import com.j1902.shopping.model.Remember; import com.j1902.shopping.pojo.Admin; import com.j1902.shopping.pojo.CountOrder; import com.j1902.shopping...
/* * 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 com.emg.projectsmanage.common; /** * 质检项集合类型 * * @author zsen * */ public enum ProcessType { /** * -1, "未知项目类型" */ UNKNOWN(-1, "未知项目类型"), /** * 1, "改错项目" */ ERROR(1, "改错项目"), /** * 2, "NR/FC项目" */ NRFC(2, "NR/FC项目"), /** * 3, "关系附属表项目" */ ATTACH(3, "关系附属表项...
package riomaissaude.felipe.com.br.riosaude.utils; import android.content.Context; import android.content.SharedPreferences; /** * Classe utilizada para centralizar a inserção e recuperação de dados * salvos na memória do aplicativo. * * Obs: O SharedPreferences é perdido quando o aplicativo é reinstalado ou remo...
package Day4NG; import org.testng.annotations.Test; import util.StartBrowser; import org.testng.annotations.BeforeTest; import org.junit.Assert; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.testng.annotations.AfterTest; public class FirstNG {...
package id.web.herlangga.badulik.backend.rms; import java.util.*; import id.web.herlangga.badulik.*; import id.web.herlangga.badulik.definition.*; /** * In order to make impression that an {@link ObjectStorage} behave like * in-memory {@link ObjectStorage} thus can stores polymorphic object, we * need several {@l...
package com.ecjtu.hotel.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ecjtu.hotel.dao.IncomeMapper; import com.ecjtu.hotel.pojo.Income; import com.ecjtu.hotel.service.IIncomeService; @Service public class ...
package com.nextLevel.hero.main.model.dao; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Mapper; import com.nextLevel.hero.common.SelectCriteria; import com.nextLevel.hero.workattitude.model.dto.WorkAttitudeDTO; import com.nextLevel.hero.workattitude.model.dto.WorkCommuteDTO; @Ma...
package acueducto.data; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.ArrayList; import acueducto.util.MedidorDTO; import acueducto.domain.MedidorRepository; import acueducto.util.MedidorAssembler; import acueducto.domain.Medidor; /** * * @author Karla Salas M. | Le...
package behavioral.chain_of_responsibility; public class Test { public static void main(String[] args){ AHandler handlerA = new HandlerA(); AHandler handlerB = new HandlerB(); handlerA.setSuccessor(handlerB); int[] reqs = {1,3,6,9,12,17,44,5478}; for (int i = 0; i < reqs.length; i++) { handlerA.handle...
package isaacais; import org.joml.Matrix4f; import org.joml.Vector4f; import java.util.ArrayList; public class Console { public ArrayList<String> lines; public StringBuffer typing; private Font font; private BoxRenderer boxRender; public int displayLines = 7; public float x = 0, y = 40; ...
public class AB { private boolean[][][] dp; private int K; private int N; public String createString(int N, int K) { this.N = N; this.K = K; dp = new boolean[K + 1][N + 1][N + 1]; return createString(0, 0, 0); } private String createString(int score, int As, in...
package com.project.weapons; import java.awt.Graphics; import java.util.ArrayList; import java.util.List; import java.util.Random; import com.project.Actionable; import com.project.Animation; import com.project.Crew; import com.project.CrewAction; import com.project.CrewActionID; import com.project.ImageH...
package com.example.lap60020_local.rxjavademo; import android.Manifest; import android.content.pm.PackageManager; import android.os.Build; import android.os.Environment; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import...
package dao.user; import java.io.IOException; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import javax.servlet.http.Part; import dao.DatabaseGateway; import dto.user.UserConfigDTO; import dto.user.UserDTO; import dto.user.UserSimpleDTO; import dto.user.menu.MenuDTO; import dto.u...
package com.dinh.customdate.adapter; public class ProductDemoTestAdapter { }
package JavaExe; import java.util.Scanner; public class Recur5 { public static void main(String[] args) { System.out.println("累乗する数値を入力してください。"); Scanner stdInt = new Scanner(System.in); double x = stdInt.nextDouble(); System.out.println("何乗しますか?"); double n = stdInt.nextDouble(); if (x < 0) { System....
package com.zoe.springboot.web; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class MemberController { @A...
package com.esum.appframework.service.impl; import com.esum.appcommon.constant.ConstantList; import com.esum.appframework.dao.IBaseDAO; import com.esum.appframework.exception.ApplicationException; import com.esum.appframework.service.IBaseService; public class BaseService implements IBaseService { protected IBaseDA...
package com.jgw.supercodeplatform.trace.interceptor; import com.jgw.supercodeplatform.web.WebMvcCustomizeFunUrlInterceptorPathConfigurer; import org.springframework.stereotype.Component; import java.util.Arrays; import java.util.List; /** * 描述: * <p> * Created by corbett on 2018/12/27. */ @Component...
package uk.co.travelai_public.model.travel; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import uk.co.travelai_public.model.Location; import uk.co.travelai_public.model.place.Dwell; import uk.co.travelai_public.model.place.Place; import uk.co.travelai_public.obfuscation.PrivacyCategory;...
package swea_d5; import java.awt.Point; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; public class Solution_7793_오나의여신님 { static StringBuilder sb = new StringBuilder(); static int[][] dirs = { { -1, 0 }, { 1, 0...
import java.io.*; class HW01_4 { public static int readTextFile(String path,String compare) throws IOException{ BufferedReader br= new BufferedReader(new InputStreamReader( new FileInputStream(path),"UTF-8")); String line=null; int all=0; while ((line=br.readLine())!=null) { String tmp[]=line.s...
/** * This hand consists of five cards with consecutive ranks. For the sake of simplicity, 2 and A can only form a straight with K but not with 3. The card with the highest rank in a straight is referred to as the top card of this straight. A straight having a top card with a higher rank beats a straight having a top...
package baseline; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class Solution28Test { @Test public void test_LoopIsCorrect()throws Exception{ Solution28 sol = new Solution28(); for( int i = 0; i < 5; i++) { sol.number = 1; sol.t...
package io.breen.socrates.test; import javax.swing.*; import javax.swing.text.BadLocationException; import javax.swing.text.Document; /** * Class representing a single test specified by the criteria. Instances of non-abstract subclasses * of this class are immutable, and are created when a Criteria object is create...
import java.util.*; public class ChristmasTree{ private String type; private String size; private ArrayList<Decoratable> branches; public ChristmasTree(String type, String size) { this.type = type; this.size = size; this.branches = new ArrayList<Decoratable>(); } public String getType() { ...
package com.itheima.day_01.phone; class NewPhone extends Phone{ @Override void call(String name) { System.out.println("正在发起视频通话"); super.call(name); } }
package com.fuzzy.metro.listeners; import java.awt.Color; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import javax.swing.text.JTextComponent; import com.fuzzy.metro.components.MyOptionPane; public class MyFocusListener implements FocusListener{ public String placeholder = ""; public J...
package com.example.buildpc.ActivityListItem; import android.annotation.SuppressLint; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.ListView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; impo...
package com.example.breno.pokemobile.Service; import android.content.Context; import com.example.breno.pokemobile.db.ExpLevelDAO; import com.example.breno.pokemobile.modelo.ExpLevel; import com.example.breno.pokemobile.modelo.PokemonTreinador; /** * Created by Breno on 30/11/2016. */ public class ExpLevelService ...
package rss.printlnstuidios.com.myapplication; import android.os.Debug; import android.util.Log; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * Created by Justin Hill on 12/25/2014. * * Stores the data for an individual post from a fee...
package com.xnarum.th.ib_service; import java.io.File; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframew...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.vishal.si.main; import au.com.bytecode.opencsv.CSVReader; import com.vishal.si.struct.Scaffold; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.ut...
package com.zjf.myself.codebase.util; import android.content.Context; import android.content.pm.ApplicationInfo; public class AppLog { public static final String TAG = "Codebase"; public static boolean saveErrorLog = false; public static boolean DEBUG = true; public static void v(String msg) { if (DEBUG) ...
package engine.view; import javax.swing.*; import java.awt.*; import java.util.ArrayList; /** * This JComponent subclass is the canvas that will be repainted on every tick of the GameLoop. When the GameLoop * (or any other object) calls canvas.repaint(), this class will go through its own list of painters, and have...
package com.padeltrophy.util.file; import com.padeltrophy.util.log.Tracer; import org.imgscalr.Scalr; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.util.Date; public class FileUtil { pri...
package com.mingrisoft; public class Test { public static void main(String[] args) { Person person1 = new Person();// 创建对象 Person person2 = new Person("明日科技", "男", 11);// 创建对象 System.out.println("员工1的信息"); System.out.println("员工姓名:" + person1.getName()); // 输出姓名 System.out.p...
package DesignPatterns.AbstractFactoryPattern; public class ConcreteFactory2 implements Factory { @Override public ProductA createProductA() { System.out.println("AFP ConcreteFactory2 createProductA"); return new ConcreteProductA1(); } @Override public ProductB createProductB() { ...
package algorithm._10; public class Solution { public static void main(String[] args) { String s = "aa"; String p = "a*"; System.out.println(new Solution().isMatch(s, p)); } public boolean isMatch(String s, String p) { if (p.isEmpty()) { return s.isEmpty(); ...
package com.androidbook.location; import java.util.List; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.os.Bundle; import com.google.android.maps.GeoPoint; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.MapActivity; import com.google.android....
package com.karya.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import com.karya.dao.IBu...
import java.util.Scanner; public class qishui{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int result = 0; while(sc.hasNext()){ result = sc.nextInt(); bottle(result); } sc.close(); } private static void bottl...
package com.tntdjs.midi; public interface IReceiver { public void setMidiInputReciever(String receiver); }
import java.util.Iterator; //Department class public class Department implements Entity_{ String dname; LL<Student> studentList; //Constructor public Department(String name) { dname = name; studentList = new LL<Student>(); } //Studiter class class Studiter implements Iterator<Student_>{ Position_<Student...
package Java; import java.util.HashMap; import java.util.Map; /** *Numbers Numbers in Java can be written in many different forms. Depending on the prefix or suffix we use, we can declare it’s base (binary, hex, octal), and even it’s type (int, long, float). Alterations in the base: With literal prefixes we c...
package lize; import com.lize.test.P; public class Test { public static void main(String[] args){ P p = new P(); } }
package com.example; import java.util.List; import com.google.cloud.vision.v1.AnnotateImageResponse; import com.google.cloud.vision.v1.EntityAnnotation; import com.google.cloud.vision.v1.Feature.Type; import com.google.cloud.vision.v1.ImageAnnotatorClient; import org.springframework.beans.factory.annotation.Autowire...
package me.gabreuw.bearapi.api.mapper; import me.gabreuw.bearapi.api.dto.BeerDTO; import me.gabreuw.bearapi.domain.model.Beer; import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; import java.util.List; @Mapper public interface BeerMapper { BeerMapper INSTANCE = Mappers.getMapper(BeerMapper.class)...
package model.access; import javax.persistence.EntityManager; import model.Project; import model.RatingObject; public interface IRatingObjectExistenceChecker { public void useEntityManager(EntityManager em); public Boolean check(Project project, RatingObject ratingObject) throws Exception; }
package patterns.behavioral.state; public class SoldState implements State { private GumballMachine gumballMachine; public SoldState(GumballMachine gumballMachine) { this.gumballMachine = gumballMachine; } @Override public void insertQuarter() { System.out.println(...
package Worker; import Models.Event; import Protocols.ClientEventReportProtocol; import Protocols.ClientLoginProtocol; import Protocols.ClientRegistrationProtocol; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import jav...
// ********************************************************** // 1. 제 목: 강사 질문방 // 2. 프로그램명: AdminQnaBean.java // 3. 개 요: 강사 질문방 // 4. 환 경: JDK 1.4 // 5. 버 젼: 1.0 // 6. 작 성: 강성욱 2005. 9. 20 // 7. 수 정: // ********************************************************** package com.ziaan.tutor; impo...
package com.arthur.leetcode; /** * @title: No76 * @Author ArthurJi * @Date: 2021/4/12 10:04 * @Version 1.0 */ public class No76 { public String minWindow(String s, String t) { if (s == null || t == null || s.length() == 0 || t.length() == 0) { return ""; } int left = 0; ...
/* * 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 chessPackage.board; import chessPackage.pieces.Piece; import java.util.Collections; import java.util.HashMap; import...
package com.example.agustinuswidiantoro.icp_mobile.activity; import android.app.ProgressDialog; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.R...
/* * 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. */ import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; import javax.swing.JFrame; import javax.swing.JOpt...
package ua.siemens.dbtool.model.enums; /** * Created by Pavel on 5/23/2017. */ public enum UserRole { USER, ADMIN }
package property; public abstract class AbstractItem { public abstract boolean disposable(); public void hello(){ System.out.println("hello"); } public static void main(String[] main){ AbstractItem i1 = new AbstractItem() {//匿名类 @Override public boolean disposab...
package com.example.q7; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.RadioGroup; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
import java.util.ArrayList; import java.util.List; import java.util.Scanner; enum Label {CHEAP, OK, EXPENSIVE}; public class exB2 { public static void main(String[] args) { String courseTitle; int nbrDays = 0; double pricePerDay = 0; boolean priorKnowledgeRequired = true; List<String> instructors = new ...
package fr.pumpmyblock.commands; import java.io.File; import java.io.IOException; import java.util.Map; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; i...
package com.changhongit.config; import org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer; public class Initializer extends AbstractHttpSessionApplicationInitializer{ public Initializer() { super(RedisConfig.class); } }
/** * */ package test; import java.io.File; import java.io.FileNotFoundException; import java.lang.reflect.Method; import java.util.Scanner; import metier.IMetier; import metier.MetierImpl; import dao.DaoImpl; import dao.IDao; /** * @author BALDE Baba-Abdoulaye * * 30 nov. 2016 */ public class Test { /** ...
package com.xixiwan.platform.face.feign.order.service.impl; import com.xixiwan.platform.face.feign.order.service.CommonService; import io.shardingsphere.core.keygen.KeyGenerator; import org.apache.commons.lang3.RandomUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotatio...
import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class mech extends JFrame implements ActionListener { Connection con; Statement st; ResultSet rs; JLabel l1=new JLabel("MECH DEPARTMENT ISSUES "); JLabel l2=new JLabel("TYPE ISSUE"); JComboBox c1=new J...
package com.muyh.zouzou.utils; import org.apache.commons.lang3.StringUtils; import sun.misc.BASE64Encoder; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.regex.Matcher; import java.util.regex....
package com.flyusoft.apps.jointoil.entity; import java.util.Date; import javax.persistence.MappedSuperclass; import com.flyusoft.common.entity.IdEntity; /**. * 压缩机监控数据的基类 * * @author helin */ @MappedSuperclass public class CompressorMD extends IdEntity { private Date time;// 监控时间, publi...
package org.apache.hadoop.hdfs; import java.io.IOException; import java.util.Collection; import java.util.LinkedList; import java.util.List; import java.util.Random; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.CyclicBarrier; import java.ut...
package com.itobuz.android.awesomechat.navigation; /** * Created by Debasis on 28/12/16. */ public interface RegistrationNavigator extends Navigator { void toLogin(); void attach(RegistrationResultListener registrationResultListener); void detach(RegistrationResultListener registrationResultListener)...
package com.lovers.java.domain; public class WorkflowNode { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column workflow_node.node_id * * @mbg.generated Wed Sep 25 10:59:33 CST 2019 */ private Integer nodeId; /** * ...
package ru.forpda.example.an21utools.widget; import android.content.Context; import ru.forpda.example.an21utools.R; import ru.forpda.example.an21utools.model.ModelFactory; import ru.forpda.example.an21utools.util.LogHelper; /** * Created by max on 12.11.2014. */ public class MusicWidgetPlay extends MusicWidgetBase ...
package core.event.handlers; import core.event.Event; import core.player.PlayerCompleteServer; import core.server.game.GameDriver; import exceptions.server.game.GameFlowInterruptedException; public interface EventHandler<T extends Event> { public void handle(T event, GameDriver game) throws GameFlowInterruptedExce...
package oops; public class Wrappperclass { public static void main(String[] args) { /* int i=23; Integer iw=new Integer(i);//boxing Integer j=++i;//auto-boxing(internally~Integer j=new Integer(++i); System.out.println(iw); String s="a"; System.out.println(j); int f=Integer.valueOf(j);//unboxing int ...
package com.worldchip.bbp.ect.view; import com.worldchip.bbp.ect.R; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.Gravity; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.ImageButton; public clas...
package com.java.smm.controller; import com.github.pagehelper.PageInfo; import com.java.domain.Permission; import com.java.service.permission.IPermissionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotati...
package by.academy.classwork.lesson4.arrays; import java.util.Arrays; public class Task4class { public static void main(String[] args) { // // 3. Создать двумерный массив типа char размером 4х2. // И записать туда значения с помощью блока для инициализации. // Распечатать значения массива. char [][] array =...
package org.tum.project.callback; import org.tum.project.bean.FifoInfo; import org.tum.project.bean.FlitsInfo; import org.tum.project.bean.PacketTimingInfo; import java.util.HashMap; import java.util.List; import java.util.TreeMap; /** * adapter for data call back * Created by heylbly on 17-6-5. */ public class D...
package listener; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.ArrayList; import javax....
/* * Copyright © 2020-2022 ForgeRock AS (obst@forgerock.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...
package userRules.cellularMarketModel.math; public class Histogram { public static double[] createHistogram(double[] data) { // find the number of bins using k = 1 + log2N int k = (int) (1 + Math.log(data.length)); // create the bins double[] bins = new double[k]; // find the maximum range ...
package de.uulm.in.vs.grn.a2; import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.Scanner; public class UrlFetcherBin { public static void main(String[] args) { while(true) { System.out.println("URL eingeben:"); Scanner sc = new Scanner...
package com.activequant.clientsample.utils; import com.activequant.domainmodel.TimeFrame; import com.activequant.domainmodel.TimeStamp; import com.activequant.timeseries.TSContainer2; /** * * @author GhostRider * */ public class EMACalculator { private int period = 0; private TSContainer2 d; private double ...
package com.esum.framework.queue; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.MessageListener; import javax.jms.MessageProducer; import javax.jms.ObjectMessage; import javax.jms.Session; import javax.jms.TextMessage; import junit.framework.TestCase; import org.apache.commons.io.IOUtils;...