text
stringlengths
10
2.72M
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package privacypreserving; import java.io.*; import java.sql.*; import java.util.ArrayList; import javax.crypto.Cipher; import javax.crypto.CipherInputStream; import javax.crypto.spec.SecretKeySpec; import javax.swing.J...
package com.croxx.hgwechat.req.didiumbrella; public class ReqDidiUmbrellaAuth { private String js_code; public ReqDidiUmbrellaAuth() { } /* Getters & Setters */ public String getJs_code() { return js_code; } public void setJs_code(String js_code) { ...
package com.groovybot.engine; public interface GroovyEngine { Object execute(final String script); }
/** * */ package com.travelportal.controllers; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.OutputStream; import java.nio.file.Files; import java.sql.Timestamp; import java.text.DateFormat; import java.text.ParseException;...
package com.sprmvc.web.ch5.rest; import com.fasterxml.jackson.databind.ObjectMapper; import com.sprmvc.web.ch5.Profile; import com.sprmvc.web.ch5.Spitter; import com.sprmvc.web.ch5.Spittle; import com.sprmvc.web.ch5.data.SpittleRepository; import com.sprmvc.web.ch5.exc.SpitterExceptionRest; import com.sprmvc.web.ch5.e...
package com.e6soft.activiti; import javax.annotation.Resource; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.e6soft.core.service.VoService; import com.e6soft.core.web.BaseController; public class ActivitiController extends BaseController { public static Log log = ...
package com.takshine.wxcrm.service.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotati...
package com.app.artclass.database.entity; import android.content.Context; import androidx.annotation.NonNull; import androidx.room.Entity; import androidx.room.Ignore; import androidx.room.Index; import androidx.room.PrimaryKey; import androidx.room.TypeConverters; import com.app.artclass.R; import com.app.artclass....
package com.pfchoice.springboot.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.Specification; imp...
package com.udacity.jdnd.course3.critter.service; import com.udacity.jdnd.course3.critter.dao.EmployeeDao; import com.udacity.jdnd.course3.critter.dao.PetDao; import com.udacity.jdnd.course3.critter.dao.ScheduleDao; import com.udacity.jdnd.course3.critter.entity.Schedule; import org.springframework.beans.factory.annot...
package start.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import start.service.ApiService; /** * @Author: Jason * @Create: 2020/10/11 9:35 * @Description 测试a...
package com.coinhunter.utils.crypto.pbe; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import javax.crypto.spec.DESedeKeySpec; import javax.crypto.spec.SecretKeySpec; import java.io.IOException; import java.security.GeneralSecurity...
import javax.swing.JOptionPane; import java.util.Random; public class messaroundcointoss { public static void main(String[] args) { int count; int squaredAge; for (count= 1; count<124; count++) { squaredAge = count*count; if (squaredAge <2132) { if (squaredAge >1891) { System...
package com.kaoqin.util; import java.io.PrintWriter; public class KqTool { public static void printAlert(PrintWriter out, String message, String location){ out.println("<script language='javascript'>"); out.println("alert('" + message + "');"); out.println("window.location='" + location + "';"); o...
package net.youzule.spring.chapter02.BeanInherit; /** * @description: * @company: * @author:Sean * @date:2018/7/3 10:04 **/ public class Parent { private String name; private int age; private String gender; public Parent() { } public String getName() { return name; } pu...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the te...
package com.estafet.jsf.converters; import javax.el.ValueExpression; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.FacesConverter; import com.estafet.jsf.model.employees.Employee; import com.estafet.jsf.model.employe...
import java.util.HashMap; public class Node { private String name; private Boolean isStartNode; private HashMap<Node, Integer> adjacentNodes; private Boolean visited; private Node parent; private Integer cost; /** * * @param name: String, name of the node as read-in from the ...
package com.yarg.animatronics.log; public class Logger { public static enum SEVERITY { INFO("INFO"), WARNING("WARNING"), DEBUG("DEBUG"), ERROR("ERROR"); private final String severity; private SEVERITY(String severity) { this.severity = severity; } public String getSeverityString() { return s...
package ejercicios.nonacces.finall; public class EstudianteOdontologia extends EstudianteMedicina { //Un est. de odontologia es un estudiante de medicina==SI // Sobreescribiendo el metodo del padre // NO se puede SOBREESCRIBIR un metodo final del padre protected void realizarPracticas() { System.out.println("Re...
/****************************************************************************** * * Copyright 2019 IBM Corporation and others. * * 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 * * ...
package com.ibeiliao.pay.account.impl.service; import com.google.common.collect.Lists; import com.ibeiliao.pay.account.api.dto.BankVO; import com.ibeiliao.pay.account.api.enums.BankStatus; import com.ibeiliao.pay.account.impl.dao.BankDao; import com.ibeiliao.pay.account.impl.entity.BankPO; import com.ibeiliao.pay.comm...
package com.pfchoice.springboot.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.domain.Specification; imp...
/* * UniTime 3.5 (University Timetabling Application) * Copyright (C) 2014, UniTime LLC, and individual contributors * as indicated by the @authors tag. * * 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 Soft...
package com.rs.game.player.dialogues; public class JAGInformation extends Dialogue { int npcId; @Override public void start() { npcId = (Integer) parameters[0]; sendEntityDialogue(SEND_1_TEXT_CHAT, new String[] { "Account Guardian", "Hello adventurer, how may I help you?" }, IS_NPC, npcId, ...
package com.tt.miniapp.launchschedule; import android.app.Activity; import android.app.Application; import android.content.Context; import android.os.Bundle; import android.text.TextUtils; import android.util.ArrayMap; import com.he.jsbinding.JsContext; import com.he.jsbinding.JsScopedContext; import com.sto...
package info.ntek.gsp.data.time; /** * Type of Day. * * @author Milos Milanovic */ public enum DayType { RADNI_DAN(0), SUBOTA(1), NEDELJA(2); private int mValue = 0; DayType(int value) { this.mValue = value; } public int getValue() { return mValue; } public st...
package com.args.cineduniya; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ProgressBar; import android.widget.Te...
package com.lukian.creditmicroservice.dto; import lombok.*; @AllArgsConstructor @NoArgsConstructor @Getter @Setter @ToString public class ProductDTO { private String name; private int value; }
package com.xncoding.jwt; import com.xncoding.jwt.util.JWTUtil; import com.xncoding.jwt.shiro.ShiroKit; import org.junit.Test; /** * SimpleTest * * @author XiongNeng * @version 1.0 * @since 2018/1/4 */ public class SimpleTest { @Test public void testJwt() { // 用户名 String username = "adm...
package com.example.didiorder.activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.design.widget.Snackbar; import android.support.design.widget.TextInputLayout; import android.support.v7.widget.Toolbar; import android.text.Edi...
package cn.uway.cache; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.text.ParseException; import java.util.Date; import java.util.List; import java.util.Set; import org.slf4j.Logger; import org.apache.mina.util.ConcurrentHashSet; import cn.uway.config.LogMgr; import cn.uw...
package ca.mohawk.jdw.shifty.clientapi.net; /* I, Josh Maione, 000320309 certify that this material is my original work. No other person's work has been used without due acknowledgement. I have not made my work available to anyone else. Module: client-api Developed By: Josh Maione (000320309) */ publi...
/** * @author I077988 */ package com.cnk.travelogix.suppliers.service.impl; import de.hybris.platform.servicelayer.search.FlexibleSearchService; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Collection; import java.util.List; import org.apache.log4j.Logger; import org...
package iterator; import java.util.List; interface Library { Iterator getIterator(); List<Book> getBooks(); } class LibraryImpl implements Library { private List<Book> books; LibraryImpl(List<Book> books) { this.books = books; } public Iterator getIterator() { return new Boo...
package com.mygdx.ObjectInfo; public class MonsterStatsInfo extends AbstractStatsInfo{ }
package com.danboard.util; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; /** * Helper method related to IO operations */ public class IOHelpers { /** * @param is * @return a string * @throws IOException */ static public String convertStrea...
package com.simha.SpringJPADemoForQueryResults; import java.util.List; import java.util.function.Consumer; import java.util.Arrays; public class ConsumerDemo { public static void main(String[] args) { Consumer<Integer> consumer = (t) -> System.out.println("printing.... " + t); consumer.accept(40); List<Inte...
package retro; public class ApiUtil { private static final String BASE_URL = "https://ask.osify.com/wp-json/wp/"; private static final String WOO_URL = "https://lom-or.com/wp-json/wc/"; public static PostServiceInterface getPostService(){ return RetrofitAPI.getRetrofit(BASE_URL).create(PostServi...
package com.dennistjahyadigotama.soaya.activities.warta_ubaya_activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.MenuItem; import android...
package com.buiminhduc.repository; import com.buiminhduc.common.annotation.Repository; import com.buiminhduc.model.entity.ProductEntity; import com.buiminhduc.paging.Pageable; import java.util.List; public interface ProductRepository extends JpaRepository<ProductEntity, Integer> { List<ProductEntity> findAll(); ...
package com.shagaba.kickstarter.rest.domain.profile; public class Address { protected String name; protected String firstName; protected String lastName; protected String companyName; protected String addressLine1; protected String addressLine2; protected String a...
package com.cnk.travelogix.operations.facades.populator; import de.hybris.platform.converters.Populator; import de.hybris.platform.servicelayer.dto.converter.ConversionException; import com.cnk.travelogix.common.core.model.receipts.ReceiptDetailsModel; import com.cnk.travelogix.operations.data.TravelogixReceiptDetail...
package com.ss.android.ugc.aweme.miniapp.g; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import com.ss.android.ugc.aweme.miniapp.MiniAppService; import com.ss.android.ugc.aweme.miniapp.a; import com.ss.android.ugc.aweme.miniapp.c; import c...
package Practice; import java.lang.annotation.Annotation; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; class ReflectDemo { } class Apple { private int age; public String name; public void setNa...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package IServiceSupport; import com.douwe.generic.dao.DataAccessException; import java.util.List; import lappa.smsbanking.Entities.Adresse; import lappa.smsbanking.Entities.Personne; /** * * @author lappa */ public ...
package com.computerstudent.madpractical.Practical_25; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.View; import android.widget.Button; import android.widget.EditText; import...
package com.example.recyclerview.activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import com.example.recyclerview.adapter.CourseTopicAdapter; import com.example.recyclerview.data.Course; import com.example.recyclerview.data.CourseDAO; import co...
package com.greenapex.quizapp.controllertest; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.request...
package edu.pdx.advocate.model; import java.sql.SQLData; import java.sql.SQLException; import java.sql.SQLInput; import java.sql.SQLOutput; import javax.xml.bind.annotation.XmlTransient; public class Course implements SQLData { private String crn; private String course; private String title; private String begin...
// O(n) time, O(1) space class Solution { public int singleNonDuplicate(int[] nums) { //use XOR to get the single element int res = nums[0]; for (int i = 1; i < nums.length; i++) { res ^= nums[i]; } return res; } }
package com.cskaoyan.service; import com.cskaoyan.bean.MaterialMessage; import java.util.List; /** * @author q4work */ public interface MaterialMessageService { public List<MaterialMessage> queryAllMaterialMessage(); public boolean insertMaterialMessage(MaterialMessage materialMessage); public List<Ma...
package smart.repository; import smart.entity.BrandEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; public interface BrandRepository extends JpaRepository<BrandEntity, Long> { @Query(value = "select * from t_brand where id = ? for u...
package com.websharp.dwtz.dao; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteStatement; import de.greenrobot.dao.AbstractDao; import de.greenrobot.dao.Property; import de.greenrobot.dao.internal.DaoConfig; import com.websharp.dwtz.dao.EntityLocati...
package BD; import fabrica.Conexao; import fabrica.GeralConst; import helper.JSHelper; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import util.Tabela; public class TabelaDao { public ArrayList<Object> getTodas()...
/* * 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 UpTlax.Practica10; import java.io.FileFiader; import java.IOException; import java.util.logging.Level; import java.util.loggin...
package edu.pdx.advocate.dao; import java.sql.Connection; import java.sql.SQLException; import java.sql.SQLInput; import java.sql.Types; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.sql.DataSource; import javax.sql.rowset...
package eday1; import java.util.Arrays; import java.util.Scanner; public class prim { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int V = sc.nextInt(); int E = sc.nextInt(); int[][] adj = new int[V][V]; for (int i = 0; i < E; i++) { int a = sc.nextInt(); int b =...
package com.sample.bitnotifier.interfaces; public interface OnDataChangeListener { void onDataChange(); }
package android.support.design.widget; import android.content.Context; import android.graphics.Rect; import android.support.design.widget.CoordinatorLayout.d; import android.support.v4.view.f; import android.support.v4.view.z; import android.util.AttributeSet; import android.view.View; import android.view.View.Measure...
package day13_methods_Part1; public class passMultipleArgument { public static void main(String[] args) { showSum(2,5); showSum(20,50); showSum(210,15); showSum(250,55); } public static void showSum( int num1, int num2) { System.out.println(num1+num2); } }
package view; import javax.swing.JOptionPane; /** * @version Adreli_4_Gui_Server * @author Jan-Hendrik Hausner * @author John Budnik * @author Luca Weinmann */ public class ServerLeaveView { /** * * @return JOptionPane */ public int leaveServer() { return JOptionPane.showConfirmDialog(null, "Möchte...
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.CRServo; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.Servo; @TeleOp(name="DriverC...
/** * <copyright> * </copyright> * * $Id$ */ package LanguageWorkbenchCompetition.impl; import LanguageWorkbenchCompetition.*; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf...
package com.tencent.mm.protocal; import com.tencent.mm.protocal.c.g; public class c$hv extends g { public c$hv() { super("setFontSizeCallback", "", -2, false); } }
/* * Copyright 2013 Basho Technologies Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
package framework.commands; public interface Invoker { public void setCommand(Command command); public void invokeCommand(); }
package com.mhsn.linkedList.duplicate; import com.mhsn.linkedList.LinkedListUtils; import com.mhsn.linkedList.MyLinkedList; import com.mhsn.linkedList.Node; public class RemoveDuplicatesFromSortedList { public static Node removeDuplicatefromSortedList(Node head){ Node current = head; while(curr...
package test.abcd.pierwszaAplikacja; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication() public class PierwszaApplication { public static void main(String[] args)...
package com.springboot.quickstart.controller; import com.springboot.quickstart.pojo.Orders; import com.springboot.quickstart.service.OrdersService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariabl...
/* * 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 TallerPoo; import java.awt.Color; import java.util.Objects; public class TipoCuidado { private Boolean tapab...
package accounts.Client; import accounts.entity.AccountsEntity; import accounts.operations.AccountsOperations; import operations.implementations.AccountsOperationsImplementations; public class AccountsClient { public static void main(String[] args) { AccountsEntity customer=new AccountsEntity(5000000, 2038087654,...
package com.mygdx.game.components; public class RemoveIfOffScreenComponent { }
/* * 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 overlay; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; imp...
package com.kingdee.lightapp.service.openorg.impl; import java.util.HashMap; import java.util.Map; import net.sf.json.JSONObject; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframew...
package com.sanlitec.test1; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.support.annotation.Nullable; import android.util.Log; import java.lang.reflect.ReflectPermission; /** * Created by sanlitec on 2016/9/27. */ public class TestS...
package by.tc.task01.dao.impl; import by.tc.task01.dao.AbstractFileReader; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.List; import java.util.stream.Collectors; class TextFileReader extends AbstractFileReader { private final BufferedReader rea...
package com.youtalkwesign.service; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.ProtocolException; import java.net.UR...
package de.uniba.dsg.jaxrs; import de.uniba.dsg.jaxrs.controller.CustomerController; import de.uniba.dsg.jaxrs.resources.SwaggerUI; import javax.ws.rs.*; import javax.ws.rs.core.*; import java.util.*; @ApplicationPath("/") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public class Examp...
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final /** * RDeptFunctionId generated by hbm2java */ public class RDeptFunctionId implements java.io.Serializable { private String deptid; private String servicedeptid; private String functionid; private String employeeid; publi...
/* Write this concrete (non-abstract) class called Cylinder that extends Prism. * It has a private field (radius) and inherits its height from its superclass, Prism * (because all prisms have a height). * Provide a constructor and the methods required by its abstract superclass. */ /** * calculates...
package com.websharp.dwtz.activity.main; import java.io.File; import java.util.ArrayList; import org.json.JSONException; import org.json.JSONObject; import com.dh.Demo.TestDpsdkCoreActivity; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.handmark.pulltorefresh.library.PullToRefresh...
package random; import java.util.concurrent.CountDownLatch; import static random.StaticBlockAndLineExecution3.latch; /* "Static initializers are run by the JVM at class initialization time, after class loading but before the class is used by any thread. Because the JVM acquires a lock during initialization [J...
package com.xujiangjun.archetype.manager.consumer; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; /** * 封装第三方服务接口(参考此命名方式) * * @author xujiangjun * @since 2018.05.20 */ @Slf4j @Service public class LocalShopService { }
package org.study.core.concurrency.thread; import java.util.concurrent.locks.Lock; /** * Created by iovchynnikov on 7/29/2015. */ public class Deadlocks { public void run() { Thread thread1 = new Deadlocks.DeadlockThread(); } private class DeadlockThread extends Thread { @Override ...
package nl.themelvin.questlib.listeners; import nl.themelvin.questlib.QuestLib; import nl.themelvin.questlib.abstracts.Quest; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerQuitEvent; public class QuitListener extends Listener<PlayerQuitEvent> { ...
package VSMWordEmbeddingsNew; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java....
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final /** * MvQuality generated by hbm2java */ public class MvQuality implements java.io.Serializable { private MvQualityId id; public MvQuality() { } public MvQuality(MvQualityId id) { this.id = id; } public MvQualityId ge...
package club.dao.mysql.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DBUtil { private static final String dbUrl = "jdbc:mysql://localhost:3306/club"; private static final String dbUserName = "root"; private static final String dbPassword = "...
package com.santhosh.model; import java.sql.Timestamp; import javax.persistence.*; import javax.validation.constraints.NotNull; @Entity @Table(name="crosstransaction") public class Cstatus { @Id private int sno; @NotNull(message="Customer ID cannot be empty") private String custid; @NotNull(message="Source A...
/** (Display current date and time) Listing 2.7, ShowCurrentTime.java, displays the current time. * Improve this example to display the current date and time. The calendar example in Listing 6.12, * PrintCalendar.java, should give you some ideas on how to find the year, month, and day */ import java.util.Scanner; ...
/* * Copyright (C) 2017 GetMangos * * 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 2 * of the License, or (at your option) any later version. * * This program is distrib...
package servlets; import org.apache.log4j.Logger; import org.eclipse.jetty.http.HttpStatus; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse...
package com.ojas.task.repository; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import com.ojas.task.model.UserRoles; public interface UserRolesRepo extends JpaRepository<UserRoles, Integer> { // @Query("select a.role from UserRoles a, CustomUser b where b.userName = ?1 an...
package game.app.dtos.request; import javax.validation.constraints.NotBlank; import lombok.Data; @Data public class ShopDto { @NotBlank(message = "Direction cant be null or empty, try adding a direction") private String direccion; private int codigoPostal; }
package com.company.c4q.whiteboardingexcercises; /** * This is slightly more difficult version of the famous FizzBuzz problem which is sometimes given as a first problem for job interviews. Consider the series of numbers beginning at start and running up to but not including end, * so for example start = 1 and end ...
package it.univaq.rtv.controller; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.AnchorPane; public class ControllerSceltaMappa { private Label sceltaMappa; private Button europa; private Button usa; private Button africa; private Button sudAmeri...
package com.mysql.cj.xdevapi; import java.math.BigDecimal; public class JsonNumber implements JsonValue { private String val = "null"; public Integer getInteger() { return Integer.valueOf((new BigDecimal(this.val)).intValue()); } public BigDecimal getBigDecimal() { return new BigDecimal(this.val...
package org.alienideology.jcord.event.client.relation.request; import org.alienideology.jcord.event.client.relation.RelationshipRemoveEvent; import org.alienideology.jcord.handle.client.IClient; import org.alienideology.jcord.handle.client.relation.IIncomingFriendRequest; import org.alienideology.jcord.handle.client.r...
package com.DynamicProgramming; import java.util.*; import java.lang.*; import java.io.*; /* By Kapple */ class kadanes { public static void main (String[] args) throws IOException { //code BufferedReader input = null; input = new BufferedReader(new InputStreamReader(new FileInputStre...