text
stringlengths
10
2.72M
package net.birelian.poc.di.guice.dao; import net.birelian.poc.di.guice.model.Contact; import java.util.*; /** * ContactDao implementation */ public class ContactDaoImpl implements ContactDao { private final Map<Integer, Contact> contacts = new HashMap<>(); private Integer lastGeneratedId = 0; public...
/* * (C) Mississippi State University 2009 * * The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is * a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries * and wapplets are ...
package com.GestiondesClub.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQu...
package vostore.apptualidade; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.Signature; import android.graphics.Paint; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os...
//accept any four no check and display the smollest value import java.util.*; class smollest1 { public static void main(String args[]) { Scanner x=new Scanner(System.in); int a,b,c,d; System.out.print("Enter any four no::-"); a=x.nextInt(); b=x.nextInt(); c=x.nextInt(); d=x.nextInt(); if(a<b...
// Generated by view binder compiler. Do not edit! package com.designurway.idlidosa.databinding; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.N...
package cn.okay.page.officialwebsite.fourthpage; import cn.okay.testbase.AbstractPage; import cn.okay.tools.WaitTool; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; /** * Created by yutz on 2018/8/24. * 首页点击最新资讯,进入的这个单独的四级页 */ public class Ne...
package home; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import java.util.ArrayList; public class DataConverter { public static String[][] convertToRawData(ArrayList<ArrayList<String>> data) { String[][] rawData = new String[data.size()][]; int index = 0; for (...
package com.exception; public class HrException extends RuntimeException{ public HrException() { } public HrException(String message) { super(message); } }
package com.bharath.tasks.autoscout24.controller; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBoot...
/* * Copyright 2002-2012 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 creational.abstractfactory.my; import creational.abstractfactory.my.factory.*; // 客户段代码 public class Main { // 引用抽象工厂对象 static AbstractFactory factory; public static void main(String[] args) { configure(); businessLogic(); } // 一般根据系统配置确定具体工厂 static void configure() { ...
package uk.co.tekkies.readings.model.content; import android.util.Log; import java.io.File; public class KjvScourby2Mp3ContentLocator extends Mp3ContentLocator { @Override public String getTitle() { return "Scourby KJV MP3(2)"; } @Override public String searchGetBaseFolderFromKeyFile(Fi...
/* * 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. */ /** * * @author dream */ public abstract class MovablePiece extends GamePiece { public abstract int[] calcNewPos(in...
package walke.base; import android.annotation.SuppressLint; import android.app.ActivityManager; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.provider.Settings; import androi...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS; import java.util.List; /** * Text - stores text strings * * @author Brian Wellington * @see <a href="https://tools.ietf.org/html/rfc1035">RFC 1035: Domain Names - Implementation and *...
package prj.designpatterns.observer.prototype; /** * 客户端 * * @author LuoXin * */ public class Client { public static void main(String[] args) { ISubject subject = new ConcreteSubject(); IObserver observer1 = new ConcreteObserver(); IObserver observer2 = new ConcreteObserver(); subject.addObserver(obser...
package pro.likada.rest.wrapper.autograph; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.*; import java.util.stream.Collectors; /** * Created by abuca on 27.03.17. */ @JsonIgnoreProperties(ignoreUnknown = true) public class RTri...
package me.ewriter.chapter9; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import me.ewriter.chapter9.systeminfo.SystemInfoActivity; import me.ewriter.chapter9.systemtest.AMProcessTestActivity; import me.ewriter.chapter9.systemtest....
package interware.coolapp.firebase.database; import android.content.Context; import android.content.SharedPreferences; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; /** * Created by chelixpreciado on 7/19/16. */ public class DBManager { public sta...
package enums; public enum MUTATION { BUNNY(50, 2, "Bunny"), LION(50, 2, "Lion"), CHIM(100, 5, "Chim"), FANG(10000, 3, "Fangs"); public final int spontaneous; public final int half; public final String phenotype; private MUTATION(int spontaneous, int half, String phenotype){ this.spontaneous = spontaneous; ...
package heylichen.sort.pq; import heylichen.test.AppTestContext; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import java.util.Deque; import java.util.LinkedList; import java.util.Random; public class PriorityQueueTest extends AppTestContext { @Autowired private Prior...
package com.example.simplemessage200619; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.Spinner; import ...
package ru.mephi.pesinessa.properties; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Properties приложения для работы с Ignite */ @ConfigurationProperties(prefix = "ignite") @Data public class IgniteAppProperties { /** * Имя кеша */ private S...
package com.evan.graphics.command; import android.graphics.Canvas; import android.graphics.Rect; import com.facebook.react.bridge.ReadableMap; public class DrawImageCommand extends Command { public DrawImageCommand(ReadableMap cmd, int canvasWidth, int canvasHeight, Rect previousRect) { super(cmd, canvas...
/* * Copyright © 2020-2022 ForgeRock AS (obst@forgerock.com) * * 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...
package com.example.demo.base1; import com.example.demo.test.KejiDog; import java.io.Serializable; /** * Created By RenBin6 on 2020/8/24 . */ public class User implements Serializable { private String userName; private String password; private KejiDog pet; public KejiDog getPet() { return ...
package com.zantong.mobilecttx.model.repository; import com.zantong.mobilecttx.base.bean.BaseResult; import com.zantong.mobilecttx.base.bean.Result; import com.zantong.mobilecttx.base.dto.BaseDTO; import com.zantong.mobilecttx.card.dto.BindCarDTO; import com.zantong.mobilecttx.chongzhi.bean.RechargeCouponResult; impor...
package com.esrinea.dotGeo.tracking.processor.component.tracking; import com.esri.ges.processor.GeoEventProcessorDefinitionBase; public class TrackingProcessorDefinition extends GeoEventProcessorDefinitionBase { public TrackingProcessorDefinition() { } @Override public String getName() { return "...
package edu.uag.iidis.scec.servicios; import java.util.Collection; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import edu.uag.iidis.scec.modelo.Seccion; import edu.uag.iidis.scec.excepciones.*; import edu.uag.iidis.scec.persistencia.SeccionDAO; import edu.uag.iidis.scec.persi...
package ejercicio08; import java.io.*; /** * * @author Javier */ public class Ejercicio08 { public static String invertir(String frase) { char[] fraseChar = frase.toCharArray(); char[] fraseCharInv = new char[fraseChar.length]; int inv = fraseChar.length-1; for (int i =...
package com.qifen.toyvpn; import android.util.Log; import java.io.IOException; import java.io.DataInputStream; import java.io.DataOutputStream; public class PingTunnel { private int mFd; private int mUdpFd; static final String TAG = "PingTunnel"; private PingTunnel(int fd, int udpfd) { mFd = fd; mUdpFd = ud...
import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.util.*; import java.io.*; /** * The test class PlayListTest. * * @author (your name) * @version (a version number or a date) */ public class PlayListTest { /** * Default constructor fo...
package com.arthur.bishi.xiecheng; /** * @title: No1 * @Author ArthurJi * @Date: 2021/3/14 15:16 * @Version 1.0 */ public class No1 { }
package com.example.androidproject; import java.io.Serializable; import java.util.ArrayList; public class Notesdata implements Serializable { int id; double lat,lng; String category , notesTitle, description, date,audio; public Notesdata(int id, String category, String notesTitle, String description...
package com.example.hyunyoungpark.myfavoriterestaurant_midterm; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListV...
package com.cpro.rxjavaretrofit.views.adapter; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.cpro.rxjavaretrofit.R; import com.cpro.rxjavaretrofit.entity.FileIdListEntity; import j...
/* * 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.xag.util; import javax.interceptor.AroundInvoke; import javax.interceptor.Interceptor; import javax.interceptor.Invocation...
package com.seva.Resources; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import...
package us.team7pro.EventTicketsApp.Controllers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotat...
package io.cde.account.dao; import io.cde.account.domain.Account; import io.cde.account.domain.Email; /** * @author lcl */ public interface EmailDao { /** * 根据用户id和邮箱id判断该用户是否关联该邮箱. * * @param accountId 用户id * @param emailId 邮箱id * @return 返回该用户信息 */ Account findAccountByEm...
/* * 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 CSC110_2014; /** * * @author JanithWanni */ public class Question2_Savings extends Question2_Account{ publi...
package com.cg.web; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.anno...
package com.example.uksk; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class next extends AppCompatActivity { Button b1,b2,b3,b4,b5; @Override protected void onCreate(Bundle s...
package nim_01; import java.util.Scanner; public class Main { //Class Nim02 contains the Methods private Nim02 mim02 = new Nim02(); public static void main(String[] args) { nim02.play(); } }
package com.design.factory.AbstractFactory; public class MainTestAbstract { public static void main(String[] args) { System.out.println("------组装开始----------"); PizzaStore nyStore = new PizzaStoreNY(); //披萨店 + 纽约 Pizza pizza = nyStore.orderPizza("cheese"); //披萨店 + 纽约 + 奶酪 System.out.println("Ethan or...
package cham.test_project.process; import cham.test_project.controller.Adapter; import cham.test_project.data.Coordinates; import cham.test_project.data.ServiceA; import cham.test_project.data.ServiceB; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import org.apach...
package com.jam.jamoodle.model; import org.apache.commons.lang3.text.WordUtils; /** * Created by Owner on 2/26/2017. */ public class Response { private ContactInfo contactInfo; private String answer; public Response(final ContactInfo contactInfo, final String answer) { this.contactInfo = cont...
/* * Copyright (C) 2021 Tenisheva N.I. */ package com.entrepreneurship.rest.webservices.restfulwebservices.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; im...
package com.aidigame.hisun.imengstar.ui; import java.io.File; import java.util.ArrayList; import com.aidigame.hisun.imengstar.PetApplication; import com.aidigame.hisun.imengstar.adapter.UserPetsAdapter; import com.aidigame.hisun.imengstar.bean.Animal; import com.aidigame.hisun.imengstar.bean.Banner; import com.aidiga...
package com.javaguru.studentservice.student.validation; import com.javaguru.studentservice.core.exceptions.ItemNotFoundException; public class StudentNotFoundException extends ItemNotFoundException { public StudentNotFoundException(String message) { super(StudentValidationMSG.STUDENT_NOT_FOUND); } }
package utilities; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.testng.Reporter; public class GetPropVals { public String getPropValue(String key) { String result = ""; String propFileName = ""; InputStream inp...
package com.example.kibsoft.MyFragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toa...
package jianzhioffer; import jianzhioffer.utils.ListNode; import java.util.Comparator; import java.util.PriorityQueue; /** * @ClassName : Solution25_2 * @Description : 合并 k 个排序链表 * leetcode 23: 返回合并后的排序链表。请分析和描述算法的复杂度。 * 字节手撕 * * 方法1:暴力法 * 找出所有节点,放到一个数组中,对这个数组进行排序,然后遍历 * * 方法2:优先队列 * 时间复杂度:O(n*log(k))O(n∗...
package com.sun.xml.bind.v2.model.impl; import com.sun.xml.bind.v2.model.core.PropertyKind; import com.sun.xml.bind.v2.model.core.ValuePropertyInfo; /** * @author Kohsuke Kawaguchi */ class ValuePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> extends SingleTypePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>...
// Date: 4/29/2015 10:08:14 PM // Template version 1.1 // Java generated by Techne // Keep in mind that you still need to fill in some blanks // - ZeuX package org.bitbucket.alltra101ify.advancedsatelliteutilization.models.blockmodel; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model...
/* * 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 controller; import DAO.pesanDAO; import KeretaApi.DataKereta; import KeretaApi.Menu; import KeretaApi.PesanTiket; import enkap...
package org.sdrc.collect.uphpmis.android.listeners; import java.util.HashMap; /** * @author Ratikanta Pradhan (ratikanta@sdrc.co.in) */ public interface FetchAreaForXForm { void fetchingAreaForXFormComplete(HashMap<Integer, String> result); }
package Client; import Dao.model.BuyGoods; import Dao.model.SaleGoods; import Dao.model.User; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springf...
package com.example.qobel.organizator; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import and...
package com.example.androidproject; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.A...
import java.awt.Color; import java.awt.Image; import java.awt.Rectangle; import java.awt.Robot; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ImageGrab { private Robot bot; private Rectangle chatLoc = new Rectangle(); p...
package com.example.customcitydatabase; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import android.util....
package com.worldchip.bbpaw.media.camera.activity; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Timer; import java.util.TimerTask; import android.annotation.SuppressLint; import android.app.Activity; import android.content.ActivityNotFo...
package com.baytie.baytie.Menu; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; import com.baytie.baytie.Intro.Login; import com.baytie.baytie.MyBaseFragmentActivity; import com.baytie.baytie.R; import com.baytie.comm...
package com.junzhao.shanfen.activity; import android.os.Bundle; import android.view.View; import android.widget.TextView; import com.junzhao.base.base.BaseAct; import com.junzhao.shanfen.R; import com.lidroid.xutils.ViewUtils; import com.lidroid.xutils.view.annotation.ViewInject; import com.lidroid.xutils.view.annota...
package myservlet.login; import mybean.login.staffBean; import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class alterstaffServlet extends HttpServlet{ public void init(ServletConfig config) throws ServletException{ super.init(config); try{ Class.forName("co...
/* * 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 net.gupt.ebuy.pojo; /** * 管理员实体类 * @author glf * */ public class Admin { private int id;//管理员ID private String name;//名称 private String pass;//密码 private String header;//头像 private String phone;//电话 private String email;//邮箱 public Admin() { } public int getId() { return id; } public vo...
package endpoints; import model.User; import org.apache.commons.io.IOUtils; import org.json.JSONObject; import service.CryptoUtil; import service.JWT; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletR...
package com.codecool.greencommitment.cmdProg; import java.util.Scanner; abstract class AbstractMenu { private String title; private String[] options; private final Scanner sc = new Scanner(System.in); AbstractMenu(String title, String[] options) { this.title = title; this.options = o...
package com.nanyin.services.impl; import com.nanyin.config.util.PageHelper; import com.nanyin.entity.DTO.PageQueryParams; import com.nanyin.entity.DTO.UnitDto; import com.nanyin.entity.QUnit; import com.nanyin.entity.Unit; import com.nanyin.repository.UnitRepository; import com.nanyin.services.UnitService; import com....
/* * 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 controllers; /** * * @author Slade */ public class Controller { private DashboardController dashboardController; p...
package com.lenovohit.ssm.payment.web.rest; import java.io.OutputStream; import java.math.BigDecimal; import java.util.Date; import java.util.Map; import java.util.TreeMap; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springfram...
package Medium; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author:choumei * @date:2019/11/2422:24 * @Description: 请你来实现一个 atoi 函数,使其能将字符串转换成整数。 * * 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。 * * 当我们寻找到的第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字组合起来,作为该整数的正负号;假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成...
package fr.skytasul.quests.utils.nms; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.List; import java.util.Map; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.inventory.meta.ItemMe...
package com.neo; import com.neo.listener.ApplicationContextInitializedEventListener; import com.neo.listener.ApplicationEnvironmentPreparedEventListener; import com.neo.listener.ApplicationFailedEventListener; import com.neo.listener.ApplicationPreparedEventListener; import com.neo.listener.ApplicationReadyEventListen...
package com.thinkgem.jeesite.modules.cms.web; import com.thinkgem.jeesite.common.config.Global; import java.util.List; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.spring...
package kr.co.flyingturtle.repository.mapper; import java.util.List; import kr.co.flyingturtle.repository.vo.Memo; public interface MemoMapper { // 과목 조회 List<Memo> selectMemoSbj(int memberNo); // 과목 조회 (1개) Memo selectOneSbj(int sbjNo); // 과목 생성 int insertMemoSbj(Memo memo); // 과목 수정 void updateSbjN...
package cn.edu.nju.software.timemachine.action.user; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import org.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; ...
package com.wgcisotto.creational.singleton; import java.util.Objects; public class DbSingletonLazyLoaded { private DbSingletonLazyLoaded(){} private static DbSingletonLazyLoaded instance = null; public static DbSingletonLazyLoaded getInstance() { if(Objects.isNull(instance)){ instan...
package MVC.controllers; import java.awt.event.*; import MVC.models.inventoryModel; import MVC.views.addPartsView; import MVC.views.showPartsView; public class menuController implements ActionListener{ private inventoryModel model; private showPartsView view; private addPartsView addView; //private addInvsView...
package br.com.welson.clinic.persistence.model; import javax.persistence.Entity; @Entity public class Employee extends User { }
package pages; import playKeyNoteTest.happyBirthdaySongTest; public class notePage extends happyBirthdaySongTest { public notePage enableSound() throws InterruptedException { clickByXpath(prop.getProperty("ENABLE_SOUND")); Thread.sleep(3000); return this; } public notePage A_Note()...
package easii.com.br.iscoolapp.objetos; /** * Created by gustavo on 01/05/2017. */ public class Desafio { private String nome; private int tipo; private String participantes; public Desafio(String nome, int tipo, String participantes) { this.nome = nome; this.tipo = tipo; ...
package layouts03; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import java.awt.GridBagLayout; import javax.swing.JLabel; import java.awt.GridBagConstraints; import javax.swing.JTextField; import java.awt.Insets;...
package com.netcracker.entities; import javax.persistence.*; import javax.validation.constraints.NotNull; @Entity @Table(name = "Passenger_Rating") public class PassengerRating { @Id private Long userId; @Column(name = "Average_Mark") private Double averageMark; @Column(name = "number_of_vote...
package pt.sinfo.testDrive.domain; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.stream.Collector; import java.util.stream.Collectors; import java.util.stream.Stream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import pt.sinfo.testDrive....
package clase2SincronizmodeHilo; import java.util.Collection; import java.util.Collections; public class Parte2 { public static void main(String[] args) { Cuenta cuenta = new Cuenta(); Cliente cliente1 = new Cliente(cuenta); Cliente cliente2= new Cliente (cuenta); //son cony...
package ideablog.model; import java.util.Date; public class Log { private long id; private long userId; private String method; private String description; private String reqIp; private Date opTime; private String username;//扩展 private int role;//扩展 public long getId() { ...
package com.example.asus.taskapp.Fragments; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import android.os.Bundle; import andr...
package sam; import java.math.BigInteger; import java.time.Duration; import java.time.Instant; public class Main { public static void main(String [] args) { BigInteger base = new BigInteger("113"); BigInteger exponent = new BigInteger("12456"); Instant s = Instant.now(); BigInteger k ...
package uk.co.mtford.jalp.abduction.rules; import org.junit.After; import org.junit.Before; import org.junit.Test; import uk.co.mtford.jalp.JALP; import uk.co.mtford.jalp.abduction.logic.instance.IInferableInstance; import uk.co.mtford.jalp.abduction.logic.instance.equalities.EqualityInstance; import uk.co.mtford.jalp...
/* DiffusionLimitedAggregation -- a class within the Cellular Automaton Explorer. Copyright (C) 2005 David B. Bahr (http://academic.regis.edu/dbahr/) 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 ...
package com.yuneec.flight_settings; import android.app.Activity; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.util.SparseBooleanArray; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; ...
package name.arbitrary.y2014.r2; import name.arbitrary.CodeJamBase; import java.util.ArrayList; import java.util.List; // Inefficient implementation, as it's quick to do and solves the given problem fast enough public class B_UpAndDown extends CodeJamBase { B_UpAndDown(String fileName) { super(fileName);...
package com.nixsolutions.micrometr.config; import com.nixsolutions.micrometr.service.handlers.HelloWorldHandler; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.reactive.function.server.RequestPredicates; import org.springf...
package com.aof.component.prm.report; import java.util.List; public class DepartmentBLBean { private String depid; private String depdesc; private List recordlist; private int TotalTCV; private int TYRevenue; private Integer month[]; public DepartmentBLBean(String desc,List list) { // this.depid=id; this.depdesc=de...
package com.gaoshin.beans; public class Poem extends Post { }
package tracking; public class Sweep { private double signalFo[] = new double[100]; private double oscFo[] = new double[100]; private double trackError[] = new double[100]; public double[] getSignalFo() { return signalFo; } public void setSignalFo(double[] signalFo) { this.signalFo = signalFo; } public ...