text
stringlengths
10
2.72M
/** * Created by Гамзат on 01.06.2017. */ public class Fry { private int year; private int month; private int day; public Fry() { this(0,0,0); } public Fry(int y){ this(y, 0, 0); } public Fry(int y, int m){ this(y, m, 0); } public Fry(int y, int m, int ...
package cmc.vn.ejbca.RA.dto.request; public class RequestOfPKCS10CertificationDto { String keySpec; String keyalgorithmRsa; String signatureAlgorithm; String dn; public RequestOfPKCS10CertificationDto(String keySpec, String keyalgorithmRsa, String signatureAlgorithm, String dn) { this.key...
package com.dalmirdasilva.androidmessagingprotocol.device.message; public class PingMessage extends Message { public PingMessage() { super(TYPE_PING); } }
package com.bnebit.sms.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import com.bnebit.sms.util.page.GridPageSet; im...
package com.design.factory.AbstractFactory; public class XVeggiesOfRedPepper implements XVeggies { public String toString() { return "Red Pepper"; } }
package com.flowedu.util; public class FloweduUtils { public static String convertLectureDay(String engDay) { if (!"".equals(engDay)) return null; String korDay = null; switch (engDay) { case "MON" : korDay = "월요일"; break; case "TUE" ...
package barryalan.ediary70; import android.content.Context; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.method.HideReturnsTransformationMethod; import android.text.method.PasswordTransformationMethod; import android.util.Log; import andr...
package sist.com.array; import java.lang.reflect.Array; import java.util.Arrays; import java.util.Scanner; public class CalendarTest { Scanner sc = new Scanner(System.in); int year, Month; int[][] calendar = new int[6][7]; int[] lastDay = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // 각 달의 마지막 날...
package cn.vaf714.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import cn.vaf714.entity.AdminUser; import cn.vaf714.util.DBUtil; public class AdminUserDao { /** * 查找管理员用户 * * @param username * @return */ public AdminUser getUser(String username) { Prepa...
package com.example.android.tourguide; import androidx.annotation.NonNull; public class LocationInfo { private String mName , mAddress,mInfo,mArtistName ; private int imageId,mPlayIcon,mStopIcon; private int NO_AUDIO_PROVIDED = -1; private int mRaw = NO_AUDIO_PROVIDED; //Displaying Location p...
package edu.cricket.api.cricketscores.async; import edu.cricket.api.cricketscores.utils.BbbServiceUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Com...
package com.openfarmanager.android.fragments; import android.annotation.TargetApi; import android.app.Dialog; import android.content.Intent; import android.content.res.Configuration; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Message; im...
package com.example.user.e_kpiv3; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.wid...
/* * 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 com.beike.dao.impl.merchant; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.jdbc.core.simple.ParameterizedRowMapper; import org.springframework.stereotype.Repository; import com.beike.dao.GenericDaoImpl; import com.beike.dao.merchant.BranchProfileDa...
package de.omikron.server; import de.omikron.client.Frontend; public class Backend { private ServerConnection server; public Backend() { server = new ServerConnection(3000); } protected void init() { server.init(); } }
package com.pelephone_mobile.mypelephone.ui.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import com.androidquery.AQuery; import com.pelephone_mobile.R; import com.pelephone_mobile.mypelephone.n...
package backup; import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp; import com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver; import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow; i...
package kxg.searchaf.url.hollisterco; import java.sql.*; import java.util.List; import kxg.searchaf.db.mysql.MysqlDao; import kxg.searchaf.util.ProxyUtli; public class HollistercoMysqlDao extends MysqlDao { public void save(HollistercoProduct product) { if (product == null || product.productid == 0) ...
package xtrus.nhvan.mgr.nhmca.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.esum.appetizer.controller.Abs...
package componentes; import javax.swing.text.AttributeSet; import javax.swing.text.BadLocationException; import javax.swing.text.PlainDocument; public class TamanhoFixoJTextField extends PlainDocument { private int tamMax; private String permitir,padrao = "[^"; public TamanhoFixoJTextField(int tamMax, St...
package com.test.billing.dao; import com.test.billing.dao.mapper.AccountMapper; import com.test.billing.dao.model.Account; import org.skife.jdbi.v2.sqlobject.Bind; import org.skife.jdbi.v2.sqlobject.BindBean; import org.skife.jdbi.v2.sqlobject.SqlQuery; import org.skife.jdbi.v2.sqlobject.SqlUpdate; import org.skife.jd...
package com.atomix.sidrapulse; import com.atomix.customview.SidraTextView; import com.atomix.sidrainfo.SidraPulseApp; import android.os.Bundle; import android.text.util.Linkify; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; import and...
package gov.nih.mipav.model.scripting.actions; import gov.nih.mipav.model.scripting.*; import gov.nih.mipav.model.scripting.parameters.*; import gov.nih.mipav.model.structures.*; import gov.nih.mipav.view.*; import java.awt.*; /** * An action which extracts the imageB from a frame and puts it into a new image fr...
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.HashMap; public class Compressor { HashMap<String, Integer> table = n...
package de.doctorintro.superjump; import org.bukkit.Bukkit; import org.bukkit.Location; public class LocationUtile { public String locationToString(Location loc){ return loc.getWorld().getName()+"*"+loc.getBlockX()+"*"+loc.getBlockY()+"*"+loc.getBlockZ()+"*"+loc.getPitch()+"*"+loc.getYaw(); } publi...
package com.github.vitorm3lo.jbossplugin.forms; import com.github.vitorm3lo.jbossplugin.model.Instance; import com.intellij.ui.components.JBList; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.List; import java.util.stream.Collectors; public class EditServerDialog extends JDialog ...
package com.haobi.okhttpdemo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import java.io.IOException; import okhttp3.Call; import okhttp3.Callba...
package dfs_ch05; import java.util.*; public class Ch05_04 { public static void main(String[] args) { recursive_function(1); } public static void recursive_function(int i) { if(i==100) { System.out.println(i+"번째 재귀함수에서"+(i+1)+"번째 재귀함수를 호출합니다."); recursive_function(i+1); System.out.println(i+"번 째 재귀함...
package fr.unice.polytech.isa.polyevent.cli.framework; import java.io.PrintStream; import java.util.Scanner; public class Context { public final Scanner scanner; public final PrintStream out; public final boolean echo; public Context(Scanner scanner, PrintStream out, boolean echo) { this....
package gradedGroupProject; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class ProfileImpl implements ProfileImplInterface{ private String name; private String address; private Date birthDate; public ProfileInterface createBankClientProfile()...
package common.amazon.jax; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; public class ItemLookupRequest { protected String condition; protected String deliveryMethod; protected String futureLaunchDate; protected String idType; protected String ispuP...
package 数据结构.线性结构.队列; /** * Created by Yingjie.Lu on 2018/8/30. */ /** * @Title: 链式存储_队列 * @Date: 2018/8/30 14:12 */ public class MyLinkedQueue { private Node front;//指向队头节点 private Node rear;//指向队尾节点 private int size=0; /** * @Title: 定义一个元素 * @Date: 2018/8/30 15:44 */ priva...
package ch08; public class DataSet { private double sum; private Object maximum; private int count; private IMeasurer measurer; public DataSet(IMeasurer m) { sum = 0; count = 0; maximum = null; measurer = m; } public void add(Object o) { sum += measurer.measure(o); if(coun...
public class Range { private double lowerBound; private double upperBound; public Range(double lower, double upper) { lowerBound = lower; upperBound = upper; } public Range() {} public boolean inRange(double x) { if (x >= lowerBound && x < upperBound) { return true; } return false; } ...
package com.project; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.context.annotation.ComponentScan; import org.springframework.data.mongodb.repository.c...
package com.programapprentice.app; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * User: program-apprentice * Date: 8/17/15 * Time: 10:12 PM * Finished Time: 11:00 PM */ /** Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where t...
package com.nowcoder.community.service; import com.nowcoder.community.dao.LoginTicketMapper; import com.nowcoder.community.entity.LoginTicket; import com.nowcoder.community.entity.User; import com.nowcoder.community.dao.UserMapper; import com.nowcoder.community.util.CommunityConstant; import com.nowcoder.community.uti...
package com.cloudinte.modules.upload.web; import java.util.List; import com.cloudinte.modules.upload.web.ChunkUploadService.UploadStatus; import com.google.common.collect.Lists; public class ResultVo { /** 文件上传状态 */ private UploadStatus uploadStatus; /** 未上传的片段 */ private List<Integer> missChunks = Lists.newAr...
package com.myvodafone.android.front.helpers; import android.view.View; import android.view.animation.Animation; import android.view.animation.Transformation; /** * Created by p.koutsias on 2/3/2016. */ public class ExpandAnimation extends Animation { private int baseHeight; private int delta; private V...
package expansion.neto.com.mx.jefeapp.cameraApi2; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PorterDuf...
package heapAreaAnay; /** * Created by Administrator on 2018-7-15 0015. */ public class BigObjectEnterOldGen { private static final int _1MB = 1024 * 1024; /** * * -verbose:gc -Xms20M -Mmx20M -Xmn10M -XX:+printGCDetails -XX:SurvivorRatio=8 -XX:PretenureSizeThreshold=3145728 * 总共堆大小20M ...
package iit.android.swarachakra; import android.content.Context; import android.content.res.AssetManager; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import android.util.Log; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; ...
package be.openclinic.util; import java.util.Comparator; public class ClusterDataSortByGravity implements Comparator{ public int compare(Object arg0, Object arg1) { // TODO Auto-generated method stub return new Double(((ClusterData)arg1).getGravity()-((ClusterData)arg0).getGravity()).intValue(); } }
package com.abt.middle.global; /** * @描述: @全局常量 * @作者: @黄卫旗 * @创建时间: @2018-03-10 */ public class GlobalConstant { public static final String FILE_PROVIDER = ".fileProvider"; public static final String MEDIA_INFO = "mediaInfo"; public static final String MEDIA = "media"...
/* ==================================================================== * * Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved. * * ==================================================================== * */ package com.aof.component.domain.party; import java.io.Serializable; /** * @author xxp ...
package vista; import controlador.MiFuncion; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import modelo.Curso; /** * * @author Jonathan Pacheco R. * @version 0.1 * */ public class AgregarCurso extends javax.swing.JFrame { Curso cur = new Curso(); public AgregarCurso()...
package com.ece671.urar_server; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite....
package com.framgia.fsalon.data.source; import com.framgia.fsalon.data.model.Stylist; import java.util.List; import io.reactivex.Observable; /** * Created by THM on 7/20/2017. */ public class StylistRepository implements StylistDataSource { private StylistDataSource mStylistRemoteDataSource; public Styli...
/* * Licensed to DuraSpace under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * DuraSpace licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file excep...
package com.example.balaji.myweatherapp; import android.content.DialogInterface; import android.content.Intent; import android.provider.ContactsContract; import android.provider.Settings; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v4.widget....
package com.ecjcoach.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import com.google.gson.annotations.Expose; @Entity public class Cust_exp_dtls { @Id private Str...
/* * 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 ArrayMetodo1; /** * * @author mati */ public class Ejecutable { public static void main(String[] args) { int []...
public class Solution2 { public boolean inRange(int a,int b) { if((a>=10&&a<=20) || (b>=10&&b<=20)) return true; return false; } }
package com.lxd.controller; import org.apache.log4j.Logger; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/hello") public class TestController {...
package pl.edu.agh.mwo; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import static org.testng.Assert.*; /** * @author Kamil Rojek */ public class TripManagerTest { TripManager tripManager; Trip trip; @BeforeMethod public void setUp() { tripManager = new T...
package com.gymteam.tom.gymteam; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; public class MyTabsPagerAdapter extends FragmentStatePagerAdapter { int mNumOfTabs; public BrowseFragment tabBrowse; public MyInv...
package com.resjob.common.persistence; import com.resjob.common.utils.IdGen; /** * 应用Entity类 * @author ThinkGem * @version 2014-05-16 */ public abstract class AppEntity<T> extends BaseEntity<T> { private static final long serialVersionUID = 1L; public AppEntity() { super(); } public AppEntity(String id...
package com.example.bryannaphan.pickupgen; import android.content.Context; import android.content.SharedPreferences; import android.support.design.widget.FloatingActionButton; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.V...
package br.com.douglastuiuiu.biometricengine.integration.creddefense.dto.response.viewdocuments; import br.com.douglastuiuiu.biometricengine.integration.creddefense.dto.response.ResponseDTO; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.io.Serializable; /** * @author douglas * @since 20...
package cqut.lexicalAnalyzer.impl; import cqut.lexicalAnalyzer.Recog; import cqut.util.EncodeTable; import cqut.util.Symbol; import cqut.util.Token; import cqut.util.entity.Source; import cqut.util.entity.SymbolMeta; import cqut.util.entity.TokenMeta; /** * * @author Allen 字符串分析 */ public class St...
package com.citibank.ods.modules.client.relationeg.action; import com.citibank.ods.common.action.BaseODSDetailAction; import com.citibank.ods.common.functionality.BaseFnc; import com.citibank.ods.common.functionality.valueobject.BaseFncVO; import com.citibank.ods.modules.client.relationeg.functionality.RelationEg...
package ru.yandex.artists.model; import android.os.Parcel; import android.os.Parcelable; /** * Created by druger on 27.03.2016. */ public class Artist implements Parcelable { private String name; private String genres; private int tracks; private int albums; private String description; priva...
package com.javawebtutor.Controllers; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.stage.Stage; import javafx.stage.StageStyle; import java.io.IOException; import java....
package com.crypto.document; import java.math.BigDecimal; public class LatestPrice { BigDecimal price; BigDecimal volume; BigDecimal marketCap; public LatestPrice(BigDecimal price, BigDecimal volume, BigDecimal marketCap) { super(); this.price = price; this.volume = volume; this.marketCap = marketCap...
package views; import com.cloudgarden.resource.SWTResourceManager; import common.Utilities; import org.eclipse.swt.events.VerifyEvent; import org.eclipse.swt.events.VerifyListener; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org...
package irix.measurement.structure; import irix.measurement.service.MeasurementsImp; public class Measurements extends DoseRate implements MeasurementsImp /*implements Comparable<Measurements>*/ { private Measurement measurement; public Measurements() { } public Measurements(Measurement me...
package com.reagan.graphingcalc; public class CartesianPoint { public double x, y; public CartesianPoint(double x, double y) { this.x = x; this.y = y; } }
package com.Hellel.PSoloid.ColorsShape.Shape; import com.Hellel.PSoloid.ColorsShape.Colour.Colour; import com.Hellel.PSoloid.ColorsShape.Shape.Shape; /** * Created by otk_prog on 20.07.2015. */ public class Triangle extends Shape { private double h; private double b; public double getH() { ret...
package com.dromedicas.test; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.dromedicas.dao.ExistenciasHome; import com.dromedicas.dao.SucursalesHome;...
package com.ipincloud.iotbj.srv.domain; import java.io.Serializable; import java.math.BigDecimal; import java.sql.Time; import java.sql.Date; import java.sql.Timestamp; import com.alibaba.fastjson.annotation.JSONField; //(Person) //generate by redcloud,2020-07-24 19:59:20 public class Person implements Serializable {...
package ru.sgu.csit.csc.graphs; import java.util.*; public class AdjacencyListsGraph extends BaseGraph { private final List<List<Integer>> adjacencyLists; public AdjacencyListsGraph(int vertexCount, Type type) { super(vertexCount, type); adjacencyLists = new ArrayList<List<Integer>>(vertexCou...
import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; public class Candidate { public static void main(String[] args) { String[] votesString= new String[]{"meghana","mugdha","upas","meghana","anjali","upas","upas"}; Candidate candidate=new Cand...
package lesson1.hw; /** * Алгоритмы_и_структуры_данных_на_Java.БазовыйКурс. 24.09.2019 Webinar. * Teacher: Фанзиль Кусяпкулов * Урок 1. Общие сведения об алгоритмах и структурах данных * Домашняя работа. * @author Litvinenko Yuriy * Задачи на http://acmp.ru * Тема. Двумерные массивы. * DONE ЗАДАЧА №265. Шахмат...
package com.qa.test; import com.qa.core.Base; import java.util.Set; import org.testng.annotations.Test; public class HandleWindows extends Base { @Test public void verifyHomePageTitle() throws InterruptedException { browserSetup(); driver.manage().deleteAllCookies(); // Delete all the cookies driver....
package com.example.NFEspring.repository; import com.example.NFEspring.entity.Ticket; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.Repository; import org.springframework.data.repository.query.Param; import org...
package com.example.hp.cold_chain_logistic.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example.hp.cold_chain_logistic...
package com.itheima.ssh01.dao; import com.itheima.ssh01.domain.User; /** * ClassName:UserDAO <br/> * Function: <br/> * Date: 2018年3月9日 上午9:04:21 <br/> */ public interface UserDAO { User findUserById(Integer id); }
package by.epam.kooks.action.get; import by.epam.kooks.action.constants.Constants; import by.epam.kooks.action.manager.Action; import by.epam.kooks.action.manager.ActionResult; import by.epam.kooks.service.BookService; import by.epam.kooks.service.exception.ServiceException; import org.apache.logging.log4j.LogManager;...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package hw1.q02; /** * * @author yribbens */ public class Animal{ private String animal_type; private String animal_sound; public Animal(String type, String sound){ animal_type = type; ani...
// // Decompiled by Procyon v0.5.36 // package com.davivienda.multifuncional.tablas.edccargue.session; import com.davivienda.sara.base.exception.EntityServicioExcepcion; import java.util.Collection; import java.util.Date; import javax.annotation.PostConstruct; import com.davivienda.multifuncional.tablas.edccargue.s...
package com.csair.datatrs.common.processor; import com.csair.datatrs.common.Processor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.*; import java.util.ArrayList; import java.util.List; /** * Created by cloudoo on 2015/7/17. */ public class File2VectorProcessor implements Processor<List<...
/* * 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 com.project.info; import java.util.ArrayList; import com.segments.build.Segment; public class CPObject { public String value1; public String value2; public int Frequency; public Double Accuracy; public boolean isCorrectMapping; public boolean isCleaned;// save if we applied filter or not on this relati...
package io.zentity.model; import org.junit.Test; public class MatcherTest { public final static String VALID_OBJECT = "{\"clause\":{\"match\":{\"{{ field }}\":\"{{ value }}\"}}}"; //// "matchers" ////////////////////////////////////////////////////////////////////////////////////////////////// @Test ...
package com.fanfte.spring.jdbc; import java.util.List; /** * Created by tianen on 2019/3/25 * * @author fanfte * @date 2019/3/25 **/ public interface UserService { void save(User user); List<User> getUsers(); }
/**************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The ASF licenses this...
package com.wkrzywiec.spring.library.entity; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistenc...
package com.cc.faas.dbmanager.rest; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Resp...
package br.agroamigos.controller; import br.agroamigos.exception.ResourceNotFoundException; import br.agroamigos.model.Cotacao; import br.agroamigos.repository.CotacaoRepository; import br.agroamigos.repository.IndicadorRepository; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import ...
public class Question6 { public static void main(String[] x) { int n=33; boolean flag=false; for(int i=2;i<=n/2;++i) { if(n%i==0) { flag=true; break; } } if(!flag) System.out.println(n + "number is prime"); else System.out.println(n + "number is not prime"); } }
package Pack_2; public class Jugador { //Variables// private String nombre; private String apellido1; private String apellido2; private int edad; private int id; private int puntos; public Jugador() { System.out.println("JUGADOR"); } public String getNombre() { return nombr...
package com.zs.ui.home.present; import android.content.Intent; import android.support.v7.widget.RecyclerView; import android.view.View; import com.google.gson.Gson; import com.huaiye.sdk.HYClient; import com.huaiye.sdk.core.SdkCallback; import com.huaiye.sdk.core.SdkCaller; import com.huaiye.sdk.core.SdkNotifyCallbac...
package com.example.firstprogram.SOS; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; import an...
import javax.swing.*; import java.awt.*; import java.lang.reflect.Field; import java.util.*; /** * MainFrame class of the GUI */ public class MainFrame extends JFrame { private Dimension mainSize = new Dimension(400, 400); private ImageIcon deckIcon; private static JLabel stackLabel; private static ...
//our catch default throw && our catch our throw package exception_handling; import java.lang.*; import java.util.Scanner; public class ExceptionHandling1 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("enter the balance :"); int balance=sc.nextInt(); S...
package com.demo.aws.json; import java.util.Collection; public class ResponseList<T> { private Integer total; private Collection<T> items; public ResponseList(Integer total, Collection<T> items) { this.total = total; this.items = items; } public Integer getTotal() { ...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.engine; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.util.Collection; import org.junit.Test; import pl.edu.ic...
package dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import model.Item; import model.Post; public class PostDao { public List<Item> getSalesReport(Post post) { /* * The students cod...
package com.eliffuruncu.sqliteproject; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { TextV...