text
stringlengths
10
2.72M
/* * Author: RINEARN (Fumihiro Matsui), 2020 * License: CC0 */ package org.vcssl.nano.plugin.system.xfci1; import org.vcssl.connect.ConnectorException; import org.vcssl.connect.ConnectorPermissionName; import org.vcssl.connect.EngineConnectorInterface1; import org.vcssl.connect.ExternalFunctionConnectorInterface1...
package com.suntf.pkm.util; import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpResponseException; import org.apache.http.client.methods.HttpUriRe...
package org.example.common.exception.request; import org.example.common.exception.ExceptionEnumInterface; import org.springframework.http.HttpStatus; public interface ExceptionEnumInterface403 extends ExceptionEnumInterface { @Override default HttpStatus getType() { return HttpStatus.FORBIDDEN; } ...
import javax.swing.*; import java.awt.*; import java.awt.geom.Path2D; public class Marker extends JComponent { private final Path2D path2D; private final Feature owner; private final int side = 50; private boolean isSelected; Marker(Feature owner) { isSelected = false; this.owner ...
package ua.training.controller.commands.action.admin; import ua.training.constant.Attributes; import ua.training.constant.Pages; import ua.training.controller.commands.Command; import ua.training.model.dao.utility.PasswordEncoder; import ua.training.model.entity.User; import ua.training.model.entity.enums.Roles; impo...
/* * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.mvc4.service; import com.mvc4.entity.DemoInfo; /** * Created with IntelliJ IDEA. * User: uc203808 * Date: 6/17/16 * Time: 5:46 PM * To change this template use File | Settings | File Templates. */ public interface DemoInfoService { public DemoInfo findById(long id); public void deleteFromCa...
package com.hubpan.IslandBooking.resources; import com.hubpan.IslandBooking.api.CampsiteAvailabilityDTO; import com.hubpan.IslandBooking.api.CampsiteDTO; import com.hubpan.IslandBooking.core.ReservationService; import com.hubpan.IslandBooking.core.model.Campsite; import com.hubpan.IslandBooking.core.CampsiteService; i...
/** * This class is generated by jOOQ */ package schema.tables; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Identity; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; import org.jooq.UniqueKey; import org.jooq....
package com.example.actividaddeaprendizaje.characters.filterCharacters.contract; import com.example.actividaddeaprendizaje.beans.Character; import java.util.ArrayList; public interface FilterCharactersContract { interface View{ void success(ArrayList<Character> character); void error(String mensa...
package controller; import java.sql.ResultSet; import java.sql.SQLException; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.TextField; import model.Main; import outils.ConversionEuro; import vue.Vue; public class DetailCompteCo...
package com.tongchuang.huangshan.model.domain.admin; import lombok.ToString; /** * 用户和岗位关联 sys_user_post * * @author fangwenzao */ @ToString public class SysUserPost { /** 用户ID */ private Long userId; /** 岗位ID */ private String postId; public Long getUserId() { return userI...
package interfaces; public interface LogAnalysis { //APP MUST IMPLEMENT //... }
package com.crutchclothing.cart.dao; import java.util.List; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.crutchclothing.cart.mo...
package cn.ztuo.bitrade; import cn.ztuo.bitrade.constant.ActivityRewardType; import cn.ztuo.bitrade.dao.*; import cn.ztuo.bitrade.entity.*; import cn.ztuo.bitrade.service.*; import cn.ztuo.bitrade.util.DateUtil; import cn.ztuo.bitrade.util.MessageResult; import com.querydsl.core.types.Predicate; import org.junit.Test...
package com.gen.serve; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http....
package estudo1.main; //import estudo1.model.dao.Banco; public class Principal { public static void main(String[] args) { // TODO Auto-generated method stub // teste de conex„o com o banco //Banco banco = new Banco(); //banco.getConnection(); } }
package kr.or.ddit.reportboard.service; import java.util.List; import java.util.Map; import kr.or.ddit.reportboard.dao.IReportBoardDao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import o...
package com.cinema.biz.dao; import java.util.List; import java.util.Map; import com.cinema.biz.model.SimFault; import com.cinema.biz.model.base.TSimFault; import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.MySqlMapper; public interface SimFaultMapper extends Mapper<TSimFault>,MySqlMapper<TSim...
package com.example.penandlim.pebble; /** * Created by penandlim on 1/17/15. */ public class FavoriteLocation { String name, address, phoneNumber, buisinessName, notes; FavoriteLocation(){} FavoriteLocation(String _name, String _address, String _phoneNumber, String _buisinessName, String _notes) { ...
/* * Copyright (c) 2020. The Kathra 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
package com.ytdsuda.management.service; import com.ytdsuda.management.entity.TotalInfo; import java.util.List; public interface TotalInfoService { List<TotalInfo> findAll(); TotalInfo updateTotalInfo(String type, Integer count); }
/* * Copyright (c) 2008-2021, Hazelcast, Inc. 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 required ...
package com.msingiapp; import java.util.List; import android.annotation.SuppressLint; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; imp...
package com.hznu.fa2login.modules.sys.dao; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.hznu.fa2login.modules.sys.entity.Ccode; /** * @Author: TateBrown * @date: 2018/11/28 19:27 * @param: * @return: */ public interface CcodeDao extends BaseMapper<Ccode> { }
package com.gamzat; public class Main { public static void main(String[] args) { int Bender = 5; // Какой то Робот. int Beer = 4; // Пиво 4 стакана. // Условия if if (Bender == 1) { System.out.println("Это всего-лишь 1"); } if (Bender == 2) { ...
// AbstractClient.java package org.google.code.servant.net; import java.io.IOException; import java.util.List; import java.util.ArrayList; import org.google.code.servant.util.Logger; /** * Implementation of the "pipe" algorithm. * * @version 1.1 08/09/2001 * @author Alexander Shvets */ public a...
package org.isc.certanalysis.repository; import org.isc.certanalysis.domain.NotificationGroup; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * @author p.dzeviarylin */ @Repository public interface NotificationGroupRepository extends JpaRepository...
package com.mykarsol.appconnectivity; /* * 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. */ import DataObjects.Candidate_Profile_Object; import DataOperations.Candidate_Profile_Operation;...
package com.qfedu.jinggong.dao; import com.qfedu.jinggong.entity.DesignInstitute; public interface DesignInstituteDao { DesignInstitute queryInfo(); }
/* * 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 PPI.Controladores; import PPI.Modelos.ModeloSesion; import PPI.Utils.Archivo; import PPI.Vista.VistaPrincipal; impor...
package datenewtypes; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; import java.time.temporal.ChronoUnit; public class Rendezvous { private LocalTime rendezvousTime; public Rendezvous(int hour, int minute) { rendezvousTime = L...
package ma.ensa.todo.beans; import java.util.ArrayList; import java.util.List; public class Utilisateur { private int id; private String login; private String motpasse; private String email; private List<Tache> taches; public Utilisateur() { // TODO Auto-generated constructor stub taches = new ArrayList<Ta...
package com.tu.springsession; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @Auther: tuyongjian * @Date: 2020/4/16 15:56 * @Description: */ @SpringBootApplication public class MycatApplication { public static void main(String[] a...
package com.company; //import java.util.Scanner; public class Random { public static void main(String[] args) { // Person p1=new Person();//calss obj=new construc() // Person p2=new Person(21,"Rabin"); // p1.name="Rahul"; // p1.age=19; // p2.name="Raj"; // p2.age=20; ...
package Customer; import java.awt.Color; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.util.Arrays; import java.util.Date; import java.util.List; import javax.swing.*; import oracleDBA.CustomerOra; import Templates.JDateTimePicker; ...
package lib.hyxen.ui; import android.content.Context; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import java.util.Arrays; /** * Will notice through listen when needs to load next page data. * * Created by redjack on 15/7/13. */ public class ListPager<E> extends SimpleIte...
package com.blog.Idao; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.blog.bean.Adminuser; import com.blog.util.DBUtil; public interface IAdminuserDao { /** * 判断该管理员是否存在 * @param a_name * @param a_pass * @return boolean */ public boolean Login(String a_name); ...
package com.leibro.service; import com.leibro.dto.Exposer; import com.leibro.dto.SeckillExecution; import com.leibro.entity.SecKill; import com.leibro.exception.RepeatKillException; import com.leibro.exception.SeckillCloseException; import com.leibro.exception.SeckillException; import java.util.List; /** * 业务接口:站在"...
package com.model; public class poto { private String xh; private String lj; private String filename; private String intime; private String bz; private String busi; private String typename; private String sid; private String zt; private String inperson; private String wjfl; private String jlj; private Str...
// ScriptExecutor.java package org.google.code.servant.util; import java.io.IOException; import java.io.InputStream; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.List; import java.util.ArrayList; /** * This class wraps all work related to script execution. * It is ...
package com.oa.asset.dao; import java.util.List; import org.springframework.stereotype.Repository; import com.oa.asset.form.ProductListItem; import com.oa.base.dao.BaseDaoImpl; import com.oa.page.form.Page; @Repository public class ProductListItemDaoImpl extends BaseDaoImpl<ProductListItem> implements ProductListIt...
package com.citibank.ods.common.valueobject; import java.io.Serializable; import com.citibank.ods.common.BaseObject; /** * * Classe base para as classes do tipo VO. As classes deste tipo devem ser * serializáveis poir tem o objeto de somente trafegar informação. Portanto, * poderão ser agregadas ao Fn...
package main; import org.junit.Test; public class HelloWold { public static void main(String[] args) { System.out.println("helloworld"); } @Test public void sayHelloWorld() { System.out.println("helloworld"); } }
package TestCases; import org.openqa.selenium.support.PageFactory; import org.testng.annotations.Test; import Utility.BaseClass; import pages.HomePage; import pages.Login; public class LoginToStore extends BaseClass { @Test public void testInvalidLogin() { BaseClass.logger = reports.cre...
package Laboratorio0; import java.util.Scanner; public class Ejercicio3_2 { public static void main(String[] args) { // Ingresar el número cifrado // Intercambiar el primero con el tercero // Intercambiar el segundo con el cuarto // Realizar la operación inversa Scanner s ...
/* * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.fuchangyao.controller; import com.alibaba.dubbo.config.annotation.Reference; import com.fuchangyao.pojo.Goods; import com.fuchangyao.service.GoodsService; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; /** * Created by fcy on 2019/11/18. */ @CrossOrigin @...
package com.wangzhu.guava; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.base.Predicates; import com.google.common.collect.Collections2; import com.google.common.collect.Iterabl...
package com.bsoft; import java.util.List; /** * @ClassName: TestMyList * @Description: TODO * @Author: zhuangy * @Date: 2019-05-20 09:40 **/ public class TestMyList { public static void main(String[] args) { List myList = new MyList(); myList.add(2); myList.add(1); traversingL...
package com.jude.file.mail; import com.jude.file.bean.ResponseBean; import com.jude.file.common.MailUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import javax.mail.MessagingException; import j...
package com.mingrisoft.generic; import java.util.Arrays; public class BinSearch { public static <T extends Comparable<? super T>> int search(T[] array, T key) { int low = 0; int mid = 0; int high = array.length; System.out.println("查找的中间值:"); while (low <= high) { ...
/* * 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.curves; import graphicalsystem.IntPoint; import static util.MoreGenericity.checkNullArg; import util.MoreMath; import ut...
package util; import java.util.List; import java.util.Collection; import java.util.LinkedList; import java.util.ArrayList; public class Queue { private static final boolean DEBUG = false; private String name; private boolean pause = false; private boolean stop = false; private boolean drain = false; private...
package com.junzhao.shanfen.model; import android.os.Parcel; import org.json.JSONException; import org.json.JSONObject; /** * Created by Administrator on 2018/4/25 0025. */ public class PHFriend implements android.os.Parcelable{ public String userId; public String userName; public PHFriend(String use...
package homework_5; import org.w3c.dom.Document; import org.w3c.dom.Element; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.*; import javax.xml.transform.dom.DOMSource; import javax.xml.transfo...
package ua.com.hibernate.repository.impl; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import ua.com.hibernate.model.User; import ua.com.hibernate.repository.UserRepository; import ja...
package p06; import java.util.Scanner; public class Exam01 { static int[] numarr = new int[5]; public static void main(String[] args) { inputNums(); run(); } static void run() { for (int i = numarr[0]; i >= numarr[1]; i--) { String str = ""; for (int j = numarr[2]; j >= numarr[3]; j--...
/* * Copyright (C) 2008-2010 Martin Riesz <riesz.martin at gmail.com> * * 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 License, or * (at your option) any later ve...
package unae.lp3.notas.controller; import java.sql.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.we...
package JavaPackage; public class LoopsConcept { public static void main(String[] args) { //1 to 100 //1) While loop: int i = 1; //Initialize while(i<=10){ //Condition System.out.println(i); i++; //Incremental or Decremental } int p=1; while(p<=20){ if(p % 5 == 0){ Sys...
/* * Created on 09/12/2008 * */ package com.citibank.ods.entity.pl; import java.util.Date; import com.citibank.ods.entity.pl.valueobject.TplErEntityVO; import com.citibank.ods.entity.pl.valueobject.TplErMovEntityVO; /** * @author lfabiano * @since 09/12/2008 */ public class TplErEntity extends B...
package com.utils.tianyi; import java.io.IOException; import java.io.Serializable; import java.net.URLEncoder; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.apache.commons.httpclient.NameValuePair; import org.json.JSONException; import com.google...
package cn.com.finn.base.exception; /** * * @author Finn Zhao * @version 2017年5月31日 */ public class Err { public Err() { } public Err(String exceptionCode, String messageCode) { this.exceptionCode = exceptionCode; this.messageCode = messageCode; } /** * 异常区分 */ ...
package Model; import Client.*; import IO.MyDecompressorInputStream; import Server.*; import algorithms.mazeGenerators.Maze; import algorithms.search.*; import javafx.scene.control.Alert; import javafx.scene.input.KeyCode; import java.io.*; import java.net.InetAddress; import java.net.UnknownHostException; import jav...
package com.google.ar.sceneform.samples.hellosceneform.services.image_export; import android.util.Log; import com.google.ar.core.Anchor; import com.google.ar.core.Plane; import java.util.ArrayList; import java.util.Collection; public class PlaneAnchorsToPointsMapper { public static Collection<Point> Map(Collect...
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package ti.modules.titanium.ui; import org.appcelerator.kroll.KrollDict; import o...
package leetcode.solution; import leetcode.struct.ListNode; /** * 160. 相交链表 * <p> * https://leetcode-cn.com/problems/intersection-of-two-linked-lists/ * <p> * 编写一个程序,找到两个单链表相交的起始节点。 * <p> * 输入:intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3 * 输出:Reference of the node with va...
package walmartHomepage; public class ItemPricelimit { }
package pro.likada.dao; import pro.likada.model.AddressBuildingType; import java.util.List; /** * Created by bumur on 05.01.2017. */ public interface AddressBuildingTypeDAO { List<AddressBuildingType> getAllAddressBuildingTypes(); }
package p0010; public class Chien extends Animal { public Chien(String nom) { super(nom); } public void faireLeBeau() { System.out.printf("%s se met sur les pattes arrières et fait le beau, arf\n", getNom()); } }
package com.lesports.albatross.fragment; import android.os.Bundle; import android.text.format.DateUtils; import android.view.LayoutInflater; import android.view.View; import android.widget.ListView; import android.widget.TextView; import com.google.gson.reflect.TypeToken; import com.handmark.pulltorefresh.library.Pul...
/****************************************************************************** * __ * * <-----/@@\-----> * * <-< < \\// > >-> * ...
import java.sql.SQLException; import javafx.scene.Scene; import javafx.scene.control.Menu; import javafx.scene.control.MenuBar; import javafx.scene.control.MenuItem; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class GUI { //...
package com.example.bigdata.service; import com.example.bigdata.jdbc.TestJDBC; import org.springframework.stereotype.Service; @Service public class CreateScreenService { public void createScreen() { TestJDBC jdbc = new TestJDBC(); jdbc.createScreen(); } }
/* * 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; import java.sql.PreparedStatement; import java.util.Objects; /** * * @author Mihailo */ public class MovieGenre im...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.xag.util; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail....
import java.util.Scanner; public class Problem4 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); //adds users number to array System.out.print("Enter list: "); int length = input.nextInt(); int[] list = ...
package com.example.demo.service; import com.example.demo.dto.integration.IntegrationDto; /** * @author songjuxing */ public interface IntegrationManager { /** * 服务编排 * @param dto 服务请求对象 * @param <T> 所有服务请求与返回继承于IntegrationDto一个基类 * @return 服务返回对象 * @throws Exception 服务异常 */ ...
package view; import java.awt.EventQueue; import javax.swing.JInternalFrame; import javax.swing.JPanel; import javax.swing.border.TitledBorder; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.Font; import java.beans.PropertyVetoException; import java.sql.Connection; import jav...
package ch09; public class Manager extends SalariedEmployee { private double weeklyBonus; private String department; /** Constructs a manager with a given name, annual salary and weekly bonus. @param name the name of this employee @param salary the annual salary @param bonus the weekl...
package com.trump.auction.goods.domain; import lombok.Data; import lombok.ToString; import java.util.Date; /** * 商品图片 * @author zhangqingqiang * @since 2017-12-21 */ @Data @ToString public class ProductPic { private Integer id; private String picUrl; private Integer skuId; private Integer colo...
package com.wangzhu.thread; /** * Created by wang.zhu on 2020-09-23 11:04. **/ public class PSGCDemo { public static void main(String[] args)throws Exception { byte[] bytes1 = new byte[1024 * 1024 * 2]; byte[] bytes2 = new byte[1024 * 1024 * 2]; byte[] bytes3 = new byte[1024 * 1024 * 2]; ...
package walnoot.dodgegame.states; import walnoot.dodgegame.Util; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Table; public abstract ...
class Solution { public int[] shuffle(int[] nums, int n) { int[] result=new int[2*n]; for(int k=0,i=0,j=n;j<nums.length;i++,j++,k++){ result[k]=nums[i]; k++; result[k]=nums[j]; } return result; } }
package com.gaoshin.cloud.web.xen.service; import com.gaoshin.cloud.web.xen.bean.CloneRequest; import com.gaoshin.cloud.web.xen.bean.ConsoleSession; import com.gaoshin.cloud.web.xen.bean.Host; import com.gaoshin.cloud.web.xen.bean.HostDetails; import com.gaoshin.cloud.web.xen.bean.HostList; import com.gaoshin.cloud.we...
package com.belhomme.alexandre.sudokuandroid; import android.os.Bundle; import android.widget.TextView; import com.belhomme.alexandre.sudokuandroid.composants.BaseAppCompatActivity; import com.belhomme.alexandre.sudokuandroid.composants.GrilleDraw; import com.belhomme.alexandre.sudokuandroid.objects.Cellule; import c...
package de.amr.games.pacman.ui; import java.util.Arrays; import java.util.List; /** * Constants for the sounds used in the Pac-Man and Ms. Pac-Man games. * * @author Armin Reichert */ public enum PacManGameSound { //@formatter:off BONUS_EATEN, CREDIT, EXTRA_LIFE, GAME_READY, GHOST_EATEN, GHOST_RETUR...
package com.codigo.smartstore.webapi.services; import java.util.ArrayList; import java.util.List; import java.util.Optional; import javax.inject.Inject; import org.springframework.stereotype.Service; import com.codigo.smartstore.webapi.domain.Customer; @Service public class CustomerService implements ICustomerSer...
/* This class explains the main concepts of Inheritance in Java EXTENDS and IMPLEMENTS We basically use these 2 keywords to do inheritance in java IS-A RELATIONSHIP: public class Animal{ } public class Mammal extends Animal{ } public class Reptile extends Animal{ } public class Dog extends Mammal{ } ...
package com.javarush.task.task15.task1525; import java.io.*; import java.nio.Buffer; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; /* Файл в статическом блоке */ public class Solution { public static List<Stri...
package Laboratorio1.Ejercicio1; import java.util.Scanner; public class Principal { public static void main(String[] args) { Scanner s = new Scanner(System.in); double[] num1 = new double[4]; double[] num2 = new double[4]; double n1, n2; for (int i = 0; i < num1.length; i...
package am.bizis.cds.dpfdp4; /** * <p>DAP<br /> * Typ daňového přiznání.<br /> * B - řádné<br /> * O - řádné-opravné<br /> * D - dodatečné<br /> * E - dodatečné-opravné</p> * @author alex * */ public enum DAPTyp { B("B","radne"),O("O","radne-opravne"),D("D","dodatecne"),E("E","dodatecne-opravne"); String d...
package com.example.submissionempat.model; import android.content.Intent; import android.os.Parcel; import android.os.Parcelable; import android.util.Log; import org.json.JSONObject; public class MovieData implements Parcelable { private int id; private String title; private int popularity; private ...
package uk.co.mtford.jalp.abduction.logic.instance.term; import java.util.HashMap; import java.util.List; import java.util.Map; import choco.kernel.model.variables.Variable; import uk.co.mtford.jalp.abduction.AbductiveFramework; import uk.co.mtford.jalp.abduction.logic.instance.IFirstOrderLogicInstance; import uk.co.m...
/** * Copyright (C) 2016 - 2030 youtongluan. * * 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 applicab...
package Bai2; public class MainNhanVien { public static void main(String[] args) { QuanLyNhanVien nv = new QuanLyNhanVien(); while (true) { nv.menu(); } } }
package nl.capaxit.mybatisexamples.demos.dynamic; /** * Created by jamiecraane on 01/07/16. */ public class SearchSpec { private String firstName; private String lastName; public SearchSpec(final Builder builder) { this.firstName = builder.firstName; this.lastName = builder.lastName; ...
package commands; import org.newdawn.slick.SlickException; import org.newdawn.slick.command.BasicCommand; import actionEngines.ActionEngine; import actionEngines.ActorActionEngine; public class FaceDirectionCommand extends BasicCommand implements GenericCommand{ private float[] newDirection; public Face...
package com.movieapp.anti.movieapp.Models; import java.io.Serializable; import java.security.PublicKey; import java.util.ArrayList; /** * Created by Anti on 2/18/2018. */ public class Details implements Serializable { public String overview; // public ArrayList<Details> credits = new ArrayList<>(); // ...