text
stringlengths
10
2.72M
import java.util.Scanner; class YoungerAgeException extends RuntimeException // inheriting properties from parent exception class { YoungerAgeException(String msg) // parameterized constructor { super(msg); } } public class Voting { public static void main(String[] args) { Scanner s=new Scanner(System...
/** */ package featureModel.impl; import featureModel.FeatureModelPackage; import featureModel.Group; import featureModel.GroupedFeature; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.commo...
package me.d2o.statemachine.config; import java.lang.reflect.Method; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.config.BeanPostProcessor; import org.sp...
package org.springframework.samples.petclinic.admin.model; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; public interface ScannerRepository extends JpaRepository<Alert, Integer>{ // List<Alert> findByLastName(String lastName); }
package com.allmsi.test.model; import java.util.List; public class MethodVo { private String url; private String type; private String className; private String method; private List<String> parameters; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } ...
import java.util.*; class message { public static void main(String args[]) { Scanner x=new Scanner(System.in); System.out.println("Enter User Name::"); String uname=x.nextLine(); System.out.println("GET WELL SOON::"+uname); }//close of main }//close of class
package com.ecommerce.engineerk; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class EngineerkApplication { public static void main(String[] args) { SpringApplication.run(EngineerkApplication.class, args); } ...
package cn.bjfu.hotiems; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerRecord; import java.io.BufferedReader; import java.io.FileReader; import java.util.Properties; /** * Created by jxy on 2021/4/15 0015 18:06 */ public class KafkaProducerUtil { publi...
/* * Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.types.authn; import pl.edu.icm.unity.types.DescribedObjectImpl; /** * Authentication realm definition. * @author K. Benedyczak */ public class AuthenticationRealm...
package com.bruce.factory.simplefactory.pizzastore.improve.order; import com.bruce.factory.simplefactory.pizzastore.improve.pizza.Pizza; import com.bruce.factory.simplefactory.pizzastore.improve.pizza.CheesPizza; import com.bruce.factory.simplefactory.pizzastore.improve.pizza.GreekPizza; import com.bruce.factory.simpl...
// Frank Kepler 4/16/2013 Heroes & MONSTERS!! // All extra credit attempted import java.util.*; public abstract class Hero extends DungeonCharacter { protected double c2b; protected int turns; public Hero(String name, int hp, int attackSpeed, int damageLow, int damageHigh, double stri...
package com.pichincha.prueba.enums; public enum FormatoFecha { YYYY_MM_DD("yyyy-MM-dd"), YYYY_MM_DD_HH_MM_SS("YYYY-MM-DD hh:mm:ss"); private String name; FormatoFecha(String name) { this.name = name; } public String getName() { return name; } }
package com.nanyin.repository; import com.nanyin.entity.Role; import com.nanyin.entity.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.querydsl.QuerydslPredicateExecutor; import org.springframework.stereotype.Comp...
package Level1; import java.util.Scanner; public class Test7 { public static void main(String[] args) { /* 흔한 수학 문제 중 하나는 주어진 점이 어느 사분면에 속하는지 알아내는 것이다. 사분면은 아래 그림처럼 1부터 4까지 번호를 갖는다. "Quadrant n"은 "제n사분면"이라는 뜻이다. 예를 들어, 좌표가 (12, 5)인 점 A는 x좌표와 y좌표가 모두 양수이므로 제1사분면에 속한다. 점 B는 x좌표가 음수이고 y좌표가 양수이므로 제2사분면에 속한다. 점의...
package com.alibaba.druid.bvt.sql.odps; import com.alibaba.druid.sql.SQLUtils; import junit.framework.TestCase; public class OdpsLoadTest extends TestCase { public void test_load_0() throws Exception { String sql = "LOAD OVERWRITE TABLE tsv_load_tbl \n" + "FROM\n" + "LOCATI...
package com.annotation.day01; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Day01 { /** * 1720. 解码异或后的数组 * * 异或运算具有如下性质: * * 异或运算满足交换律和结合律; * * 任意整数和自身做异或运算的结果都等于 00,即 x \oplus x = 0x⊕x=0; * * 任意整数和 00 做异或运算的结果都等于其自身,即 x \oplu...
/* * 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...
/*Kane G * April 19 * door choice */ package gameZone; import java.util.Scanner; public class DoorChoice { public static void main(String[] args) { // TODO Auto-generated method stub int door; int choice; Scanner input = new Scanner(System.in); do{ System.out.println(" Welocome to...
package de.mq.vaadin.util; import java.util.Collection; import org.springframework.aop.support.AopUtils; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import org.springframework.util.Assert; import org.springframework.util.ClassUtils; import org.s...
package com.infoworks.lab.cryptor.impl; import com.infoworks.lab.cryptor.definition.Cryptor; import com.infoworks.lab.cryptor.util.CryptoAlgorithm; import com.infoworks.lab.cryptor.util.HashKey; import com.infoworks.lab.cryptor.util.Transformation; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; i...
package annotations; import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) public @interface WithIntArg { int val() default 1; }
public enum PoisonousMushrooms { AMANITA_MUSCARIA(false), AMANITA_PANTHERINA(true), CHLOROPHYLLUM_MOLYBDITES(false), ENTOLOMA(true), INOCYBE(true), WHITE_CLITOCYBE(true), TRICHOLOMA_PARDINUM(true), TRICHOLOMA_EQUESTRE(true), HYPHOLOMA_FASCICULARE(false), PAXILLUS_INVOLUTUS(true),...
package com.xiaomi.view.exception; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import javax.servlet.http.HttpServletRequest; /** * @author hekun */ @ControllerAdvice public class GlobalDefault...
/* * 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 domain; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Date; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; public class Price { private static final SimpleDateFormat inputDf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX")...
public class Nest{ public static void main(String[] args){ int x, y; x = 0; y = 0; while (x < 11){ while (y < 5){ System.out.print(" * "); y++; } x ++; System.out.println(""); y = 0; } } }
package com.codeaches.activmq.embedded; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.jms.annotation.JmsListener; import org.springframework.stereotype.Service; @Service public class JmsConsumer { Logger log = LoggerFactory.getLogger(JmsConsumer.class); @JmsListener(destina...
/** * Course: Development for mobile applications. * Umeå University * Summer 2019 * @author Alex Norrman */ package se.umu.cs.alno0025.fjallstugan; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.maps.model.LatLng; public class Fjallstation implements ...
package com.vpt.pw.demo.dtos.crf5bDTO; import com.vpt.pw.demo.dtos.PregnantWomanDTO; import com.vpt.pw.demo.dtos.StudiesDTO; import com.vpt.pw.demo.model.Team; import java.util.List; public class FormCrf5bDTO { private Integer id; private Team team; private StudiesDTO studiesDTO; private Integer fol...
//Name: Adham Elarabawy public class WordSearch { private String[][] oMatrix; private int rows; private int columns; public WordSearch(int size, String str) { oMatrix = new String[size][size]; int index = 1; for(int i = 0; i < size; i++) { for(int j = 0; j < size; j++) { oMatrix[i][j] = str.s...
package com.atlassian.theplugin.idea.jira.tree; import com.atlassian.theplugin.commons.remoteapi.ServerData; import com.atlassian.theplugin.commons.util.MiscUtil; import com.atlassian.theplugin.idea.ui.Entry; import com.atlassian.theplugin.idea.ui.tree.paneltree.AbstractTreeNode; import com.atlassian.theplugin.jira.mo...
package com.codingchili.instance.model.skills; import com.codingchili.core.storage.Storable; /** * Configuration used for harvesting resources. */ public class HarvestConfig implements Storable { private String id; // skill required to harvest the resource. private SkillType skill; // amount of exp...
package pers.mine.scratchpad.other; import java.util.concurrent.atomic.AtomicInteger; public class SafepointTest { public static AtomicInteger num = new AtomicInteger(0); public static void main(String[] args) throws InterruptedException { // Runnable runnable = () -> { // for (int i = 0; i...
package com.spring.testable.mock; import io.swagger.annotations.Api; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.ParameterBuilder; import springfox.docume...
/* * 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 Ex; /** * * @author YNZ */ class UnReached { public static void main(String[] args) { try { ...
package org.patsimas.mongo.domain; import lombok.*; import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.FieldType; import org.springframework.data.mongodb.core.mapping.MongoId; import java.util.List; @Data @Builder @NoArgsConstructor @AllArgsConstructor...
package test.nested; import test.other.Imported; import static test.other.Static.method; import static test.other.StaticAll.alpha; import static test.other.StaticAll.beta; public class Src { Imported imported; public void test() { method(imported); alpha(); beta(); } }
package com.example.trialattemptone; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CalendarView; imp...
/** Esto es un comentario para probar javadoc * Esta clase mostrará el mensaje Mi segundo programa y bien comentado!! * <strong> realizado en Septiembre de 2014 </strong> * * @author Javi * @version 1.2 */ public class HolaMundo2 { /** Este metodo contiene el ccdigo ejecutable de la clase * * @param args Lista de a...
package at.fhv.itm14.fhvgis.persistence.exceptions; /** * Author: Philip Heimböck * Date: 18.12.15. */ public class PersistenceException extends Exception { public PersistenceException() { } public PersistenceException(String message) { super(message); } public PersistenceException(Str...
package at.fhv.itm14.fhvgis.persistence.dao.interfaces; import java.util.Date; import java.util.List; import at.fhv.itm14.fhvgis.persistence.exceptions.PersistenceException; import com.vividsolutions.jts.geom.Geometry; import at.fhv.itm14.fhvgis.domain.POI; import at.fhv.itm14.fhvgis.domain.Schedule; import at.fhv.i...
package com.openclassrooms.apisafetynet.repository; import java.util.List; import java.util.Optional; import java.util.Set; import org.springframework.data.jdbc.repository.query.Modifying; import org.springframework.data.jdbc.repository.query.Query; import org.springframework.data.repository.CrudRepository; ...
package com.st.common.util; import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; public class StringUtil { public static final String DEFAULT_CHARTSET = "UTF-8"; /** * 判断字符串是否为空 * * @param str * @return */ public static boolean isBlank(Stri...
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations; import org.giddap.dreamfactory.leetcode.onlinejudge.WordBreak; import java.util.Set; /** * one-dimension DP */ public class WordBreakImpl implements WordBreak { public boolean wordBreak(String s, Set<String> dict) { final int len = s...
package io.devchaos.comm.domain; import lombok.Data; import javax.validation.constraints.NotBlank; /** * @author Paulo Jesus */ @Data public class PlayerEvent { @NotBlank private String playerId; }
package ru.avokin.highlighting.impl; import ru.avokin.highlighting.CodeHighlighter; import ru.avokin.highlighting.CodeHighlighterManager; import ru.avokin.utils.FileUtils; import java.io.File; import java.util.Map; /** * User: Andrey Vokin * Date: 06.10.2010 */ public class CodeHighlighterManagerImpl implements C...
package com.zkdemo; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; public class XMLMemRead { public static void main(String[] args) throws Exception { File f = new File("pom.xml"); BufferedInputStream bins = new BufferedInputStream(new FileInputStream(f)); by...
package com.example.springmvc.controller; import com.example.springmvc.model.User; import com.example.springmvc.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.ui.M...
package com.xingzy.viewmodels; import com.xingzy.data.Plant; import com.xingzy.data.PlantRepository; import java.util.List; import androidx.lifecycle.LiveData; import androidx.lifecycle.MediatorLiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.Transformations; import androidx.lifecycle.V...
package com.oa.dictionary.dao; import java.util.List; import com.oa.dictionary.form.Dictionary; import com.oa.page.form.Page; public interface DictionaryDao { public void addDictionary(Dictionary dictionary); public void updateDictionary(Dictionary dictionary); public void deleteDictionary(Integer dictionaryId...
public class precisionAtR { }
package com.android.gestiondesbiens.model; public class Personnel { private int personnelId; public int getPersonnelId() { return personnelId; } public String getPersonnelName() { return personnelName; } public void setPersonnelId(int personnelId) { this.personnelId = personnelId; } public void setPe...
package pro.likada.dao; import pro.likada.model.Agreement; import pro.likada.model.AgreementStatus; import pro.likada.model.AgreementType; import pro.likada.model.Contractor; import java.util.List; /** * Created by Yusupov on 1/25/2017. */ public interface AgreementDAO { Agreement findById(long id); List...
package com.codigo.smartstore.sdk.core.money; import java.io.IOException; import java.io.InputStream; import java.util.Comparator; import java.util.Properties; import java.util.function.LongFunction; import java.util.function.LongUnaryOperator; import java.util.stream.IntStream; import com.codigo.smartstore.sdk.core....
/* * #%L * Diana UI Core * %% * Copyright (C) 2014 Diana UI * %% * 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...
/** #kmp #binary-search */ import java.util.Scanner; class TextEditor { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String A = sc.nextLine(); String B = sc.nextLine(); int n = Integer.parseInt(sc.nextLine()); // calculate prefix int[] prefix = new int[B.leng...
package com.eappcat.base.query; public class BadQueryException extends RuntimeException { public BadQueryException(Exception e) { super(e); } public BadQueryException(String e) { super(e); } }
package alg; import alg.rerank.Reranker; import profile.Profile; import alg.Recommender; import util.reader.DatasetReader; import java.util.List; /** * Re-ranks a baseline set of recommended items according to a criteria other than predicted rating * i.e. recommendation set diversity */ public class RerankingRec...
package de.mq.phone.domain.person; import java.util.Collection; import de.mq.phone.domain.person.support.BankingAccount; public interface Person extends PersonStringAware { String id(); String firstname(); String name(); Collection<Contact> contacts(); void assign(final Contact contact);...
package com.norg.worldofwaste; import com.norg.worldofwaste.gameobjects.Subject; import com.norg.worldofwaste.gameobjects.Valuable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class ObjectProcessor { public stati...
package com.ruslangilazov.sp; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.app.Fragment; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.StaggeredGridLayoutManager; import a...
package com.epion_t3.log.command.model; import com.epion_t3.log.command.runner.LogExtractDuringTimeRunner; import com.epion_t3.core.common.annotation.CommandDefinition; import com.epion_t3.core.common.bean.scenario.Command; import lombok.Getter; import lombok.Setter; import org.apache.bval.constraints.NotEmpty; /** ...
package com.minhvu.proandroid.sqlite.database.models.DAO; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; import and...
package com.metoo.foundation.domain; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import javax.persistence.CascadeType; impo...
package com.lmlnemesis.minesweeper.dto; import lombok.Data; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; @Data public class SizeDto { @NotNull(message = "rows amount can not be null") @Min(value=1, message = "Row should be grater than 0") private Integer rows; ...
package com.stk123.model.strategy; public interface Sortable { double getValue(); void setOrder(int order); void setPercentile(double percentile); double getPercentile(); static int compare(boolean asc, Sortable o1, Sortable o2){ //return (int) (asc ? o1.getValue() - o2.getValue() : o2...
/* * 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 morpion; import java.util.ArrayList; /** * * @author vinotco */ public class Morpion { /** * @param args the com...
package com.alibaba.dubbo.remoting.http; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; //HTTP处理器接口 public interface HttpHandler { /** * invoke. * * 处理器请求 * * @param request ...
package cn.swsk.rgyxtqapp; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ListView; import java.util.List; import java.util.Map; import cn.swsk.rgyxtqapp.adapter.AnquanItemsAdapter; import cn.swsk.rgyxtqapp.bean.TEqui...
package com.yuneec.uartcontroller; import com.yuneec.uartcontroller.UARTInfoMessage.CalibrationRawData; public class UartInterface { static native int Recv(byte[] bArr, int i); public static native UARTInfoMessage RecvMsg(); static native int Send(byte[] bArr, int i); static native void UpdateRfVer...
import java.io.*; public class SequenceInputOutputStream { public static void main(String[] args) throws IOException{ // TODO Auto-generated method stub FileInputStream fis1 = new FileInputStream("C:/Users/RAKESH/Desktop/Tutorial.txt"); FileInputStream fis2 = new FileInputStream("C:/Users/RAKESH/Desktop/Tutori...
package DAO; import model.Serviços; import java.util.ArrayList; import java.util.List; public class ServiçosRepositorio { private static ServiçosRepositorio serviçosRepositorio; private List<Serviços> serviços = new ArrayList<>(); public static ServiçosRepositorio getInstance() { if (serviçosRep...
import java.util.Scanner; public class Principal { /** * @param args the command line arguments */ public static void main(String[] args) { do { Scanner teclado = new Scanner(System.in); System.out.print("\n** MENU **"); System.out.print("\n\n -1: Jogar"); ...
package net.dvinfosys.alertdialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.widget.Toast; public class MyAlertDialog extends DialogFragment { @Override public Dialo...
package com.example.fisso.morpiontest.model; import android.view.View; import android.widget.ImageButton; import android.widget.ImageView; import com.example.fisso.morpiontest.R; import com.example.fisso.morpiontest.model.Joueur; public class Matrice { private ImageView image; private ImageButton a1,a2,a3,b...
package com.wangcheng.concurrent.thread; /** * description: * 不能调用两次start()方法,会抛出议程 * threadStatus初始值为0 * if (threadStatus != 0) * throw new IllegalThreadStateException(); * * @author WangCheng * create in 2019-11-10 21:50 */ public class StartTwiceThread { public static void main(String[] ar...
/** */ package featureModel; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Group</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@...
package business.implementation.Interfaces; import business.model.gameProfile; import javax.swing.table.TableModel; import java.sql.SQLException; public interface AchievementsManagerInterface { /* Check if achievements have been unlocked */ void checkAchievement(gameProfile gameProfile) throws SQLException;...
package com.ahuo.personapp.ui.activity; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.support.v4.widget.SwipeRefreshLayout; import android.text.TextUtils; import android.view.ViewGroup; import android.webkit.WebChromeClient; import android.webkit.WebSettings...
package com.nexlesoft.tenwordsaday_chiforeng.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Rect; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.TouchDelegate; import android.view.View; import android.view.View.OnClickLi...
package com.tyj.venus.controller.home; import com.tyj.venus.controller.BaseController; import com.tyj.venus.entity.Systems; import com.tyj.venus.entity.User; import com.tyj.venus.entity.UserInfo; import com.tyj.venus.service.MenuService; import com.tyj.venus.service.SystemService; import com.tyj.venus.service.UserInfo...
package cc.lau.http; import org.apache.http.HttpStatus; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; imp...
package com.example.a.book_recommend; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerV...
//Figure 3-2b import Semaphore; public class SomeClass extends Object { // Shared objects // Proctect resource One public static Semaphore resource_1 = new Semaphore(1); // Proctect resource Two public static Semaphore resource_2 = new Semaphore(1); class...
/* * 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.mypack.listmapping; import java.util.List; /** * * @author mnagdev */ public class Question { ...
/* * $Header: /home/cvsroot/HelpDesk/src/com/aof/util/Constants.java,v 1.1 2004/11/10 01:39:03 nicebean Exp $ * $Revision: 1.1 $ * $Date: 2004/11/10 01:39:03 $ * * ==================================================================== * * Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved. * * ...
package net.sf.throughglass.timeline.testcase; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import android.content.Context; import net.sf.throughglass.timeline.model.Timeline.TimelineCacheItem; import net.sf.throughglass.timeline.model.Timeline.TimelineListCache;...
package cn.com.signheart.common.util; import org.apache.commons.io.IOUtils; import javax.swing.*; import java.awt.*; import java.io.*; import java.util.ArrayList; public class FileUtil { public static String separator = System.getProperty("file.separator"); public static String[] IMG_FIX = new String[]{"jpg...
package Programmieraufgabe14; import java.util.Scanner; public class Program { static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { Player player = new Player(); Field field = new Field(); do { field.erasePreviousPlayer(player.getCoordinateX(), player.get...
package io.codex.cryptogram.encoding; /** * 原样编码器 * * @author 杨昌沛 646742615@qq.com * 2018/10/18 */ public class PlainEncoder implements Encoder { public String algorithm() { return "Plain"; } public String encode(byte[] data) { return new String(data); } }
package com.su.dao.api; import com.su.domain.User; /** * Created by Андрей on 25.10.2016. */ public interface UserDao extends GenericDao<User> { }
package com.oa.user.dao; import java.util.List; import com.oa.user.form.UserInfo; public interface UserInfoDao { public void addUser(UserInfo userInfo); public List<UserInfo> selectAllUser(); public UserInfo selectUserByName(String userName) ; public UserInfo selectUserByNameAndPassword(String userName,...
package com.selfspring.gimi.json.keyUp; import com.alibaba.fastjson.annotation.JSONField; import java.util.Date; /** * Created by ckyang on 2019/10/14. */ public class UserSynInfo { /** * 用户Id * * 作为更新表的主键使用 */ @JSONField(name="UserId") private Long userId; /** * 用户昵称 ...
package com.example.prova; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.util.Log; import...
package tn.esprit.spring.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import tn.esprit.spring.entity.Contrat; import tn.esprit.spring.repository.ContratRepository; @Transactional...
package com.gsccs.sme.plat.svg.model; import com.gsccs.sme.api.domain.DeclareItem; /** * 项目申报 * @author x.d zhang * */ public class DeclareItemT extends DeclareItem{ }
package com.fanfte.netty.im.console; import com.fanfte.netty.im.packet.request.GroupMessageRequestPacket; import io.netty.channel.Channel; import java.util.Scanner; /** * Created by tianen on 2018/10/9 * * @author fanfte * @date 2018/10/9 **/ public class SendToGroupConsoleCommand implements ConsoleCommand { ...
package com.dalong; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentSc...
package com.example.demo.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; @Controller public class MessageController { @GetMapping("/messages") public String messages(Model model) { ...
package com.sen.myshop.web.admin.web.controller; import com.sen.myshop.commons.dto.BaseResult; import com.sen.myshop.domain.TbUser; import com.sen.myshop.web.admin.abstracts.AbstractBaseController; import com.sen.myshop.web.admin.service.TbUserService; import org.springframework.stereotype.Controller; import org.sprin...