text
stringlengths
10
2.72M
package com.koreait.bbs.model; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.koreait.dao.BDao; import com.koreait.dto.BDto; import com.oreilly.servlet.MultipartRequest; import com.oreilly.servlet.multipart.DefaultFileRenamePolicy; public class Inser...
package com.differencer.pi.editors; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.apache.http.impl.client.CloseableHttpClient; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse...
/****************************************************** Cours: LOG121 Projet: Framework.TP3 Nom du fichier: IStrategie.java Date créé: 2016-02-18 ******************************************************* Historique des modifications ******************************************************* *@author Vincent Leclerc(LECV070...
package com.example.hello.mymap.map.modle; import com.bluelinelabs.logansquare.annotation.JsonField; import com.bluelinelabs.logansquare.annotation.JsonObject; /** * Created by Lovepyj on 2016/7/15. */ @JsonObject public class Earthquake { @JsonField private String type; @JsonField private Propertie...
package app0517.db; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class DBSelect { String driver="com.mysql.jdbc.Driver";//mysql용 드라이버 경로 String url="jdbc:mysql://localhost:3307/javase?character...
package com.app.shubhamjhunjhunwala.thebakingapp.Objects; import org.parceler.Parcel; /** * Created by shubham on 14/03/18. */ @Parcel public class Ingredient { public String quantity; public String measurement; public String ingredient; public Ingredient() {} public Ingredient(String quantit...
package com.jack.jkbase.entity; import java.io.Serializable; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAndH...
package com.testiranje.bean; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; @SessionScoped @ManagedBean public class KandidatBean { public KandidatBean() { // TODO Auto-generated constructor stub } public String povratakNaKandidatMenu(){ return "/pages/kandidat/kandidatIndex.xh...
package com.dais.model; import java.util.Date; public class Fvalidatemessage { private Integer fid; private Integer fusFid; private String fphone; private Integer fstatus; private Byte type; private Date fcreatetime; private Date fsendtime; private Integer version; private ...
/* * 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 test; /** * * @author esmira_bayramova */ public class Recursiya { public static void main(String args[]) { ...
package com.msmsystemlink.alice.service; import com.msmsystemlink.alice.constant.ErrorMessage; import com.msmsystemlink.alice.model.Anggaran; import com.msmsystemlink.alice.repository.AnggaranRepository; import com.msmsystemlink.alice.util.Precondition; import org.springframework.beans.factory.annotation.Autowired; im...
package com.codeChallenge.dao; import com.mongodb.MongoClient; import com.mongodb.MongoClientURI; import com.mongodb.MongoException; import java.net.UnknownHostException; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframew...
package pt.luiscunha.product_developer_test; import android.content.Context; import org.junit.Test; import org.mockito.Mockito; import java.util.ArrayList; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void test1() { // cre...
package com.example.ideskdemo; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Intent; import android.icu.t...
package Homework4; //Name : Nupur Dixit //Instructor : Bineet Sharma //Date : May 15,2016 //Description: This program would prompt user to enter a number and check whether it is // a palindrome or not. import java.util.Arrays; import java.util.Scanner; public class CheckPalindrome { public ...
package com.bridgelabz.jdbc; /** * Created By:Medini P.D * Date:- 12/06/2018 * Purpose: */ import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; public class JDBCCallableStatementOUTParameterExample { static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final Str...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package marblegame; import java.io.IOException; import javax.microedition.lcdui.game.GameCanvas; /** * * @author janiestoy */ public class Game extends GameCanvas implements Runnable{ GameImages gameImages...
package com.sysh.dto; import java.io.Serializable; import java.util.Objects; /** * ClassName: <br/> * Function: 两表联查,确定家庭成员详细信息<br/> * date: 2018年06月09日 <br/> * * @author 苏积钰 * @since JDK 1.8 */ public class AB10_AB01Dto implements Serializable { private String aab002;//姓名 private String aab003;//性别...
package com.example.hw5; import java.io.Serializable; public class Expense implements Serializable { String name, date, receiptUrl; int month, day, year; Double amount; public Expense() { } public Expense(String name, String date, String receiptUrl, int month, int day, int year, Double amou...
package com.espendwise.manta.auth; import org.apache.log4j.Logger; import org.springframework.security.authentication.AnonymousAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.web.authentication...
package lk.cb006789.eea.mercstore.service; import lk.cb006789.eea.mercstore.models.UseraccModel; import lk.cb006789.eea.mercstore.repo.UseraccRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class UserA...
package com.uptc.prg3.dinner.server.model; /** * Models a philosopher. */ public class Philosopher extends Thread { // The count of philosophers that are on the dinner private static int mCount = 0; // The unique ID for the philosopher private int mId; // The forks private Fork mForkLeft; ...
package android.support.v7.widget; import android.support.v4.view.ai; import android.support.v4.view.z; import android.support.v7.widget.RecyclerView.t; import android.support.v7.widget.v.c; import android.view.View; class v$4 extends c { final /* synthetic */ v NZ; final /* synthetic */ t Oc; final /* sy...
package com.itheima.core.service; import com.alibaba.dubbo.config.ServiceConfig; import com.alibaba.dubbo.config.annotation.Service; import com.alibaba.dubbo.rpc.cluster.Cluster; import com.itheima.core.StaticPageService; import com.itheima.core.dao.good.GoodsDao; import com.itheima.core.dao.good.GoodsDescDao; import ...
package com.pfchoice.springboot.service; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.Specification; import com.pfchoice.springboot.model.LeadMembership; public interface LeadMembershipService { LeadMembership findById(Inte...
package com.pybeta.daymatter.ui; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.pybeta.daymatter.R; import com.pybeta.ui.utils.ItemView; public class MatterView extends ItemView { public View mItem; public TextView mMatterTip; public ...
package Gestion.vues.InterfacesGraphiques; import Notifications.Personne; import Notifications.SMS_Message; import javax.swing.JCheckBox; import java.awt.Color; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; i...
package br.eti.ns.nssuite.requisicoes._genericos; public class DownloadEventoReq { public String tpAmb; public String tpDown; public String tpEvento; public String nSeqEvento; }
package com.yc.conn.test; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.sql.DataSource; import org.apache.ibatis.session.SqlSessionFactory; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.fac...
package java.awt.event; import android.view.View; public class KeyEvent { private android.view.KeyEvent keyEvent; private Object source; public KeyEvent(android.view.KeyEvent keyEvent, Object source) { this.keyEvent = keyEvent; this.source = source; } public boolean isActionKey(...
package leetCode.common; /** * Created by pingjiex on 12/23/16. */ /* a binary tree node */ public class TreeNode { TreeNode left; TreeNode right; int val; public void TreeNode(int x){ this.val = x; } }
package au.com.ps4impact.demo.temperature.converter; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import android.text.InputType; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.RadioButton; import android.widget.Toast; ...
package com.ssm.lab.controller; import com.ssm.lab.bean.ExperimentWorkload; import com.ssm.lab.bean.PracticeWorkload; import com.ssm.lab.common.Constants; import com.ssm.lab.dto.WorkloadForm; import com.ssm.lab.dto.WorkloadVo; import com.ssm.lab.service.*; import org.apache.commons.lang3.StringUtils; import org.spring...
package com.ifre.util.encrypte; import java.io.DataInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; public class IfreClassLoader extends ClassLoader { //private String fileSeparator = File.separator; private String fileSeparator = "/"; public IfreClassLoader(ClassLoader par...
package com.bin.ThreeD; import android.R.integer; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; public class ImageUtils { /** * 返回处理后的图片 * @param i...
package com.example.trailer; import java.util.ArrayList; import android.app.Activity; import android.content.ContentResolver; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.view.View; ...
package com.ssm.entity; public class Student { private Integer id; private String sno; private String sname; private String password; private Integer majorId; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Stri...
package com.zhouyi.business.core.service; import com.zhouyi.business.core.exception.BusinessException; import com.zhouyi.business.core.model.PageData; import com.zhouyi.business.core.model.SysUser; import com.zhouyi.business.core.vo.SysUserVo; import javax.servlet.http.HttpServletResponse; import java.util.Map; /** ...
package org.kt3k.straw.plugin; import org.kt3k.straw.annotation.PluginAction; import org.kt3k.straw.StrawDrink; import org.kt3k.straw.StrawPlugin; public class ActivityPlugin extends StrawPlugin { @Override public String getName() { return "activity"; } @PluginAction public void finish(Object _, StrawDrink d...
package com.nogago.android.task; import android.os.AsyncTask; public abstract class TrackableTask extends AsyncTask<Object, Integer, Object> { private Object mResult; protected String mProgressMessage; private IProgressTracker mProgressTracker; public TrackableTask(String progressMessage) { // Init...
package com.yinghai.a24divine_user.module.divine.book.presenter; import com.yinghai.a24divine_user.base.MyBasePresenter; import com.yinghai.a24divine_user.bean.BusinessBean; import com.yinghai.a24divine_user.module.divine.book.ContractBusinessList; import com.yinghai.a24divine_user.module.divine.book.model.BusinessLis...
package SUT.SE61.Team07.Controller; import SUT.SE61.Team07.Entity.*; import SUT.SE61.Team07.Repository.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springfra...
package com.nguyenshane.creativecolors; import java.util.Arrays; import org.json.JSONException; import org.json.JSONObject; import android.content.Context; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import com.faceb...
package com.liwei.activity; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.widget.ImageView; im...
/* Copyright (C) 2009, Bioingenium Research Group http://www.bioingenium.unal.edu.co Author: Alexander Pinzon Fernandez JNukak3D 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 2 of the...
import java.util.*; /** * * A tree is an undirected graph in which any two vertices are connected by exactly one path. In other words, any connected graph without simple cycles is a tree. * * Given a tree of n nodes labelled from 0 to n - 1, and an array of n - 1 edges where edges[i] = [ai, bi] indicates that ther...
package com.facebook.react.animated; import com.facebook.react.bridge.JSApplicationCausedNativeException; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.bridge.ReadableMap; class MultiplicationAnimatedNode extends ValueAnimatedNode { private final int[] mInputNodes; private ...
package com.tencent.mm.plugin.messenger.foundation.a; import com.tencent.mm.protocal.c.ato; import com.tencent.mm.storage.bd; public interface l { void a(ato ato, bd bdVar); }
package trotro.tv.trotrotv; import android.app.DatePickerDialog; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.database.sqlite.SQLiteDatabase; import android.graphics.Color; import android.os.Bundle; import andro...
package com.hua.mvp.home.view; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import com.hua.mvp.R; import com.hua.mvp.base.view.Vi...
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the l...
package App; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer; import javafx.util.Duration; import java.net.URISyntaxException; public class SoundEffectsClass { private MediaPlayer mediaPlayer; private boolean isMuted = false; public void playIntroMusic() throws URISyntaxException {...
package co.nos.noswallet.network.nosModel; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.ArrayList; public class NeuroHistoryResponse implements Serializable { @SerializedName("account") public String account; @SerializedName("items") public ArrayL...
package tw8a; import java.util.Scanner; class License { String name; int no_of_cases, age; char valid_LL, gender; License() { Scanner in = new Scanner(System.in); System.out.println("Name:"); name = in.nextLine(); System.out.println("Age:"); ...
package com.example.headfirst.singleton; /** * create by Administrator : zhanghechun on 2020/3/29 */ public class ChocolateBoiler { private boolean empty; private boolean boiled; private static ChocolateBoiler uniqueInstance; private ChocolateBoiler() { empty=true; boiled=false; ...
package com.facebook.react.views.text; import android.graphics.drawable.Drawable; import android.text.Spannable; import android.text.style.ReplacementSpan; import android.widget.TextView; public abstract class TextInlineImageSpan extends ReplacementSpan { public static void possiblyUpdateInlineImageSpans(Sp...
/** * */ package com.cnk.travelogix.b2c.storefront.forms; import java.util.List; /** * @author i323801 * */ public class HotelTravelersForm { private List<HotelTraveler> travelers; /** * @return the travelers */ public List<HotelTraveler> getTravelers() { return travelers; } /** * @param travele...
package race; import java.util.Random; public class Horse extends Thread{ public Horse(String name) { super(name); } @Override public void run() { System.out.println(getName() +"말 스타트..."); Random r = new Random(); for (int i=1; i<=100; i++) { System.out.println(getName() + "말 " + i + "미터 전진..."); ...
/** * */ package com.shubhendu.javaworld.datastructures.arrays; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.PriorityQueue; /** * @author ssingh * */ public class TopKElements { // private class Item { // int nu...
import java.util.Scanner; class Exercice5 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Veuillez saisir un mois (1-12):"); int mois = sc.nextInt(); int jours = (mois==2) ? 28 : ((mois<8) ? ((mois%2==1) ? 31 : 30) : ((mois%2==1) ? 30 : 31)...
package com.takshine.wxcrm.controller; import java.util.Enumeration; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifie...
package com.smxknife.mybatis.demo.ch01_fromxml.model; import lombok.Getter; import lombok.Setter; import lombok.ToString; import java.util.List; /** * @author smxknife * 2020/11/6 */ @ToString @Getter @Setter public class Blog { private Long id; private String title; private Author author; private List<Post> ...
package com.mx.profuturo.bolsa.model.graphics.vo.elements; import java.util.LinkedList; public class StackedDataset { private String label; private LinkedList<Integer> data; public StackedDataset() { this.data = new LinkedList<>(); } public String getLabel() { return label; } public void setLabel(String l...
package icu.fordring.voter.dao; import icu.fordring.voter.beans.ImageBean; import icu.fordring.voter.beans.User; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import javax.annotation...
package com.espendwise.manta.web.controllers; import com.espendwise.manta.model.entity.StoreMessageListEntity; import com.espendwise.manta.model.view.StoreMessageListView; import com.espendwise.manta.service.StoreMessageService; import com.espendwise.manta.spi.AutoClean; import com.espendwise.manta.util.Constants; imp...
package category.dfs; import java.util.ArrayList; import java.util.List; public class NumOfIslandsII { static class Point { int x; int y; Point(int a, int b) { x = a; y = b; } } // 8, 14, // [0,9],[5,4],[0,12],[6,9],[6,5],[0,4],[4,11],[0,0],[3,5],[6,7],[3,12],[0,5],[6,13],[7,5],[3,...
package com.tencent.mm.plugin.sns.ui; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.ui.base.MMSlideDelView.f; class SnsMsgUI$14 implements f { final /* synthetic */ SnsMsgUI nYl; SnsMsgUI$14(SnsMsgUI snsMsgUI) { this.nYl = snsMsgUI; }...
package com.takshine.wxcrm.base.util; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import ja...
package com.ifre.controller.ruleengin; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.jeecgframework.core.common.controller.BaseController; import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery; import org.jeecgframewo...
package com.yougou.merchant.api; import static org.junit.Assert.*; import java.util.Date; import javax.annotation.Resource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.annotation.Rollback; import org.springframework.test.context.ContextConfiguration; import org.springframe...
package com.example.demo.repositories; import org.springframework.data.repository.CrudRepository; import com.example.demo.domain.Publisher; public interface PublisherRepository extends CrudRepository<Publisher,Long> { }
package dao; import models.Payment; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.sql2o.Connection; import org.sql2o.Sql2o; import static org.junit.jupiter.api.Assertions.*; class Sql2oPaymentDaoTest { private Connection con; pr...
package lda; import java.io.BufferedReader; import java.io.FileReader; import java.util.HashMap; import java.util.HashSet; public class DocComp { public static int addWord(HashMap<String, Integer> word_index, String word) { if(!word_index.containsKey(word)) { word_index.put(word, word_index.size()); } r...
package com.tencent.mm.plugin.downloader.model; import android.app.PendingIntent; import com.tencent.mm.plugin.downloader.b.c; import com.tencent.mm.plugin.downloader.model.d.1.1; import com.tencent.mm.sdk.platformtools.bi; class d$1$1$1 implements Runnable { final /* synthetic */ 1 ibZ; d$1$1$1(1 1) { ...
package net.fusionlord.mods.betterwolfcontrol.common.tile; import net.fusionlord.mods.betterwolfcontrol.common.capability.entity.ProviderWolfState; import net.fusionlord.mods.betterwolfcontrol.common.enums.Group; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.passive.EntityWolf; import net.m...
package com.company; import java.util.Stack; public class Main { public static void main(String[] args) { MyStack stack = new MyStack(); stack.push(15); stack.push(10); stack.push(999); System.out.println(stack.peek() + " this is the peek value"); sta...
package integracion.lineaDeFactura; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.Collection; import integracion.transacciones.Transaction; import integracion.transacciones.manager.TManager; import negocio.lineadefactura.TLineaDe...
package ru.otus.gwt.client.aside; /* * Created by VSkurikhin at autumn 2018. */ import com.google.gwt.core.client.JavaScriptObject; public class NewsItem extends JavaScriptObject { protected NewsItem() { } public final native String getId() /*-{ return this.Id; }-*/; public final nati...
package Controller; import Messages.InfectedUserMessage; import Objects.CapsuleLog; import java.security.PrivateKey; import java.util.ArrayList; public interface MatchingServiceController { void addInfectedUser(InfectedUserMessage infectedUserMessage) throws Exception; void addCapsules(ArrayList<CapsuleLog>...
package com.tencent.tencentmap.mapsdk.a; import java.util.Map; public interface ew { String a(); void a(int i); void a(String str, String str2); void a(Map map); void b(int i); void c(int i); void d(int i); }
package com.lti.exceptionhandson; public class MaritalException extends Exception { public MaritalException(int a) { System.out.println("Not a valid marital status"); } }
package br.eti.ns.nssuite.requisicoes._genericos; public class IncCondutorReq { public String tpAmb; public String dhEvento; public String xNome; public String CPF; }
/** * Created by RCEAZ31 on 9/03/2016. */ public class DivisionByZeroException extends Throwable { }
package com.test.accessmodifiers; /** * Created by srikanth on 30/12/16. */ public class PrivateClassExt extends PrivateClass { public static void main(String[] args){ /* Private variables or methods cannot be accessed from sub/child class */ PrivateClassExt pve = new Private...
import java.util.ArrayList; public class Library { //instance variables private ArrayList<Book> library = new ArrayList<Book>(); //creates an ArrayList of type Book //returns the book at index i public Book getBook(int i) { return library.get(i); } //returns the size of the librar...
package com.dlq.servlet; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class LoginServlet extends HttpServlet { protected void doGet(HttpServletRequest r...
package org.openntf.tiles.document; import java.io.InputStream; import org.openntf.domino.Document; import org.openntf.domino.EmbeddedObject; /** * A wrapper around attachment. Attachment is stored in Rich Text field. * * @author Mariusz Jakubowski * */ public class RTAttachment extends Attachment { privat...
import java.util.concurrent.atomic.AtomicReference; /** * @Author: lty * @Date: 2020/11/13 16:13 */ public class Singleton_6 { //使用atomicrefence 使用CAS方式 支持懒加载 private static AtomicReference<Singleton_6> INSTANCE = new AtomicReference<Singleton_6>(); private Singleton_6() { } public static Si...
import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.util.Random; public class Playlist { private Random rand = new Random(); private Song song; private List<Song> queue; public Playlist(Song ... songs) { this.queue = new ArrayList<>(); this.queue.addAll(Arrays.asList(songs...
package com.programmers.level2; import java.util.Arrays; /** [최솟값 만들기] * 자연수로 이루어진 길이가 같은 수열 A,B가 있습니다. * 최솟값 만들기는 A, B에서 각각 한 개의 숫자를 뽑아 두 수를 곱한 값을 누적하여 더합니다. * 이러한 과정을 수열의 길이만큼 반복하여 최종적으로 누적된 값이 최소가 되도록 만드는 것이 목표입니다. * 예를 들어 A = [1, 2] , B = [3, 4] 라면, A에서 1, B에서 4를 뽑아 곱하여 더합니다. * A에서 2, B에서 3을 뽑아 곱하여 ...
package ua.project.protester.controller; import lombok.RequiredArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import ua.project.protester.exception.ProjectAlreadyExistsException; import ua.p...
package day43JavaRecap; public class OOPEncapsulation5 { /*Encupsulation: * 1- hide the data by giving private access modifier * 2- grants other classes get acces to the private instance variable through public getter/setter * * private only visible (accessible) within the class * gette...
package com.mashibing.decorator; import com.mashibing.GameObject; import java.awt.*; /** * @create: 2020-04-14 15:57 **/ public abstract class GODecorator extends GameObject { protected GameObject go; public GODecorator(GameObject go) { this.go = go; } @Override public void paint(Gra...
package com.training.springbasics.springin10steps; import com.training.springbasics.springin10steps.Basic.BinarySearch; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; @SpringBootApplication ...
package com.qst.codec; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.IOUtils; import org.apache.hadoop.io.compress.BZip2Codec; import org.apache.hadoop.io.compress.CompressionCodec; import org.apache.hadoo...
/** * */ package com.mengdo.gameframework.log; import java.sql.PreparedStatement; import java.sql.SQLException; /** * * @Title: ILog.java * @Package com.mengdo.gameframework.log * @Description: * @Company:mengdogame */ public interface ILog { void populate(PreparedStatement ps) throws SQLEx...
package com.dexter.customchatcell.util; import android.content.Context; /** * Created by 10644291 on 09-10-2017. */ public class Config { private static Config INSTANCE; private int screenWidth; private int screenHeight; private Config(){ } public static Config getInstance(){ if (...
package com.company; public class Main { public static void main(String[] args) { double soma_ano = 0; System.out.println("Despesas por mes e dia"); for (int i = 0; i < YearExpenses.MatrizDespesas[i].length; i++) { System.out.println(" "); for (int j = 0; j < YearE...
class NBody { public static void main(String[] args) { double T = Double.parseDouble(args[0]); double dt = Double.parseDouble(args[1]); String filename = args[2]; In fileIn = new In(filename); int num = fileIn.readInt(); double radius = fileIn.readDouble(); Planet[] planets = new Planet[num]; for (int ...
/** * Helios, OpenSource Monitoring * Brought to you by the Helios Development Group * * Copyright 2014, Helios Development Group and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...