text
stringlengths
10
2.72M
package com.tt.miniapp.activity; import android.app.Activity; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.text.TextUtils; import android.vi...
/* * Copyright (c) 2010-2011 by Jan Stender, * Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ package org.xtreemfs.mrc.operations; import org.xtreemfs.foundation.TimeSync; import org.xtreemfs.foundation.logging.Logging; import org.xtreemfs.foundation.l...
package com.parrello.tvseries.subs.ws; import org.apache.commons.io.FileUtils; import org.apache.commons.io.filefilter.WildcardFileFilter; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import javax.jws.WebService; import java.io.*; import java.net.URL; import java.net.URLC...
package com.ysyt.to.response; import com.response.CommonResponse; import com.ysyt.bean.AttributeOptions; public class AttributeOptionResponse extends CommonResponse { private AttributeOptions attributeOptions; public AttributeOptions getAttributeOptions() { return attributeOptions; } public vo...
package me.mani.clhub.listener; import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityDamageEvent; /** * @author Overload * @version 1.0 */ public class EntityDamageListener implements Listener { @EventHandler public void onE...
package lintcode; /** * 中位数 * * @author zhoubo * @create 2017-11-02 16:26 */ public class L80 { public int median(int[] nums) { int len = nums.length; selectSort(nums); if (0 == len % 2) { return nums[len / 2 - 1]; } else { return nums[len / 2]; ...
import util.*; public class notepad { }
package com.sietecerouno.atlantetransportador.adapters; import android.content.Context; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; imp...
package de.codingchallenge.model; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, property = "type") @JsonSubTypes({ @JsonSubTypes.Type(value = SingleChoiceQuestionType.class, name = SingleChoiceQuestionType.T...
package com.smxknife.springboot._07_jsonserializable; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import java.io.IOException; /** * @author smxknife * 2021/8/1 */ public class StatusJsonSerializabl...
package controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.bson.types.ObjectId; import model.Account; ...
package mx.com.alex.crazycards.models; import android.content.Context; import android.graphics.drawable.Drawable; import java.util.ArrayList; import mx.com.alex.crazycards.R; /** * Created by mobilestudio06 on 11/08/15. */ public class OptionMenu { private Drawable ico; private String nameOption; pub...
package bl; import android.database.sqlite.SQLiteDatabase; import org.json.simple.parser.ParseException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import library.common.clsHelper; import library.common.linkAPI; import library.common.mUserRoleData; import library.common.mconfigDat...
package com.lupan.HeadFirstDesignMode.chapter4_factory.common; /** * TODO * * @author lupan * @version 2016/3/21 0021 */ public enum PizzaType { PIZZA_TYPE1("披萨1"), PIZZA_TYPE2("披萨2"), PIZZA_TYPE3("披萨3"), PIZZA_TYPE4("披萨4"); private final String value; PizzaType(String value) { this.value =...
package com.bowlong.objpool; import com.bowlong.util.StrBuilder; public class StrBufPool extends AbstractQueueObjPool<StrBuilder> { public static final StrBufPool POOL = new StrBufPool(); public StrBufPool() { } public StrBufPool(int num) { for (int i = 0; i < num; i++) { returnObj(createObj()); } } ...
package com.jp.link.controller; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.jp.commom.result.ResultHandle; import com....
package com.example.android.notepad.memento; /** * Created by smaug(Qiuzhonghao) on 2017/5/18. * 该天习得备忘录模式,故: * 该部分参考备忘录模式 目的在于可实现笔记输入过程中的撤销。 * 源工程中已经含有撤销功能,但是只是针对于一次性撤销,即将该日记重置为打开前的状态 * 我想实现的撤销在于可以记录你的每一次“点击保存”前的状态,这样在写长文本日记的时候比较方便,不用一步推倒,重新来过。 * 代码已经完全实现,但是未整合到源工程中,先放着吧。 */ public class Memento { private...
package yincheng.gggithub.view.widget; import android.content.Context; import android.util.AttributeSet; import android.widget.CompoundButton; import android.widget.RadioButton; import yincheng.gggithub.R; /** * Created by yincheng on 2018/6/13/12:24. * github:luoyincheng */ public class FilterRadioButton extends...
package processamento; public class Processamento { public static void main(String[] args) { //Exemplo1 /* int x, y; x = 5; y = 2 * x; System.out.println(x); System.out.println(y); */ //Exemplo2 /* int x; double y; x = 5; y = 2 * x; System.out.println(x); System.out....
package 数组; import java.lang.reflect.Array; import java.util.Arrays; //给定两个大小分别为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两个正序数组的 中位数 。 // //  // //示例 1: // //输入:nums1 = [1,3], nums2 = [2] //输出:2.00000 //解释:合并数组 = [1,2,3] ,中位数 2 //示例 2: // //输入:nums1 = [1,2], nums2 = [3,4] //输出:2.50000 //解释:合并数组 = [1...
package com.elvarg.world.entity.combat.magic; import java.util.Optional; import com.elvarg.engine.task.Task; import com.elvarg.engine.task.TaskManager; import com.elvarg.world.entity.impl.Character; import com.elvarg.world.entity.impl.npc.NPC; import com.elvarg.world.model.Animation; import com.elvarg.world.model.Gra...
package ru.windwail.rest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.b...
package rhtn_homework; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.StringTokenizer; public class BOJ_17822_원판_돌리기 { private static StringBuilder sb = new StringBuilder(); pr...
/** * Copyright 2013 Cloudera Inc. * * 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 i...
package com.rensimyl.www.mathics; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; public class Geometri extends AppCompatActivity { Button backGeometri, geometri1, geometri2, geometri3, geometri4; ...
package com.dustin.control.convert; import org.springframework.core.convert.converter.Converter; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * <p> Description: </p> * * @author Wangsw * @date 2017/11/23下午 09:16 * @Version 1.0.0 */ public class CustomDateConver...
package com.lubarov.daniel.data.set; import com.lubarov.daniel.data.collection.AbstractCollection; import com.lubarov.daniel.data.function.Function; public abstract class AbstractSet<A> extends AbstractCollection<A> implements Set<A> { // Don't let implementations inherit AbstractCollection's contains, which calls ...
package com.lingnet.vocs.action.statistics; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import javax.annotation.Resource; import org.apache.commons.lang.StringUtils; import org.hibernate.criterion.Dis...
package ru.smartsarov.election.cik; import java.io.Serializable; import java.util.Iterator; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class UikRequest implements Serializable, Iterable<UikRequest> { private final static long serialVersionUID = 2326643019323...
package br.com.drogaria.bean; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import org.apache.commons.codec.digest.DigestUtils; import br.com.drogaria.dao.FuncionarioDAO; import br.com.drogaria.domain.Funcionario; import br.com.drogaria.util.FacesUtil; @ManagedBean @Session...
class Solution { public int[] plusOne(int[] digits) { int endIndex = digits.length - 1; if(digits[endIndex] == 9){ boolean carry = true; digits[endIndex] = 0; for(int i = endIndex - 1; i >= 0; i--){ if(carry){ if(digits[i] == 9)...
package net.francesbagual.osgi.helloworld.impl; public class Parrot { public String repeat(String word) { return word; } }
package camel.serial; import camel.serial.model.SerialMessage; import gnu.io.SerialPort; import gnu.io.SerialPortEvent; import gnu.io.SerialPortEventListener; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.TooManyListenersException; import org.apache.camel.Exchange;...
package application; import javafx.scene.paint.Color; import java.awt.Point; import java.util.function.Function; import javafx.scene.shape.Rectangle; /** * Class to represent LED lights on the virtual board * * Intended to indicate if certain sections of the system are ready for pressure changing instructions or ...
package kg.inai.equeuesystem.services; import kg.inai.equeuesystem.entities.UserRole; import kg.inai.equeuesystem.models.UserRoleModel; import java.util.List; public interface UserRoleService { UserRole create(UserRoleModel userRoleModel); List<UserRole> findAll(); UserRole update(UserRoleModel userRoleM...
package test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.regex.Pattern; import util.ParseMessage; import util.StringComparison; /** * Идея была идти не рекурсивно, а по краю дерева с помощью while. Что-то херня выходит * Одним словом, дерево то получается то же сам...
package http; import com.sedmelluq.discord.lavaplayer.player.AudioPlayer; import java.util.UUID; public interface MusicServer { /** * Prepares music server * @param peerId Peer ID for skyway * @param player Audio player * @param channelId Voice channel ID. * @return The URL the browser s...
package com.eric.tools.ui; import javafx.scene.effect.DropShadow; import javafx.scene.image.Image; import javafx.scene.paint.Color; import javafx.scene.text.Font; import javafx.scene.text.FontWeight; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.InputStream; /** * @ClassName: UIUtils *...
package leetcode; /** * @author kangkang lou */ public class Main_410 { public static void main(String[] args) { } }
package crossing.preProcessor; import crossing.preProcessor.MatchingPreProcessor.MATCHING_ACTION; import leafNode.OrderEntry; import orderBook.OrderBook; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mocki...
package it.geosolutions.fra2015.tags; import it.geosolutions.fra2015.mvc.controller.utils.ControllerServices.Profile; import it.geosolutions.fra2015.server.model.user.User; import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.tagext.TagSuppor...
import java.sql.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CreatAcc extends JFrame { private JLabel lblUserName; private String [] TrainName= {"ACstandars","parlor class","class"}; private JLabel lblEmail; private JLabel lblPassword; private JLabel lblConfrmPas...
package com.pca; import java.math.*; import a2.ab; import Jama.Matrix; public class Pca { //将原始数据标准化 public double[][] Standardlizer(double[][] x){ int n=x.length; //二维矩阵的行号 int p=x[0].length; //二维矩阵的列号 double[] average=new double[p]; //每一列的平均值 double[][] result=new double[n][p]; //标准化后的向量 double[] var=ne...
package oop01.syntax; /* Date : Author : Description : 생성자 문법 */ /* 초기화 - 어떤 작업(현실 : job, 프로그램 : process)을 시작하기 전에 - 준비 (현실 : standby, ready)를 하게 되는데 - 이것을 프로그램에서는 초기화(initializing)라고 한다. */ /* 생성자 - 1. 값을 반환하지 않는다. 따라서 return도 없고 void도 표시하지 않는다. - 2. 생성자의 이름은 클래스의 이름과 동일하다. - 3....
package br.com.bytebank.banco.modelo; import br.com.bytebank.banco.exception.ValorNegativoException; public class ContaCorrente extends Conta implements Tributavel{ public ContaCorrente(int agencia, int numero) { super(agencia, numero); } @Override public void saca(double valor) throws Exception { super.sac...
package com.selfridges.pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.selfridges.util.Constants; import com.selfridges.util.WebController; public class CheckOutWelcomeP...
package com.zhouyi.business.dto; /** * @author 李秸康 * @ClassNmae: UserInfoDto * @Description: 用户信息查询Dto * @date 2019/7/8 8:21 * @Version 1.0 **/ public class UserInfoDto { private String userCode; private String userName; private String userIdcardno; private String userPoliceno; private Strin...
package cl.carlostapia.mvpdagger2template.screens.login.core; /** * Created by CarlosTapia on 12-11-17. */ public class LoginPresenter { }
package com.sysh.entity.update; import java.io.Serializable; /** * ClassName: <br/> * Function: 具体的指标项修改情况<br/> * date: 2018年06月12日 <br/> * * @author 苏积钰 * @since JDK 1.8 */ public class Sh02Model implements Serializable { private String sh005,sh006,sh007,realName; private Long sh01_id,id; pub...
package com.company.plugins; import Instruments.Instrument; import java.beans.ExceptionListener; import java.beans.XMLEncoder; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Scanner; public class XMLClass implements IXML { p...
package org.training.service.exception; /** * Created by nicko on 1/30/2017. */ public class ServiceException extends RuntimeException { public ServiceException() { super("Exception on service"); } public ServiceException(String message, Throwable cause) { super(message, cause); } }...
package com.prashanth.sunvalley.Model; import lombok.Data; import java.math.BigDecimal; @Data class MiscFeeDTO { private String feeName; private BigDecimal feeAmount; private FeeDTO feeDTO; }
// With Ginestra - #24 public class IntegerTreeNode { private int value; private IntegerTreeNode left; private IntegerTreeNode right; public IntegerTreeNode(int newNumber) { value = newNumber; left = null; right = null; } public int getValue() { return value; } public IntegerTreeNode getRight() { ...
package oop.snakegame; public interface GameAction { void action(Game game); }
package com.breathometer.production.firmware.programming; public class SerialNumber { public static String fromBluetoothAddress(BluetoothAddress bda) { if (bda == null) return null; byte[] _bda = bda.get(); long num = ((_bda[2] & 0x03) << 16) | (_bda[1] << 8) | (_bda[0]); byte week = (byte) ((_bda...
package com.tencent.mm.plugin.sns.model; public interface b$b { void LR(String str); void aS(String str, boolean z); void aT(String str, boolean z); void bxb(); }
package com.uiautomation.steps; import cucumber.api.java.Before; import jline.internal.Log; import net.serenitybdd.core.Serenity; import net.thucydides.core.ThucydidesSystemProperty; import net.thucydides.core.pages.Pages; /** * This is just a place holder class trying to do the UI automation work */ public class ...
package com.tencent.mm.plugin.dbbackup.a; import android.database.Cursor; import com.tencent.mm.plugin.dbbackup.a.a.c; import com.tencent.wcdb.database.SQLiteStatement; import java.util.HashMap; class a$5 implements c { final /* synthetic */ a iaS; final /* synthetic */ HashMap iaV; final /* synthetic */ ...
package com.example.admin.busmanagerproject; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.RecyclerView; import android.widget.ArrayAdapter; import android.widget.ListView; impor...
package ch17.ex17_05; import static org.junit.Assert.*; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; public class ResourceManagerTest { int SIZE = 100; ResourceManager manager; String key; @BeforeClass public ...
package com.sistec.sistecstudents; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.android.volley.AuthFailureError; import com.android.vol...
package com.satya.springfeatures.exceptions; public class ServiceException extends Exception { /** * */ private static final long serialVersionUID = -2943714933607245449L; private String message; private int errorCode; public ServiceException(String message) { this.message = message; } public Servic...
package com.storybox.culturemapg; import android.content.Context; import android.os.Parcel; import android.os.Parcelable; import org.json.JSONObject; import java.io.Serializable; /** * Created by sunghee on 2016-10-24. */ public class PlaceInfo { public String name, address, icon_path, category, show_ids, co...
package com.example.sidenavigationexample; import androidx.appcompat.app.AppCompatActivity; import androidx.viewpager.widget.PagerAdapter; import androidx.viewpager.widget.ViewPager; import android.content.Context; import android.os.Bundle; import android.view.Gravity; import android.view.LayoutInflater; import andro...
package ru.carlson.characters; import ru.carlson.general.Entity; public interface Rotatable { public void rotate(Directions direction); }
package com.rile.methotels.pages.services; import com.rile.methotels.entities.Rezervacija; import com.rile.methotels.services.dao.RezervacijaDao; import java.util.ArrayList; import java.util.List; import org.apache.tapestry5.annotations.RequestParameter; import org.apache.tapestry5.ioc.annotations.Inject; impo...
package fr.unice.polytech.clapevents.Activities; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import and...
package tp.ia.caperucita.actions; import java.util.ArrayList; import frsf.cidisi.faia.agent.search.SearchAction; import frsf.cidisi.faia.agent.search.SearchBasedAgentState; import frsf.cidisi.faia.state.AgentState; import frsf.cidisi.faia.state.EnvironmentState; import tp.ia.caperucita.EstadoAgenteCaperucitaRoja; imp...
package es.uma.sportjump.sjs.service.services.test.util; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import es.uma.sportjump.sjs.model.entities.Coach; import es.uma.sportjump.sjs.model.entities.Exer...
package de.jmda9.core.util; import java.io.File; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.junit.Test; public class TestPackageUtil { private final static Logger LOGGER = LogManager.getLogger(TestPackageUtil.class); @Test public void test() { P...
package com.tencent.mm.plugin.ac; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import com.tencent.map.lib.gl.model.GLIcon; import com.tencent.mm.a.e; import com.tencent.mm.ab.b; import com.tencent.mm.ab.w; import com.tencent.mm.platformtools.ab; import com.tenc...
package com.james.pojo; import lombok.Data; import java.util.Date; @Data //订单表 public class Orders { private int oid; private String oname; private String ovehicle; private String ocolor; private Date otime; private double omoney; private int ocount; private String omaimai; }...
package edunova; import javax.swing.JOptionPane; public class Zadatak6 { //Upiši dva cijela broja //ispiši //Zbroj //Razliku //Produkt //Kvocijent //Aritmetičku sredinu //zbroj kvadtara brojeva public static void main(String[] args) { int i = Integer.parseInt(JOptionPane.showInputDialog...
package com.rackspace.sl.suite; import java.util.Arrays; import java.util.Collections; public class SortElements { public static void main(String[] args) { Integer[] arr = { 1, 23, 4, 5, 6, 40, 7, 98 }; Arrays.sort(arr, Collections.reverseOrder()); System.out.println("Elements : %s" + Arrays.toStr...
package se.iths.labb3; import javafx.scene.paint.Color; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import se.iths.labb3.shapes.Shapes; import static org.assertj.core.api.Assertions.assertThat; class ModelTest { Model model; @BeforeEach void setUp() { model = new...
package com.hanbit.spring.web.controller; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import ...
package com.service; import com.bean.ArrangementInfo; import java.util.List; public interface ArrangementInfoService { List<ArrangementInfo> getArrangementInfo(ArrangementInfo arrangementInfo); }
package edu.mayo.cts2.framework.webapp.rest.exception; import edu.mayo.cts2.framework.model.castor.MarshallSuperClass; import edu.mayo.cts2.framework.model.service.core.types.LoggingLevel; import edu.mayo.cts2.framework.model.service.exception.CTS2Exception; import edu.mayo.cts2.framework.model.util.ModelUtils; publi...
/* * 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 model.dao; import java.math.BigDecimal; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLExcep...
import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; public class HashTree<HashTreeNode, E> { public class HashTreeNode<List> { private HashTreeNode<List>[] children; private List element; @SuppressWarnings("unchecked") pu...
package ca.csf.rrr.gameobjects; import java.util.ArrayList; import java.util.List; import java.util.Random; import ca.csf.rrr.gameworld.GameRenderer; import ca.csf.rrr.gameworld.GameWorld; public class ScrollHandler { private final static int SCROLL_SPEED = 300; private final static int FIRST_BOX_GAP = 175;...
package domain.businessRuleType; import domain.businessRule.Definition; import java.util.ArrayList; import java.util.List; /** * Created by Unknown on 01/18/2017. */ public abstract class BusinessRuleType { private List<ITemplate> templates; private String code; private String name; private String ...
package com.example.chatapp.fragments; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.view.MenuItemCompat; import android.support.v7.widget.LinearLayoutMan...
package com.uwetrottmann.trakt5.entities; import com.uwetrottmann.trakt5.enums.Rating; import org.threeten.bp.OffsetDateTime; public class BaseRatedEntity { public OffsetDateTime rated_at; public Rating rating; }
package sim.estoque.itemmovimento; import java.util.List; import org.hibernate.Session; public class ItemMovimentoDAOHibernate implements ItemMovimentoDAO { private Session session; @Override public void salvar(ItemMovimento itemMovimento) { this.session.save(itemMovimento); } @Override...
package com.blackbox.starter.events; import java.io.Serializable; /** * Created by toktar. */ public abstract class CarEvent implements Serializable, ICarEvent { protected long timestamp; protected String eventId; //protected long mileage; @Override public int compareTo(Object obj) { ...
package com.nuuedscore.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.nuuedscore.domain.Site; import com.nuuedscore.repository.SiteRepository; import com.nuuedscore.service.BaseService; import com.nuuedscor...
package com.testing.class8; import junit.framework.TestCase; public class fibTest extends TestCase { fib ft=new fib(); public void testFib() { assertEquals(33,ft.fib(12)); } }
package com.ts.dao; import java.util.ArrayList; import java.util.List; import org.hibernate.Query; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.rest.dto.Faculty; import com.rest.dto.Profile; import com.rest.dto.Review; import com.rest.dto.Submit; import com.res...
package com.octo.api; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers....
package com.dinhthanhphu.rabbitmq.api; import com.dinhthanhphu.rabbitmq.config.RabbitMQConfig; import com.dinhthanhphu.rabbitmq.dto.MessageDTO; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostM...
package package1; import java.util.StringTokenizer; import acm.program.ConsoleProgram; public class In2pJ extends ConsoleProgram{ /** *method containing all the command to be executed * */ public void run() { this.setSize(500,500);// set the window console bigger String str = readLi...
package com.cloud.feign_consumer.service; import org.springframework.cloud.openfeign.FeignClient; @FeignClient("ribbon-provider") public interface RefactorHelloService extends com.cloud.hello_service_api.service.HelloService{ }
package com.mybatis.interceptor.aspect; import com.mybatis.interceptor.abstracts.BaseAspectAbstract; import com.mybatis.interceptor.annotation.OrderBy; import com.mybatis.interceptor.filterinterceptor.SQLLanguage; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.anno...
package backjun.silver; import java.util.LinkedList; import java.util.Scanner; public class Main_2164_카드2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); LinkedList<Integer> queue = new LinkedList<Integer>(); for (int i = 1; i <=N; i++) { queue.add(i)...
package teetech.com.g_paypro; import android.support.v4.view.ViewPager; import android.view.View; import android.widget.TextView; import com.github.mikephil.charting.animation.Easing; import com.github.mikephil.charting.charts.LineChart; /** * Created by aKI on 12/03/2016. */ public class ViewPagerTransformer impl...
public class RecursionDemo { public static void main(String[] args) { java.util.Scanner input = new java.util.Scanner(System.in); System.out.print("enter an integer: "); int number = input.nextInt(); System.out.println("Add ten to your number."); //number = number - 10; displayAsWord(number); } //i...
package language.designpatterns; /** * In fact CompositeCalendar (or any other concrete calendar) do not need to extend a common abstract type. * This is done only for convenience for the client: to be able to put them all in the same List<Calendar>, see Client. */ public class CompositeCalendar extends Calendar { ...
package com.example.demo.mapper; import org.springframework.beans.BeanUtils; import com.example.demo.entity.User; import com.example.demo.model.UserDto; public class UserMapper { public static UserDto convertUsertoUserdto(User userentity,UserDto userdto) { BeanUtils.copyProperties(userentity,user...
package com.example.demo.exception; import org.springframework.beans.ConversionNotSupportedException; import org.springframework.beans.TypeMismatchException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframewo...