text
stringlengths
10
2.72M
package geometry; // @author Raphaël public class RotatedEllipse extends Shape2D { protected double centerX, centerY, halfWidth, squaredHalfWidth, halfHeight, squaredHalfHeight, theta, cosTheta, sinTheta; public RotatedEllipse(double centerX, double centerY, double halfWidth, double...
package br.com.AMGiv.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import br.com.AMGiv.beans.Cliente; /** * The Class ClienteDAO. */ public class ClienteDAO { /** * Cadastrar cliente. * @author Givs * @version 1.0 * @since 1.0 ...
package com.pmm.sdgc.model; import com.pmm.sdgc.converter.BooleanConverter; import com.pmm.sdgc.converter.LocalDateConverter; import com.pmm.sdgc.converter.LocalDateConverter1; import java.io.Serializable; import java.time.LocalDate; import java.util.Objects; import javax.persistence.Column; import javax.pers...
package com.qumla.scheduler; import java.util.concurrent.Callable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import com.qumla.service.impl.QuestionDaoMapper; public class CountryStatScheduler implements Callable<Object> { private static ...
package com.mohmedhassan.cleaningapp.Register; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.widget.AdapterView; im...
package pojo; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @Entity @Table( name="BookTable") public class Book { private Integer bookId; ...
package com.example.testproj; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class StartService{ public static void startService(Context context){ PendingIntent pendingIntent; Intent intent=new...
public class Array2 { public int countEvens(int[] nums) { int count = 0;// c1 for (int n : nums) {// c2 + c3*n if (n % 2 == 0) {// c4 + c5*n count++; // c6 } } return count; //c7 //c1+c2+c3*n+c4+c5*n+c6+c7 //C...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package main.java.spatialrelex.util; /* * Copyright 2007 Google 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 ...
package com.infohold.bdrp.authority.shiro.web; import javax.servlet.FilterConfig; import javax.servlet.ServletContext; /** * 为了 绕过spring boot 对类型为filter的bean自动注册为过滤器所做的封装 * * @author xiaweiyi * */ public interface PathMatchShiroFilterWrapper extends ShiroFilterWrapper { public boolean isEnabled(); public vo...
package com.company.warehouse; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; public class GenericMapList { private Map<Class<?>, List<?>> map = new HashMap<Class<?>, List<?>>(); public <T> void put(Class<T> key, T value) { ...
package problems; import lib.PrimesGenerator; /** * Problem 5: Smallest multiple * * 2520 is the smallest number that can be divided by each of the * numbers from 1 to 10 without any remainder. * * What is the smallest positive number that is evenly divisible by * all of the numbers from 1 to 20? * * @author...
package ch5; import java.util.Arrays; public class ArrayEx1 { public static void main(String[] args) { int[] score = new int[5]; int k = 1; score[0] = 50; score[1] = 60; score[k+1] = 70; // socre[2]=70 score[3] = 80; score[4] = 90; int tmp = score[k+2] + score[4]; //score[3] + score[4] = 80 +...
package com.brainacademy.decorator; public class Main { public static void main(String[] args) { Printable printable = new MainPrintable(); Printable decorator1 = new QuotePrintableDecorator(printable); Printable decorator2 = new QuotePrintableDecorator(decorator1); Printable decora...
package com.egame.beans; import org.json.JSONObject; import com.egame.utils.ui.IconBeanImpl; /** * @desc 游戏分类的实体 * * @Copyright lenovo * * @Project EGame4th * * @Author zhangrh@lenovo-cw.com * * @timer 2011-12-29 * * @Version 1.0.0 * * @JDK version used 6.0 * * @Modificatio...
/* * 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 vista; import javax.swing.JFrame; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; impor...
package myapp.com.callrecorder; import android.Manifest; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.support.v4.app.ActivityComp...
package dec26; public class Sequence { public static void main(String[] args) { String str1="iam a good person"; System.out.println(str1.contains("od")); System.out.println(str1.contains("person")); System.out.println(str1.contains("iam")); System.out.println(str1.contains("bad")); } }
package caris.modular.handlers; import java.util.HashMap; import caris.framework.basehandlers.MessageHandler; import caris.framework.basereactions.MultiReaction; import caris.framework.basereactions.Reaction; import caris.framework.events.MessageEventWrapper; import caris.framework.library.Constants; import caris.fra...
/* * Copyright (C) 2016-2017 Joaquin Rodriguez Felici <joaquinfelici at gmail.com> * Copyright (C) Rodrigo Castro * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the ...
import java.time.LocalDate; public class Faktura { private Zamowienie zamowienie; private Kontrahent sprzedajacy; private Kontrahent kupujacy; private LocalDate dataWystawienia; private LocalDate dataZaplaty; private String numerFaktury; private static int counter = 0; public Faktura(...
package com.qa.test; public class ProductCategoryPage { }
import java.awt.*; import java.applet.*; public class emp2 extends Applet { String ename; Long ecode; float basic,da,hra,ma,gross,itax,net; TextField t1,t2,t3; public void init() { t1= new TextField(20); t2= new TextField(20); t3= new TextField(20); add(t1); add(t2); add(t3); }//close of init() public void ...
package com.openfarmanager.android.filesystem; import android.text.Html; import com.openfarmanager.android.model.Bookmark; import com.openfarmanager.android.utils.Extensions; import com.openfarmanager.android.utils.FileUtilsExt; import org.apache.jackrabbit.webdav.MultiStatusResponse; import org.apache.jackrabbit.we...
package com.charlie.ssm.demo.service; import com.charlie.ssm.demo.common.entity.ResultEntity; import com.charlie.ssm.demo.entity.UserEntity; /** * */ public interface IUserService { /** * 用户登录 * @param userEntity * @return */ ResultEntity login(UserEntity userEntity); /** * 用户...
package com.bhagi.backend.reposiitory; import com.bhagi.backend.model.Role; import org.springframework.data.jpa.repository.JpaRepository; public interface RoleRepository extends JpaRepository<Role, Long> { }
package com.company; import javax.swing.JFrame; public class Frame { public static void main(String [] args){ JFrame f = new JFrame(); Paint p = new Paint(); f.add(p); f.setVisible(true); f.setSize(800, 250); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE...
package com.thoughtworks.demo.service; import com.thoughtworks.demo.BaseTest; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; public class MusicTest extends BaseTest{ @Autowired private MiniMusic miniMusic; @Test void name() { miniMusic.play()...
package dlmbg.pckg.sistem.akademik; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import andr...
/** * 问题:已知两个链表head1和head2各自有序, * 请把它们合并成一个链表依然有序。结果链表要包含head1和head2的所有节点,即使节点值相同。 * * @author Cyrus * @version v1.0, 2018/3/19 下午8:41 */ public class OrderedLinkList { private static class Node { public Node next; public int value; } /** * 递归实现,分解,每次都找出头结点,当前节点的下一个节点就是下一轮的头节点 ...
package heylichen.alg.graph.components; import heylichen.alg.graph.structure.EdgeWeightedGraphSource; import heylichen.alg.graph.structure.weighted.EdgeWeightedGraph; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.io.IOException; /** * @a...
package pl.edu.pw.elka.etherscan; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration class EtherscanConfiguration { @Bean EtherscanFacade etherscanFacade() { final RealEtherscanConnector etherscanConnector = new RealEthersca...
package com.shadow.domain; import javax.persistence.Entity; import javax.persistence.Table; /** * Created by qq65827 on 2015/1/26. */ @Entity @Table(name = "imageFile") public class ImageFile extends BaseObject { public ImageFile() { } public ImageFile(String name, String comment) { this.name...
package com.lenovohit.ssm.payment.web.rest; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; impo...
/* SQL Schema Migration Toolkit Copyright (C) 2015 Cédric Tabin This file is part of ssmt, a tool used to maintain database schemas up-to-date. The author can be contacted on http://www.astorm.ch/blog/index.php?contact Redistribution and use in source and binary forms, with or without modification, are p...
package io.gtrain.unit.registration; import io.gtrain.domain.model.dto.LoginForm; import io.gtrain.domain.model.dto.RegistrationForm; import io.gtrain.domain.validator.RegistrationFormValidator; import io.gtrain.unit.base.ApplicationUnitTestBase; import org.junit.jupiter.api.Test; import java.time.LocalDateTime; imp...
package com.sevael.lgtool.dao; import java.io.InputStream; import java.util.List; import org.bson.Document; import com.google.gson.JsonObject; public interface EmailRequestDao { String emailRequest(JsonObject requestDetails); List<Document> getAllRequeter(); String uploadPdfFile(InputStream inputStream, Strin...
package fr.unice.polytech.isa.polyevent.cli.commands; import fr.unice.polytech.isa.polyevent.cli.framework.Command; import fr.unice.polytech.isa.polyevent.cli.framework.CommandBuilder; import fr.unice.polytech.isa.polyevent.cli.framework.Context; import fr.unice.polytech.isa.polyevent.stubs.DemandeReservationSalle; im...
package com.cloubiot.buddyWAPI.dao; import org.springframework.data.repository.CrudRepository; import com.cloubiot.buddyWAPI.model.dbentity.Channel; public interface ChannelRepository extends CrudRepository<Channel, String>{ }
package au.gov.nsw.records.digitalarchive.struts.action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import au.gov.nsw.re...
package controles; import java.util.ArrayList; import juego.Escenario; import objetos.aeronaves.*; import objetos.powerUps.PowerUp; import objetos.proyectiles.Proyectil; /* * Control que se encarga de recorrer las listas de objetos no controlados, * removiendo los objetos que est�n destruidos. */ publi...
package edu.westga.retirement.test; import static org.junit.Assert.*; import org.junit.Test; import edu.westga.retirement.model.SavingsYear; /** * Test the SavingsYear class getNextYear method * @author Kenji Okamoto * @version 20151120 * */ public class SavingsYearGetNextYearTest { /** * Test getNex...
package pp.model; import pp.model.enums.BtlType; /** * @author alexander.sokolovsky.a@gmail.com */ public class Btl extends AModel { private Boolean prepare; private Boolean check; private Boolean back; private Boolean fight; private String vars; private BtlType type; private Long limitGlad; private Long li...
package com.jarvis.rocketmq.controller; import com.jarvis.rocketmq.jms.JMSConfig; import com.jarvis.rocketmq.jms.PayProducer; import com.jarvis.rocketmq.model.ProductOrder; import org.apache.rocketmq.client.exception.MQBrokerException; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.ro...
package io.github.jitinsharma.insplore.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.ArrayList; import io.github.jitinsharma.insplore...
package com.github.binarywang.wxpay.bean.result; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.ToStringUtils; import java.io.Serializable; import java.util.List; @Data @NoArgsConstructor public class WxPayBillResult implements Serializable { private static final long ser...
package de.cuuky.varo.listener.helper.cancelable; public enum CancelAbleType { FREEZE, MUTE, PROTECTION; }
package wirusy; public class Symulacja { private final Szczepionka szczepionka; private final Wirus wirus; public Symulacja(Wirus wirus, Szczepionka szczepionka) { this.szczepionka = szczepionka; this.wirus = wirus; } public boolean czyWirusPodatnyPoSymulacji(int ileMiesiecy) { ...
/* * Created on Jul 25, 2015 */ package basics; import javafx.application.Application; import javafx.geometry.HPos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.GridPane; import javafx.scene.layout.Priority; import javafx.stage.Stage; p...
/** * Created by DELL on 2018/10/19. * * javac:将jvva文件编译成class文件,使用方式:javac xxx.java,执行这个命令时,要能保证在默认classpath(理解成一个根目录)下,能找到这个文件, * 默认情况下,classpath为执行命令的当前目录。如果以当前目录开始找不到那个java文件的话,就出现文件找不的错误。与文件的包名没有关系,只要使用classpath和文件拼接起来的绝对路径 * 能够找到这个文件,就可以对其进行编译。 * 如果被编译的java文件中依赖由其他的java文件,要先编译依赖的那个java文件,那么就...
package com.company.lesson08; // for while do/while public class Test { public static void main(String[] args) { for(int i = 0; i < 3; i++){ int j = 0; while (j < 5) { System.out.println("inner " + j); j++; } System.out.println...
package com.pisen.ott.launcher.message; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Color; import android.izy.widget...
package ExcelDemo; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.testng.annotations.Test; public class CreateWorkbookDemo { @Test public void f() throws IOException { //c...
package com.material.service; import java.util.List; import com.material.bean.MaterialCategoryBean; import com.material.bean.MaterialTypeBean; import com.material.bean.UnitBean; public interface MaterialService { MaterialCategoryBean getMaterialCategoryById(String categoryId); List<MaterialCategoryBe...
package com.kingbom.rabbitmq.producer.dto; import com.kingbom.rabbitmq.producer.model.Transaction; import java.util.List; /** * Created by bombay on 2/6/2018 AD. */ public class TransactionRequest { private List<Transaction> transactions; public List<Transaction> getTransactions() { return transa...
package telas; import componentes.MeuCampoComboBox; import componentes.MeuCampoData; import componentes.MeuCampoMonetario; import componentes.MeuCampoTextArea; import componentes.MeuJTextField; import java.math.BigDecimal; import javax.swing.event.InternalFrameAdapter; import javax.swing.event.InternalFrameEvent; pub...
package shoplistgener.domain; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; /** * Ingredient encapsulates a single ingredient used in a recipe, and * offers methods for manipulating them */ public class Ingredient implements Comparable<Ingredient> { private String name;...
package com.voter.info.service; import java.util.List; import java.util.Map; import com.voter.info.model.UserRequest; import com.voter.info.model.Voter; /** * Service layer interface * * @author Shyam | catch.shyambaitmangalkar@gmail.com * */ public interface VoterService { public abstract List<Voter> findVot...
package com.example.jadynai.particle; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; public class MainActivity extends AppCompatActivity { private View mLizi1; private View mLizi2; @Override protected void onCreate(Bundle savedInstanceState) { ...
package com.javarush.task.task18.task1803; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Самые частые байты */ public class Solution { public static void main(String[] args) throws Exception { Buffer...
package otf.obj; import java.io.Serializable; /** * @author &#8904 * */ public class FoodEntity implements Serializable { private Long id; private int weight; private int carbohydrates; private String name; /** * @return the id */ public Long getId() { return this.id;...
package io.github.kilmajster.controller; import io.github.kilmajster.model.HelloMessage; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation....
package co.sblock.events.session; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.util.logging.Logger; import org.bukkit.plugin.Plugin; import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitTask; import org.json.sim...
/* * 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 domain; /** * * @author Marcos */ public class Empleado extends Persona{ private Integer idEmpleado; private S...
package sg.edu.rp.c346.simpleclick; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; import android.widget.Button; import android.widget.ToggleButton; public class MainActivity extends AppCompatActivit...
package com.clone.mango.dbdata; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Get...
package br.ufsc.ine5605.clavicularioeletronico.telasgraficas; import java.awt.Container; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import javax...
package com.jpeng.demo.diarys; import android.Manifest; import android.app.Activity; import android.app.KeyguardManager; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager; import android.graphics.PixelFormat; import android.h...
package ru.steagle.utils; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Environment; import android.os.Vibrator; import android.telephon...
package com.eomcs.basic.oop.ex02; public class testSungjuk { public static class sungjuk { String name; int kor; int eng; int math; int sum; float aver; } public static void main(String[] args) { sungjuk s1 = new sungjuk(); sungjuk s2 = createScore("홍길동", 100, 100, 100); s1...
package patterns.behavioral.memento.black; public class Originator { private String state; public String getState() { return state; } public void setState(String state) { this.state = state; } public MementoIf createMemento() { return new ...
package cn.gouzao; /** * 多例设计模式 * @author Administrator * */ class Sex{ private String title; private static final Sex MALE = new Sex("男"); private static final Sex FEMALE = new Sex("女"); private Sex(String title){ //构造私有化 this.title = title; } public String toString(){ return this.title; } public stati...
package pers.yoko.aopdemo.entity; import lombok.Data; import javax.persistence.*; /** * @author yoko * @date 2021/9/3 14:59 * @since 1.0 */ @Entity @Table(name = "t_dept") @Data public class Dept{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String deptNam...
package com.fun.driven.development.fun.unified.payments.api.domain; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import javax.persistence.*; import javax.validation.constraints.*; import java.io.Serial...
/** * Infrastructure for handler method processing. */ @NonNullApi @NonNullFields package org.springframework.web.reactive.result.method; import org.springframework.lang.NonNullApi; import org.springframework.lang.NonNullFields;
package com.mining.mine; import android.view.View; import android.widget.LinearLayout; import com.example.administrator.mining.R; import com.mining.Login.LoginActivity; import com.mining.modle.base.BaseFragment; import butterknife.BindView; import butterknife.OnClick; public class PersonPageFragment extends BaseFrag...
package draughts.library.managers; import draughts.library.boardmodel.Piece; import draughts.library.boardmodel.Tile; import draughts.library.exceptions.NoPieceFoundInRequestedTileException; import draughts.library.movemodel.Capture; import draughts.library.movemodel.Hop; import draughts.library.movemodel.Move; impor...
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import...
package bn.messages; public interface MessageSet<MessageType extends Message> extends Iterable<MessageType> { public int size(); public MessageType get(int index); public void remove(int index); public void removeAll(); }
package com.artauction.domain; import java.util.Date; import lombok.Data; @Data public class MypageVO { private int gno; private String gname; private Date enddate; private char flag; private int nowprice; private String userid; private int tprice; private String uuid; private String uploadpath; private S...
package com.gaoshin.onsalelocal.search; import java.util.Arrays; import java.util.Comparator; import common.geo.PostalAddress; import common.geo.PostalAddressParser; public class AddressFormater { public static PostalAddress formatAddress(String address, String city, String state) { PostalAddress pa = Po...
public class BallAndHats { public int getHat(String hats, int numSwaps) { double[] current = new double[3]; for(int i = 0; i < hats.length(); i++) { if(hats.charAt(i) == '.') { current[i] = 0; } else { current[i] = 1d; } } for(int i = 0; i < numSwaps; ...
/* * 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 deloitte.forecastsystem_bih.repository; import java.util.Date; import java.util.List; import java.util.Optional; imp...
package java.com.kaizenmax.taikinys_icl.presenter; import com.kaizenmax.taikinys_icl.model.MobileDatabase; import com.kaizenmax.taikinys_icl.presenter.DemoL3ProtocolPresenterInterface; import com.kaizenmax.taikinys_icl.view.DemoL3Activity_Protocol; import java.util.List; public class DemoL3ProtocolPresenter implem...
package com.gaoshin.beans; public enum ObjectLocationType { Fixed, Latest, ; }
package com.xianzaishi.wms.tmscore.dao.impl; import com.xianzaishi.wms.common.dao.impl.BaseDaoAdapter; import com.xianzaishi.wms.common.exception.BizException; import com.xianzaishi.wms.tmscore.dao.itf.IDistributionDao; public class DistributionDaoImpl extends BaseDaoAdapter implements IDistributionDao { public St...
import java.util.ArrayList; import java.util.List; public class ex2A { public static void main(String[] args) { String courseTitle = "Java Reskilling"; int nbrDays = 20; double pricePerDay = 195.99; boolean priorKnowledgeRequired = false; List<String> instructors = new ArrayList<String>(); instructo...
package org.sunbeam.dao; import org.hibernate.SessionFactory; import org.hibernate.query.Query; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import org.sunbeam.pojo.Customer; @Repository public class CustomerDaoImplementation implements CustomerDao ...
package com.gaoshin.onsaleflyer.service.impl; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.gaoshin.onsaleflyer.dao.FlyerDao; import com.g...
package com.intel.iot.balconygardener; public class WateringLog { String timestamp; String trigger; String action; double duration; public void init() { timestamp = ""; trigger = ""; action = ""; duration = 0.; } }
package com.huich.roque.app.recomiendo_app.fragments; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.support...
package controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impo...
package appkg.kg.servicekg.database; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.provider.BaseColumns; import java.util.ArrayList; import appkg.kg.s...
class Node { int data; Node left; Node right; Node(int data) { this.data = data; left = null; right = null; } } public class CreateBSTFromSortedArray { //function to create BST from sorted array public static Node creatBST(int[] arr, int start, int end...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package projecteuler; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author Sachin tripathi */ public class EvenFibonacci { /** * @pa...
package com.miyatu.tianshixiaobai.entity; public class RightAllServiceTypeEntity { public int viewType; public int position = -1; private String cate_id; private String class_name; private String pid; private String status; private String class_img; private String sort; private Str...
package everything.java8.examples; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; public class StreamStuff extends CommonStuff { public void runStreamExample() { List<Person> persons = ne...
package mine.fan; public abstract class PowerSwitch extends StartStopDevice { private String name; public PowerSwitch(String name) { this.name = name; } public void start() { System.out.println(this.name + " is being short-circuted "); } public void stop() { System.o...
package com.git.cloud.resmgt.compute.dao.impl; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import com.git.cloud.common.dao.CommonDAOImpl; import com.git.cloud.common.exception.RollbackableBizException; import com.git.cloud.resmgt.compute.dao.ICmPortGroupDao; imp...
/* * 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...