text
stringlengths
10
2.72M
package com.jw.BoardDAO; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.jw.BoardDTO.JWBoardDTO; public class JWBoardDAO { private static JWBoardDAO dao = new JWBoardDAO(); static p...
package edu.nyu.xyz.parser; import org.json.simple.JSONArray; import org.json.simple.JSONObject; public class ParserUtil { public static String getSelfDefinedJSONString (JSONArray jsonArray) { if (jsonArray == null || !(jsonArray instanceof JSONArray)) { throw new IllegalArgumentException("Input should be JSON...
package org.sang.bean; import java.util.Date; public class Folder { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column folder.id * * @mbg.generated Wed Jun 05 16:32:28 CST 2019 */ private Integer id; /** * * This ...
package poly.basic2; public class MainClass { public static void main(String[] args) { Child c= new Child(); c.method01(); c.method02(); c.method03(); Parent p = c; p.method01(); p.method02(); // p.method03(); System.out.println(p); System.out.println(c); ...
package by.ez.smm.web.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import javax.ws.rs.*; import javax.ws.rs.core.Response; import by.ez.smm.service.UserService; @Controller @Path("/user") public class UserController extends AbstractCont...
package com.george.springcloud.controller; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.Mapp...
package com.mycompany.cesar; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.LinkedList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import com.mongodb....
public class SetPrice1 extends SetPrice { public SetPrice1(Data data) { d=data; } @Override public void SetPrice(int g) { if(g==1){ ((Data1)d).setPrice(((Data1)d).getRprice()); System.out.println("Regular gas has been selected"); } else if(g==2) { ((Data1)d).setPrice(((Data1)d).getSprice())...
package com.tencent.mm.plugin.account.ui; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; class RegByMobileSendSmsUI$10 implements OnMenuItemClickListener { final /* synthetic */ RegByMobileSendSmsUI eVm; RegByMobileSendSmsUI$10(RegByMobileSendSmsUI regByMobileSendSmsUI) {...
package br.com.unopar.delivery.controller; import java.util.List; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.Req...
package com.challenge.controller; import java.time.Clock; import java.time.Instant; import java.time.ZoneOffset; import javax.servlet.http.HttpServletResponse; import javax.validation.Valid; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import...
package ch21.ex21_04; import java.util.Iterator; import java.util.ListIterator; import java.util.NoSuchElementException; public class OtherShortStrings implements ListIterator<String>{ private ListIterator<String> strings; private String prevShort; private int prevIndex; private String nextShort; pr...
package it.basestation.cmdline; import java.util.Hashtable; // non utilizzata public class DeltaCounter { private Hashtable<String, Double> lastRecordedValues = new Hashtable<String, Double>(); public DeltaCounter() { // TODO Auto-generated constructor stub } public void elabDelta(CapabilityInstance cI){ if...
package com.project.service.taxi.exception; public class LoginAndPasswordException extends RuntimeException { }
package com.onplan.adviser; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import java.util.Collection; import java.util.Map; /** * Contains information about a strategy. */ public final class StrategyInfo extends TemplateInfo { private String id; private Map<String, String> ...
package com.song.mvchttpencapsulation.model; /** * Created by 宋。 on 2018/8/2. */ public interface HttpCallback { public void onSuccess(Object obj,int tag); public void onError(String msg); }
package com.sunbing.demo.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.annotation.TableId; import java.io.Serializable; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; ...
package com.eres.waiter.waiter.retrofit; import android.content.Context; import com.eres.waiter.waiter.preferance.SettingPreferances; import com.readystatesoftware.chuck.ChuckInterceptor; import okhttp3.OkHttpClient; import okhttp3.Request; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapt...
package uk.gov.hmcts.befta; import java.io.BufferedReader; import java.io.File; import java.io.InputStreamReader; import java.time.Duration; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import io.restassured.RestAssured; import uk.gov.hmcts.befta.data.RecentExecutionsInfo; import uk.gov....
package levels; public class Level_Demo { public static void main(String[] args) { // TODO Auto-generated method stub } }
package com.tencent.mm.plugin.voip.b; import android.app.Notification; import android.app.Notification.Builder; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.os.Build; import android.os.Build.VERSION; import android.os.Environment; import android.widget.Toast; i...
package lesson04; import lesson04.DayOfWeek04_4_1; import java.util.Scanner; public class DayOfWeek04_4_2 { public static void main(String[] args) { var input = new Scanner(System.in); System.out.println("Nhập thứ trong tuần bằng tiếng việt: "); var VieName = input.nextLine(); Vie...
package com.jenkins.utils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class TerminalCMD { private final static String JOINER = " & "; private List<String> commands; ...
package com.techelevator; import com.techelevator.tenmo.model.Authority; import com.techelevator.tenmo.model.User; import org.junit.Assert; import org.junit.Test; import java.util.HashSet; import java.util.Set; public class UserTest { User user = new User(); @Test public void userId_is_7(){ Long...
package com.smxknife.java2.io.writer; import java.io.CharArrayWriter; import java.io.IOException; /** * @author smxknife * 2018/11/20 */ public class CharArrayWriterDemo { public static void main(String[] args) throws IOException { CharArrayWriter charArrayWriter = new CharArrayWriter(); charArrayWriter.write...
package com.tencent.mm.plugin.scanner.util; import android.os.Bundle; public interface b$a { void E(Bundle bundle); void b(int i, String str, byte[] bArr, byte[] bArr2, int i2, int i3); void bsf(); }
package com.julivalex.note.adapter; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.content.res.Resources; import android.icu.util.Calendar; import android.os.Handler; import android.support.v7.widget.RecyclerView; import android.view.Lay...
package com.vmk.solutions.nazgul.pokedex.network.models; import com.google.gson.annotations.SerializedName; public class Games { @SerializedName("game_indices") private int gameIndices; private Version version; public int getGameIndices() { return gameIndices; } public Version getVer...
/** * @author yuanwq, date: 2017年8月16日 */ package com.xwechat.schedule; import com.xwechat.core.Application; import java.util.Map; /** * @author yuanwq */ public interface AppRepository { public void saveApplication(Application application); public Application getApplication(String appId); public void de...
package offer; import java.util.Arrays; // 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。 // 输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。 // 例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。 // NOTE:给出的所有元素都大于0,若数组大小为0,请返回0。 public class 旋转数组的最小数字 { public static void main(String[] args) { int[] arr ...
package com.tkb.elearning.dao; import com.tkb.elearning.model.UserLoginLog; /** * 使用者記錄Dao介面接口 * @author Admin * @version 創建時間:2016-03-15 */ public interface UserLoginLogDao { /** * 記錄登入Log * @param userLoginLog */ public void addUserLoginLog(UserLoginLog userLoginLog); }
/* * Copyright 2013-2014 ReConf Team * * 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...
package com.gildedrose; public class TexttestFixture { public static void main(String[] args) { System.out.println("Wow is a terrible game but this kata is kind of good."); /* * Special Items: * Sulfuras, Hand of Ragnaros * Aged Brie * Backstage passes to a TAFK...
package com.ufc.poo.sorveteria.services; import javax.management.BadAttributeValueExpException; import com.ufc.poo.sorveteria.exceptions.NotFoundException; import com.ufc.poo.sorveteria.model.Venda; public interface VendaService { Venda cadastrar(Venda venda) throws NotFoundException, BadAttributeValueExpExcepti...
import java.util.*; import java.util.Arrays; import java.math.BigInteger; public class Main { static int mod = 1000000007; public static void main(String args[]) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); long[][][] dp = new long[10000][101][2]; dp[1][0...
package edu.ucam.beans; import edu.ucam.actions.ActionAddCourse; public class Course { private int id; private String course; private String letter; public Course(String course, String letter) { super(); this.course = course; this.letter = letter; id = ActionAddCourse.contador; ActionAddCourse.co...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
package com.kunsoftware.service; import java.util.List; import org.apache.commons.lang3.math.NumberUtils; import org.apache.ibatis.annotations.Param; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; impo...
package com.maweiming.wechat.bot.service.message; import com.maweiming.wechat.bot.service.message.core.BaseMessage; import com.maweiming.wechat.bot.service.message.core.IMessage; import com.maweiming.wechat.bot.utils.DingMessageUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework....
package com.hotmail.at.jablonski.michal.shoppinglist.db.entities; public class ChildEntity { private Integer id; private Integer rootId; private String name; private boolean isBought; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; ...
package com.tencent.mm.wallet_core.e.a; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.wallet_core.c.o; import java.util.HashMap; import org.json.JSONObject; public final class b extends a { public b() { F(new HashMap()); } public fina...
package com.jean.sbc.services.validation; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.springframework.beans.factory.annotation.Autowir...
package com.tencent.b.a.a; import org.json.JSONException; import org.json.JSONObject; final class g { String bjM = null; String bvw = null; String bvx = "0"; long bvy = 0; g() { } static g ch(String str) { g gVar = new g(); if (s.ci(str)) { try { ...
package com.worker.framework.messagehandlingchain; import java.util.List; import com.google.common.base.Objects; import com.worker.shared.WorkMessage; import com.worker.shared.WorkMessagesJoinState; public class VerifyChildrenInheritJoinState implements WMProcessor { private final WMProcessor delegator; ...
package com.smxknife.graphql.ex2.service; import com.smxknife.graphql.ex2.domain.User; import org.springframework.stereotype.Service; @Service public class UserService { public User findById(int id) { User user = new User(); user.setId(id); user.setAccount("admin"); user.setPassword("123456"); return user...
package pe.com.tss.bean; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.per...
package mapper; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.stream.Stream; public interface BasicMapper<T> { /** * * @param x * @param <T> * @return */ T getById(String x); /** * 有分页的限制不需要担心 * @param ...
package com.rastiehaiev.notebook.response; import java.util.Map; /** * @author Roman Rastiehaiev * Created on 04.10.15. */ public abstract class BaseResponse implements IResponse { protected String errorMessage; protected Map<String, String> errorsMap; @Override public String getErrorMess...
package com.tencent.mars.smc; import com.tencent.mm.protocal.a.a.a; import com.tencent.mm.protocal.a.a.b; import com.tencent.mm.protocal.a.a.c; import com.tencent.mm.protocal.a.a.d; import com.tencent.mm.protocal.a.a.e; import com.tencent.mm.protocal.a.a.f; import com.tencent.mm.protocal.a.a.g; import com.tencent.mm.p...
package com.jim.multipos.ui.admin_main_page; import com.jim.multipos.core.BasePresenterImpl; import com.jim.multipos.utils.RxBus; import javax.inject.Inject; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.schedulers.Schedulers; publ...
package com.example.demo.Service; import com.example.demo.Model.Kommune; import com.example.demo.Model.Sogne; import com.example.demo.Model.SogneDTO; import com.example.demo.Repository.KommuneRepository; import com.example.demo.Repository.SogneRepository; import org.springframework.beans.factory.annotation.Autowired; ...
package topKfrequencywords; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.PriorityQueue; public class Solution { public String[] topKFrequent(String[] combo, int k) { // Write your solution here. if(combo.length == 0){ return ne...
package pwr.chrzescijanek.filip.gifa.core.function.hsv.fuzziness.linear; import org.opencv.core.Mat; import pwr.chrzescijanek.filip.gifa.core.function.EvaluationFunction; import static org.opencv.imgproc.Imgproc.COLOR_BGR2HSV_FULL; import static pwr.chrzescijanek.filip.gifa.core.util.FunctionUtils.calculateLinearFuzz...
/** * what is Armstrong number? * 153----->(1*1* + 5*5*5 + 3*3*3 =153 * */ /** * @author Madan * */ package armstrongNumber;
package com.mygdx.factory; import java.util.Iterator; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.Json; import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.ObjectMap.Values; import com.mygdx.ObjectInfo.MonsterInfo; public class MonsterInfoFactor...
package com.zking.ssm.mapper; import com.zking.ssm.model.NewsC; public interface NewsCMapper { int deleteByPrimaryKey(Integer id); int insert(NewsC record); int insertSelective(NewsC record); NewsC selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(NewsC record); int updateBy...
package springboot_demo.springcloud.controller; import java.io.File; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; imp...
package ua.addicted.assetwand.models; import android.graphics.Bitmap; import java.util.Date; /** * Created by addicted on 12.03.16. */ public class Receipt { private int id; private User user; private Bitmap image; private String imageSrc; private ReceiptEntry[] entries; private Double tota...
package com.tencent.mm.plugin.appbrand.ui; import android.app.Dialog; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.view.ViewGroup.MarginLayoutParams; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.LinearLayout.LayoutParams...
/* * YNAB API Endpoints * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com * * OpenAPI s...
package com.atTrip.vo; public class CityVo { private int city_no; private String city_name_kor; private String city_name_eng; private String city_topinfo; private String city_info; private String city_gooddate; private String city_gooddate_number; private String city_visa; private String city_volt;...
package com.dsc.dw.internal; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class DateMagic { ...
public class Searching { public static void search(int[] args, int start, int end, int searchnum) { int center = (start + end) / 2; if (args[center] == searchnum) System.out.println(searchnum + "은 배열에 존재합니다."); else if (args[center] > searchnum){ //찾는 수가 중심값보다 작을 때 if (center > end) ...
package java8; import org.junit.jupiter.api.Test; import java.io.FileNotFoundException; import java.io.IOException; import java.time.*; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.function.Predicate; public class java8ceritif...
package com.jzx.validate.core.core; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.d...
package lesson_4; public class first { public static void main(String[] argc){ int[] num = {1,2,3,4,5}; try{ System.out.println(num[5]); }catch (ArrayIndexOutOfBoundsException e){ System.out.println(e); }finally { System.out.println("Завершение пр...
/* * Copyright Yahoo Inc. 2016, see https://github.com/flurry/upload-clients/blob/master/LICENSE.txt for full details */ package com.flurry.proguard; import net.sourceforge.argparse4j.ArgumentParsers; import net.sourceforge.argparse4j.inf.ArgumentParser; import net.sourceforge.argparse4j.inf.ArgumentParserException;...
package com.clay.claykey.object.dto; /** * Created by Mina Fayek on 1/15/2016. */ public class BaseDto { }
package SukerEditor; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclip...
package com.mobilejohnny.remote.app; import android.app.Activity; import android.content.Intent; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentM...
package barrelofmonkeys; import static org.junit.Assert.assertEquals; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; public class BarrelOfMonkeysEndToEnd { XPathParser fileParser; @Before public void parseFile() throws Exception { ...
package com.example.healthmanage.ui.activity.famousDoctorHall.ui; import android.content.Context; import android.os.Bundle; import android.view.View; import androidx.core.content.ContextCompat; import androidx.lifecycle.Observer; import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview....
package model; import java.util.ArrayList; import java.util.List; /** * Inventory is a space for items that is carried by the player. */ public class Inventory { private final List<Item> itemList; public Inventory() { itemList = new ArrayList<>(); } public void addItem(Item item) { ...
package com.wenqiao.wendy; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class WendyApplicationTests { @Test void contextLoads() { } }
/* */ package datechooser.view.appearance.custom; /* */ /* */ import datechooser.view.appearance.CellRenderer; /* */ import java.awt.AlphaComposite; /* */ import java.awt.Color; /* */ import java.awt.Component; /* */ import java.awt.Composite; /* */ import java.awt.Font; /* */ import java.aw...
package com.devs4j.Rest.Services; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pag...
package Index.Action; import Base.Date.DateBase; import Common.TimeCommon; import Index.Date.*; import Index.Model.*; import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.catalina.connector.Request; import org.apache.catalina.deploy.LoginConfig; ...
package io.swagger.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.springfram...
package com.osce.server.security; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; import java.util.Collection; import java.util.HashMap; import jav...
package com.union.design.generator.jpa; import com.union.design.generator.ClassField; import lombok.Builder; import lombok.Data; import java.util.List; import java.util.Set; @Builder @Data public class JPAEntity { private String packageName; private Set<String> importPackages; private String tableName...
package mk.petrovski.weathergurumvp.ui.city; import java.util.List; import mk.petrovski.weathergurumvp.data.local.db.CityDetailsModel; import mk.petrovski.weathergurumvp.data.remote.model.location_models.LocationModel; import mk.petrovski.weathergurumvp.ui.base.BaseMvpView; /** * Created by Nikola Petrovski on 2/14/...
package com.tencent.mm.plugin.account.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import com.tencent.mm.plugin.account.ui.l.9; class l$9$2 implements OnClickListener { final /* synthetic */ 9 eSL; l$9$2(9 9) { this.eSL = 9; } public fin...
package things.entity; import things.entity.template_method.DestroyableObject; import java.awt.*; /** * This is an instantiable class called BarrierBlock for creating individual barrier blocks entities. * It is a sub-class of GameComponent therefore it inherits all of its * attributes and abstract methods * * @...
package sort; import java.util.Arrays; //给定一个数组arr和一个数num,请把小于num的数放在数组的左边,等于num的数放在数组的中间,大于num的数放在数组的右边。要求额外空间复杂度为O(1),时间复杂度为O(N) public class NetherLandFlag { public static int[] partition(int[] arr,int startIndex,int endIndex,int target){ int less = startIndex - 1; int more = endIndex + 1; ...
package se.lexicon.carl.data; import se.lexicon.carl.model.Person; public class People { private static Person[] array1 = new Person[0]; public int size(){ return array1.length; } public Person[] findAll(){ return array1; } public Person findById(int personID){ retur...
package com.smxknife.cloud.netflix.service; import javax.transaction.Transactional; /** * @author smxknife * 2021/5/29 */ public interface PayOrderService { @Transactional void syncOrder(); }
package com.jackie.classbook.dto.request; import com.jackie.classbook.dto.BaseReqDTO; import com.jackie.classbook.util.ValidtionUitl; /** * Created with IntelliJ IDEA. * Description: * * @author xujj * @date 2018/7/3 */ public class ClassRemoveMateReqDTO extends BaseReqDTO { private Long classId; privat...
package br.usp.memoriavirtual.controle; import java.util.ArrayList; import java.util.List; import br.usp.memoriavirtual.modelo.entidades.Multimidia; public interface BeanComMidia { /** * * @return Coleção de objetos Multimídia */ public List<Multimidia> recuperaColecaoMidia(); /** *Adicionar Objetos Mu...
package com.yinghai.a24divine_user.module.login.phone; import android.content.Context; import android.text.TextUtils; import com.example.fansonlib.utils.NetWorkUtil; import com.example.fansonlib.utils.ShowToast; import com.yinghai.a24divine_user.R; import com.yinghai.a24divine_user.base.MyBasePresenter; import com.yi...
package ru.busride.activities; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.util.Log; import com.roadtob.R; import java.util.Timer; import java.util.TimerTask; /** * Create...
/* 1: */ package com.kaldin.analytics.action; /* 2: */ /* 3: */ import com.kaldin.analytics.dao.AnalyticsDAO; /* 4: */ import com.kaldin.analytics.dto.PageDTO; /* 5: */ import com.kaldin.exception.ErrorLogDAO; /* 6: */ import com.kaldin.user.register.dao.impl.ActivationImplementor; /* 7: */ ...
/* * Copyright 2009 Kjetil Valstadsve * * 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 agre...
package lookup; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.sql.rowset.CachedRowSet; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Execution; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.ForwardEvent; impor...
package com.oobootcamp; public class ParkingDirector { private ParkingManager parkingManager; public ParkingDirector(ParkingManager parkingManager) { this.parkingManager = parkingManager; } public String printReport() { return ReportUtil.printSimpleReport(parkingManager.getR...
package sps; public class BST { int data; BST leftNode; BST rightnode; BST root=null; public BST(int item){ data=item; } public BST() { // TODO Auto-generated constructor stub } public void insert(int data){ BST newNode=new BST(data); if(root==null){ root=newN...
package com.yida.poi; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.regex.Matcher; import java.util...
package com.dais.service.impl; import com.common.constant.FilePathConstant; import com.common.pojo.ResultModel; import com.common.utils.*; import com.common.utils.Utils; import com.dais.mapper.FvirtualcointypeMapper; import com.dais.mapper.UserMapper; import com.dais.model.*; import com.dais.service.CommonParamsServic...
package com.website.views.pages; import javax.enterprise.context.RequestScoped; import javax.inject.Named; import com.website.views.WebPages; /** * The view for the home web page.</br> * This {@link Named} class is bound with the same named xhtml file. * * @author Jérémy Pansier */ @Named @RequestScoped public ...
package com.deltastuido.user; import java.io.Serializable; import javax.persistence.*; import java.sql.Timestamp; import java.time.Instant; /** * The persistent class for the site_user_group database table. * */ @Entity @Table(name="user_groups") @NamedQuery(name="UserGroup.findAll", query="SELECT s FROM UserGr...
public class Conta { private double saldo; public void atualiza(double taxa){ synchronized (this) { double saldoAtualiza = this.saldo * (1 + taxa); this.saldo = saldoAtualiza; } } public void deposita(double valor){ synchronized (this) { double novoSaldo = this.saldo + valor; th...