text
stringlengths
10
2.72M
package prj.designpatterns.decorator.demo; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; /** * 继承FilterReader<br> * 实现一个能过滤空白字符的输入流 * * @author LuoXin * */ public class TrimInputStream extends FilterInputStream { protected TrimInputStream(InputStream in) { super(...
import java.awt.Color; import java.awt.Graphics; import java.io.*; /** * Write a description of class GamesHighScore here. * * @author (your name) * @version (a version number or a date) */ public class GamesHighScores { private Graphics g; private HighScore[] highScores = new HighScore[10]; private...
package biz.dreamaker.workreport.email.ui; import biz.dreamaker.workreport.email.application.EmailService; import biz.dreamaker.workreport.email.dto.MailObject; import java.util.HashMap; import java.util.Map; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.sprin...
package morris.db_ping; import javax.swing.JOptionPane; import java.sql.*; /** * * @author Kimani */ public class Home_UI extends javax.swing.JFrame { DB_Checker dbCheck = new DB_Checker(); /** * Creates new form NewJFrame */ public Home_UI() { initComponents(); }...
package com.jl.view; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax...
package com.example.gopalawasthi.movielovers; import android.content.Context; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; /** * Created by Gopal Awasthi on 18-04-2018. */ publi...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
package hdfcraft; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.ObjectInputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; import java.util.Random; import hdfcraft.minecraft.Material; import...
package com.cai.seckill.dao; import com.cai.seckill.pojo.Goods; import com.cai.seckill.pojo.SeckillGoods; import com.cai.seckill.vo.GoodsVo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import java.util.List; @Mapper public int...
package de.mq.phone.web.person; import java.util.Arrays; import java.util.HashMap; import java.util.Locale; import java.util.Map; import java.util.Map.Entry; import java.util.UUID; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mocki...
package accountReceivable; import java.io.IOException; import java.sql.Connection; import java.sql.ResultSet; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calenda...
package pro.likada.service.serviceImpl; import pro.likada.dao.AddressApartmentTypeDAO; import pro.likada.model.AddressApartmentType; import pro.likada.service.AddressApartmentTypeService; import javax.inject.Inject; import javax.inject.Named; import javax.transaction.Transactional; import java.io.Serializable; import...
// The "Game_Frame" class. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class Game_Frame extends JFrame implements KeyListener //, ActionListener { //Declaring Global variables //Declaring all the pictures ImageIcon road, water, player, log, log2, log...
package uk.ac.ebi.intact.view.webapp; /** * @author Bruno Aranda (baranda@ebi.ac.uk) * @version $Id$ */ public interface Constants { String BASE_URL = "http://localhost:33444/intact"; }
package ShopLite.entity; public class Product { private int sortIndex; private String name; private int price; public Product(String name, int price, int sortIndex) { this.sortIndex = sortIndex; this.name = name; this.price = price; } public Product(int sortIndex) { ...
package com.moviee.moviee.services; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; import com.moviee.moviee.ApiStrings.DatabaseStrings; import com.moviee.moviee.Interfaces.ServiceCallback; import com.moviee.moviee.models...
package com.kid19911010.datavisualizetool.service; import com.kid19911010.datavisualizetool.entity.SlowLogAnalysisReport; import java.io.InputStream; /** * @Description: * @Author 吴道亮 {dlwu2@iflytek.com} * @Date 2018/10/25 16:13 */ public interface AnalyseDataFileService { SlowLogAnalysisReport analyseDataF...
package com.gateway.client; public class HostedSession { private String id; private String version; private String successIndicator; public HostedSession() {} public String getId() { return id; } public void setId(String id) { this.id = id; } public String getVe...
/* * 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 application; import java.util.ArrayList; import java.util.List; /** * * @author listya */ public class AverageSensor imple...
package org.testing.testScript; public class TC_3 { // login - click on library - logout }
/** * Created with IntelliJ IDEA. * User: dexctor * Date: 12-11-22 * Time: 下午9:13 * To change this template use File | Settings | File Templates. */ public class p1_3_27 { public static void main(String[] args) { Queue<Integer> queue = new Queue<Integer>(); Integer now = StdIn.r...
package com.zxt.compplatform.formengine.action; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletReque...
package com.yc.education.service.impl.check; import com.github.pagehelper.PageHelper; import com.yc.education.mapper.check.TimecardMapper; import com.yc.education.model.check.Timecard; import com.yc.education.service.check.TimecardService; import com.yc.education.service.impl.BaseService; import org.springframework.be...
package com.dihaitech.spiderstory.service.impl; import java.util.List; import javax.annotation.Resource; import com.dihaitech.spiderstory.dao.IArticleColumnDAO; import com.dihaitech.spiderstory.model.ArticleColumn; import com.dihaitech.spiderstory.service.IArticleColumnService; import com.dihaitech.spiderst...
package cn.mccreefei.zhihu.dao.domain; import lombok.Builder; import lombok.Data; import java.util.Date; /** * @author MccreeFei * @create 2018-01-19 16:36 */ @Data public class UserDo { private Integer id; private String characterUrl; private String headUrl; private String userName; private S...
import java.awt.*; import javax.swing.*; import java.awt.event.*; public class HangmanGui implements ActionListener { private JButton checkButton; //setting up the jframe components private JTextField letter; private GridBagLayout gridbag = new GridBagLayout(); private JLabel hangmanPic; p...
package net.lvcy.card.entity.gate.mid; import net.lvcy.card.core.AbstarctCard; import net.lvcy.card.entity.gate.MidCard; import net.lvcy.card.eumn.CardType; public class FiveFive extends AbstarctCard implements MidCard { public FiveFive() { this.type = CardType.FIVE_FIVE; } }
package com.mariusgrams.dynamicgridlib.gridItems; import com.mariusgrams.dynamicgrid.GridItem; public class ExampleGridItem2 extends GridItem { public ExampleGridItem2(int row, int column) { super(row, column); } public ExampleGridItem2(int row, int column, int rowSpan, int columnSpan) { ...
package vision.view.test; import static org.junit.Assert.assertNotNull; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBException; import org.junit.Test; import vision.model.Model; import vision.model.Position; import vision.model.Sample; import vision.model.Sensor; impo...
package com.psing.professional_streaming.repository; import com.psing.professional_streaming.dataobject.Student; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; ...
import java.io.IOException; import USJavaAPI.AvsInfo; import USJavaAPI.ResolveData; import USJavaAPI.USResolverHttpsPostRequest; import USJavaAPI.USResolverReceipt; import USJavaAPI.USResTokenizeCC; public class TestResTokenizeCC { public static void main(String args[]) throws IOException { /*******...
import java.awt.geom.*; public final class Vec2 { public static final Vec2 add(final Point2D.Double a, final Point2D.Double b) { return new Point2D.Double(a.x + b.x, a.y + b.y); } public static final Vec2 sub(final Point2D.Double a, final Point2D.Double b) { return new Point2D.Double(a.x -...
package Arrays; public class ReverseArr { public static void main(String[] args) { ArrayOperation ao = ArrayOperation.getInstance(); int[] a = ao.readElement(); System.out.println("Entered array elements: "); ao.dispArr(a); int[] rev = ao.reverseArr(a); System.out.println("Array elements after reversing ...
package org.peterkwan.udacity.mysupermarket.widget; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.widget.RemoteViews; import org.peterkwan.udacity.mysupermarket....
package tabListeners; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.ListFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import com.example.insurance.R; /** * A...
package Domain; public class Airbus { private Voo voo; private int numeroLugares = 5; //private ArrayList<Integer> lugares = new ArrayList(numeroLugares); public int getNumeroLugares() { return numeroLugares; } public void setNumeroLugares(int numeroLugares) { this.numeroLugares = n...
package edu.sjsu.assignment3; import java.time.LocalDate; import java.util.Arrays; /** * A driver class for appointment class. * */ public class Main { public static void main(String[] args) { LocalDate startDate = LocalDate.parse("2021-06-01"); LocalDate endDate = LocalDate.parse("2021-08-05"...
package norswap.autumn.visitors; import norswap.autumn.Parser; import norswap.autumn.ParserVisitor; import norswap.autumn.parsers.*; /** * A visitor for built-in parsers that checks if the parser entails a repetition over some nullable * parser(s) (see {@link _VisitorNullable}). These parsers are of interest becaus...
package com.Amazon.qa.Pages; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; public class LoginPage extends BasePage { //PageFactory @FindBy(id="ap_email") WebElement ...
package ServicesAndInfo; public enum DinoDiet { HERBIVORE, CARNIVORE, OMNIVORE }
package com.example.demo.models.service.solicitud; import com.example.demo.models.dao.DISolicitud; import com.example.demo.models.entity.Solicitud; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class SSolicitudImpl...
package com.yuneec.flight_settings; import android.util.Xml; import com.yuneec.IPCameraManager.Cameras; import com.yuneec.database.DBOpenHelper; import java.io.InputStream; import java.io.StringWriter; import java.util.ArrayList; import java.util.List; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlSeri...
package Utilities; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.ie.InternetExplorerDriver; public class BrowserDriver { public static WebDriver driver; private String browserName; public BrowserD...
package com.soa.command; import com.soa.ws.hero.WSDragon; import lombok.Getter; import java.net.URI; import java.net.URISyntaxException; @Getter public class DragonsRestCommand extends AbstractRestCommand<WSDragon> { private String postfix = "/heroes/dragons"; public DragonsRestCommand() { super(WS...
public class LC415 { static String addStrings(String num1, String num2) { StringBuilder res=new StringBuilder(); int i=num1.length()-1,j=num2.length()-1; int ca=0; while(i>=0||j>=0){ int a=i>=0?num1.charAt(i)-'0':0; int b=j>=0?num2.charAt(j)-'0':0; ...
package org.wso2.carbon.identity.user.endpoint.dto; import io.swagger.annotations.*; import com.fasterxml.jackson.annotation.*; import javax.validation.constraints.NotNull; @ApiModel(description = "") public class UserDTO { private String username = null; private String tenantDomain = null; ...
package com.afagoal.dao.system; import com.afagoal.dao.BaseDao; import com.afagoal.entity.system.QSysUserRole; import com.afagoal.entity.system.SysUserRole; import org.springframework.stereotype.Repository; /** * Created by BaoCai on 17/10/25. * Description: */ @Repository public class SysUserRoleDao extends Base...
package com.designurway.idlidosa.a.activity; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.designurway.i...
package cz.muni.pv239.marek.exercise5.dagger; import android.content.Context; import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; import javax.inject.Singleton; import cz.muni.pv239.marek.exercise5.api.GitHubService; import dagger.Module; import dagger.Provides; import retrofit2.Retrofit; im...
package io.ceph.rgw.client.circuitbreaker; import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixCommandKey; import com.netflix.hystrix.HystrixCommandProperties; import io.ceph.rgw.client.action.*; import io.ceph.rgw.client.config.Configuration;...
package draughts.library.boardmodel; public class Board { public static final int NUMBER_OF_TILES = 100; public static final int NUMBER_OF_ROWS = 10; public static final int TILES_IN_ROW = 10; }
package simplefactory; /** * Date: 2019/3/2 * Created by Liuian */ interface IPizza { void rotate(); void bake(); void pack(); }
package vn.edu.techkids.myapplication; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; public class MainActivity extends AppCompatActivity { public static final int DL ...
package com.estudos.microsservicos.hrworker.repository; import org.springframework.data.jpa.repository.JpaRepository; import com.estudos.microsservicos.hrworker.entity.Worker; public interface WorkerRepository extends JpaRepository<Worker, Long> { }
package pl.coderslab.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import pl.coderslab.entity.Author; import java.util.List; public interface AuthorRepository extends JpaRepositor...
package com.gsn.common.cache; import com.gsn.utils.LogUtils; import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.Map; /** * 多层缓存的实现 * <p /> * 使用者可以通过{@link #addLocal(int)}和{@link #addRedisUsePrimitiveKey(int)}或{@link #addRedis(int, CacheKeyConverter)} * 来添加任意层的本地缓...
package br.iesb.mobile.alunoonline; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android...
package internet; import java.net.*; public class CheckConnection{ public CheckConnection() { } public boolean IsConnected() { try { URL url = new URL("http://www.google.com"); URLConnection connection = url.openConnection(); connection.connect(); ...
package com.gxtc.huchuan.ui.mine.personalhomepage; import android.Manifest; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.support.design.widget.AppBarLayout; import android.support.design.widget.TabLayout; import android.support.v4.app....
package org.example.business.menu; import org.example.data.model.menu.Menu; import org.example.data.service.menu.MenuDataService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Example; import org.springframework.data.domain.Page; import org.springframework.data.d...
package com.example.simplebroadcast; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; public class BatteryReceiver extends BroadcastReceiver { private static final String TAG = "BatteryReceiverTAG_"; ...
package me.jagar.dialogcameraviewlibrary.classes; import android.annotation.SuppressLint; import android.content.Context; import android.content.DialogInterface; import android.graphics.BitmapFactory; import android.os.Environment; import android.support.design.widget.FloatingActionButton; import android.support.v7.ap...
package be.darkshark.parkshark.api.dto.parkinglot; import be.darkshark.parkshark.api.dto.util.AddressDTO; public class DetailedParkingLotDto { private long id; private String name; private String parkingCategory; private int capacity; private long contactPersonId; private AddressDTO address; ...
package by.orion.onlinertasks.common.exceptions.errors; import by.orion.onlinertasks.R; import by.orion.onlinertasks.common.exceptions.BaseError; public class NetworkError extends BaseError { public NetworkError() { super(R.string.msg_common_error_network); } }
package com.classroom.services.facade.dto.entities; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import com.classroom.services.web.dto.mappers.LocalDateTimeAdapter; import org.joda.time.LocalDateTime; @XmlRootElement(name="searchBatchCirculars") pub...
package com.next.infra.odata2.function; import java.io.InputStream; import org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmExtension; import org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmSchemaView; public class SalesOrderProcessingExtension implements JPAEdmExtension { @Override public ...
//package com.springboot.demo.repository; // //import org.springframework.data.jpa.repository.JpaRepository; // //import com.springboot.demo.model.Login; // //public interface RegistrationRepository extends JpaRepository<Login, Integer> { // public Login findByEmailId(String emailId); // public Login findByEmailIdAndPa...
package com.aalto.happypolar; import android.app.AlertDialog; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothManager; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Handler;...
package perdonin.renaissance.core; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.utils.I18NBundle; public class I18n { private I18NBundle bundle; public I18n(AssetManager am){ bundle = am.get("i18n/strings", I18NBundle.class); } public String get(String key){ r...
package slimeknights.tconstruct.plugin.jei.casting; import com.google.common.collect.ImmutableList; import net.minecraft.client.Minecraft; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fluids.FluidStack; import java.util.List; import javax.annotation.Nonn...
import java.util.Arrays; /** * 被围绕的区域 */ public class 被围绕的区域 { public static void main(String[] args) { 被围绕的区域 t=new 被围绕的区域(); // t.solve(new char[][]{{'X','X','X','X'},{'X','O','O','X'},{'X','X','O','X'},{'X','O','X','X'}}); t.solve(new char[][]{{'O','X','X','O','X'},{'X','O','O','X','O'}...
package com.beike.service.impl.unionpage; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.beike.dao.unionpage.UnionKW...
package com.neo.www.protocolPB; import java.io.ByteArrayOutputStream; import java.io.IOException; import com.google.protobuf.RpcController; import com.google.protobuf.ServiceException; import com.neo.www.ipc.protobuf.ClientProtocol.EchoRequestProto; import com.neo.www.ipc.protobuf.ClientProtocol.EchoResponseProto; p...
package controller; import java.util.ArrayList; import java.util.Calendar; import model.ReplyOrientalDTO; public class ReplyOrientalController { private ArrayList<ReplyOrientalDTO> list; private int id; public ReplyOrientalController() { id = 1; list = new ArrayList<>(); ReplyO...
package com.javasampleapproach.mysql.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "time" ) publ...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.engine; import java.util.HashMap; import java.util.Map; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; i...
/*package MVC.controllers; import java.awt.BorderLayout; import java.io.PrintStream; import java.sql.ResultSet; import java.util.ArrayList; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.ListSelectionModel; import javax.swing.event.ListSelectionEvent; import ja...
package io.swagger.api; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; ...
package org.oatesonline.yaffle.entities.impl; import java.io.StringWriter; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.TreeSet; import javax.jdo.annotations.PersistenceCapable; import javax....
/* * @(#) JmsInfoAction.java * Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ims.jmsinfo.struts.action; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; ...
package model; public class Homem extends Usuario{ public Homem(String nome) { super(nome); } public String saudacao() { return "Olá Sr. "+ getNome(); } }
package data; import java.io.Serializable; /** * {@param enum which is a part of LabWork class */ public class Discipline implements Serializable { private String name; //Поле не может быть null, Строка не может быть пустой private Long practiceHours; //Поле не может быть null public Discipline(String n...
package FT; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.*; class FileTracker { static private String address; static private int port; static final private Queue<Socket> clientsQueue = new LinkedList<>(); static final private List<FileModel> allFi...
package com.rednovo.tools.sms; import java.util.HashMap; import org.apache.commons.lang.StringUtils; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; import com.rednovo.tools.MD5; import com.rednovo.tools.web.HttpSender; /** * 互亿无线 * web 登录入口 ...
/* * Created on 2004. 10. 5. * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package com.esum.comp.etx.util; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException;...
package com.khs.hystrix.hcommand; import java.net.URI; import org.apache.log4j.Logger; import org.bjc.clindesk.server.Dispatchable; import org.bjc.clindesk.server.ObjectDispatchable; import com.khs.hystrix.model.SampleObject; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixComman...
package jp.co.axiz.web.dao; import java.util.List; import org.springframework.stereotype.Repository; import jp.co.axiz.web.entity.Comments; @Repository public class CommentDao { public List<Comments> find(Comments comments){ return null; } public Comments findById(Integer id) { return null;...
package com.sapient.productservice.dao; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import com.sapient.productservice.model.Product; @Repository(value="mysqlDaoImp") public...
package cn.hrbcu.com.servlet.adminServlet; import cn.hrbcu.com.entity.Books; import cn.hrbcu.com.entity.Institution; import cn.hrbcu.com.entity.Page; import cn.hrbcu.com.service.BooksService; import cn.hrbcu.com.service.impl.AdminServiceImpl; import cn.hrbcu.com.service.impl.BooksServiceImpl; import javax.se...
package org.exoplatform.management.packaging.xml; import org.jibx.runtime.BindingDirectory; import org.jibx.runtime.IBindingFactory; import org.jibx.runtime.IMarshallingContext; import org.exoplatform.container.xml.Component; import org.exoplatform.container.xml.Configuration; import org.exoplatform.container.xml.Comp...
package pl.btbw.client; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; import java.util.List; public interface GitHubService { @GET("users/{user}/repos") Call<List<RepoDto>> listRepos(@Path("user") String user); }
package exercises.chapter6.ex7; import exercises.chapter6.ex7.access.Widget; /** * @author Volodymyr Portianko * @date.created 14.03.2016 */ public class Exercise7 { public static void main(String[] args) { new Widget(); } }
/* * 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 UI; import Logique.Categorie; import Logique.Generalites; import Logique.Model_Table; import java.sql.ResultSet; import java.s...
package com.workshop.alexa; import com.amazon.speech.slu.Slot; import com.amazon.speech.speechlet.SpeechletResponse; import com.amazon.speech.ui.PlainTextOutputSpeech; import com.amazon.speech.ui.SimpleCard; import java.util.Optional; public class AlexaUtil { private static final String NO_VALUE = "No value"; p...
package com.share.dao; import com.share.template.HibernateTemplate; public class StudentPlayerDao extends HibernateTemplate{ }
public enum FileType { FILE,FOLDER }
//******************************************************************** // BorderPanel.java Authors: Lewis/Loftus // // Represents the panel in the LayoutDemo program that demonstrates // the border layout manager. //******************************************************************** import java.awt.*;...
package ua.te.jug.concurrency.shared.vol; public class ServiceThread extends Thread { @Override public void run() { Main.state.loop(); } }
package org.rest.dto; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "tbl_name") public class AnimalDto { @Id @GeneratedValue(stra...
import java.util.Arrays; public class DoublenLastSame { /** * @RAKESH YADAV * 18th February 2015 * Given an int array, return a new array with double the length where its last * element is same as the original array, and all the other elements are 0. By * the new array contains all 0's. */ public stat...