text
stringlengths
10
2.72M
// Generated code from Butter Knife. Do not modify! package com.zhicai.byteera.activity.initialize; import android.view.View; import butterknife.ButterKnife.Finder; import butterknife.ButterKnife.ViewBinder; public class LoginActivity$$ViewBinder<T extends com.zhicai.byteera.activity.initialize.LoginActivity> impleme...
/* * Copyright (C) 2016 The Android Open Source Project * * 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 app...
/* * 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 hotels; import javax.swing.table.DefaultTableModel; /** * * @author Nyagritin */ public class MayaStock extends javax.swin...
package dk.sidereal.lumm.architecture.core.input; /** * Class encapsulating an event to run when scrolling * * @author Claudiu Bele */ public abstract class OnScrollListener { /** * Event to run whenever the mouse wheel is scrolled. The amount of scroll * is not guaranteed to be the same for the sam...
/** * Write a description of class Runner here. * * @author (your name) * @version (a version number or a date) */ public class Runner { public static void main(String[] args) { Square1 s = new Square1(1); Rectangle1 r = new Rectangle1(1,1); System.out.println(s); Sy...
package jire.persist; public interface Persistable { }
package com.gsccs.sme.web.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.a...
package hu.mitro.ejb.facade; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.ejb.EJB; import javax.ejb.Stateless; import org.apache.log4j.Logger; import hu.mitro.ejb.converter.CarConverter; import hu.mitro.ejb.converter.ClientConverter; import hu.mitro.ejb.converter.ContractCo...
/* * 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 giacomoglotzerprojectdata; import com.google.gson.Gson; import java.net.URL; import java.util.ResourceBundle; import java.uti...
package com.landschootl.kinesis; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Data; @Data @Builder @JsonInclude(JsonInclude.Include.NON_NULL) public class DataKinesis { @JsonProperty("key") public String key; ...
package creational.factorymethod.product; // 产品接口 public interface Product { void name(); }
package test; import java.util.ArrayList; import java.util.List; import system.Yoyakukun; public class Test2 { public static void main(String[] args) { Yoyakukun yoyaku01 = new Yoyakukun("スポーツ(屋内)", "サロンフットボール・フットサル", "札幌市", null,"2021/02/01","2021/02/27",null); String placeName = yoyaku01.getPl...
/* * 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 agenda; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; impo...
package com.java.practice.array; /** * https://www.hackerrank.com/challenges/jumping-on-the-clouds-revisited/problem */ public class JumpingCloud { public static void main(String[] args) { int[] clouds = {0, 0, 1, 0, 0, 1, 1, 0}; int k = 2; System.out.println(jumpingOnClouds(clouds, k));...
package com.ism.projects.th; import java.math.BigDecimal; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.ism.common.exception.ISMException; public abstract class FinancialReversalBaseService extends FinancialTransactionBaseService { /* * Value should be ...
package server; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.util.ArrayList; import java.util.List; import server.dao.Manager; import server.entity.User; import util.Message; import util.MessageType; import util.Translate; /** * 服务器接收消息和处理消息的...
package com.proyecto.ui.utils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.WrongValueException; import org.zkoss.zk.ui.WrongValuesException; import org.zkoss.zul.Constraint; import org.zkoss.zul....
package jstu.edu.entity; /** * Created by 张 磊 on 2017/3/13. */ public class UserLog { private int userLog_id; private int userLog_manager; private int userLog_user; private String userLog_time; private int userLog_opertation; private String userLog_reason; public UserLog(){} /** ...
//*Vladimir Ventura // 00301144 // CIS252 Data Structures // Problem Set 8: HashMap (Linear Probing Implementation) // // This class is an attempt to approach the Linear Probing technique with records. *// public class MyHashMap<K extends Comparable<K>, V> { private Record[] table; private int tableSize; p...
package graphics; import maths.Vector3f; import maths.Vector4f; public class Color { public Vector4f color; public Color(float r, float g, float b) { this( r, g, b, 1.0f); } public Color(float r, float g, float b, float a) { this( new Vector4f(r,g,b,a)); } public Color(Vector4f rgba) { this.color =...
package net.tanpeng.arithmetic.offers; /** * 约瑟夫环 */ public class Demo { public static int findLastNumber(int n, int m) { if (n < 1 | m < 1) { return -1; } int[] array = new int[n]; int i = -1, step = 0, count = n; while (count > 0) { i++; ...
package com.wrathOfLoD.VisitorInterfaces; import com.wrathOfLoD.Models.Inventory.Equipment; import com.wrathOfLoD.Models.Inventory.Inventory; import com.wrathOfLoD.Models.Items.EquippableItems.EquippableItem; /** * Created by icavitt on 4/12/2016. */ //to use this interface in any useful way you'll likely have to i...
package com.Aahan; import java.text.DecimalFormat; /** * Created by aahan on 16-02-2017. */ class heronsForm { private static varGen heronsForm = new varGen(3); static void generate(int dif){ heronsForm.setVars(dif*4); } static String print(){ int[] x=heronsForm.getVars(...
package com.akua; import com.akua.search.*; import com.akua.sorting.*; import com.sun.net.httpserver.Headers; //import com.akua.sorting.InsertionSort; public class App { public static void main( String[] args ) { int arr[] = {43,11,55,1,44,3,6,43,5,7,4,34}; //sortAlgorithms(arr); sea...
import java.util.HashMap; import java.util.Map; import java.util.Iterator; import java.util.Set; import java.util.Arrays; import java.io.*; import java.net.*; public class Server { public static void main(String[] args) { HashMap<Integer, HostPort> userMap = new HashMap<>(); // silinti. ServerSock...
package com.mingrisoft; public class AppendCharacter { /** * @param args */ public static void main(String[] args) { String appendStr = "";// 创建字符串变量 long startTime = System.nanoTime();// 开始记事 for (int i = 20000; i < 50000; i++) {// 遍历30000个字符 appendStr += (ch...
package com.service.dao; import java.util.List; public interface IReservationDAO { List<Reservation> getAllUserReservation(String userId); List<Reservation> getAllUserObjectWatched(String userId); }
package com.citibank.ods.persistence.pl.dao.rdb.oracle; import com.citibank.ods.persistence.util.CitiStatement; import java.math.BigDecimal; import java.math.BigInteger; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; import java.util.ArrayL...
package com.jzl; import lombok.Data; import org.apache.hadoop.io.WritableComparable; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; @Data public class Entity implements WritableComparable<Entity> { private int id;//主键 private int cityId;//城市id private String c...
/* * @(#) ErrorCodeAction.java * Copyright (c) 2006 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ims.errorcode.struts.action; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import javax.servlet.Servle...
package com.example.projet_makbal_mounir; import android.app.Activity; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity;...
package br.com.drem.managebean.urlMb; /** * @author AndreMart * @contacts: andremartins@outlook.com.br;andre.drem@gmail.com * @tel: 63 8412 1921 * @site: drem.com.br */ import javax.faces.bean.ManagedBean; @ManagedBean public class MbHome { public String redirecionaHome(){ return"index"; } }
import java.io.*; import java.util.Scanner; class student{ private String stuName; private Byte stuMarks[]=new Byte[5]; private long roll; private String course; public void read() throws IOException{ BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); Scanner scan=new Scanner(System...
package javaapplication3; /** * * @author Jayan */ public class MySqldb { public static void main(String[] args) { DbConnect connect= new DbConnect(); connect.getData(); } }
package org.hadoop.praveen; import java.io.IOException; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; public class WritableMapper extends Mapper<LongWritable,Text,MyWritable,IntWritable>{ private fina...
package com.ymall.swagger; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.Req...
package peropt.me.com.performaceoptimization; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v7.app.AppCompatActivity; import android.view.ViewTreeObserver; import android.widget.TextView; import java.lang.ref.WeakReference; public class MainActivity extends Ap...
package jthrift; import java.util.*; public class TProgram extends TDoc { private String path; private String name; private TScope scope; private Map<Id, Id> namespaces = new HashMap<Id, Id>(); private List<Id> cppIncludes = new LinkedList<Id>(); private List<TProgram> includes = new LinkedLis...
import java.util.*; class Question_1 { static String str_operation(char[] chars) { char p = '\0'; int c = 0; for (char ch: chars) { if (p != ch) { chars[c++] = ch; p = ch; } } return new String(ch...
/* * Copyright 2002-2022 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.apon.taalmaatjes.backend.util; public class ObjectUtil { @SafeVarargs public static <T> T coalesce(T ...items) { for(T i : items) if(i != null) return i; return null; } }
package be.mxs.common.util.pdf.general.oc.examinations; import be.mxs.common.util.pdf.general.PDFGeneralBasic; import com.itextpdf.text.pdf.PdfPTable; import com.itextpdf.text.pdf.PdfPCell; /** * User: ssm * Date: 18-jul-2007 */ public class PDFStomatologyOperationProtocol extends PDFGeneralBasic { //--- ADD ...
package stringtypes; public class stringexple { public static void main(String[] args) { String name ="siran"; String name1 ="siran world"; System.out.println("string:"); int identityHashCode = System.identityHashCode(name); System.out.println(identityHashCode); int identityHashCode2 = System.identityHa...
package caris.framework.utilities; import java.text.SimpleDateFormat; import caris.framework.library.Constants; import caris.framework.library.Variables; import sx.blah.discord.handle.obj.IChannel; import sx.blah.discord.handle.obj.IGuild; import sx.blah.discord.handle.obj.IUser; public class Logger { public stat...
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello world!!!!!"); System.out.println("Shweta"); System.out.println("yadav"); System.out.println("DONE!!!!! "); } }
package geekbrains.java_level_one.lesson_two; import java.util.*; public class HelloConstructs { private static void change(int[] array){ for (int i = 0; i < array.length; i++) array[i] = (array[i] == 1) ? 0 : 1; } private static void fillIn(int[] array){ for (int i = 0; i < a...
package com.tridevmc.movingworld.common.network.message; import com.tridevmc.compound.network.message.Message; import com.tridevmc.compound.network.message.RegisteredMessage; import com.tridevmc.movingworld.common.chunk.mobilechunk.MobileChunkClient; import com.tridevmc.movingworld.common.entity.EntityMovingWorld; im...
package uk.ac.nott.cs.g53dia.simulator; import uk.ac.nott.cs.g53dia.agent.*; import uk.ac.nott.cs.g53dia.library.*; import java.util.Random; /** * An example of how to simulate execution of a tanker agent in the sample * (task) environment. * <p> * Creates a default {@link Environment}, a {@link DemoTanker} and a...
package com.mod.loan.risk.pb; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.mod.loan.common.enums.OrderSourceEnum; import com.mod.loan.common.enums.PbResultEnum; import com.mod.loan.common.message.RiskAuditMessage; import com.mod.loan.config.rabbitmq.RabbitConst; import com.mod.l...
package com.sinodynamic.hkgta.dao.crm; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.hibernate.Query; import org.springframework.stereotype.Repository; import com.sinodynamic.hkgta.dao.GenericDao; import com.sinodynamic.hkgta.entity.crm.ServicePlanFacility; @Repository p...
package com.itheima.day_10.demo_10; import java.util.Random; import java.util.Scanner; class GuessNumber { private static Random rd = new Random(); private static Scanner sc = new Scanner(System.in); public void start() { int num = rd.nextInt(10) + 1; while (true) { System.out.println("请输入你要猜的数字(1~10):...
package com.xyz.dcl.bangladesh.earn; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.widget.Toolbar; import androidx.cardview.widget.CardView; import android.view.MenuItem; import android.view.View; import com.xyz.dcl.bangladesh.R; import com.xyz.dcl.bangladesh.extras.BaseActivity...
package com.rndapp.t.requests; /** * Created by ell on 4/13/15. */ public class ScheduleByStopRequest extends StopRequest{ private static final String ENDPOINT = "schedulebystop"; public void get(String station){ super.get(String.format(URL, ENDPOINT, station), false); } }
package com.example.prova; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class Tela2 extends AppCompatActivity { @Override protected void onCreate...
/* * Copyright 2016 Palantir Technologies, Inc. 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 * * Unless req...
package com.lsjr.zizi.mvp.upload; /** * Created by admin on 2017/5/6. */ public interface IUploadView { void onUploadSucceed(boolean isSucceeds); }
package com.noethlich.tobias.mcrobektrainingsplaner; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import...
package org.firstinspires.ftc.teamcode.opmodes; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.util.ElapsedTime; import org.firstinspires.ftc.teamcode.base_classe...
package com.git.cloud.resmgt.common.model.po; import java.util.List; import com.git.cloud.common.model.base.BaseBO; import com.git.cloud.resmgt.common.model.vo.RmResPoolVo; public class RmDatacenterPo extends BaseBO implements java.io.Serializable{ // Fields /** * */ private static final lo...
package com.grocery.codenicely.vegworld_new.welcomeScreen.presenter; import com.grocery.codenicely.vegworld_new.R; import com.grocery.codenicely.vegworld_new.helper.MyApplication; import com.grocery.codenicely.vegworld_new.welcomeScreen.Data.WelcomeData; import com.grocery.codenicely.vegworld_new.welcomeScreen.SlidesR...
package com.galid.commerce.domains.catalog.service; import lombok.*; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.Min; @Getter @Setter @NoArgsConstructor @AllArgsConstructor @Builder @ToString public class AddItemRequest { @Length(min = 3) private String name; @L...
package proxypattern; import java.util.ArrayList; import java.util.Scanner; /** * * @author LUT, OOPT * Jere Kaplas, 0403105 * Oskari Jahkola, 0403082 * Eetu Heimala, 0388819 * Sakari Laine, 0418598 */ public class ProxyPattern { /** * @param args the command line arguments */ public static void main(St...
package kz.greetgo.file_storage.errors; public class FileStorageError extends RuntimeException { public FileStorageError(String message) { super(message); } public FileStorageError(Exception e) { super(e); } }
package me.gleep.oreganized.items; import me.gleep.oreganized.blocks.SilverBlock; import net.minecraft.client.entity.player.ClientPlayerEntity; import net.minecraft.command.arguments.NBTPathArgument; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.player.Player...
package com.toda.consultant; import android.app.DatePickerDialog; import android.os.Bundle; import android.view.View; import android.widget.DatePicker; import android.widget.TextView; import com.toda.consultant.model.RequestParams; import com.toda.consultant.model.ResultData; import com.toda.consultant.statics.Task; ...
package gov.nih.mipav.model; public class GaussianKernel implements Kernel { private float[][] data; public GaussianKernel() { } public float[][] getData() { return data; } public void setData(float[][] data){ this.data = data; } public int[] getExtents(){ if(data == null){ return null; } in...
package JavaCompleteReference; public class box3 { int width; int heigth; int depth; double volume() { double volume=width*heigth*depth; return volume; //System.out.println("The Volume is " +volume); } }
package my.pkg.app; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; import my.pkg.app.R; public class Main extends Activity { /** Called when the activity is first created. */ ...
package io.rong.app.map; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.drawable.Drawable; import android.view.View; import io.rong.imkit.RLog; import io.rong.imkit.RongContext; import io.rong.imkit.RongIM; import io.rong.imkit.widget.provider.InputP...
package com.codigo.smartstore.sdk.core.struct.iterate.array; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; import org.apache.log4j.Logger; import org.junit.Test; import org.junit.jupiter.api.DisplayName; import com.codigo.smartstore.sdk.core.structs.iterate.arr...
package de.scads.gradoop_service.server.helper.edge_fusion; import java.util.ArrayList; import org.gradoop.common.model.impl.pojo.Edge; public interface EdgeFusionFunction<T> { T apply(ArrayList<Edge> edges, String edgeAttribute); }
// File : AnimalTest.java //PIC : Nur Latifah Ulfah - 13514015 import org.junit.*; import static org.junit.Assert.*; /** * * @author Nur Latifah Ulfah - 13514015 */ public class AnimalTest { @Test public void test_getX() { System.out.println("Test apakah getX menghasilkan nilai dengan benar"); Animal kodok =...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.db.model; import pl.edu.icm.unity.exceptions.WrongArgumentException; /** * DB has certain size limits on different objects. Those are available from this class. *...
package com.jam.jamoodle.service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import android.util.Log; /** * Created by Andrew on 2/23/2017. */ public class SmsReceiver extends BroadcastRecei...
package com.intricatech.topwatch; import android.content.Context; import android.content.SharedPreferences; import android.os.SystemClock; import android.text.SpannableString; import android.text.style.RelativeSizeSpan; import android.util.Log; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; i...
package plugins.fmp.fmpTools; import java.awt.Color; import icy.image.IcyBufferedImage; import icy.image.IcyBufferedImageUtil; import icy.type.DataType; import icy.type.collection.array.Array1DUtil; import plugins.fmp.fmpSequence.SequenceVirtual; public class ImageTransformTools { private IcyBufferedImage referenc...
package com.example.qunxin.erp.fragment; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v...
package com.beike.common.exception; /** * @title: DiscountCouponException.java * @package com.beike.common.exception * @description: * @author wangweijie * @date 2012-7-11 下午09:36:34 * @version v1.0 */ public class DiscountCouponException extends BaseException { /** * @fields serialVersionUID : ...
package com.lab.shopCart.shopcartms.application.internal.service; import com.lab.shopCart.shopcartms.interfaces.rest.dto.order.OrderResDto; import com.lab.shopCart.shopcartms.interfaces.rest.dto.shopcart.ShopCartReqDto; import com.lab.shopCart.shopcartms.interfaces.rest.dto.shopcart.ShopCartResDto; import org.junit.Te...
package org.hpin.common.util; import java.text.DecimalFormat; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; /** * 字符串工具类 * * @author thinkpad * */ public class StrUtils { /** * 判断字符串是否不为空或者不为空字符 * * @param str * 允许为NULL * @return */ public static boo...
package dao; import table.Status; import java.sql.SQLException; import java.util.List; public interface StatusDao { public void addStatus(Status status) throws SQLException; public void deleteStatus(Integer statusId) throws SQLException; public Status getStatusById(Integer statusId) throws SQLException;...
package com.flipkart.DAO; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.apache.log4j.Logger; import com.flipkart.constants.SQLConstantsQuery; import com.flipkart.exceptions.CourseNo...
package OnTap; import java.util.ArrayList; import java.util.Scanner; public class QuanLy { Scanner scanner = new Scanner(System.in); public void menu() { while(true) { System.out.println("---------------------------------"); System.out.println("1.Nhap thong tin hoc sinh "); System.out.println("...
package learnBasics; public class NullExample { public static void main(String[] args) { // Null refers to classes or object not primitive types // int a=null; gives an error String s=null; if(s==null) { System.out.println("s is null"); } // below code will give null pointer exception ...
package com.lenovohit.ssm.payment.model; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import com.fasterxml.jackson.annotation.JsonFormat; import com.lenovohit.core.model.Ba...
package me.deepak.code.ib.arrays; import java.util.ArrayList; import java.util.List; /** * <a href="https://www.interviewbit.com/problems/max-distance/">Click here</a> for problem description * * @author Deepak Soni */ public class BucketingP5MD { /** * List copy to startIndex, stopIndex both inclusive. ...
/* ==================================================================== * * Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved. * * ==================================================================== * */ package com.aof.webapp.action.prm.expense; import java.io.FileInputStream; import java.sql...
//javaEE 개발패턴 중 mvc패턴을 적용한 개발 방법을 가리켜 model2 방식이라 일컫는다. //특히 jsp가 디자인에 사용되고 있으므로, 웹상의 요청을 받고 응답이 가능한 서블릿이 컨트롤러로서 //역할을 수행하게 된다.. package com.webapp1216.board.controller; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servle...
package de.phantomcreations.backend.rest.impl; import com.amihaiemil.docker.Docker; import com.amihaiemil.docker.LocalDocker; import org.springframework.stereotype.Component; import org.springframework.web.context.annotation.ApplicationScope; import java.io.File; @Component @ApplicationScope public class DockerSerciv...
package com.durgesh.schoolassist; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; public class QuizActivity extends AppCompatActivity implements Vie...
package com.designurway.idlidosa.a.model; public class OrderHistoryModel { private String orderId; private String amount; private String orderedDate; private String orderStatus; public OrderHistoryModel(String orderId, String amount, String orderedDate,String orderStatus) { this.orderId = ...
import model.PointAndClick; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.io.IOException; /** * Created b...
/* * 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 chap11.y; import chap11.x.Maruyama; class Ishizaki { void func(Maruyama m){ m.maru1(); // OK! (publicしか呼べません) // m.maru2(); // ERROR! (proteced 呼べない) // m.maru3(); // ERROR! (default 呼べない) // m.maru4(); // ERROR! (private 呼べない) } }
import org.junit.Test; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; public class testFlipAndInvertImageTest { @Test public void testFlipAndInvertImageTest(){ FlipAndInvert...
package com.company; public class Main { public static void main(String[] args) { MyFloat a = new MyFloat(123320002,3); MyFloat b = new MyFloat(232400003,3); a.sub(b); a.sum(b); } }
/* * 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 vectores_ejercicio2; import javax.swing.JOptionPane; /** * * @author GABRIEL */ public class Principal extends javax.swing...
import java.util.LinkedList; // This class has a list, producer (adds items to list // and the consumer (removes items). public class ConsumerProducer { // Create a list shared by producer and consumer // Size of list is 2 LinkedList<Integer> list = new LinkedList<Integer>(); ...
package tree; import java.util.ArrayList; import java.util.List; /** * 95. 不同的二叉搜索树 II * * 给定一个整数 n,生成所有由 1 ... n 为节点所组成的 二叉搜索树 。 */ public class C95 { public static void main(String[] args) { int n = 3; Solution_1 solution = new Solution_1(); List<TreeNode> res = solution.generateTrees(n); ...
package rabbitmq.mq; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework...