text stringlengths 10 2.72M |
|---|
package com.worldchip.bbp.bbpawmanager.cn.view;
import java.io.File;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;... |
package com.rednovo.ace.widget.live;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import androi... |
package basic;
public class Loop5 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int x;
for(int i=1;i<=3;i++)
{
x=97;
for(int j=2;j>=i;j--)
{
System.out.print(" ");
}
for(int k=1;k<=i;k++)
{
System.out.print((char)x);
x++;
}
... |
package com.bukkit.Duendek86.tiredman;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.*;
import org.bukkit.event.block.BlockListener;
import org.bukkit.event.block.BlockDamageEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.inventory.ItemStack;
/**
* TiredMan 0.... |
package Operacional;
import java.util.List;
public interface TicketDao {
public boolean salvarTicket(Ticket ls);
}
|
package com.fest.pecfestBackend.request;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.NotBlan... |
import java.io.*;
/**
* Created by VSZM on 2014-08-02.
*/
class EIGHTS {
public static void main(String[] args) throws IOException {
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... |
package comUtil;
public class HexStringUtil {
public static HexStringUtil getInstance() {
return new HexStringUtil();
}
public String bytesToHexString(byte[] bArray) {
StringBuffer stringBuffer = new StringBuffer(bArray.length);
String sTemp;
for (int i = 0; i < bArray.len... |
package com.gmail.filoghost.holographicdisplays.nms.interfaces.entity;
public interface NMSArmorStand extends NMSNameable {
}
|
package net.cpollet.es.database;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
public class DefaultConnectionFactory implements ConnectionFactory {
private final DataSource dataSource;
public DefaultConnectionFactory(DataSource dataSource) {
this.dataSource = ... |
/*
* 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;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.... |
package com.bharath.trainings.servlets.preinit;
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;
/**
* Servlet implementati... |
package com.xwolf.eop.common.pojo;
import com.alibaba.fastjson.JSONArray;
import lombok.Data;
/**
* @author wolf
* @date 2016-12-26 11:47
* @since V1.0.0
*/
@Data
public class NavMenus {
private String id;
private String text;
private String icon;
private String url;
private JSONArray childre... |
package org.maven;
import java.util.List;
import java.awt.print.Book;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apac... |
package com.example.motionlayout;
import android.app.Activity;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.ListAdapter;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recycler... |
package com.gxtc.huchuan.ui.mine.personalhomepage.more;
import com.gxtc.commlibrary.BasePresenter;
import com.gxtc.commlibrary.BaseUserView;
import com.gxtc.commlibrary.data.BaseSource;
import com.gxtc.huchuan.bean.CircleHomeBean;
import com.gxtc.huchuan.bean.DealListBean;
import com.gxtc.huchuan.bean.HomePageChatInfo... |
package com.khakaton.mafia.interfaces;
public interface GroupGame {
public void start();
public void play();
public void doCycle();
}
|
package com.testAutomationCoach.amazon;
public class HomePage {
Imagen logoAmazon;
TextField campoBusqueda;
Button lupitaBusquda;
Link devolucionesPedidos;
Imagen[] articuloSugerido;
public void buscarProducto(String nombreProducto) {
campoBusqueda.ingresarTexto(nombreProducto);
... |
/*
* 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... |
/*
* 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 hu.unideb.inf.modell;
import hu.unideb.inf.entity.Course;
import hu.unideb.inf.entity.Note;
import hu.unideb.inf.entity.User;
... |
package dados;
import java.util.List;
import negocios.beans.Funcionario;
public interface IRepositorioFuncionario {
public boolean inserir(Funcionario funcionario);
public boolean alterar(Funcionario novoFuncionario);
public Funcionario buscar(int codigo);
public boolean remover(int codigo);
public boolean ... |
/*
* The MIT License (MIT)
* Copyright © 2012 Remo Koch, http://rko.mit-license.org/
*
* 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 ... |
package com.karya.service;
import java.util.List;
import com.karya.model.AccountsPayable001MB;
public interface IAccountsPayableService {
public List<AccountsPayable001MB> accountspayablelist();
public void addaccountspayable(AccountsPayable001MB accountspayablemb);
public AccountsPayable001MB getAccountsPaya... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.api;
import java.util.Map;
import java.util.Set;
import pl.edu.icm.unity.exceptions.EngineException;
import pl.edu.icm.unity.types.basic.NotificationChannel;
... |
package cn.v5cn.v5cms.service.impl;
import cn.v5cn.v5cms.dao.CommentsDao;
import cn.v5cn.v5cms.entity.Comments;
import cn.v5cn.v5cms.service.CommentsService;
import cn.v5cn.v5cms.util.PropertyUtils;
import com.google.common.collect.Lists;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... |
package boisson;
import decorateurr.Chocolat;
import decorateurr.Vanille;
public class Main {
public static void main(String[] args) {
Boisson boisson= new Expresso();
System.out.println(boisson.getDescription());
System.out.println("prix : "+boisson.cout());
System.out.println("---------------------... |
package com.ayt.dataprovider;
import org.apache.log4j.Logger;
import org.springframework.boot.test.context.SpringBootTest;
import org.testng.Assert;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import java.util.Map;
/**
* @Auther: ayt
* @Date: 2018/8/19 23:37
* @Description: Don't ... |
public class Giocatori {
private String nome;
private double punteggio;
private int eta;
private String ruolo;
public Giocatori(String nome,int eta){
this.nome=nome.substring(0, 1).toUpperCase() + nome.substring(1).toLowerCase();
if (eta<10 || eta>50){
this.eta=20;
... |
package com.lotbyte.inter;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
/**
* @author lp
* @Date 2019/3/28 18:13
* @Version 1.0
*/
@FunctionalInterface
public interface ResultSetFunction<T> {
/**
* 执行结果集处理
*/
public ResultSet execute(PreparedSt... |
package nl.tue.win.dbt.tests;
import nl.tue.win.dbt.data.LabeledGraph;
import nl.tue.win.dbt.data.LabeledHistoryGraph;
import nl.tue.win.dbt.parsers.DatasetParser;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.Objects;
public class ReadTime<V, E, L> ... |
package ToyStore;
//(c) A+ Computer Science
//www.apluscompsci.com
//Name -
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
import static java.lang.System.*;
public class ToyStoreRunner
{
public static void main( String args[] )
{
ToyStore store= new ToySt... |
package com.gk.service.impl;
import java.util.LinkedHashMap;
public class FilterChainDefinitionMapMapBuilder {
public LinkedHashMap<String, String> buildFilterChainDefinitionMap(){
LinkedHashMap<String, String> map = new LinkedHashMap<>();
//访问数据表
map.put("/signIn.jsp", "anon");
m... |
package com.proyectogrado.alternativahorario.alternativahorario.negocio;
import com.proyectogrado.alternativahorario.entidades.Clase;
import com.proyectogrado.alternativahorario.entidades.Horario;
import java.util.List;
import javax.ejb.Local;
/**
*
* @author Steven
*/
@Local
public interface Administr... |
package ru.silentflame.karaf.commands;
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.console.OsgiCommandSupport;
//import org.apache.karaf.shell.console.OsgiCommandSupport;
@Command(
scope = "silentflame",
name = "say",
description = "Just test command")
public class TestComman... |
package org.dimigo.library;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.scenes.scene2d.Action;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.... |
package com.base.danmaku;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.base.host.AppLogic;
import com.base.host.HostApplication;
import com.facebook.fresco.FrescoI... |
package kxg.searchaf.url.neiman_cat;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Properties;
import kxg.searc... |
package com.share.bean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "des_inform")
public class Inform implements java.io.Serializable {
private static final long serialVe... |
package autoInterfaces;
import java.util.List;
/*Interface for AutocompleteProvider*/
public interface AutocompleteProvider {
public List<Candidate> getWords(String fragment);
public void train(String passage);
public String toString(List<Candidate> lst);
}
|
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.example.sys.mq;
import javax.jms.ConnectionFactory;
import javax.jms.Topic;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframewor... |
package series04chess;
public class Game {
static Chess runningGame;
public static void main(String[] args) {
runningGame = new Chess();
}
}
|
package actions.compte;
import modele.exceptions.ExceptionConnexion.ExceptionLoginDejaConnecte;
import modele.exceptions.ExceptionConnexion.ExceptionLoginDejaPris;
import modele.exceptions.ExceptionConnexion.ExceptionLoginNonExistant;
import modele.exceptions.ExceptionConnexion.ExceptionMdpInccorect;
/**
* Created b... |
package com.minecraftabnormals.allurement.core;
import com.google.common.collect.Lists;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.common.ForgeConfigSpec.ConfigValue;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import org.apache.commons.lang3.tuple.Pair;
import java.... |
package de.trispeedys.resourceplanning.datasource;
import de.trispeedys.resourceplanning.entity.HelperHistory;
public class HelperHistoryDatasource extends DefaultDatasource<HelperHistory>
{
protected Class<HelperHistory> getGenericType()
{
return HelperHistory.class;
}
} |
package com.example.hante.newprojectsum.pay.fragment;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.support.v7.widget.DefaultItemAnimator;
import android.s... |
public class Sum {
static int[] numbers = {23,56,78,45,69,45,100};
public static void main(String[] args) {
// TODO Auto-generated method stub
//call the sum function
int sum = sumTotal( numbers);
System.out.println("Sum is:"+sum);
}
public static int sumTotal( int [] list){
int total = 0;
... |
package com.generic.core.services.serviceimpl;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.generic.core.model.entities.Area;
import com.generic.core.mod... |
/*
* Copyright 2017 Rundeck, Inc. (http://rundeck.com)
*
* 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 appli... |
package srp.fix;
public interface DataChannel {
void send(char c);
char recive();
}
|
package initializer;
public enum Currency {
HUF,EUR,SFR,GBP,USD
}
|
package com.xinhua.xdcb;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>salesOrganBO complex type�� Java �ࡣ
*
* <p>����ģʽƬ��ָ�������ڴ����е�Ԥ�����ݡ�
*
* <pre>
* <complexType n... |
package application;
import java.io.IOException;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Bu... |
package fr.aresrpg.tofumanchou.domain.event.entity;
import fr.aresrpg.commons.domain.event.Event;
import fr.aresrpg.commons.domain.event.EventBus;
import fr.aresrpg.dofus.protocol.game.actions.GameMoveAction.PathFragment;
import fr.aresrpg.dofus.util.Pathfinding.Node;
import fr.aresrpg.tofumanchou.domain.data.Account;... |
package io.github.satr.aws.lambda.bookstore.lambda.ask;
// Copyright © 2022, github.com/satr, MIT License
import com.amazon.ask.model.ResponseEnvelope;
import com.amazon.ask.model.ui.SsmlOutputSpeech;
import com.amazon.ask.util.JacksonSerializer;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazona... |
package com.tensquare.base.bean;
import com.tensquare.base.service.impl.GeneralCustomizationRepositoryImpl;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.support.JpaRepositoryFactory;
import org.springframework.data.jpa.repository.support.JpaRepositoryFac... |
package com.github.ofofs.jca.model;
import com.github.ofofs.jca.constants.JcaConstants;
import com.sun.tools.javac.code.Flags;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.util.ListBuffer;
import java.util.ArrayList;
import java.util.List;
/**
* 方法
*
*... |
/*
* 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 am.bizis.cds.ciselnik;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.P... |
package com.lq.controller;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import java.io.File;
import java.io.FileOutputStream;
import... |
/**
* Course: Development for mobile applications.
* Umeå University
* Summer 2019
* @author Alex Norrman
*/
package se.umu.cs.alno0025.fjallstugan;
import android.Manifest;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.conte... |
package lawscraper.client.ui.events;
import com.google.gwt.event.shared.EventHandler;
/**
* Created by erik, IT Bolaget Per & Per AB
* Date: 5/16/12
* Time: 10:09 AM
*/
public interface SetCurrentLawEventHandler extends EventHandler {
void onSetCurrentLaw(SetCurrentLawEvent event);
}
|
package com.monitoring.view;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.chart.AreaChart;
import javafx.scene.chart.CategoryAxis;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.XYChart;
import javafx.scene.layout... |
package net.cglab.hotelpraktikum.ws;
import net.cglab.hotelpraktikum.hibernate.Jobs;
import net.cglab.hotelpraktikum.service.JobService;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.Namespace;
import org.jdom2.filter.Filters;
import org.jdom2.xpath.XPathExpression;
import org.jdom2.xpath... |
package com.bnade.wow;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Created by liufeng0103@163.com on 2017/6/6.
*/
@SpringBootApplication
public class BnadeApplication {
public static void main(String[] args) {
SpringAppl... |
package com.brainacademy.gae.dao;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.query.Query;
import com.brainacademy.gae.model.User;
import com.brainacademy.gae.utils.HibernateUtils;
import lombok.Getter;
public class UserDao {
@Getter
private s... |
package lesson36.service;
import lesson36.dao.Session;
import lesson36.dao.UserDAO;
import lesson36.exception.BadRequestException;
import lesson36.exception.InternalServerError;
import lesson36.model.User;
public class UserService {
private UserDAO userDAO;
public UserService() throws InternalServerError{
... |
package pl.coderslab.web.utils;
import com.mysql.jdbc.Driver;
import org.springframework.stereotype.Component;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
@Component
public class FactoryConnection {
public static final String URL = "jdbc:mysql://localhost:3306/spor... |
package L5_ExerciciosFuncoes;
public class Ex05_L5 {
private double valorProduto;
private double taxaProduto;
private double valorTaxa;
private double valorProdutoFinal;
public void setValorProduto(double valorProduto){
this.valorProduto = valorProduto;
}
public double getValorProd... |
public class Catsup extends IngredienteDecoradorTorta {
Torta torta;
public Catsup(Torta torta) {
this.torta = torta;
}
public String getDescripcion() {
return torta.getDescripcion() + ", Catsup";
}
public double costo() {
return 0.30 + torta.costo();
}
}
|
package Library.entities;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Entity
@DiscriminatorValue("Janitor")
public class Janitor extends Employee {
}
|
/*
* 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 byui.cit260.LehisDream.view;
/**
*
* @author smith
*/
public class SaveGameView {
public SaveGameView(){
... |
package nl.guuslieben.circle.common;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.List;
import lombok.AllArgsCons... |
package com.bridgelabz.addressbook;
public class IOServiceEnum {
enum ioService {
CONSOLE_IO, FILE_IO, JSON_IO, CSV_IO, DB_IO
}
}
|
package f.star.iota.milk.ui.booru;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import f.star.iota.milk.MyApp;
import f.star.iota.milk.base.PVContract;
import f.star.iota.milk.base.StringPresenter;
import f.star.io... |
package 多线程.阻塞;
/**
* Created by 陆英杰
* 2018/9/7 9:58
*/
/**
* DESC: 当线程被sleep阻塞的时候,那么线程会让出cpu资源,并且当sleep时间到了之后会变成可运行状态,
* 当这个线程再次得到cpu资源的时候,那么这个线程会从上一次被阻塞的地方开始继续执行代码
* CREATEBY: luyingjie
* Date: 2018/9/7 14:23
*/
public class 阻塞{
public static void main(String[] args) {
Runnable runnable=... |
package br.com.tt.petshop.api;
import br.com.tt.petshop.dto.ClienteEntradaDto;
import br.com.tt.petshop.dto.ClienteSaidaDto;
import br.com.tt.petshop.dto.MensagemErroDto;
import br.com.tt.petshop.exception.CpfInvalidoException;
import br.com.tt.petshop.exception.ErroNegocioException;
import br.com.tt.petshop.model.Cli... |
package stock_keeping_app;
import java.util.ArrayList;
import java.util.logging.Logger;
public class Stock_Item {
private Logger logger = Logger.getLogger(Stock_Item.class.getName());
private String itemId;
private String batchNumber;
private ItemCategory stock;
private int totalStock;
public Stock_Item(Str... |
package com.cn.daniel.pm.service.impl;
import com.cn.daniel.pm.dao.SalaryHistoryDao;
import com.cn.daniel.pm.domain.SalaryHistory;
import com.cn.daniel.pm.service.SalaryHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMa... |
package org.webdriver.demo;
import org.openqa.selenium.By;
import org.openqa.selenium.By.ById;
import org.openqa.selenium.By.ByXPath;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class LoginTest {
@Test
... |
/*
* Created on Mar 1, 2007
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.citibank.ods.entity.pl.valueobject;
import java.util.Date;
/**
* @author fernando.salgado
*
* TODO To change the template for this g... |
package com.dbsys.rs.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.dbsys.rs.lib.entity.Apoteker;
import com.dbsys.rs.lib.entity.Dokter;
impo... |
package com.training.utils;
import java.sql.SQLException;
import java.util.List;
import com.training.beans.*;
public interface DAO {
public int add(Customer customer) throws SQLException;
public List<Customer> getAllCustomers() throws SQLException;
}
|
/*
* Copyright 2012 Daniel Zwolenski.
*
* 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 l... |
// Searching an element in the Big search box and clicking on that element
// Using the DataProvider annotation
package BasePackage;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.suppor... |
package Lithe_Data;
import android.graphics.Bitmap;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
public class GateWay {
private DataOutputStream toServer;
private DataInputStream fromServer;
pr... |
package com.hjc.java_common_tools.db.mysql.loaddata;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class BulkLoadData2MySQL {
private Connection conn = null;
public... |
package org.giveback.datastructures;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.util.List;
import static org.junit.Assert.*;
@RunWith(JUnit4.class)
public class TrieTest {
private static final List<String> words = List.of("train"... |
package wan.JavaFxTemplate;
import javafx.application.Application;
import javafx.stage.Stage;
import wan.JavaFxTemplate.utils.MyUtils;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
MyUtils.showMainStage(primaryStage,"测试模板","scene_main",null,... |
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner sc=new Scanner(Sys... |
/*
* 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 Servlet;
import DAO.ClienteDAO;
import DAO.ContaDAO;
import DAO.EmailDAO;
import DAO.EnderecoDAO;
import DAO.EstadoCivilDAO;
i... |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package com.school.sms.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="sms_customer")
public class Customer {
@Id
@GeneratedValue
@Column(name... |
package com.example.user.wordquiz;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Quiz5Flower extends AppCompatActivity {
private Button zinnia;
private Button allamanda;
private... |
/*
* 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 januaryChallenge2018;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner;
public class Rectangle {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int t = scan.nextInt();
for (int i = 0; i < t; i++) {
int side = 0;
... |
package aulaorientacaoobjeto.exercicio1;
public class Cliente extends Carro {
int idCliente;
String cpf;
String nome;
int cnh;
} |
public class Bool {
public static void main(String[] args) {
int temp = 26;
if(temp > 25){
System.out.println("Кондиционер включен");
}
temp = 26;
boolean hot = temp > 25;
if(hot ){
System.out.println("Кондиционер включен");
}
... |
/*
* 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 util.exceptions;
import util.ErrorMsgs;
/**
* @author Andriy Yednarovych
*/
public class MyException extends Exception {
... |
package com.example.ciccc_cirac.myapplication;
/**
* Created by CICCC-CIRAC on 7/4/2017.
*/
public class SecondActivity {
}
|
package artronics.gsdwn.node;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertThat;
public class SdwnNodeTest
{
Node aNode;
Node sameNode;
Node otherNode;
@Before
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.