text
stringlengths
10
2.72M
package com.example.demo.model; import java.util.UUID; public final class Manager { private final String name; private UUID id; private int salary; public Manager(String name, int salary) { this.name = name; this.salary = salary; } public Manager() { name = ""; ...
package com.example.sourabh.bookmyticket; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support...
package com.icanit.app.fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.Button; import android.widget.EditText; impo...
package structural.composite; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import static org.junit.Assert.*; /** * @author Renat Kaitmazov */ @RunWith(JUnit4.class) public final class DrawingTest { private Drawing drawing; @Before ...
/* * 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 ImpresionDocumentos; import static Formuarios.Inicio.Pane1; import java.awt.Dimension; /** * * @author jluis */ public cla...
/* * MIT License * Copyright (c) 2020 corneliouz bett * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction,including without limitation * the rights to use, copy,modif...
/* * AddUserFragment * * Version 1.0 * * November 25, 2017 * * Copyright (c) 2017 Team 26, CMPUT 301, University of Alberta - All Rights Reserved. * You may use, distribute, or modify this code under terms and conditions of the Code of Student Behavior at University of Alberta. * You can find a copy of the lic...
package org.db.ddbserver; import java.rmi.RemoteException; import java.util.LinkedList; /** * a sql construct tree * * @author Administrator * */ public class SqlTree { private SqlTreeNode root; private LinkedList<SqlTreeNode> leaf; private LinkedList<SqlTreeNode> temp_join; private GDD gdd ...
package DataBase; import java.io.File; /** * * @author Enter-The-Dragon */ public class World extends EditDataBase { private int year; private int month; private int day; public World(int year, int month, int day) { this.year = year; this.month = month; this.day = day; ...
package com.apssouza.mytrade.trading.forex.order; public enum OrderOrigin { STOP_ORDER, EXITS, SIGNAL }
package cs301.carstereo; import android.graphics.Color; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.widget.SeekBar; import and...
public class Base { public void display() { System.out.println("DIsplay from Base"); } public void printff() { System.out.println("printfff from Base"); } } public class Child extends Base { public void display() { System.out.println("DIsplay from Child"); } public void printff() { System.out.pr...
/* * @(#) IDbsqlInfoDAO.java * Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ims.dbsqlinfo.dao; import java.util.List; import com.esum.appframework.dao.IBaseDAO; import com.esum.appframework.exception.ApplicationException; /** * * @author heowon@esumtech.com * @version $...
package testdemo; public class Test { String name; public void test() {} }
/* * PsMainFrame.java * * All Rights Reserved, Copyright(c) FUJITSU FRONTECH LIMITED 2013 */ package com.fujitsu.frontech.palmsecure_smpl; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; impo...
import java.util.Scanner; public class Main22 { /** * 统计出兔子总数。 * * @param monthCount 第几个月 * @return 兔子总数 */ public static int getTotalCount(int monthCount,int num) { int aaa=0; for(int i=num+2;i<=monthCount-1;i++){ aaa++; aaa=aaa+getTotalCount(monthCount...
package com.monkey1024.controller; import com.monkey1024.myexception.MyException; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class ExceptionController { @RequestMapping("...
/** * Interfata State */ package state3; /** * Interfata State * @author Ali */ public interface State { void pull(); }
package com.everis.person.controller; import com.everis.person.entity.Payment; import com.everis.person.entity.Wallet; import com.everis.person.service.WalletService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; impor...
package com.designpattern.dp10adapterpattern.demo; /** * 对待修改类进行修改的接口(适配器接口) */ public interface DC5V { int outputDC5V(); // 具体的对待修改类进行修改的方法 }
package com.example.android.sqlitedemo.Classes; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v4.app.Fragment; import andro...
package examples; public class UsingException { public static void main(String[] args) { try { method1(); }catch(Exception exception) { System.err.printf("%s%n%n", exception.getMessage()); exception.printStackTrace(); StackTraceElement[] traceElement = exception.getStackTrace(); System.out.printf(...
package com.spreadtrum.android.eng; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.preference.CheckBoxPreference; import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.preference.Pr...
package de.hofuniversity.ejbbean.bean.impl; import java.util.ArrayList; import java.util.List; import javax.ejb.Stateless; import de.hofuniversity.ejbbean.bean.GroupOrderListRemote; import de.hofuniversity.ejbbean.data.GroupListSummaryData; import de.hofuniversity.ejbbean.data.impl.DefaultGroupListSummaryDa...
package com.stk123.controller; import com.fasterxml.jackson.annotation.JsonView; import com.stk123.model.RequestResult; import com.stk123.model.core.Rps; import com.stk123.model.core.Stock; import com.stk123.model.core.Cache; import com.stk123.model.json.View; import com.stk123.model.strategy.Strategy; import com.stk1...
public class Person { private String name; private int idNum; public Person () { this.name = "Bob"; this.idNum = 0; } public Person(String name, int idNum) { this.name = name; this.idNum = idNum; } @Override public String toString() { String str = ""; str = "Name = " + name + "\n"; str += "Id ...
package net.sxt.tcp; import java.io.BufferedWriter; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.net.ServerSocket; import java.net.Socket; /** * 必须要先创建服务器,再创建客户端,这一点是与UDP协议的区别! * @author 东东 * */ public class Server { public static void main(String[] ...
package br.com.zolp.estudozolp.bean.filtro; /** * Classe responsável pelas informacoes base de Filtro de Consulta. * * @author mamede * @version 0.0.1-SNAPSHOT */ public class FiltroConsulta { private Long id; private String descricao; public Long getId() { return id; } public void setId(Long id) { t...
package colecaoelementos; import java.util.Scanner; import java.lang.Math; /* * Guilherme Araujo Sette TIA: 41783441 * Luiz Henrique Monteiro de Carvalho TIA: 41719468 * */ public class colecaoElemento { private listaPonto lista1; private Ponto ponto1; public colecaoElemento(listaPonto lista1, Ponto pon...
package com.niall.nmdb; import androidx.recyclerview.widget.DiffUtil; import com.niall.nmdb.entities.Movie; import java.util.List; public class CardStackCallback extends DiffUtil.Callback { private List<Movie> oldMovies, newMovies; public CardStackCallback(List<Movie> oldMovies, List<Movie> newMovies){ ...
/** * */ package com.isg.iloan.controller.functions.dataEntry; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.util.GenericForwardComposer; import org.zkoss.zul.Checkbox; import org.zkoss.zul.Datebox; import org.zkoss.zul.Textbox; /** * @author augusto.marte * */ public class DoaSaveAndSwipeViewCtrl ex...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package hdfcraft; import java.awt.Rectangle; import java.io.IOException; import java.io.ObjectInputStream; import java.util.SortedMap; import static hdfcraft.Constants.*; /** * * @author pepijn */ public class Heig...
package hwl3; import static hwl3.CommonFunctions.getRand; import static hwl3.CommonFunctions.printArray; public class MarksArray { public static void execute() { int maxMark = 0; int arSize = 0; while (arSize <= 0) { System.out.println("Введите расмер массива отметок"); arSize = MainClassl3.gSc.nextInt(...
package com.lantar.testtask.data.network; import com.lantar.testtask.data.network.model.Data; /** * Created by LantarPc on 1/18/2018. */ public interface OnResponse { void onResponse(Data data); }
package comp303.fivehundred.gui; import java.util.Enumeration; import javax.swing.AbstractButton; import javax.swing.BoxLayout; import javax.swing.ButtonGroup; import javax.swing.JCheckBox; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextF...
package Integracion; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import Negocio.Alumno; import Negocio.Asignaturas; import Negocio.Clase; import Negocio.Horario; import Negocio.Pagos; import Negocio.Profesor; public class DAOclase ext...
package com.zjf.myself.codebase.activity.ExerciseLibrary; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.zjf.myself.codebase.R; import com.zjf.myself.codebase.activity.BaseAct; import com.zjf.myself.codebase.model.BuilderUserTestInfo; /** ...
package com.thonline.DO; public class HJRegistrationDO { private String accNO; private String jenisAkaun; private String stsAkaun; private String stsHaji; private String tkhLahir; private String umur; private String dasarUmurMin; private String dasarUmurMax; private String dasarAmaunBeku; private String das...
package com.example.weather_forecast.DataItem; import android.app.Application; import androidx.fragment.app.FragmentActivity; public class Data extends Application { private String location=""; private String nlocation=""; private String Temperature_unit=""; private boolean Notifica...
package Lessons.lesson20; public class Main { public static void main(String[] args) { Music mc = Music.POP; System.out.println(mc); System.out.println(mc.name() + " " + mc.ordinal()); System.out.println("==================="); Music mc2 = Music.valueOf(Music.class,"ROCK"); System.out.pr...
package ru.yandex.qatools.htmlelements; import org.openqa.selenium.WebElement; /** * User: eroshenkoam * Date: 9/3/13, 6:34 PM */ public class Clickable extends Block { public Clickable(WebElement root) { super(root); } @SuppressWarnings("unused") public <T extends Block> T click() { ...
package com.atlassian.bitbucket.jenkins.internal.config; import com.atlassian.bitbucket.jenkins.internal.client.BitbucketClientFactoryProvider; import com.atlassian.bitbucket.jenkins.internal.client.BitbucketProjectSearchClient; import com.atlassian.bitbucket.jenkins.internal.client.BitbucketRepositorySearchClient; im...
package com.ilecreurer.drools.samples.sample2.service; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import com.ilecreurer.drools.samples.sample2.event.PositionEvent; import static org.assertj.core.api.As...
package sources; public class PCMBuffer { String bufferedValue; public String getBufferedValue() { return bufferedValue; } public void setBufferedValue(String value) { this.bufferedValue = value; } }
package com.example.netflix_project.src.main.ViewPager.SignUp; import android.content.Intent; import android.os.Bundle; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import androidx.annotation.Nullable; import androidx.appcompat.app.ActionBar; impo...
package cn.funeralobjects.demo.jpa.entity; import lombok.Data; import lombok.experimental.Accessors; import javax.persistence.*; import java.util.Set; /** * @author FuneralObjects * Create date: 2020/5/18 10:02 AM */ @Entity @Table(name = "t_personnel") @Data @Accessors(chain = true) public class Personnel { ...
package murat.javaPractice.JavaLoop2; import java.util.Scanner; public class JavaLoop2 { Scanner in; int[][] cikti; int[] boycikti = new int[2]; public JavaLoop2() { // TODO Auto-generated constructor stub in = new Scanner(System.in); System.out.println("query sayisini girin."); int count =...
/** * 1. Create a class Medicine to represent a drug manufactured by a pharmaceutical company. Provide a function displayLabel() in this class to print Name and address of the company. Derive Tablet, Syrup and Ointment classes from the Medicine class. Override the displayLabel() function in each of these classes to p...
package com.phicomm.account.requestmanager; public class PoCRequestFactory { public static final int REQUEST_TYPE_INIT_CHECK = 0; public static final int REQUEST_TYPE_CONTACT_UPLOAD = 1; public static final int REQUEST_TYPE_INIT_UPLOAD = 2; public static final int REQUEST_TYPE_INIT_SYNC = 3; ...
package viewText; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Random; import java.util.Scanner; import javafx.scene.paint.Color; import model.*; public class Main { static Random ran = new Random(); static Scanner scan = new Scann...
package com.kodilla.patterns2.observer.homework; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class StudentHomeWorksTestSuite { @Test void testUpdate(){ //Given StudentHomeWorks john = new StudentHomeWorks("John Smith"); StudentHomeWorks max = ...
/* * 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 dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLEx...
package org.techstuff.auth.config; import org.apache.tomcat.jdbc.pool.DataSource; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import javax.validation.constraints.NotNull; im...
package decisao; import javax.swing.JOptionPane; public class DesafioDecisa2 { public static void main(String[] args) { // TODO Auto-generated method stub int idade = Integer.parseInt(JOptionPane.showInputDialog("idade")); if (idade<16) { System.out.println("Voce possui " + idade + " an...
package ru.shikhovtsev.framework.tests; import ru.shikhovtsev.framework.annotations.AfterEach; import ru.shikhovtsev.framework.annotations.Test; public class AfterFailedTest { @Test public void test() { System.out.println("Hello"); } @AfterEach public void afterWithException() { System.out.println...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Test2_143 { public static void main(String[] args) throws Exception { // TODO Auto-generated method stub BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int su = Integer.parseInt(in.readLine()); System.out.print...
package com.yunwa.aggregationmall.service.pdd; import com.github.pagehelper.PageInfo; import com.yunwa.aggregationmall.pojo.pdd.dto.PddGoodsDto; import com.yunwa.aggregationmall.pojo.pdd.po.PddGoods; import com.yunwa.aggregationmall.pojo.pdd.vo.PddGoodsDocumentVO; import java.util.HashMap; import java.util.List; pu...
package com.javaee.ebook1.controller.admin; import com.javaee.ebook1.common.JsonMessage; import com.javaee.ebook1.common.exception.OpException; import com.javaee.ebook1.mybatis.vo.LogVO; import com.javaee.ebook1.service.FileService; import com.javaee.ebook1.service.LogService; import io.swagger.annotations.Api; import...
package edu.uha.miage.core.service; import edu.uha.miage.core.entity.Domaine; import java.util.List; import java.util.Optional; /** * * @author victo */ public interface DomaineService { Domaine save(Domaine entity); void delete(Long id); List<Domaine> findAll(); Optional<Domaine> findById(Long...
package cn.auto.core.webdriver.web; import cn.auto.core.webdriver.DriverRequest; /** * Created by chenmeng on 2019/8/16. */ public class WebDriverRequest implements DriverRequest { private Browser browser; public WebDriverRequest(Browser browser) { this.browser = browser; } public Engine e...
package common.util.web; /** * Generic Server-side response * * @author rrajamiyer * */ public class ServiceResponse { private String message; private int code; public ServiceResponse() {} public ServiceResponse(String message, int code) { super(); this.message = message; this.code = code; } pu...
public class VisitedData { String url; int contentLength; int outlinkSize; String type; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public int getContentLength() { return contentLength; } public void setContentLength(int contentLength) { ...
package at.wea5.geocaching.webserviceproxy; import java.io.ByteArrayInputStream; import javax.faces.context.FacesContext; import javax.faces.event.PhaseId; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.b...
package com.ipincloud.iotbj.srv.domain; import java.io.Serializable; import java.math.BigDecimal; import java.sql.Time; import java.sql.Date; import java.sql.Timestamp; import com.alibaba.fastjson.annotation.JSONField; //(BtnAttr) //generate by redcloud,2020-07-24 19:59:20 public class BtnAttr implements Serializable...
package kr.or.ddit.jobsboard.controller; import java.net.URLEncoder; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import kr.or.ddit.jobsboard.service.IJobsBoardService; ...
package com.example.gopalawasthi.movielovers; import android.content.Intent; import android.graphics.Color; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.Gr...
package structural.adapter.my.demo1; // 用户使用 B 接口 public interface B { void runB(); }
import java.awt.*; import java.awt.event.*; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import javax.swing.*; import javax.swing.filechooser.FileFilter; import javax.swing.filechooser.FileNameExtensionFilter; public class TextEditor extends JFrame { private JTextArea t...
package com.needii.dashboard.service; import com.needii.dashboard.dao.SupplierBalanceHistoryDao; import com.needii.dashboard.model.SupplierBalanceHistory; import com.needii.dashboard.model.form.SearchForm; import com.needii.dashboard.model.form.SupplierBalanceHistoryForm; import com.needii.dashboard.utils.ChartData; i...
// This is the main program for the blackjack game. public class Blackjack { // The main method should: // - Ask the user how many people want to play (up to 3, not including the dealer). // - Create an array of players. // - Create a Blackjack window. // - Play rounds until the players want to quit the game. //...
package com.programapprentice.app; import java.util.HashMap; import java.util.Map; /** * User: program-apprentice * Date: 10/4/15 * Time: 11:37 AM */ class TrieNode { public Integer value; public String key; public Map<String, TrieNode> childrenMap; // Initialize your data structure here. publ...
package BinaryTree; /*Objective is to find half nodes in Binary Tree Full nodes are the nodes where node has 2 children Current tree: * 1 / \ 2 3 / \ / \ 4 5 6 7 / \ 8 9 Solution Half Nodes :5 7 Total number of half nodes : 2 */ import java.util...
import java.io.BufferedWriter; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.stream.Stream; /** * Decoder class to decode the huffman encoded file. * * Created by shivanggupta on 29/03/17. */ public c...
package org.rita.harris.embeddedsystemhomework_termproject.AddNewItem; import android.Manifest; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.annotation.TargetApi; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManag...
package com.mao.springdata.springjpaquery.service; import com.mao.springdata.springjpaquery.bean.Clazz; import com.mao.springdata.springjpaquery.bean.Student; import com.mao.springdata.springjpaquery.repository.ClazzRepository; import com.mao.springdata.springjpaquery.repository.StudentRepository; import org.springfra...
package com.seven.jdbc.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.List; import com.seven.jdbc.ConnectionManager; import com.seven.jdbc.SqlStatements; public class TourDAO extends DataAccessObject<Tour> { public TourDAO(Connection connection) {...
package com.jixin; public class MakeBus extends MakeCar { public void makeHead() { System.out.println("bus: 组装车头"); } public void makeBody() { System.out.println("bus: 组装车身"); } public void makeTail() { System.out.println("bus :组装车尾"); } }
/* * 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.ifeng.recom.mixrecall.common.service; import com.ifeng.recom.mixrecall.common.tool.ServiceLogUtil; import com.ifeng.recom.mixrecall.common.util.GsonUtil; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.http.NameValuePair; import o...
package cartas; import efectos.EfectoFisura; public class Fisura extends CartaMagica { public Fisura() { super(); this.efecto = new EfectoFisura(this); this.nombre = "Fisura"; this.colocarImagenEnCartaDesdeArchivoDeRuta("resources/images/carta_Fisura.png"); } }
/* * 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 com.tfar.dao; import com.tfar.entity.Androgene; import java.util.List; /** * * @author hatem */ public interface Androgene...
package br.com.herculano.urlshortener.api.respository.jpa_respository; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import br.com.herculano.urlshortener.api.entity.EncurtadoURL; import br.com.herculano.urlshortener.api....
package fr.skytasul.quests.gui.mobs; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.UUID; import java.util.function.Consumer; import java.util.function.Function; import org.bukkit.DyeColor; import org.bukkit.event.inventory.ClickType; import org.bukkit.invent...
package com.daexsys.automata.world; public class AccessOutOfWorldException extends Exception { }
package cn.hellohao.pojo; public class EmailConfig { private Integer id ; private String emails; private String emailkey; private String emailurl; private String port; private String emailname; private Integer using ; public EmailConfig() { } public EmailConfig(Integer id, Str...
package resources.todo; import java.util.List; import java.util.Observable; import javax.ejb.ConcurrencyManagement; import javax.ejb.ConcurrencyManagementType; import javax.ejb.Lock; import javax.ejb.LockType; import javax.ejb.Singleton; import javax.interceptor.AroundInvoke; import javax.interceptor.InvocationContex...
package com.example.cropad; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.LinearLayout; import android.widget.ListAdapter; ...
package com.elo7.umatic; import java.net.URL; import org.junit.rules.MethodRule; import org.junit.runners.model.FrameworkMethod; import org.junit.runners.model.Statement; import com.elo7.umatic.UnknownTracks.UnknownTrack; public class UMaticWebServer implements MethodRule { private final UMatic uMatic; public U...
package com.aliam3.polyvilleactive; import com.aliam3.polyvilleactive.dsl.Interpreter; import com.aliam3.polyvilleactive.exception.LexicalException; import com.aliam3.polyvilleactive.exception.SemanticException; import com.aliam3.polyvilleactive.exception.SyntaxException; import org.junit.jupiter.api.Test; import jav...
package com.innovattic.logeverywhere; import android.content.Context; import android.os.Handler; import android.os.Looper; import android.widget.Toast; /** * Created by Jelle on 18-7-2015. */ public class Util { public static void showToast(final Context context, final String line) { new Handler(Looper.getMainL...
package model; import java.io.BufferedReader; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; public class Billetes { private Billete[] listaBilletes; private Billete[] listaBilletes_bkp; public Billetes() { listaBilletes = new Billete[5]; try (...
package se.kth.kthfsdashboard.util; import java.text.DecimalFormat; import java.text.ParseException; /** * * @author Hamidreza Afzali <afzali@kth.se> */ public class Parser { public Double parseDouble(String d) throws ParseException { DecimalFormat format = new DecimalFormat("#.##"); return fo...
package xyz.noark.core.util; import xyz.noark.benchmark.Benchmark; import java.util.StringJoiner; import java.util.stream.Collectors; import java.util.stream.Stream; /** * 字符串相关测试数据 * * @author 小流氓[176543888@qq.com] * @since 3.4 */ public class StringBenchmark { private static final Benchmark benchmark = n...
package me.ewriter.lambdasample; /** * Created by Zubin on 2016/8/19. */ public interface Factory<T extends Animal> { T create(String name, int age); }
//Benjamin Stanelle //1001534907 //3/312020 //Java Version: jdk-13.0.2 OS: windows 10 pro 64x import java.io.File; import java.io.IOException; public class 1001534907_PA2 { public static void main(String args[]) { File currentDir= new File("."); //The current directory long tot...
package cs190i.cs.ucsb.edu.jingyangeofencing; import android.Manifest; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Color; import android.location.Criteria; import android.location.Location; import and...
import java.util.ArrayList; import java.util.Random; public class Individuos implements Comparable<Individuos>{ public double x; public double y; public double resp; public Individuos(double x, double y, double resp) { this.x = x; this.y = y; this.resp = resp; } public ...
package conf; import org.apache.commons.dbcp2.BasicDataSource; import java.sql.Connection; import java.sql.SQLException; public class ConnectionProvider { static final String DB_URL = "jdbc:postgresql://localhost:5432/iasa-java"; static final String USER = "postgres"; static final String PASS = "123"; /...
package com.mobdeve.ramos.isa; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class Profile extends Ap...
<<<<<<< HEAD ======= >>>>>>> rebuilt-version package com.example.sieunhan.github_client.api; import com.squareup.moshi.FromJson; import com.squareup.moshi.JsonDataException; import com.squareup.moshi.ToJson; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java....