text
stringlengths
10
2.72M
package android.support.v4.app; import android.app.NotificationManager; import android.content.ComponentName; import android.content.Context; import android.os.Build.VERSION; import android.os.IBinder; import android.provider.Settings.Secure; import java.util.HashSet; import java.util.Set; public final class ag { ...
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2016.05.11 u...
/* * Copyright 2016 RedRoma, Inc. * * 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 ...
package com.tencent.mm.plugin.appbrand.ui; import android.support.v7.widget.RecyclerView.t; import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.widget.ImageView; import android.widget.TextView; import com.tencent.mm.plugin.appbrand.appusage.k...
package net; import state.ClientControllable; import state.Controllable; public abstract class ClientBase implements Controllable, RemoteControllable { private ClientControllable clientControllable; public void registerClientControllable(ClientControllable con) { clientControllable = con; } // pass th...
/** * */ package com.goodhealth.design.demo.BuilderPattern; /** * @author 24663 * @date 2018年10月21日 * @Description */ public class Client { public static void main(String[] args) { God di=new God(); try{ Chinese c1=di.getBadChinese(); c1.toString(); Chinese c2=di.getKindChinese(); c2.toStrin...
package com.formation.objet; public class User { private static int role; private static String login; private static User user; private static User User(int role, String login) { setRole(role); setLogin(login); return user; } public static User getUser(int role, String login){ if(user==null...
package com.trainex.fragment.inmain; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; im...
package dev.schoenberg.kicker_stats.rest.exceptionMapper; import static javax.ws.rs.core.Response.Status.*; import dev.schoenberg.kicker_stats.core.exception.NotFoundException; public class NotFoundExceptionWrapper extends GenericExceptionWrapper<NotFoundException> { public NotFoundExceptionWrapper() { super(NOT_...
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final import java.util.Date; /** * IvMonthcheckheaderId generated by hbm2java */ public class IvMonthcheckheaderId implements java.io.Serializable { private Long monthchecktype; private String warehouseid; private String invmonthc...
package uiLayer.uiUtilities; import java.awt.BorderLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; public class UnderConstructionCard extends JPanel { /** * Create the panel. */ public UnderConstructionCard() { setLayout(new BorderLayout(0, 0));...
package com.malsolo.mercury.spring.events.repository; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.Date; import java.util.List; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFac...
package com.example.l03.projektpaszport; import java.io.Serializable; /** * Created by Bartek on 2016-10-24. */ public class Preferencja implements Serializable{ private Integer id_preferencja; private Boolean lubie; private String zdjecie; private String opis; Preferencja( Intege...
package Leetcode; import java.util.LinkedList; /** * 给定链表 1->2->3->4, 重新排列为 1->4->2->3. * @author AD * */ public class ReorderList { public void reorderList(ListNode head) { if (head == null) { return; } //1、寻找中间节点 ListNode slow = head; ListNode fast = head; ...
package util; import com.commercetools.pspadapter.payone.domain.ctp.CustomTypeBuilder; import com.commercetools.pspadapter.payone.domain.payone.PayonePostServiceImpl; import com.commercetools.pspadapter.payone.mapping.CustomFieldKeys; import com.commercetools.pspadapter.payone.util.PayoneHash; import com.neovisionarie...
package com.cts.projectManagement.model; import java.time.LocalDate; public class TaskDetail { private Long taskId; private Long parentId; private Long userId; private String task; private Long projectId; private int priority; private String status; private LocalDate startDate; private LocalDate endDate; ...
package services; public interface CaculationService { double calculate(double num1,double num2 ,String temp); }
import java.sql.ResultSet; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; public class StockSelector { static Integer year = null; static Date latestDBDate = null; static List<OptionData> list = new ArrayList<>(); static Str...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the ter...
package pl.coderslab.Controller.Solution; import pl.coderslab.Dao.ExerciseDao; import pl.coderslab.Dao.SolutionDao; import pl.coderslab.Entity.Exercise; import pl.coderslab.Entity.Solution; import pl.coderslab.Entity.User; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax...
package de.julian.main; public class HomeWork { private String task; private boolean isDone = false; public boolean isDone() { return isDone; } public void setDone(boolean done) { isDone = done; } public String getTask() { return task; } public void setT...
package ru.otus.adapters.function; import org.junit.Assert; import org.junit.Test; import ru.otus.models.GroupEntity; import java.util.function.Function; public class CreateGroupEntityTest { @Test(expected = IndexOutOfBoundsException.class) public void exeption() { Function<String[], GroupEntity>...
package org.research.zookeeper; import lombok.extern.slf4j.Slf4j; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; import org.apache.zookeeper.data.ACL; import java...
package com.tree.heap; import java.util.Arrays; import java.util.Random; public class Max10FromFileWithBillons { public static void main(String[] args) { Max10FromFileWithBillons app = new Max10FromFileWithBillons(); int[] arr = app.readNextFromFile(1000); HeapTree tree = HeapTree.buildHea...
package com.thewalletlist.addressbook; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.widget.ListView; import android.view.View; import android.view.ViewGroup; import android.view.LayoutInflater; import android.content.Context; import android.content.res.Resource...
package edu.kit.pse.osip.core.opcua.server; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.io.Files; import java.util.EnumSet; import java.util.concurrent.ExecutionException; import org.eclipse.milo.opcua.sdk.server.OpcUaServer; import org.eclipse.milo....
package com.t.s.model.dto; public class MoimUserDto { //테이블 명 MOIMUSER private int moimno; private String userid; private int groupno; private int moimq1; private int moimq2; private int moimq3; private int moimq4; private int moimq5; private String moimq6; public MoimUserDto() { ...
/* * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
package headfirst.com.projectapplication; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.TaskStackBuilder; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory;...
package permute; import triangle.Triangle; import java.util.ArrayList; import java.util.List; /** This program tests the permutation generator. */ public class PermutationTester { public static void main(String[] args) { ArrayList<String> list = new ArrayList<String>(); list.add("e"); ...
package com.nibado.fastcollections.matcher; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import java.util.Collection; public class MatcherNew { private final IntOpenHashSet category; private final State state; private final int group; public MatcherNew(Collection<Integer> category, State state,...
package com.itheima.core; import entity.PageResult; public interface SpecificationCheckService { PageResult search(Integer page, Integer rows); void updateStatus(Long[] ids, String status); }
package botenanna.display; import botenanna.game.Situation; import botenanna.prediction.Rigidbody; import javafx.scene.paint.Color; /** A display for the ball info. */ public class BallInfoDisplay extends InfoDisplay { private static final Color HEADER_COLOR = new Color(0.7, 0.7, 0.7, 1); public BallInfoDis...
package writers; import dataStructures.BlockInfo; import dataStructures.Lexicon; import dataStructures.Posting; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; import java.util.Collections; ...
package datastructures; import datastructures.concrete.DoubleLinkedList; import datastructures.interfaces.IList; import misc.BaseTest; import org.junit.FixMethodOrder; import org.junit.runners.MethodSorters; import static org.junit.Assert.assertTrue; /** * This file provides some helper methods for Doubl...
package com.packtpub.javaee8.validation; import javax.annotation.PostConstruct; import javax.enterprise.context.ApplicationScoped; import javax.validation.Valid; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; import javax.ws.rs.*; import javax.ws.rs.core.Context; im...
public class Overriding { //this happens when the object B show() overrides the object A show() public static void main(String[] args) { B obj = new B(); obj.show(); } }
package com.example.android.stablefordscores; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { int scoreGolferA = 0; ...
package com.gxuwz.attend.entity; /** * Sheet entity. @author MyEclipse Persistence Tools */ public class Sheet implements java.io.Serializable { // Fields private Integer id; private String teacherId; private String courseId; private String studentId; //add private Student student; // Constructors /** d...
package com.example.michael.animaxlist; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import java.util.Objects; /** * Created by Michael on 2015/9/22. */ public class Li...
package com.cakcaraka.android.sqlitemanager.demo; import android.database.sqlite.SQLiteOpenHelper; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.cakcaraka.android.sqlitemanager.SQLiteManagerActivity; public class SQLiteActivity extends SQLiteManagerActivity { @Override ...
/* * Copyright (C) 2015 Miquel Sas * * This program 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 3 of the License, or (at your option) any later * version. * * This program is dis...
/* * 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 TabularFunctions; import org.w3c.dom.Element; /** * * @author Will_and_Sara */ public interface IWriteToXML { abstract...
package tp.tbert12.cola; import org.junit.Test; import static org.junit.Assert.assertEquals; public class NodeTest { @Test(expected = AssertionError.class) public void crearNodoNulo() { NullNode elNodo = new NullNode(); elNodo.getContent(); elNodo.getNextNode().getContent(); } ...
package com.mmall.concurrency.example.singleton; import com.mmall.concurrency.annotation.NotThreadSafe; /** * @Auther: Mr.Dong * @Date: 2019/3/1 09:59 * @Description: 懒汉模式 -> 双重同步锁单例模式 */ @NotThreadSafe public class SingletonExample4 { private static SingletonExample4 instance = null; private SingletonE...
import java.util.Scanner; class CzyNalezy { public static void main(String[] args){ Scanner s = new Scanner(System.in); System.out.println("Podaj współrzędne punktu P: xp oraz yp"); double xp = s.nextDouble(); double yp = s.nextDouble(); Punkt p = new Punkt(xp, yp); ...
package com.thoughtpropulsion.fj; @FunctionalInterface public interface F0<A> { A apply(); static <A> F0<A> constantly(final A x) { return () -> x; } }
package com.kush.lib.expressions.types.factory; import static com.kush.lib.expressions.types.factory.TypedValueFactory.value; import com.kush.commons.markers.ImpactedByAutoBoxing; import com.kush.lib.expressions.types.TypedValue; import com.kush.lib.expressions.types.handlers.TypeHandler; @SuppressWarnings("boxing")...
package com.cg.empapp.service; import java.util.HashMap; import com.cg.empapp.dao.EmployeeDaoImpl; import com.cg.empapp.dto.Employee; import com.cg.empapp.exception.EmployeeException; public class EmployeeServiceImpl implements EmployeeService { EmployeeDaoImpl ed; Employee emp; public EmployeeService...
/* Violet - A program for editing UML diagrams. Copyright (C) 2007 Cay S. Horstmann (http://horstmann.com) Alexandre de Pellegrin (http://alexdp.free.fr); This program 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 F...
package com.aiyamamoto.transforemerapp.network; import com.aiyamamoto.transforemerapp.model.TransformersList; import com.aiyamamoto.transforemerapp.network.body.CreateTransformerBody; import com.aiyamamoto.transforemerapp.network.response.TransformerResponse; import retrofit2.Call; import retrofit2.http.Body; import ...
package test; /** * 测试是否有指令重排序 * @author gq * @time 2017年6月16日 */ public class ReorderTest { private static int number=1000; public static void main(String[] args) { Thread[] ts=new Thread[number]; for (int i = 0; i < number; i++) { ts[i]=new Thread(){ @Override public void run() { print(); ...
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.PlaceOfService; public interface PlaceOfServiceService { PlaceOfService findById(Inte...
package com.mideas.rpg.v2.game.mail; import java.util.ArrayList; import java.util.HashSet; import com.mideas.rpg.v2.callback.CallbackMgr; public class MailMgr { private final static ArrayList<Mail> mailList = new ArrayList<Mail>(); private final static HashSet<Long> loadedMail = new HashSet<Long>(); public final...
package com.checkroom.plugin.crashlytics; import org.apache.cordova.CallbackContext; import org.apache.cordova.CordovaPlugin; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.crashlytics.android.Crashlytics; import android.util.Log; public class CrashlyticsPlugin exte...
package com.rishi.baldawa.iq; import org.junit.Test; import static org.junit.Assert.assertEquals; public class MaxProfitFromStockManyTransactionsTest { @Test public void maxProfit() throws Exception { assertEquals(new MaxProfitFromStockManyTransactions().maxProfit(new int[]{7, 1, 5, 3, 0, 6, 4}), 10)...
/* * 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 ps3presentation.business; import ps3presentation.business.GenericDataClass; import java.util.ArrayList; import ps3pre...
package wallFollower; import lejos.hardware.motor.EV3LargeRegulatedMotor; public class PController implements UltrasonicController { private final int bandCenter, bandwidth; private EV3LargeRegulatedMotor leftMotor, rightMotor; private int distance; private int filterControl; //CONSTANTS private final in...
package com.cnk.travelogix.suppliers.service; import com.cnk.travelogix.supplier.mappings.country.model.SupplierCountryModel; /** * @author I077988 */ public interface SupplierCountryMappingService { /** * @return boolean */ public boolean getAllSupplierCountry(); /** * @param supplierC...
package com.tencent.mm.plugin.honey_pay.ui; import com.tencent.mm.ab.l; import com.tencent.mm.wallet_core.c.h.a; class HoneyPayMainUI$13 implements a { final /* synthetic */ HoneyPayMainUI klC; HoneyPayMainUI$13(HoneyPayMainUI honeyPayMainUI) { this.klC = honeyPayMainUI; } public final void ...
package mum.lesson5.problem2; import java.time.LocalDate; public class Professor extends DeptEmployee { private int numberOfPublications; public Professor(double salary, String name,LocalDate hireDate,int numberOfPublications) { super(salary, name, hireDate); this.numberOfPublications = numberOfPublications; ...
package ru.osipmd.rss.parameters; import com.rometools.rome.feed.synd.SyndEntry; /** * It's class of Description parameter RSS channel * @author Mikhail Osipov */ public class Description extends RssParameter { private static final String NAME = "description"; @Override String getInfoFromRssItem(Synd...
package com.example.testjson.api; public class Constants { /** * 通信関係の定数クラス * * @author */ public static final class ApiParams { //schema public static final String CM_HTTPS = "https"; //domain public static final String CM_DOMAIN = "watasama....
package com.semester_project.smd_project.Activities; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.app.Activity; import android.content.Intent; import androi...
package com.diozero.devices; /* * #%L * Organisation: diozero * Project: diozero - Core * Filename: McpEeprom.java * * This file is part of the diozero project. More information about this project * can be found at https://www.diozero.com/. * %% * Copyright (C) 2016 - 2023 diozero * %% * Permissio...
package com.tencent.mm.ac; import android.os.Looper; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.kernel.g; import com.tencent.mm.protocal.c.aas; import com.tencent.mm.protocal.c.blr; import com.tencent.mm.protocal.c.fh; import com.tencent.mm.protocal.c.ia; import com.tencent.mm.sdk.e....
package application.model; import javafx.collections.*; public class DataModel { // 스테이지를 담는 클래스 (데이터를 한 곳에 저장) public static ObservableList<String> list = FXCollections.observableArrayList(); }
package com.tencent.mm.plugin.dbbackup; import com.tencent.mm.R; import com.tencent.mm.plugin.dbbackup.c.1; import com.tencent.mm.ui.base.h; class c$1$1 implements Runnable { final /* synthetic */ int hZq; final /* synthetic */ 1 hZr; c$1$1(1 1, int i) { this.hZr = 1; this.hZq = i; } ...
package evm.dmc.core.api; import evm.dmc.api.model.FunctionDstModel; import evm.dmc.core.api.exceptions.StoreDataException; public interface DMCDataSaver { void save(Data<?> data) throws StoreDataException; FunctionDstModel getDstModel(); DMCDataSaver setDstModel(FunctionDstModel model); DMCDataSaver setDes...
package com.frcteam1939.killerrabbit.robot; import com.frcteam1939.killerrabbit.robot.subsystems.Ears; import com.frcteam1939.killerrabbit.robot.subsystems.Drivetrain; import com.frcteam1939.killerrabbit.robot.subsystems.Shooter; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.command.Sched...
package com.haibo.mapper; import com.haibo.pojo.Coach; import com.haibo.pojo.Exam; import org.apache.ibatis.annotations.Param; /** * Created with IDEA. * User:haibo. * DATE:2018/5/6/006 */ public interface ExamMapper { //添加考试信息 public void addExam(Exam exam); }
package b_secondexp; import java.util.Scanner; public class FishTank { // 标记数组 private static int[] size = new int[1001]; public static void main(String[] args) { int minSize, maxSize, n, count = 0; size[0] = 1; Scanner scanner = new Scanner(System.in); System.out.print("...
/* * UserinfoModel.java * Copyright(c) 2007 BroadText Inc. * ALL Rights Reserved. */ package com.takshine.wxcrm.model; import java.util.Date; import com.takshine.wxcrm.base.model.BaseModel; /** * 微信用户基本信息表 Model * * @author liulin */ public class SocialUserInfoModel extends BaseModel { private String uid ...
package com.computer; public class KeyBoard extends Parts{ private String type; //private String maker; //public KeyBoard(){} public KeyBoard(String maker, int price, String type) { super(maker,price); this.type = type; } public void typing(){ System.out.println("KeyBoard typing..."); System.out...
/* * Copyright (c) 2013 University of Tartu */ package org.jpmml.manager; import org.dmg.pmml.*; import static com.google.common.base.Preconditions.*; public class RuleSetModelManager extends ModelManager<RuleSetModel> { private RuleSetModel ruleSetModel = null; public RuleSetModelManager(){ } public RuleS...
/**HW - Decorator * Cesar Hernandez * cherna83 * */ //============================================================= public class Decorator { public static void main(String[] args) { System.out.println("\nChoose between 5 burger decorators to build your burger:"); System.ou...
package sessionbean; import entidade.Usuario; import java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.PersistenceContext; import javax.persistence.Query; /** * * @author wender */ @Stateless publi...
package pe.com.tss.bean; import java.io.Serializable; import javax.persistence.*; import javax.xml.bind.annotation.XmlRootElement; import org.eclipse.persistence.annotations.ReturnInsert; import java.math.BigDecimal; /** * The persistent class for the CITY database table. * */ @Entity @Table(name = "CITY") @Xml...
package com.example.codetribe1.constructionappsuite.util; import android.animation.Animator; import android.animation.AnimatorInflater; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.app.Activity; import android.app.AlertDialog; imp...
package RestAssuredSameResponseAsJsonKeycloak; import org.junit.Test; import static io.restassured.RestAssured.given; public class RestAssuredSameResponseAsJsonKeycloakTest extends AbstractRestAssuredSameResponseAsJsonKeycloakTest { @Test public void getListOfRealms() { given(). when(). ...
package com.dental.lab.security; import java.util.Collection; import java.util.stream.Collectors; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import com.dental.l...
package com.alium.ic.domains; // Generated 2013-06-19 17:36:03 by Hibernate Tools 3.4.0.CR1 import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDEN...
package sample; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.TextField; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.ParseException; public class Controller { private boolean hasComma = false...
package com.chaabane.jasperlog.controllers; import com.chaabane.jasperlog.Company; import com.chaabane.jasperlog.JasperlogApplication; import com.chaabane.jasperlog.services.CompanyRepo; import com.chaabane.jasperlog.services.ReportService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfram...
package BO.customer; import DAO.customer.CustomerTypeDAO; import model.CustomerType; import java.util.ArrayList; public class CustomerTypeBO implements ICustomerTypeBO{ CustomerTypeDAO customerTypeDAO = new CustomerTypeDAO(); @Override public ArrayList<CustomerType> getAllCustomerType() { return...
package com.trs.om.auth.api; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import org.apache.log4j.Logger; import com.trs.om.rbac.AuthorizationException; import com.trs.om.rbac.ISessionManager; import com.trs.om.common.ObjectContainer; @Path("auth") @P...
package de.jmda.app.uml.advertise; public interface SpareTimeProject { }
package com.gohool.firstlook.tipcalculator; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.SeekBar; import android.widget.TextView; public class...
package ArraysJavaListsAutoboxingUnboxing.Autoboxing.Challenge; import java.lang.reflect.Array; import java.util.ArrayList; public class Customer { private String name; private ArrayList<Double> transactions; public Customer(String name, double initialAmount) { this.name = name; this.t...
package javatest; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class ReadLine { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); System.out.pr...
package mouse.server.network; import mouse.server.ServerConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.net.*; import java.util.TimerTask; /** * User: Simon * Date: 26.03.14 */ public class BroadcastTask extends TimerTask { private static final ...
package com.java8.optional; import lombok.Data; import java.util.Optional; /** * @Author 樊东方 * @Date 2020/9/4 2:09 下午 * @Description */ @Data public class Car { /** * 车可能上了保险,也可能没上保险 */ private Optional<Insurance> insurance; }
package com.SkyBlue.base.to; import com.SkyBlue.common.annotation.Dataset; import com.SkyBlue.common.to.BaseBean; import lombok.Getter; import lombok.Setter; @Dataset(name="dsOpenApi") public class OpenApiBean extends BaseBean{ @Setter @Getter private String fdPrdtNm,atcId,mdcd,fdFilePathImg,fdYmd,depPlace,fdSbjt...
package com.carousell.marketplace.service; import com.carousell.marketplace.dao.User; /** * @author faizanmalik * creation date 3/4/20 */ public interface UserService { User registerUser(String username); User getUser(String username); }
package rhtn_homework; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; public class cheetsheet { private static int[] arr = {1,2,3,4}; private static boolean[] visited; private static int R = 2; private static int[] result; public static ArrayList<Integ...
package com.pskwiercz; import org.junit.Test; import org.omg.CORBA.PUBLIC_MEMBER; import static org.junit.Assert.*; /** * Created by pskwierc on 28/12/2016. */ public class MoneyTest { @Test public void testSimpleAddtion() { Bank bank = new Bank(); Money five = Money.dollar(5); Exp...
package com.devweb.trans.model; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.*; import java.util.Date; @Entity @Table @Data @EqualsAndHashCode(exclude = "depot") public class Depot { @Id @GeneratedValue(strategy = GenerationT...
package com.dave.project.wedjet.fresh.api; import android.content.Context; /** * 默认Header创建器 * Created by SCWANG on 2017/5/26. */ public interface DefaultRefreshHeaderCreater { RefreshHeader createRefreshHeader(Context context, RefreshLayout layout); }
package UI.panel; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Event; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.GridLayout; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.io.IOException; impor...
/** * Classe com variáveis estáticas úteis, para fácil configuração. */ package client; public class Universal { public static String host = "localhost"; // endereço do servidor }