text
stringlengths
10
2.72M
package sw.server.models; /** * Message model * * @author Lars Kristian * */ public class Message { private final long id; private final long rfid; private final int messageType; private final long timeSent; private final int pulse; private final double temperature; private final double la...
package com.apprisingsoftware.xmasrogue.io; import asciiPanel.AsciiPanel; import com.apprisingsoftware.xmasrogue.ChristmasRogue; import com.apprisingsoftware.xmasrogue.util.Coord; import java.awt.Color; import java.awt.event.KeyEvent; import java.util.Arrays; import java.util.Collection; import java.util.Collections; ...
package board; public class BeanPaging { // 카사딘 // 빼액 private int startPage; private int endPage; private int lastPage; private int currentPage; public int getStartPage() { return startPage; } public void setStartPage(int startPage) { this.startPage = startPage; } public int getEndPage() ...
package cn.com.ykse.santa.web.form; /** * Created by youyi on 2016/6/1. */ public class IssueSearchRequest { private Long pageNo; private Long pageSize; public Long getPageNo() { return pageNo; } public void setPageNo(Long pageNo) { this.pageNo = pageNo; } public Long g...
package clueGame; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Scanner; import java.util.Set; public class Board { public static final int MAX_BOARD_SIZE = 50; private int numRows; p...
package me.minijaws.Ponify; import java.util.HashMap; import java.util.logging.Logger; import org.bukkit.entity.Player; import org.bukkit.event.Event; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; public class Ponify extends JavaPlugin{ private final PonifyPlayerLi...
package exer; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.Socket; public class TCPTest { public static void main(String[] args) throws IOException { ...
package com.supconit.kqfx.web.analysis.controllers; import hc.base.domains.AjaxMessage; import hc.business.dic.entities.Data; import hc.business.dic.services.DataDictionaryService; import hc.mvc.annotations.FormBean; import hc.safety.manager.SafetyManager; import java.io.IOException; import java.io.OutputStream; impo...
/** * ファイル名 : TVsmSupplierMngNoMapper.java * 作成者 : hung.pd * 作成日時 : 2018/5/31 * Copyright © 2017-2018 TAU Corporation. All Rights Reserved. */ package jp.co.tau.web7.admin.supplier.mappers; import jp.co.tau.web7.admin.supplier.dto.InfoWinBidDTO; import jp.co.tau.web7.admin.supplier.dto.WinningBidDetailDTO; impo...
/* * Copyright 2019 iserge. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
package ca.mohawk.jdw.shifty.testcompany; /* I, Josh Maione, 000320309 certify that this material is my original work. No other person's work has been used without due acknowledgement. I have not made my work available to anyone else. Module: test-company Developed By: Josh Maione (000320309) */ impo...
package tasks; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Copy { public void copyFile(String sourceFilePath,String destinationFilePath) throws IOException{ //File source = new File(so...
package com.bbb.composite.product.details.services.client; import java.net.URI; import java.time.Instant; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.In...
package com.zzlz13.zmusic; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.ContextWrapper; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import android.os.RemoteException; import android.prov...
package com.tencent.mm.plugin.fts.b; import com.tencent.mm.plugin.fts.b.a.u; import com.tencent.mm.sdk.platformtools.al.a; class a$8 implements a { final /* synthetic */ a jtJ; a$8(a aVar) { this.jtJ = aVar; } public final boolean vD() { a.e(this.jtJ).a(131093, new u(this.jtJ, (byte)...
package com.foosbot.service.handlers; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(value = { "valid" }) public interface Validates { boolean isValid(); }
package com.expense.tracker; import com.opencsv.bean.AbstractBeanField; import com.opencsv.exceptions.CsvConstraintViolationException; import com.opencsv.exceptions.CsvDataTypeMismatchException; public class DoubleConverter extends AbstractBeanField<Double> { @Override protected Double convert(String value) throws...
import java.util.Scanner; public class Main { public static void main(String [] args) { Scanner sc = new Scanner(System.in); // initiate scanner class, name it sc int numbers, sum = 0; // for summing numbers System.out.println("How many numbers do you want to sum? (Enter 5 for this proje...
/** * Copyright &copy; 2012-2014 <a href="http://www.iwantclick.com">iWantClick</a>iwc.shop All rights reserved. */ package com.beiyelin.account.entity; import com.beiyelin.commonsql.jpa.BaseDomainEntity; import com.beiyelin.commonsql.jpa.MasterDataEntity; import lombok.*; import javax.persistence.Column; import ja...
package rotation; public class rotation{ public static final int N = 5; int[][] matrix = new int[N][N]; public rotation (int[][] m){ for(int i = 0;i<N;i++){ for(int j = 0;j<N;j++){ matrix[i][j] = m[i][j]; } } } public int[][] rotation(){ int[] temp = new int[N]; int layer = ...
import java.util.*; class while2_Test { public static void main(String ar[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int n2 = sc.nextInt(); int i = 0; while (n<=n2) { if(n%5==0) { i++; } n++; } System.out.println("5의 배수의 개수 : " +i); } }
package edu.iss.caps.service; import java.util.ArrayList; import edu.iss.caps.exception.FailedAuthentication; import edu.iss.caps.model.User; public interface UserService { User findUser(String userId); ArrayList<User> findAllUsers(); User authenticate(String userId, String password) throws ...
package duke.exception; public class DukeException extends Exception { DukeException() { } }
package client.views.mainComponents; import javax.swing.JLabel; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; public class BottomRightPane { private JScrollPane fieldHelpScrollPane; private JTabbedPane tabbedPane; public BottomRightPane() { fieldHelpScrollPane = new JScrollPane(); tabbedP...
package com.cxjd.nvwabao.bean; import org.litepal.crud.DataSupport; import java.io.Serializable; /** * 项目名: NvWaBao2 * 包名: com.cxjd.nvwabao.bean * 文件名: PingLunPeople * 创建者: LC * 创建时间: 2018/4/1 21:11 * 描述: TODO */ public class PingLunPeople extends DataSupport implements Serializable { private String ...
package com.java.smart_garage.contracts.repoContracts; import com.java.smart_garage.models.City; import java.util.List; public interface CityRepository { List<City> getAllCityIndex(); }
package designpattern.singleton; /** * Created by john(Zhewei) on 2016/12/14. */ public class InnerSingleton { private InnerSingleton(){ } private static class InstanceHolder { private static InnerSingleton instance = new InnerSingleton(); } //饿汉的变形,让其实现了延迟加载,并能保证多线程下单例 public sta...
package quartz; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.quartz.JobListener; /** * @author malf * @description TODO * @project how2jStudy * @since 2020/11/7 */ public class MailJobListener implements JobListener { @Override public String getName() { return "l...
package com.argentinatecno.checkmanager.main.fragment_reports.di; import com.argentinatecno.checkmanager.CheckManagerAppModule; import com.argentinatecno.checkmanager.lib.di.LibsModule; import com.argentinatecno.checkmanager.main.fragment_reports.ui.FragmentReport; import javax.inject.Singleton; import dagger.Compone...
package com.lec.ex04; public interface I1 { public int i1 =1; //final static이기때문에 '상수' public void m1(); }
/* * 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 Entities; /** * * @author HP */ public class Session { private static int id = 0; private static String username; ...
package com.tencent.mm.plugin.backup.bakoldlogic.bakoldpcmodel; import com.tencent.mm.plugin.backup.bakoldlogic.bakoldpcmodel.e.b; public interface e$e extends b { void atd(); }
/* 7. Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 */ package leetcode_math; public class Question_7 { public int reverse(int x) { ...
package practice; import java.util.Scanner; public class SalesTax { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.println("enter the price"); int price=input.nextInt(); System.out.println("you entered the price "+price); float tax=10*price/100; ...
package com.google.android.exoplayer2.a; import android.annotation.TargetApi; import android.media.AudioTrack; import android.media.MediaCodec; import android.media.MediaCrypto; import android.media.MediaFormat; import android.os.Handler; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer...
public class Person { String name; String nationality; int age; public Person(String name, String nationality, int age) { this.name = name; this.nationality = nationality; this.age = age; } }
package pbure; import java.util.Scanner; public class Hometask3 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in) ; System.out.println("Please input a year"); int year; year = sc.nextInt(); if (year%4 == 0 && year%100>0 || year%400 ...
package robotsimulator; public class Bullet { private double x; private double y; private double heading; private double velocity; private double damage; private double radius; private double range; private int counter; public Bullet(double x, double y, double heading, double velocity, double dama...
package com.example.ahmed.octopusmart.Dialog.GenricDialogFragment; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.example.ahmed.octopusmart.R; impor...
/* Recursive Solution to find the First Occurence of an element in an array using binary search Time Complexity: O(log N); Space Complexity: O(log N); */ package Searching.FirstOccurence; public class FirstOccurenceBS { public static void main(String[] args) { int[] arr = { 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
package com.travix.toughjet.controller; import static org.mockito.BDDMockito.given; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import java.time.Instant; import java.time.LocalDate; impor...
package com.baixiaowen.javaconcurrencyprogramming.threadcoreknowledge线程8大核心基础知识.threadsafetyissues线程安全问题.手写观察者模式; public class Main { public static void main(String[] args) { // 初始化自定义监听器 MyEventListener myEventListener = new MyEventListener(event -> { System.out.println("我是真正的监听器方法");...
public class Test { public static class Animal { // khai báo thuộc tính public String name; public String type; public int age; // Khởi tạo contructor ko tham số public Animal() { } // Khoi tao contructor co tham so public Anim...
package com.tencent.mm.plugin.game.ui; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import com.tencent.mm.plugin.game.e.c; import com.tencent.mm.plugin.game.f.i; import com.tencent.mm.plugin.game.model.an; class GameLibraryUI$6 implements OnClickListener { fin...
package com.duanxr.yith.easy; /** * @author 段然 2021/3/8 */ public class NumberComplement { /** * Given a positive integer num, output its complement number. The complement strategy is to flip the bits of its binary representation. * *   * * Example 1: * * Input: num = 5 * Output: 2 * Ex...
package pdx.module.janitorial; public class CheckoutSchedule { public static String[] columns = {"Floor", "Room", "Time", "Urgent?"}; public static String[][] placeholder = { {"1", "109", "10:00 AM", "No"}, {"2", "206", "10:00 AM", "Yes"}, {"2", "108", "10:00 AM", "No"}, {"4", "401", "10:00 AM", "No"}, ...
package fr.eseo.poo.projet.artiste.modele; import java.text.DecimalFormat; public class Coordonnees { public static final double ABSCISSE_PAR_DEFAUT = 0, ORDONNEE_PAR_DEFAUT = 0; private double abscisse, ordonnee; public Coordonnees() { this(ABSCISSE_PAR_DEFAUT, ORDONNEE_PAR_DEFAUT); } public Coordonnees...
package controlador; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import javax.persistence.Query; import org.activiti.engine.delega...
package com.simpson.kisen.unofficial.model.vo; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; @Data @ToString(callSuper = true) @NoArgsConstructor public class UnofficialPdImgExt2 extends UnofficialDeposit { private List<DepositpdImg> depositpdImgList; }
package com.tencent.mm.pluginsdk.g.a.c; import com.tencent.mm.sdk.platformtools.bi; import java.util.List; class i$3 implements Runnable { final /* synthetic */ m fht; final /* synthetic */ String qBR; final /* synthetic */ List qDb; final /* synthetic */ i qDc; i$3(i iVar, List list, m mVar, Str...
package com.tiger.exception; public enum ResultErrorCodeEnum { PARAM_ERROR(1001,"参数错误"), SERIALIZATIO_ERROR(1002,"序列化异常"), FILE_TOO_MAX_ERROR(1003,"文件太大"), SYSTEM_BUSY(1004,"系统繁忙,请稍后再试"), REQUEST_METHOD(1005,"请求类型错误"), RE_LOGIN(401,"请重新登录"); private int code; private String mess...
package com.shopping.Servlet; import java.io.IOException; import java.io.PrintWriter; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.H...
package com.mxfit.mentix.menu3; import android.Manifest; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.annotation.SuppressLint; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; ...
package net.minecraft.client.renderer.texture; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import java.util.Arrays; import java.util.List; import java.util.Set; import net.minecraft.client.renderer.StitcherException; import net.minecraft.util.math.MathHelper; import optifine.MathUtil...
package com.huanuo.npo.service; import com.huanuo.npo.Dao.SiteInfoDao; import com.huanuo.npo.pojo.SiteInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.print.DocFlavor; import java.io.*; import java.lang.reflect.Field; import jav...
package gdut.ff.service; import gdut.ff.domain.Role; import gdut.ff.domain.User; import gdut.ff.mapper.RoleMapper; import gdut.ff.mapper.UserMapper; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.secu...
package config; import common.instamsg.driver.ModulesProviderInterface; public class ModulesProviderFactory { public static ModulesProviderInterface getModulesProvider(String device){ if(device.equals("stub")){ return new device.stub.instamsg.ModulesProvider(); } else if(device.equals("linux")){ re...
package com.vaadin.cdi.internal; import com.vaadin.cdi.viewcontextstrategy.ViewContextStrategy; import com.vaadin.cdi.viewcontextstrategy.ViewContextStrategyQualifier; import com.vaadin.cdi.viewcontextstrategy.ViewContextByNameAndParameters; import com.vaadin.navigator.View; import org.apache.deltaspike.core.api.liter...
package model; @SuppressWarnings("serial") public class MyException extends Exception { public MyException(String s) { System.out.println("MyException = " + s); } }
package com.tcs.ilp.t210.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import com.tcs.ilp.t210.model.BillAdminBean; import com.tcs.ilp.t210.model.BillBean; import com.tcs.il...
package com.mysql.cj.protocol.x; import com.google.protobuf.GeneratedMessageV3; import com.mysql.cj.exceptions.WrongArgumentException; import com.mysql.cj.protocol.Message; import com.mysql.cj.protocol.MessageListener; import com.mysql.cj.protocol.ProtocolEntity; import com.mysql.cj.protocol.ProtocolEntityFactory; imp...
package edu.uci.ics.sdcl.firefly.report.predictive; import java.io.BufferedWriter; import java.io.FileWriter; import java.util.ArrayList; import java.util.HashMap; import java.util.Vector; import edu.uci.ics.sdcl.firefly.Answer; import edu.uci.ics.sdcl.firefly.Microtask; import edu.uci.ics.sdcl.firefly.report.descrip...
/* * 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 menuItem; import input.MouseInput; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.image.BufferedImage; i...
package test.forkjoin; import java.util.concurrent.ExecutionException; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.Future; import java.util.concurrent.RecursiveTask; /** * Created by maguoqiang on 16/9/22. * * fork/join 见java并发编程的艺术 第六章 Fork/join框架。 * 通过fork/join框架做一个简单的需求。计算1+2+3+4的结果 ...
package cn.chinaunicom.monitor.beans; /** * Created by yfYang on 2017/10/27. */ public class HostIpEntity { public String ip; public String desc; public String pic; }
package com.rekoe.application.policy; import java.net.InetSocketAddress; import java.util.concurrent.Executors; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.ChannelFuture; import org.jboss.ne...
package com.msir.service; import com.msir.pojo.LocationDO; import java.util.List; public interface MTimeService { /** * 以下从时光网上面获取的资源信息 */ int saveLocation(); int saveLocation(LocationDO locationDO); int updateLocation(LocationDO locationDO); int updateLocation(); LocationDO get...
package com.brd.brdtools.model.rest; public class RequestParameter { private String beanName; private String sqlQuery; public String getBeanName() { return beanName; } public void setBeanName(String beanName) { this.beanName = beanName; } public String getSqlQuery() { ...
package qaInterviewprep; import java.util.ArrayList; import java.util.Arrays; public class reverseStringManual { public static String reverseString(String str) { String newString=""; for (int i= str.length()-1 ; i>=0 ; i--) { newString =newString +str.charAt(i); } retu...
import org.jblas.DoubleMatrix; /** * Created by igoryan on 30.10.15. */ public interface SolverSLAU { final double eps = Math.pow(10, -6); public DoubleMatrix getX(); public void solve(); public int getN(); }
package com.note.model; import java.io.Serializable; /** * Created by nguyenlinh on 21/02/2017. */ public class Notes implements Serializable { private int ID; private String Title; private String Content; private String CreatedDate; private String Alarm; private String Background; // T...
package MasterClass.Characters; import MasterClass.Models.Character; import MasterClass.Utils.Messages; import MasterClass.Utils.TimelineFailedException; import java.util.logging.*; public class Gublin extends Character{ private Messages messageManager = new Messages(); private Logger logger = Logger.getLogge...
package models; public enum VehicleType { CAR, MOTORBIKE; @Override public String toString() { return super.toString(); } }
package com.tencent.mm.plugin.sns.model; import com.tencent.mm.bt.h.d; class af$12 implements d { af$12() { } public final String[] xb() { return com.tencent.mm.plugin.sns.storage.d.diD; } }
package Lab05.Zad5; public class Main { public static void main(String[] args) { Decorator printer = new Start(0,0,50); Decorator line1 = new Draw(printer, 10, 10); Decorator line2 = new Draw(line1, 20, 20); Decorator line3 = new Draw(line2, 30, 30); Decorator line4 = new Dr...
package ru.moneydeal.app.pages; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fra...
package byow.lab12; /** * Draws a world consisting of hexagonal regions. */ public class HexWorld { }
package com.example.dimensionquery; import java.net.URI; import java.net.URISyntaxException; import org.junit.Test; public class WebSocketTest { @Test public void test() { try { // open websocket final WebsocketClientEndpoint clientEndPoint = new WebsocketClientEndpoint( new URI("ws:/...
package com.tencent.mm.ak.a.a; import android.content.Context; import com.tencent.mm.ak.a.b.c; import com.tencent.mm.ak.a.b.d; import com.tencent.mm.ak.a.b.g; import com.tencent.mm.ak.a.b.i; import com.tencent.mm.ak.a.c.a; import com.tencent.mm.ak.a.c.b; import com.tencent.mm.ak.a.c.e; import com.tencent.mm.ak.a.c.f; ...
package com.jim.multipos.ui.reports.vendor; import android.support.v4.app.Fragment; import com.jim.multipos.config.scope.PerFragment; import dagger.Binds; import dagger.Module; /** * Created by Sirojiddin on 20.01.2018. */ @Module( includes = VendorReportPresenterModule.class ) public abstract class Vendo...
package com.appc.report.model; import com.appc.framework.mybatis.annotation.Query; import com.appc.framework.mybatis.annotation.Where; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.Entity; impor...
package sample; public class User { private int Id; private String Quantity; private String Login; private String Password; public User() { } public int getId() { return Id; } public void setId(Integer id) { Id = id; } public String getQuantity() { ...
package com.septacore.ripple.preprocess.algos; import com.septacore.ripple.preprocess.apps.PPAppBase; import com.septacore.ripple.preprocess.types.PPType; import com.septacore.ripple.preprocess.types.PPTypeString; import java.util.Map; import java.util.HashMap; import java.util.LinkedList; public class Time { ...
package edu.hust.se.seckill.controller; import edu.hust.se.seckill.domain.MiaoshaOrder; import edu.hust.se.seckill.domain.MiaoshaUser; import edu.hust.se.seckill.domain.OrderInfo; import edu.hust.se.seckill.rabbitmq.MQConfig; import edu.hust.se.seckill.rabbitmq.MQSender; import edu.hust.se.seckill.rabbitmq.MiaoshaMess...
package com.yongin.blog.blogbackend.service; import com.yongin.blog.blogbackend.dao.BoardDao; import com.yongin.blog.blogbackend.repository.BoardRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.stereotyp...
package com.training.day21.maps; import java.util.HashMap; import java.util.LinkedHashMap; public class SecondHashMap { public static void main(String[] args) { Student s3= new Student(2,"Uttej"); Student s4= new Student(3,"Arshith"); Student s5= new Student(1,"Kalyan"); Student s6= new Student(4,"Varun"...
package ru.mmk.okpposad.client; import java.util.Arrays; import java.util.Date; import java.util.HashSet; import java.util.Set; import ru.mmk.okpposad.client.datasource.GridDataSource; import com.google.gwt.i18n.client.DateTimeFormat; import com.smartgwt.client.data.Criteria; import com.smartgwt.client.data.DSCallba...
import org.junit.*; import org.cse.springtute.*; import java.lang.Exception; public class TestRep { SimpleStudentRepository repo; @Before public void setUp(){ repo = new SimpleStudentRepository(); } @After public void tearDown(){ } @Test public void testSaveStudent() thr...
package cn.canlnac.onlinecourse.data.repository; import java.io.File; import java.util.List; import javax.inject.Inject; import javax.inject.Singleton; import cn.canlnac.onlinecourse.data.entity.mapper.UploadEntityDataMapper; import cn.canlnac.onlinecourse.data.repository.datasource.UploadDataStore; import cn.canlna...
public class Principal{ public static void main (String[] args){ Acc c = new Acc(1, 6000); Acc c2 = new Acc(2, 5000); Acc c3 = new Acc(3, 4000); System.out.println(Acc.numContas); } }
package br.com.functional.programming.suppliers; import br.com.functional.programming.dto.Person; import org.junit.Assert; import org.junit.Test; import java.util.List; public class SupplierInterfaceTest { @Test public void isPersonListSupplierSuccess() { List<Person> list = SupplierInterface.adhoc...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package classinfo; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; /** * * @author Nathan */ public class ClassFile implements Access { int magic, major_version, mino...
class Task2 { int getThreeNumberCount(int[] numbers) //// counting amount of 3's { int cntr = 0; for (int number : numbers) { while (number > 0) { if (number % 10 == 3) { cntr++; ...
package controllers; import play.mvc.Controller; import play.mvc.Result; import play.mvc.Security; import util.HTTPTool; import util.LocalStoreTool; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; /** * Created by shanmao on 15-12-21. */ public class AssetsControllers extends Controller {...
package com.example.demo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; @RestController public class Controller { ...
package com.IRCTradingDataGenerator.tradingDataGenerator.Controllers; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class TestController { @GetMapping("/") public String root() { //TradeField Loan_Amount = new TradeFie...
package io.github.amitg87.semaphore.problems.readerWriter.v1; import io.github.amitg87.semaphore.lib.LightSwitch; import io.github.amitg87.semaphore.lib.Mutex; import io.github.amitg87.semaphore.lib.Semaphore; import io.github.amitg87.semaphore.util.Runner; import io.github.amitg87.semaphore.util.ThreadUtil; /** * M...
package com.nks.whatsapp; public class Country { }
package com.test01; import java.awt.*; import javax.swing.JFrame; @SuppressWarnings("serial") public class MTest04 extends JFrame { Panel p1; TextField t1, t2, t3; Label l1, l2, l3; List b1; public MTest04() { super(); p1 = new Panel(); l1 = new Label("A"); l2 = new Label("B"); ...
package com.paleimitations.schoolsofmagic.client.screen; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.systems.RenderSystem; import com.paleimitations.schoolsofmagic.References; import com.paleimitations.schoolsofmagic.common.containers.MortarContainer; import com.paleimitations.schoolsofmagi...