text
stringlengths
10
2.72M
/** * * @author jotaele */ package GUI; import java.util.ArrayList; import napakalaki.BadConsequence; import napakalaki.TreasureKind; public class BadConsequenceView extends javax.swing.JPanel { public BadConsequence badConsequenceModel; private String KindsToString(ArrayList<TreasureKind> a) {...
package presentation.customer.view; import businesslogic.creditbl.Credit; import businesslogicservice.creditblservice.CreditBLservice; import javafx.fxml.FXML; import javafx.scene.control.Label; import util.CustomerType; import vo.CustomerVO; /** * Created by 段梦洋 on 2016/11/28. */ public class CustomerInfoControll...
package io.chark.food.domain.article.photo; import io.chark.food.domain.BaseRepository; import org.springframework.stereotype.Repository; @Repository public interface ArticlePhotoRepository extends BaseRepository<ArticlePhoto> { }
package ch04; public class CalculatorApp { public static void main(String[] args) { Calculator c = new Calculator(); int a1 = c.add(10, 5); a1 = c.multi(a1, 20); a1 = c.divid(a1, 5); a1 = c.minus(a1, 100); System.out.println(a1); } }
package pers.mine.scratchpad.base.singleton; import static org.junit.Assert.*; import org.junit.Test; import pers.mine.scratchpad.singleton.EnumSingleton; public class EnumSingletonTest { /** * 验证枚举单例模式并不是懒加载 */ @Test public void test() { EnumSingleton.test(); System.out.println(EnumSingleton.instance)...
package com.fhsoft.model; /** * @ClassName:com.fhsoft.model.Product * @Description: * * @Author:liyi * @Date:2015年11月6日下午2:45:54 * */ public class Product { private int id; private String name; private String propversion; private int subject; private String zsd; private String tx; private String nd; p...
package org.apidesign.gate.timing.shared; import static org.junit.Assert.assertEquals; import org.junit.Test; public class EventsTest { @Test public void shortWhenShowsCents() { Event ev1 = new Event().withWhen(1488855865759L).withType(Events.START); assertEquals("04'25:75", ev1.getShortWhen()...
package com.youdao.dic.comber; public interface IWordComber { void start(); }
package com.dambroski.services; import java.util.Optional; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataIntegrityViolationException; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageReq...
package iit.android.language; import iit.android.swarachakra.KeyAttr; import java.util.ArrayList; import java.util.HashMap; public class Language { public String name; public String symbol; public int nKeys; public String[] defaultChakra; public ArrayList<KeyAttr> myKey; public boolean halantExists; public in...
package com.coder.model; // Generated Jan 23, 2020 8:11:18 PM by Hibernate Tools 5.0.6.Final import javax.persistence.AttributeOverride; import javax.persistence.AttributeOverrides; import javax.persistence.Column; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.FetchType...
package com.alex.patterns.abstractfactory.example.fordfactory; import com.alex.patterns.abstractfactory.example.Jeep; /* this is a specific implementation of car's interface */ public class FordJeep implements Jeep { }
package io.github.satr.aws.lambda.bookstore.test; // Copyright © 2020, github.com/satr, MIT License import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; import com.amazonaws.services.dynamodbv2.local.embedded.DynamoDBEmbedded; import com.amazonaws.services.dynamodbv2.local.shared.access.AmazonDynamoDBLocal; import...
package com.arthur.bishi.tengxun0822; import java.util.ArrayList; import java.util.Arrays; /** * @description: * @author: arthurji * @date: 2021/8/22 20:23 * @modifiedBy: * @version: 1.0 */ public class No1 { public static class ListNode { int val; ListNode next = null; ListNode(int...
package com.toda.consultant.model; import android.app.Activity; import android.content.Context; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.text.TextUtils; import com.toda.consultant.util.GsonUtil; import com.toda.consultant.util.HouseUtil; import com.toda.consultan...
package com.rk; import javax.swing.*; import javax.swing.table.DefaultTableModel; import java.awt.*; public class TableCell_ComboBox extends JFrame { JTable table; JScrollPane scroll; DefaultTableModel model; String header[] = {"Nama", "Jurusan", "Angkatan", "Lulus"}; Object data[][] = { ...
package oo.shopping; import java.util.Scanner; public class GoldenCustomer extends SilverCustomer { String level = "金級"; float returnRate = 0.05f; public GoldenCustomer(){ } public GoldenCustomer(int amount) { this.amount = amount; } @Override public void print1() { System.out.print...
package br.com.candleanalyser.genetics.trainner; import java.io.File; import java.io.IOException; import java.io.Serializable; import java.text.ParseException; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import java...
package com.youthlin.example.compiler.linscript.semantic; import com.youthlin.example.compiler.linscript.YourLangParserBaseListener; import org.antlr.v4.runtime.ParserRuleContext; import org.slf4j.Logger; /** * @author youthlin.chen * @date 2019-09-03 17:15 */ public class BaseListener extends YourLangParserBaseLi...
/* * 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.paragon.sensonic.ui.fragments.upcoming; import com.paragon.brdata.dto.ResidentsRelationRoot; public interface UpcomingNavigator { void init(); void setResidentsList(ResidentsRelationRoot relationRoot); }
package uz.pdp.lesson5task1.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.GenericGenerator; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springfra...
package server; import java.net.MalformedURLException; import java.nio.channels.AlreadyBoundException; import java.rmi.Naming; import java.rmi.NotBoundException; import java.rmi.RemoteException; import dao.SelfLease; public class Coordinator { public static void main(String args[]) throws InterruptedException{ ...
package com.Carousell.android.page; import com.Carousell.android.ElementOP; import com.Carousell.android.GeneralOP; import com.Carousell.util.Log; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileBy; /** Page object for the landing page **/ public abstract class ProductPage { public st...
/* * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/l...
package com.yg.vo; import java.io.Serializable; public class PaymentVo implements Serializable { private static final long serialVersionUID = 48L; private String payMonth; private double amount; public PaymentVo() { } public PaymentVo(String payMonth, double amount) { this.payMonth =...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.webadmin.preferences; import java.util.HashSet; import java.util.List; import java.util.Set; import pl.edu.icm.unity.exceptions.EngineException; import pl.edu.icm.un...
package pl.weakpoint.library.service; import java.util.List; import java.util.Optional; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import pl.weakpoint.library.model.User; import pl.weakpoint.library.repository...
package ru.job4j.convertlist; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.Test; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; /** * Класс ConvertListTest тестирует класс ConvertList. * * @author Goureyev Ily...
package firstfactor.model; import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.*; @Entity @NoArgsConstructor @Getter @Setter public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; priv...
package com.zhongyp.advanced.pattern.observer.jdkobserver; import java.util.Observable; /** * project: demo * author: zhongyp * date: 2018/3/26 * mail: zhongyp001@163.com */ public class ObserverTest{ public static void main(String[] args) { SpecialRepoter repoter = new SpecialRepoter(); Pe...
package br.edu.com.dados.repositories; import java.util.List; import br.edu.com.dados.dao.Dao; import br.edu.com.entities.Aluno; public class RepositoryAluno implements IRepositoryAluno { @Override public boolean salvarAluno(Aluno aluno) { return Dao.getInstance().save(aluno); } @Override pub...
package pt.uminho.sdc.cs; public class ErrorReply extends Reply { private final RemoteInvocationException exception; public ErrorReply(RemoteInvocationException exception) { this.exception = exception; } public RemoteInvocationException getException() { return exception; } pu...
/****************************************************************************** * __ * * <-----/@@\-----> * * <-< < \\// > >-> * ...
/* 3.b.- Escribe una clase Película que herede de la clase Multimedia anterior. * La clase Película tiene, además de los atributos heredados, un actor principal y una actriz principal. * Se permite que uno de los dos sea nulo, pero no los dos. * La clase debe tener dos métodos para obtener los dos nuevos atrib...
package net.awesomekorean.podo.reading.readings; import net.awesomekorean.podo.R; import net.awesomekorean.podo.reading.Reading; import java.io.Serializable; public class Reading07 extends ReadingInit implements Reading, Serializable { String readingId = "R_07"; int readingLevel = 1; final String title ...
import com.sun.org.apache.xerces.internal.xs.XSTerm; import java.util.Map; public class Main { public static void main(String[] args) { MyStream<Person> stream = MyStream.of( new Person("Ivan", 55), new Person("Oleg", 15), new Person("Anton", 30)) ...
package com.pwc.io; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; /** * Created with IntelliJ IDEA. * User: Jason ZX Lin * Date: 30/06/13 * Time: 15:20 * To change this template use File | Settings | File Templates. */ public class File { public static S...
package com.zeal.smartdo.base; import com.zeal.smartdo.http.HttpService; import com.zeal.smartdo.http.ServiceGenerator; import com.zeal.smartdo.mvp.IModel; /** * @作者 廖伟健 * @创建时间 2017/3/27 15:44 * @描述 ${TODO} */ public abstract class BaseModel<T> implements IModel<T> { protected static HttpService sHttpServic...
package at.fhv.itm14.fhvgis.webservice.app.services; import at.fhv.itm14.fhvgis.domain.Device; import at.fhv.itm14.fhvgis.domain.MotionValues; import at.fhv.itm14.fhvgis.domain.Track; import at.fhv.itm14.fhvgis.domain.Waypoint; import at.fhv.itm14.fhvgis.domain.raw.RawMotionValue; import at.fhv.itm14.fhvgis.domain.raw...
package cqut.util; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * 读取源文件 * * @author Cheng * */ public class Sour...
package epfl.sweng.test; import java.util.Arrays; import java.util.HashSet; import org.apache.http.HttpStatus; import org.json.JSONException; import android.util.Log; import epfl.sweng.authentication.UserCredentials; import epfl.sweng.authentication.UserCredentials.AuthenticationState; import epfl.sweng.entry.MainAc...
package mk.finki.ukim.dians.surveygenerator.surveygeneratorcore.domain.jpamodels; import lombok.*; import javax.persistence.*; /** Definicija na model i negovo mapiranje so JPA anotacii*/ @Getter @Setter @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode @Entity @Table(schema = "surveys", name = "question_ans...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int[] values = new int[n]; int[] weights = new int[n]; for(int i...
package com.example.cubomagicoranking2.Domain; public class Tempo { private int minutos; private int segundos; public Tempo() { } public Tempo(int minutos, int segundos) { this.minutos = minutos; this.segundos = segundos; } public Integer getMinutos() { return m...
package com.example.asus.myapp.Teacher; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.example.asus.myapp.R; import com.example.as...
package com.hdy.myhxc.mapper; import com.hdy.myhxc.model.Menu; import com.hdy.myhxc.model.MenuExample; import java.util.List; import org.apache.ibatis.annotations.*; import org.apache.ibatis.type.JdbcType; import org.springframework.stereotype.Repository; @Repository @Mapper public interface MenuMapper { /** ...
package com.example.ahmadrizaldi.traveloka_retrofit; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.example.ahmadrizaldi.traveloka_retrofit.Adapter.RegisterUser; public class MainMenu extends...
/* * Copyright 2003-2005 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
package com.em.service; import java.io.Serializable; import com.em.dto.EmployeeDto; public interface EmployeeServiceInterface { /* * public Long saveEmployee(EmployeeDto employee); public int * deleteEmployee(EmployeeDto employee); public EmployeeDto getEmployee(Long * id); public EmployeeDto updateEmployee...
/** * 会议用户类型基类 * Created by wangy on 2017/1/16. */ public class BaseUser { private static final int LOCAL_USER_PRIORITY = 100; private static final int MAIN_SPEAKER_PRIORITY = 99; private static final int TELEPHONE_USER_PRIORITY = -100; protected RoomUserInfo userInfo; /** ...
package com.jaiaxn.design.pattern.behavioral.visitor; /** * @author: wang.jiaxin * @date: 2019年08月27日 * @description: **/ public interface ComputerPartVisitor { /** * 访问电脑各个部分 * @param computer 电脑 */ void visit(Computer computer); /** * 访问电脑各个部分 * @param mouse 鼠标 */ v...
package org.typhon.client.model.dto; import java.util.*; import java.sql.Timestamp; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class CustomerDetailsDTO { private String oid; private String name; private String surname; private String city; ...
package com.notthemostcommon.creditcardpayoff.Calculator; import org.junit.Test; import org.junit.jupiter.api.DisplayName; import java.util.Map; import static org.junit.Assert.assertEquals; public class InterestCalculatorTest { private InterestCalculator iCalc = new InterestCalculator(); @Test publi...
package serializer; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; public class Serializer { private final ObjectMapper objectMapper; public Serializer() { this.objectMapper = new ObjectMapper(); } public String fromObjectTotStr...
package com.pdd.pop.sdk.http.api.request; import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty; import com.pdd.pop.sdk.http.api.response.PddSmsTemplateQueryResponse; import com.pdd.pop.sdk.http.HttpMethod; import com.pdd.pop.sdk.http.PopBaseHttpRequest; import com.pdd.pop.sdk.common.util.JsonUtil; import...
package download.service.impl; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import berkeley.service.BerkeleyService; import berkeley.service.impl.BerkeleyServiceImpl; import csv.service.CsvService; import csv.service.impl.CsvService...
package other.shortestpath; import java.util.Scanner; /** * 五行代码解决求任意两点最短的路径,因为两点之间的最短路径可以通过第三点,第四点或者第五点等等中转。 * 比如:上海可以到杭州,但是上海可以通过湖南,湖北然后到杭州。 * 上海+杭州 > 上海+湖南+杭州 的距离,则上海+湖南+杭州是最短的距离,则更新路径Map(通过湖南中转) * 上海+杭州 > 上海+湖北+杭州 的距离,上海+湖南+杭州>上海+湖北+杭州 则上海+湖北+杭州是最短的距离,则更新路径Map (通过湖北中转) * 但是有可能: * 上海+杭州>上海 + 湖南 + 湖北 + 杭州的距离...
package com.junzhao.shanfen.fragment; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import...
package com.lucasirc.servercatalog.resources; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.lucasirc.servercatalog.model.Application; import com.lucasirc.servercatalog.model.Server; import com.lucasirc.servercatalog.service.ApplicationResourceService...
package engine.managers.general; import views.GraphicsHelper; import views.screens.GameScreen; import views.screens.ScreenHandler; import views.screens.ScreenType; import views.screens.GameScreen.LocalGameListener; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.s...
package ru.petrovich.algorithms.book.printing; import javax.validation.constraints.NotNull; /** * Интерфейс для вывода элементов на экран */ public interface Printable { @NotNull default String print(int[] array) { if (array.length == 0) { return "Not enough data in array to print"; ...
package service; import dao.UserDAO; import entities.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import javax.transaction.Transactional; /** * Created by linhtran on 14/07/17. */ @Transactional @Repository public class UserService implemen...
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.neuron.mytelkom.model; import java.io.Serializable; public class ComplaitLevel implements Serializable { private static fi...
// ********************************************************** // 1. 제 목: COMMUNITY ADMIN BEAN // 2. 프로그램명: CommunityAdminBean.java // 3. 개 요: 커뮤니티 관리자 bean // 4. 환 경: JDK 1.3 // 5. 버 젼: 1.0 // 6. 작 성: 2004.02.12 mscho // 7. 수 정: // ***************************************************...
package com.trump.auction.activity.domain; import lombok.Data; import lombok.ToString; import java.util.Date; /** * 抽奖记录实体类 * @author wangbo 2018/1/8. */ @Data @ToString public class LotteryRecord { private Integer id; private String prizeNo; private String prizeName; private String prizePic; ...
package com.example.g0294.tutorial.multithread; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.android.v...
package fh.ooe.mcm.accelerometerdatagatherer; import android.app.Service; import android.content.Context; import android.content.Intent; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Handler; im...
package uz.zako.example.service; import org.springframework.core.io.InputStreamResource; import org.springframework.data.domain.Page; import org.springframework.http.ResponseEntity; import org.springframework.web.multipart.MultipartFile; import uz.zako.example.entity.Attachment; import uz.zako.example.model.Result; i...
package be.odisee.se4.hetnest.dao; import be.odisee.se4.hetnest.domain.Brouwsel; import org.springframework.data.repository.CrudRepository; public interface BrouwselRepository extends CrudRepository<Brouwsel, Long> { }
package LIR; public class StmtLabel { public final String stmtName; public final int stmtNum; private static int numberOfStmtLabels = 1; public StmtLabel(String name) { this.stmtName = name; stmtNum = numberOfStmtLabels; numberOfStmtLabels++; } public String toString() { return "_"+stmtName+"_...
package net.tecgurus.service.assembler; import org.springframework.stereotype.Component; import net.tecgurus.dto.ClienteDTO; import net.tecgurus.entities.Banco; import net.tecgurus.entities.Cliente; @Component public class ClienteAssembler extends Assembler<ClienteDTO, Cliente> { @Override public ClienteDTO getDT...
package org.giddap.dreamfactory.leetcode.onlinejudge; import java.util.List; /** * <a href="http://oj.leetcode.com/problems/subsets/">Subsets</a> * <p/> * Copyright 2013 LeetCode * <p/> * Given a set of distinct integers, S, return all possible subsets. * <p/> * Note: * <p/> * Elements in a subset must be in...
import java.util.*; public class Ch12_07 { //searches a 2D array for a given key - takes O(m+n) time complexity and O(1) space complexity public static boolean search2D(List<List<Integer>> matrix, int key) { // starts at top right of matrix int col = matrix.get(0).size() - 1; int row = 0; while (col >= 0 &...
package common.environment; import common.environment.DriverProvider.Driver; import common.environment.driver.Browser; import org.apache.log4j.Logger; import org.junit.rules.TestWatcher; import org.junit.runner.Description; import org.openqa.selenium.WebDriver; import java.io.IOException; public class TestEnvironmen...
package com.cinema.sys.dao; import java.util.List; import java.util.Map; import com.cinema.sys.model.RoleUser; import com.cinema.sys.model.base.TRoleUser; import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.MySqlMapper; public interface RoleUserMapper extends Mapper<TRoleUser>,MySqlMapper<TRol...
package com.tomcat; import java.io.File; import java.lang.management.ManagementFactory; import java.net.URI; import java.net.URISyntaxException; import java.security.CodeSource; import java.security.ProtectionDomain; /** * Created by wangwr on 2016/5/25. */ public class TestLoad { @org.junit.Test public vo...
package com.phicomm.account.service; import com.phicomm.account.operator.GetMapOperation; import com.phicomm.account.operator.UploadContactOperation; import com.phicomm.account.requestmanager.PoCRequestFactory; public class PoCRequestService extends RequestService { @Override protected int getMaxNum...
/* * @(#) EbmsRoutingSearchOrderService.java * Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ebms.ebmsroutingsearchorder.service.impl; import com.esum.appframework.exception.ApplicationException; import com.esum.appframework.service.impl.BaseService; import com.esum.wp.ebms.ebms...
package com.blog.dusk.utils; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; public class GetCurrentUser { public String getCookies(HttpServletRequest request){ // 获取request里面的cookie cookie里面存值方式也是 键值对的方式  Cookie[] cookie = request.getCookies(); Cookie cook = ...
package com.gestion.entity; import java.io.Serializable; import javax.persistence.*; import java.util.Date; import java.util.List; /** * The persistent class for the commande_client database table. * */ @Entity @Table(name="commande_client") public class CommandeClient implements Serializable { p...
package com.bcq.oklib; import android.os.Environment; import java.io.File; /** * @author: BaiCQ * @ClassName: NetConstant * @date: 2018/8/17 * @Description: NetConstant 公共常量值 */ public class Constant { public final static String ACTION_APP_EXIT = "_org_app_exit"; /*****************存储路径 path*************...
package com.capstone.kidinvest.models; import com.capstone.kidinvest.repositories.AddonRepo; import javax.persistence.*; import java.util.List; @Entity @Table(name = "addons") public class Addon { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; @Column(nullable = false, uni...
public class CPUSimulator { public static void main(String[] args) { // creating a gui interface for simulation with the GuiBuilder class GuiBuilder newGui = new GuiBuilder(); } }
package com.b.test.security; import com.b.test.common.CorsConfig; import com.b.test.common.SessionUtil; import com.b.test.common.StringUtils; import com.b.test.util.JsonResult; import org.springframework.beans.factory.annotation.Value; import org.springframework.security.core.AuthenticationException; import org.spring...
package Utilities; import java.applet.Applet; import java.applet.AudioClip; import java.io.FileInputStream; import java.io.InputStream; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.swing.JApplet; import sun.audio.AudioPlayer; import sun.audio.AudioStream; public c...
/* charAt:这个就是获取str字符串中的那个字符 */ class Trim { public static void sop(String str) { System.out.println(str); } public static void StringMyTrim(String str) { int start=0; int end=str.length()-1; //开始位置要小于结束的文职,同时要在字符串str中寻找为空的字符 //双引号和单引号的区别,单引号代表的就是一个字符一个字符 //双引号是字符串,如果这时候使用双引号会造成类型不匹配 while(...
/* * HuskyList App * Authors: Vladimir Smirnov and Shelema Bekele */ package tcss450.uw.edu.huskylist; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.widget.Toast; import org.json.JSONException; import org...
import java.awt.Color; public class TwoSquares{ public static void main(String[] args){ StdDraw.setXscale(-20,20); StdDraw.setYscale(-20,20); final int R = Integer.parseInt(args[0]); final int G = Integer.parseInt(args[1]); final int B = Integer.parseInt(args[2]); final int R2 = Integer.parseInt(args[3...
package com.ngocdt.tttn.specification; import com.ngocdt.tttn.entity.Product; import org.springframework.data.jpa.domain.Specification; public final class ProductSpecification { public static Specification<Product> getFilter(String q, Integer originID, Integer categoryID, Integer brandID , Integer ski...
/** * Copyright 2016 Shyam Bhimani */ package day8_DictionaryAndMaps; import java.util.*; import java.io.*; public class DictionaryExample { // Complete this code or write your own from scratch public static void main(String[] argh) { Scanner in = new Scanner(System.in); int n = in.nextInt(); Map<String, I...
package com.example.netflix_project.src.main.home; public class homeServiece { }
package com.ankit; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; import org.apache.hadoop.mapreduce.lib.input.TextInputFormat; import org.apache.hadoo...
package com.meizu.scriptkeeper.utils.performance; import android.app.ActivityManager; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.net.TrafficStats; import android.os.AsyncTask; import android.util.Log; import com.meizu.scriptkeeper.db.ScheduleDataBase; import java.io...
package com.throle.throle; import android.content.Context; import android.content.SharedPreferences; /** * Created by TEST on 11/12/2017. */ public class PrefMan { SharedPreferences pref; SharedPreferences.Editor editor; Context _context; // shared pref mode int PRIVATE_MOD...
package com.tu.rocketmq.action; import com.tu.mysql.model.User; import com.tu.mysql.service.UserService; import org.apache.rocketmq.client.exception.MQBrokerException; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.rocketmq.client.producer.SendResult; import org.apache.rocketmq.client...
//*Vladimir Ventura // 00301144 // CIS 252 - Data Structures // Problem Set 7: Word Frequency Main Tester // // This program aims to find a file passed as a string to the load(String) function. // I will provide a file, but you can use any text file to be honest. Extensions are required.*// public class WordFrequencyTe...
package usc.cs310.ProEvento.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import usc.cs310.ProEvento.dao.EventDao; import usc.cs310.ProEvento.dao.EventNotificationDao; import usc.cs310.ProEvento.dao.UserDao; import usc.cs310.ProEvento.model.Event...
package com.platform.au.dao.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Repository; import com.platform.au.dao.UserDao; import com.platform.au.entity.User; @Repository("userDaoImpl") public class UserDaoImpl implements UserDao { @Overrid...
/* * Copyright 2002-2020 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...