text
stringlengths
10
2.72M
package seedu.address.logic.commands.deliveryman; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.commons.core.Messages.MESSAGE_DELIVERYMEN_LISTED_OVERVIEW; import static seedu.address.logic.commands.Command...
/* * Watr. Android application * Copyright (c) 2020 Linus Willner, Panu Eronen and Markus Hartikainen. * Licensed under the MIT license. */ package com.watr.app.datastore.room.hydration; import android.content.Context; import androidx.room.Database; import androidx.room.Room; import androidx.room.RoomDatabase; im...
package user.web; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.servlet.RequestDispatcher; import javax.servlet.Servlet; import java...
package com.karya.dao; import java.util.List; import com.karya.model.HolidayList001MB; import com.karya.model.LeaveApp001MB; import com.karya.model.LeaveBlockList001MB; import com.karya.model.LeaveType001MB; public interface ILeaveDao { public void addLeaveApp(LeaveApp001MB leaveapp001MB); public List<LeaveApp0...
package com.ctg.itrdc.janus.rpc.protocol; import java.util.List; import com.ctg.itrdc.janus.common.Constants; import com.ctg.itrdc.janus.common.URL; import com.ctg.itrdc.janus.common.extension.ExtensionLoader; import com.ctg.itrdc.janus.rpc.Exporter; import com.ctg.itrdc.janus.rpc.Filter; import com.ctg.itrdc.janus.r...
package com.example.hawxthy.erebos; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; import org.robolectric.RobolectricGradleTestRunner; import org.robolectric.annotation.Config; import static junit.framework.TestCase.assertNotNull; /** * Created b...
/** * */ package com.fidel.dummybank.controllers; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; im...
import java.util.*; class Min_max{ public static void main(String args[]){ Scanner s=new Scanner(System.in); System.out.print("Enter Size of Array: "); int size=s.nextInt(); int i,temp,j; int num[]=new int[size]; System.out.println("Enter Numbers"); for(i=0;i<(size);i++){ num[i]=s.nextInt(); } for...
/* * 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. */ import java.awt.GridLayout; import java.net.URL; import java.util.ResourceBundle; import javafx.event.ActionEvent; import javafx.fxml...
/** * MIT License * <p> * Copyright (c) 2017-2018 nuls.io * <p> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, ...
package jForce.springhotelreservation.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.web.bind.annotation.*; import jForce.springhotelreservation.exception.NoAvailableRoomsException; import jForce.spring...
package be.sparmentier.discovery.spring; /** * Created by Simon Parmentier on 9/05/16. * Interface to test Factory pattern and beans */ public interface Shape { void getShape(); }
package org.giddap.dreamfactory.cc150; import org.giddap.dreamfactory.leetcode.commons.ListNode; public class Q0202FindNthNodeFromTheEnd { public ListNode findKthNodeFromEnd(ListNode root, int k) { ListNode fast = root; int i = 1; while (i < k) { fast = fast.next; ...
package be.dpms.medwan.common.model.vo.occupationalmedicine; import be.mxs.common.model.vo.IIdentifiable; import java.io.Serializable; /** * Created by IntelliJ IDEA. * User: MichaŽl * Date: 16-juin-2003 * Time: 9:15:23 */ public class RiskCodeVO implements Serializable, IIdentifiable { public Integer riskCo...
package com.vitorapp.dspesquisa.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.vitorapp.dspesquisa.entities.Record; @Repository public interface RecordRepository extends JpaRepository<Record , Long> { }
package pl.edu.agh.to2.models; public class Call { private String callRaw; private CallType callType = CallType.COMMAND; public Call(String callRaw) { this.callRaw = callRaw; } public Call(String callRaw, CallType callType) { this.callRaw = callRaw; this.callType = callTyp...
package com.example.bob.health_helper.Me.adapter; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.example.bob.health_helper.R; import butte...
package model; import util.DateUtil; import util.LocalDateAdapter; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import java.io.Serializable; import java.time.LocalDate; import java.time.Month; import jav...
package com.sasi.collections; import java.util.function.Consumer; public class Filter implements Consumer { static void filter(Integer i ) { if(i==1) { System.out.println(i); } } @Override public void accept(Object i) { if((int)i==1) { System.out.println(i); } } static void add(Integer i...
package net.mv.dao; import javax.persistence.*; //tell the compiler that this can be persisted @Entity public class Animal { /* @Id @GeneratedValue(strategy=GenerationType.AUTO) @Column(name="STUD_ID") private long sid; */ @Id @GeneratedValue(strategy=GenerationType.AUTO) @Column(name="ANIMAL_ID") priv...
package hopamchuan; import org.hibernate.NonUniqueResultException; import org.hibernate.Session; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import util.HibernateUtils; /** * Description * * @author minhho242 on 4/11/15. */ public class SongDAO { private static final Logger LOGGER = LoggerFactor...
/* * 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 ch06homework.Ex17; public class Example { public static void main(String[] args) { Person p1 = new Person("123-123132","계백"); System.out.println(p1.NATION); System.out.println(p1.ssn); System.out.println(p1.name); //p1.NATION = "usa"; //p1.ssn = "515151-1515155"; final 필드는 값 수정 불가 p1.n...
package com.practice.qa.testcases; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class SelectCalenderByJS...
package com.nowcoder.community; import com.nowcoder.community.dao.MessageMapper; import com.nowcoder.community.entity.Message; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.s...
package com.example.administrator.panda_channel_app.MVP_Framework.module.panda_report; import android.content.Context; import com.example.administrator.panda_channel_app.MVP_Framework.base.BasePresenter; import com.example.administrator.panda_channel_app.MVP_Framework.base.BaseView; import com.example.administrator.p...
package br.com.fatec.tcc.rotasegura.roadMap; import com.google.gson.annotations.Expose; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Leg { private Distance distance; private Duration duration; private String end_address; private End...
package com.qt.functionsPage.controller; import java.util.HashMap; import java.util.Map; import org.json.JSONException; import org.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import com.qt.quartz.service.QuartzJobService; import co...
/* * Test 19 * * Testiamo ora l'operatore ||. */ class HelloWorld { static public void main(String[] argv) { boolean a; int x=10; int b=15; int c=17; int d=13; a=(x<b) || (c>d); System.out.println(a); // stampo true. } }
package com.peihua.interceptor; import com.peihua.pojo.User; import org.springframework.web.servlet.HandlerInterceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public class LoginInterceptor implements HandlerInterceptor { ...
package org.ordogene.cli; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunne...
package com.example.demo.service; import com.example.demo.dto.Product; import com.example.demo.util.RedisSerializer; import com.example.demo.util.stats.RecordTime; import com.example.demo.util.stats.TimeParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service;...
package com.example.thread; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * Created by zhaoningqiang on 16/7/8. */ public class CountdownLatchTest { public static void main(String[] args) throws InterruptedException { ...
package UI.Sends; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Toolkit; import javax.mail.Message; import javax.swing.JFrame; import javax.swing.WindowConstants; import Util.Email.EmailDataManager; import DataInfo.EmailMessage; import DataInfo.EnumTyp...
package us.spring.dayary.common.tool; public class XSS { public static String xssShield(String str) { str = str.replaceAll("&", "&amp;"); str = str.replaceAll("<", "&lt;"); str = str.replaceAll(">", "&gt;"); str = str.replaceAll("\"", "&quot;"); str = str.replaceAll("\'", ...
package com.javawebtutor.Controllers; import com.javawebtutor.Models.Users; import com.javawebtutor.Utilities.HibernateUtil; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.PasswordField; import org.hibernate.Session; import org.hibernate.SessionFactory; import java.io.IOExceptio...
/** * */ package net.sf.taverna.t2.component.ui.menu.component; import static java.awt.GridBagConstraints.BOTH; import static java.awt.GridBagConstraints.WEST; import static javax.swing.JOptionPane.ERROR_MESSAGE; import static javax.swing.JOptionPane.OK_CANCEL_OPTION; import static javax.swing.JOptionPane.OK_OPTION...
package com.class3601.social.models; import com.class3601.social.common.Messages; public class Friend { private String friendIdPrimarKey; private String id; private String friendid; private String status; public Friend() { setId(Messages.UNKNOWN); setFriendid(Messages.UNKNOWN); setStatus(Messages.UNKNOWN...
import java.util.*; import java.io.*; import java.math.*; class Solution { public static void main(String args[]) { Scanner in = new Scanner(System.in); int n = in.nextInt(); // the number of temperatures to analyse in.nextLine(); String temps = in.nextLine(); // the n temperatu...
package eulen.po; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import org.testng.Assert; import funciones.Screenshooter; public class LoginEulenPO { private WebDriver driver; @FindBy(id = "in...
package falcons.client; import java.io.File; import java.io.IOException; import falcons.client.controller.ClientMasterController; import falcons.client.controller.DataMasterController; import falcons.client.network.ClientConnection; import falcons.client.network.SystemClientPlugin; import falcons.plugin.Ab...
package sop.filegen.generator.impl; import java.io.File; import java.io.OutputStream; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.sql.DataSource; import net.sf.jasperreports.engine.JRDataSource; import net.sf.jasperreports.engine.JRExporter; import net.sf.jasperreports....
package com.itheima.day_03.sleep; public class PassengerA extends Person { @Override public void sleep() { System.out.println("PassengerA is sleeping"); } }
package vue; import java.net.URL; import dao.Requete; import model.Main; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class Vue { public static Stage parentWindow; public static String NumCompte; public Vue(String Vu...
package com.yecoo.util; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Properties; import java.util.Random; ...
/* * @(#) DbifInfo.java * Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ims.chubdblinfo; import com.esum.wp.ims.chubdblinfo.base.BaseChubDblInfo; /** * * @author heowon@esumtech.com * @version $Revision: 1.2 $ $Date: 2009/01/15 09:23:12 $ */ public class ChubDblInfo exte...
/* * Copyright 2002-2018 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 ru.job4j.array; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; public class MatrixTest { @Test public void whenMultipleTableWithThreeThenMultipleTable() { Matrix matrix = new Matrix(); int[][] resultArray = matrix.multiple(3); int[][] expectArr...
package com.esum.framework.security.pki.x509; import java.io.ByteArrayInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.net.MalformedURLException; import java.net.URL; import java.security.GeneralSecurityException; import java....
package com.example.qunxin.erp.activity; import android.Manifest; import android.app.Activity; import android.app.Dialog; import android.content.ContentResolver; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; im...
package com.kidscademy.apiservice.parser; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.kidscademy.apiservice.model.PhysicalTrait; import js.dom.Document; import js.dom.EList; import js.dom.Element; import js.lang.BugError; import js.util.Strings; publ...
package bn.impl.dynbn; import java.io.PrintStream; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Map.Entry; import java.util.Vector; import bn.BNException; import bn.IBayesNode; import bn.distributions.Distribution.SufficientStatistic...
/* * 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 de.kaojo.ejb.dto.interfaces; /** * * @author jwinter */ public interface ChatRoomChatRequest { public Long getChatRoom...
package com.Dao; import com.entity.User; import com.util.JDBCUtil; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; public class UserDao { private static JDBCUtil jdbcUtil = new JDBCUtil(); /** * 注册用户 */ ...
package xyz.noark.core.network; import java.lang.annotation.Annotation; /** * 处理器方法. * * @author 小流氓[176543888@qq.com] * @since 3.4 */ public interface HandlerMethod { /** * 获取这个处理器方法上的指定注解 * * @param annotationClass 注解类 * @param <T> 注解类型 * @return 如果有此类型的注解则返回,如果没有就返回nu...
package com.CDH.myapplication.ui.fragments; import androidx.lifecycle.ViewModelProviders; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.f...
package parties; /** * Created by Amaury on 10/04/2017. */ public class CaseStandard extends Case { public CaseStandard(int x, int y, String pseudoJoueur) { super(x, y, pseudoJoueur); this.sortie = false; } public CaseStandard(int x, int y, String pseudoJoueur, Fantome fantome) { ...
package com.zl.service.impl; import com.zl.mapper.AccessoryMapper; import com.zl.pojo.AccessoryDO; import com.zl.pojo.AccessoryDOExample; import com.zl.service.AccessoryService; import com.zl.util.AjaxPutPage; import com.zl.util.AjaxResultPage; import com.zl.util.MessageException; import org.springframework.beans.fact...
/* * Copyright 2017 Goldman Sachs. * 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 to in...
/* * 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.services; import com.dao.ImplDao; import static com.dao.ImplDao.getEmf; import static com.dao.ImplDao.getEntityMa...
package com.dx.visitor2; public class FeedingPet implements AnimalPet{ AnimalPet [] animalPets; public FeedingPet(){ animalPets = new AnimalPet[]{new DogPet(),new CatPet()}; } @Override public void accept(Humen humen) { for(AnimalPet pet:animalPets){ pet.accept(humen); ...
public class Print_rows { public static void main(String[] args){ int firstarray[][] = {{8,9,10,11},{12,13,14,15}}; int secondarray[][] = {{30,31,32,33},{43},{4,5,6}}; // firstarray[0][1] = 9 //at the end, write this code System.out.println("This is th...
package com.cmi.bache24.data.remote; import android.content.Context; import android.os.CountDownTimer; import android.util.Log; import com.cmi.bache24.data.model.AttendedReport; import com.cmi.bache24.data.model.Comment; import com.cmi.bache24.data.model.Picture; import com.cmi.bache24.data.model.PushRecord; import c...
package com.example.starbucks_piece; import java.util.UUID; public class Food { private String mTitle; private int mImgPath; private UUID mId; public Food(){} public Food(String title, int imgPath){ mTitle = title; mImgPath = imgPath; } public UUID getId(...
package de.varylab.discreteconformal.uniformization; import static de.varylab.discreteconformal.adapter.HyperbolicModel.Klein; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Set; import java.util.TreeSet; i...
package org.foolip.mushup; import org.musicbrainz.model.*; import org.musicbrainz.webservice.*; import org.neo4j.api.core.*; import org.neo4j.util.index.IndexService; import java.util.*; public class Replicator { private static Replicator instance; private MushArtistFactory maf; public Replicator(NeoS...
package com.dbs.portal.ui.component.view; import java.util.List; import java.util.Map; import com.dbs.portal.ui.component.pagetable.IPagedTableParameter; import com.dbs.portal.ui.component.pagetable.PagedTableDataType; import com.vaadin.data.Container; public interface ITableResultView extends IResultView{ ...
/* * Copyright (c) 2017-2020 Peter G. Horvath, All Rights Reserved. * * 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 req...
package com.legaoyi.protocol.down.messagebody; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.fasterxml.jackson.annotation.JsonProperty; import com.legaoyi.protocol.message.MessageBody; /** * 摄像头立即拍摄命令 * * @author <a href="mailto:shengbo.gao@gmail...
package com.citibank.ods.modules.product.fundsubscription.functionality; import java.util.Date; import java.util.List; import org.apache.commons.beanutils.BeanUtils; import org.apache.struts.action.ActionForm; import com.citibank.ods.common.functionality.BaseFnc; import com.citibank.ods.common.functionality...
package alien4cloud.paas.wf; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.elasticsearch.common.collect.Lists; import org.elasticsearch.common.collect.Maps; import alien4cloud.exception.AlreadyExistException; import alien4cloud.model.components.Operati...
package com.learn.leetcode.week4; import java.util.HashSet; import java.util.Set; /** * 给定一个整数数组,判断是否存在重复元素。 * * 如果任意一值在数组中出现至少两次,函数返回 true 。如果数组中每个元素都不相同,则返回 false 。 */ public class SolutionContainsDuplicate { public static boolean containsDuplicate(int[] nums) { Set<Integer> s = new HashSet<>(); ...
package bank.test.david; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.slf4j.Logger; @Component public class Receiver { private final Logger logger = (Logger) LoggerFactory.getLogger(Receiver.class); public CalcResult handleMessage(Request message) throws...
package com.developworks.base; import org.junit.Test; /** * <p>Title: </p> * <p>Description: </p> * <p>Author: ouyp </p> * <p>Date: 2018-05-08 15:30</p> */ public class TryExceptionPuzzles { @Test public void f1() { try{ System.out.println("hello world"); }catch (RuntimeExcep...
package com.trump.auction.trade.dao; import com.trump.auction.trade.domain.RobotInfo; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Service; import java.util.List; /** * 机器人 * * @author zhangliyan * @create 2018-01-02 17:48 **/ @Service public interface RobotInfoDao { /*...
public class prob1 { int result[] = new int[2]; public int[] twoSum(int[] nums, int target) { outerloop: for(int i =0; i<nums.length; i++) { for(int j = i+1; j<nums.length; j++) { if(nums[i]+ nums[j]== target) { int result[] = {i,j}; break outerloop; } } } return result; } public sta...
package org.juxtasoftware.model; import java.util.HashSet; import java.util.Set; /** * Data used to generate the histogram * @author loufoster * */ public class VisualizationInfo { private final ComparisonSet set; private final Witness base; private final Set<Long> witnesses = new HashSet<Long...
package org.musicbrainz.model; public abstract interface EntityFactory {}
package com.exam.logic.actions.profile; import com.exam.logic.Action; import com.exam.logic.services.PhotoService; import com.exam.logic.services.PostService; import com.exam.logic.services.ProfileService; import com.exam.logic.services.UserService; import com.exam.models.*; import javax.servlet.http.HttpServletReque...
package com.vti.frontend; import com.vti.backent.Exercise_1; import com.vti.backent.Exercise_2; import com.vti.backent.Exercise_3; import com.vti.backent.Exercise_4; import com.vti.backent.Exercise_5; public class Program_1 { public static void main(String[] args) { // Exercise_1 ex1 = new Exercise_1(); ...
package cern.molr.inspector.remote; import cern.molr.inspector.controller.JdiController; import org.junit.Before; import org.junit.Test; import java.io.*; import java.time.Duration; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; public class JdiControllerReaderWriterTest { pr...
package week06d05; import org.junit.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; public class BottleTest { @Test public void testConstructorNull() throws IllegalArgumentException { Exception exception = assertThrows(I...
package com.test.processor; import com.test.task.Task; import java.util.concurrent.Future; public interface TaskProcessor { Future<String> calculate(Task task); int getThreadPoolCapacity(); void shutdown(); }
package com.example.elite.telephonereport; import android.content.DialogInterface; import android.os.Handler; import android.os.Message; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import a...
package nxpense.service; import nxpense.domain.Attachment; import nxpense.domain.Expense; import nxpense.exception.ServerException; import nxpense.service.api.AttachmentService; import nxpense.service.api.ExpenseService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory....
package net.lantrack.framework.sysbase.entity; import net.lantrack.framework.core.entity.BaseEntity; import org.springframework.context.annotation.Description; /** * 用户职务表 * 2018年1月16日 * @author lin */ public class Duty extends BaseEntity<Duty> { /** * id */ private Integer id; /** * ...
package Testcase; import static org.junit.Assert.fail; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.junit.BeforeClass; import org.junit.Test; import org.openqa.selenium.By; import com.Core.BaseClass; import com.Core.CommFunc; import com.csvreader.CsvReader; import TestScript.ControlsStockTS; ...
package com.gaby.service.stu; import com.gaby.mybatis.auto.stu.entity.Student; import com.gaby.mybatis.base.service.BaseService; import com.gaby.stu.model.student.list.Item; import com.gaby.stu.model.student.query.Response; import java.util.List; import java.util.Map; public interface CustomStudentService extends Ba...
import java.io.*; import java.net.*; import java.util.*; import java.math.*; import java.text.*; import java.util.concurrent.ThreadLocalRandom; public class ChandyANDModel { public enum msgType { PROBE, DEADLOCK } public enum processType { ACTIVE, WAITING, DEADLOCKED } static Integer myId = 0; static Int...
package com.eshop.models; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotBlank; import com.eshop.exceptions.InvalidInputException; public abstract class Article { private String label; private String model; private double price...
package com.ztstudio.ane.MobileMarket; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.util.Log; import com.adobe.fre.FREContext; import com.adobe.fre.FREFunction; import com.adobe.fre.FREInvalidObjectException; import com.adobe.fre.FREObject; import com.ado...
/* * Copyright 2002-2022 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.ashishkaul.rest.interfaces; import java.util.List; public interface ISlamBook { String AddPersonInfo(String data); String EditPersonInfo(String id, String data); String RemovePersonInfo(String id); String ViewPersonInfo(String id); List<String> ViewPersonsInfo(); }
import java.util.Scanner; import java.util.Locale; public class uri2780 { public static void main(String[] args) { Locale.setDefault(Locale.US); Scanner input = new Scanner(System.in); int distancia; distancia = input.nextInt(); if(distancia <= 800) { System.out.println("1"); } else if(distan...
package com.example.trialattemptone.database; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.DatabaseUtils; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteEx...
package com.leador.androidannotationsdemo; import android.support.v7.app.AppCompatActivity; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import org.androidannotations.annotations.Click; import org.androidannotations.annotations.EActivity; import org.androidannotations.a...
package com.example.dsucksto.todo.Model; import org.joda.time.DateTimeUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; public class IntervalUnitTest { @Bef...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS.utils; /** * A routine to produce a nice looking hex dump * * @author Brian Wellington */ public class hexdump { private static final char[] hex = "0123456789ABCDEF".toCharArray(); ...
package com.example.android_lab5; import android.app.Application; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import com.google.android.gms.maps.model.LatLng; import java.util.List; public class AppRepository { private final AppDao appDao; private MutableLi...
package com.alpha.toy.vo; import java.util.Date; public class BoardVo { private int no; private int board_no; private int member_no; private String board_title; private String board_content; private int board_readcount; private Date board_writedate; public BoardVo() { super(); } public BoardVo(int no...