text stringlengths 10 2.72M |
|---|
package Parte04.P4PG47;
public class NavioDeGuerra extends Navio{
protected double blindagem;
protected double ataque;
public NavioDeGuerra(int numTripulantes,
String nome,
double blindagem,
double ataque) {
super(numTripul... |
package edu.gatech.snickers.techflixandchill;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by nirajsuresh on 4/5/16.
*/
public class testCalculateNewRating {
@Test
public void testNullComment() throws Exception {
try {
MovieRatingActivity.calculateNewRating(0... |
package com.gaoshin.onsaleflyer.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import common.db.dao.ConfigDao;
import common.db.dao.impl.CommonDaoImpl;
import common.util.web.BusinessException;
import common.util.web.ServiceError;
public class ServiceBaseImpl {
@Autowired protected ... |
package me.rext.example.spring_vue_oauth2.web.security;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.env.Environment;
import org.springframework.security.oauth2.con... |
package edu.upc.eetac.dsa.models;
import java.util.Queue;
public class Laboratorio {
private String idLab;
private String nombre;
private Queue<Muestra> muestrasPendientes;
public Laboratorio(String id, String nom){
this.idLab = id;
this.nombre = nom;
}
public String getIdLa... |
package EXAMS.E05.spaceStation.models.mission;
import EXAMS.E05.spaceStation.models.astronauts.Astronaut;
import EXAMS.E05.spaceStation.models.planets.Planet;
import java.util.List;
public class MissionImpl implements Mission {
@Override
public void explore(Planet planet, List<Astronaut> astronauts) {
// ... |
public class animal
{
public static void eat() {
System.out.println("I am eating");
}
}
|
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webadmin.reg.reqman;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.List;
import pl.edu.icm.unity.Constants;
import pl.edu.icm.unit... |
package com.geniusgithub.lookaround.fragment;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import roboguice.inject.InjectView;
import com.geniusgithub.lookaround.LAroundApplication;
import com.geniusgithub.lookaround.R;
import com.geniusgithub.lookaround.adapter.InfoContentAdapter;
i... |
package algorithms.graph.process;
import java.util.BitSet;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;
import algorithms.graph.Graph;
import org.springframework.stereotype.Component;
@Component
public class BreadthFirstPaths extends AbstractIntPaths {
@Override
public void ... |
package uri;
import java.util.Scanner;
/**
* IMPORTANT:
* O nome da classe deve ser "Main" para que a sua solução execute
* Class name must be "Main" for your solution to execute
* El nombre de la clase debe ser "Main" para que su solución ejecutar
*/
public class URI {
public static void m... |
package de.meetpub.telegrambot.commands.events;
public interface EventCommand {
public void execute();
}
|
package com.codecool.stampcollection.controller;
import com.codecool.stampcollection.DTO.MyModelMapper;
import com.codecool.stampcollection.DTO.StampCommand;
import com.codecool.stampcollection.DTO.StampDTO;
import com.codecool.stampcollection.assembler.StampModelAssembler;
import com.codecool.stampcollection.model.St... |
import java.util.Scanner;
public class CheckingAccountTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
double debit;
double deposit;
String err;
CheckingAccount account1 = new CheckingAccount(100.0,-100,0.01,0.07... |
/**
* Makes an Alien that attacks the base
* @author Rishav Bose
* @version 1.00
*/
public class Alien3 extends Monster {
/**
* Makes an alien with health 350
*/
public Alien3() {
super(350, "provided/res/Pixel-Alien-3.png");
}
/**
* Attacks the base with 150 attack
* @param a th... |
package async;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousServerSocketChannel;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels... |
/*
* Copyright (c) 2020 Nikifor Fedorov
* 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 la... |
package com.esum.ebms.v2.service.transport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.ebms.v2.ConstantsDisplayUtil;
import com.esum.ebms.v2.service.transport.clazz.ClassTransport;
/**
* ebms가 adapter를 위해 제공하는 Transport는 Http/file/class타입이다.
* 각 transport들은 ebms로 부터 데이터를 송신/수신할 수 있는 기... |
package com.syscxp.biz.entity.redmine;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @Author: sunxuelong.
* @Cretion Date: 2018-09-17.
* @Description: .
*/
@Entity(name = "trackers")
public class Tracker {
@Id
@Column(name = "id")
private Long id... |
package com.gmail.filoghost.holographicdisplays.api.handler;
import org.bukkit.entity.Player;
/**
* Interface to handle touch holograms.
*/
public interface TouchHandler {
/**
* Called when a player interacts with the hologram (right click).
* @param player the player who interacts
*/
public v... |
package org.royalmc.bungee_signs;
import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteStreams;
import org.bukkit.Bukkit;
import org.bukkit.block.Sign;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org... |
package com.software3.servlet;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.software3.service.BookService;
import com.software3.service.i... |
package com.spring.testable.mock;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* @author caijie
*/
@MapperScan("com.spring.te... |
package ShopLite.entity;
import ShopLite.exception.InvalidChooseValueException;
import ShopLite.exception.InvalidKeyException;
import java.util.*;
public class Shop {
private final HashMap<Integer, Product> productMap = new HashMap<>();
public void add(Product product, int id) throws InvalidKeyException {
... |
/*package br.com.acme.agenda.service;
import java.util.ArrayList;
import java.util.List;
import br.com.acme.agenda.model.Usuario;
import br.com.acme.agenda.service.ServiceLogin;
public class UsuarioService {
public class ServiceLogin {
public static List<Usuario> usuarios = new ArrayList<Usuario>();
... |
package us.gibb.dev.gwt.server.inject;
import us.gibb.dev.gwt.server.command.handler.CommandHandlerRegistry;
import us.gibb.dev.gwt.server.command.handler.DefaultDispatch;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class DefaultDispatchProvider implements Provider<DefaultDispatch>{
... |
package base.interf;
public interface Common {
void tipo();
void info();
void status();
}
|
package com.culturaloffers.maps;
import com.culturaloffers.maps.controllers.CulturalOfferControllerTest;
import com.culturaloffers.maps.controllers.OfferNewsControllerTest;
import com.culturaloffers.maps.controllers.SearchControllerIntegrationTest;
import com.culturaloffers.maps.model.OfferNews;
import com.culturaloff... |
package HakerRank.SherlockandAnagrams;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
// Complete the sherlockAndAnagrams function below.
static int sherlockAndAnagrams(Stri... |
package jp.ac.kyushu_u.csce.modeltool.vdmrtEditor.editor;
import jp.ac.kyushu_u.csce.modeltool.vdmrtEditor.constants.VdmrteditorConstants;
import jp.ac.kyushu_u.csce.modeltool.vdmrtEditor.editor.VdmrtColorManager;
import org.eclipse.ui.editors.text.TextEditor;
/**
* VDMエディタークラス
*
* @author KBK yoshimura
*/
publi... |
package so.team.bukkitlejyon.cmdBlock.plugin;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketContainer;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import o... |
package com.hristofor.mirchev.outfittery.challenge.reservedtime.controller;
import com.hristofor.mirchev.outfittery.challenge.reservedtime.dtos.DTOtoEntityConverter;
import com.hristofor.mirchev.outfittery.challenge.reservedtime.dtos.ReservedTimeDTO;
import com.hristofor.mirchev.outfittery.challenge.reservedtime.repos... |
package baseline;
import java.util.Arrays;
import java.util.Scanner;
/*
* UCF COP3330 Fall 2021 Assignment 3 Solutions
* Copyright 2021 Federico Abreu Seymour
*/
public class Solution24 {
//calculate Anagram using boolean
public boolean isAnagram(String string1, String string2){
//If first string... |
package org.zhq.box;
import org.zhq.core.Packet;
import org.zhq.core.SendPacket;
import java.io.InputStream;
public class StreamDirectSendPacket extends SendPacket<InputStream> {
private InputStream inputStream;
public StreamDirectSendPacket(InputStream inputStream) {
this.inputStream = inputStream;... |
package com.smartlead.api.lead.repository;
import com.smartlead.common.entity.DocumentType;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface DocumentTypeRepository extends CrudRepository<DocumentType, Integer> {
List<DocumentType> findAll();
}
|
package com.oxymore.practice.configuration.ui;
import com.oxymore.practice.configuration.parse.Deserializer;
import com.oxymore.practice.configuration.parse.Parser;
import lombok.AllArgsConstructor;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.YamlConfiguration;
import ja... |
package Utils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
public class Utils extends BrowserFactory {
public static WebDr... |
package service.member;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import org.springfra... |
package classstructureio;
import java.util.Scanner;
public class Registration {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Felhasználó regisztráció:");
System.out.println("Kérem adja meg a felhasználó nevét:");
String na... |
package com.cinema.sys.service;
import java.util.List;
import java.util.Map;
import com.cinema.sys.model.Role;
import com.cinema.sys.model.base.TRole;
public interface RoleService {
Role getDetail(String id);
List<Role> getList(Map<String, Object> paraMap);
/**获得全部角色*/
List<Role> getAllList();
boolean exist... |
package model;
public class Mulher extends Usuario{
public Mulher(String nome) {
super(nome);
}
public String saudacao() {
return "Olá Sra. " + getNome();
}
}
|
package demo;
import akka.actor.Props;
import akka.actor.UntypedAbstractActor;
import akka.event.Logging;
import akka.event.LoggingAdapter;
public class MyActor extends UntypedAbstractActor{
// Logger attached to actor
private final LoggingAdapter log = Logging.getLogger(getContext().getSystem(), this);
public M... |
package com.WebLearning.fuckJdbc;
public class TKDstudent {
private String id;
private String Name;
private int times;
TKDstudent(String id,String Name, int times) {
this.id = id;
this.Name = Name;
this.times = times;
}
public String getId() {
return id;
}... |
package com.cinema.common.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cinema.common.dao.DataImportMapper;
import com.cinema.common.model.ImportError;
import com.cinema.common.service.DataimportService;
... |
/* AuDecoder.java
Purpose:
Description:
History:
Tue Jul 20 19:48:15 TST 2010, Created by tomyeh
Copyright (C) 2010 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.zk.au;
import java.util.List;
import org.zkoss.zk.ui.WebApp;
import org.zkoss.zk.ui.Desktop;
/**
* Used to decode the custom ... |
package psoft.backend.service;
import org.springframework.stereotype.Service;
import psoft.backend.dao.ComentarioDAO;
import psoft.backend.exception.comentario.ComentarioDeleteException;
import psoft.backend.exception.comentario.ComentarioInvalidoException;
import psoft.backend.exception.comentario.ComentarioNotFoundE... |
package com.dbanalyzer.commands;
import com.db.persistence.remote_exception.QueryRemoteException;
import com.db.persistence.scheme.BaseObject;
import com.db.persistence.wsSoap.QueryRequestRemote;
import com.db.persistence.wsSoap.QueryResponseRemote;
import com.dbanalyzer.QuerySvcRemoteWrapper;
import com.dronedb.persi... |
package com.codegym.controller;
import com.codegym.model.Customer;
import com.codegym.model.Province;
import com.codegym.service.ICustomerService;
import com.codegym.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springfra... |
/**
* Created by DELL on 2018/10/12.
*
* 用户态和内核态:
* 用户态:通常指应用程序运行的环境。
* 内核态:操作系统运行的环境,可以用来操作硬件设备。
* 如果我们的应用程序需要操作内核态中的资源,比如关机操作,应用程序是无法直接做到的,需要通过内核态的操作系统完成,
* 应用程序主要通过系统调用(系统调用:内核态给用户态开放的一个中断来实现的)向操作系统发送消息,来完成例如关机的操作。
* 那么,在用户态的应用程序通过系统调用操作内核态中资源的过程,其实就涉及到了,用户态到内核态再到用户态的一个切换过程。
* 用户态和内核态的切换过程相对只在用户态或只在内核... |
package com.syl.example.proxy;
/**
* Created by shenyunlong on 2017/4/22.
*/
public interface AppRegistry extends JavaScriptModule {
void runApplication(String appKey);
}
|
import java.util.Scanner;
public class Homework21 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int age1=30;
int age2 = age1+=10;
int age3 = 10;
System.out.println("Enter your age");
age1 = input.nextInt();
System.out... |
package com.gen.serve;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import junit.framework.TestCase;
public class V... |
package com.example.trialattemptone.Creators;
import android.content.ContentValues;
import com.example.trialattemptone.database.CoursesTable;
public class Course {
private int courseId;
private String courseTitle;
private String courseStart;
private String courseEnd;
private int cour... |
package de.mvbonline.tools.restapidoc;
import de.mvbonline.tools.restapidoc.doclet.model.ApiDescription;
import de.mvbonline.tools.restapidoc.model.Blacklist;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframew... |
package org.dimigo.vaiohazard;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.ScreenAdapter;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import ... |
public class ReportBatchController {
public ReportBatchController(){}
public String theTerms {
get;set;
}
public String theFilter {
get;set;
}
public String theAddresses {
get;set;
}
public ReportBatchController(String a, Strin... |
package com.example.smdemo1.aop;
import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Method;
import java.util.Date;
import com.example.smdemo1.annoation.OperLog;
import com.example.smdemo1.dao.Log;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.l... |
package com.jd.bdp.hdfs.mergefiles;
import com.hadoop.compression.lzo.DistributedLzoIndexer;
import com.hadoop.compression.lzo.LzopCodec;
import com.jd.bdp.hdfs.mergefiles.exception.UnsupportedTypeException;
import com.jd.bdp.hdfs.mergefiles.mapreduce.MergeFilesMapper;
import com.jd.bdp.hdfs.mergefiles.mapreduce.Merge... |
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 org.giddap.dreamfactory.leetcode.onlinejudge;
/**
* http://leetcode.com/onlinejudge#question_43
* <p/>
* Given two numbers represented as strings, return multiplication of the numbers as a string.
* <p/>
* Note: The numbers can be arbitrarily large and are non-negative.
* <p/>
* Links:
* http://discuss... |
package hello;
public class ClassAndObject {
String name;
double speed;
int gear;
static String copyright;
public ClassAndObject() {
System.out.println("construct method" + this);
}
public ClassAndObject(String name) {
this.name = name;
}
public ClassAndObject(String name,double speed){
this(name... |
package es.zamorano.popularmovielist.ui;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import ... |
package com.esum.web.monitor.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.esum.appetizer.dao.AbstractDao;
import com.esum.appetizer.util.PageUtil;
import com.esum.web.monitor.vo.MonVmStatus;
import com.esum.web.monitor.vo.MonVmStatusSearch;
public class MonVmStatusDao extend... |
package com.zhicai.byteera.activity.community.dynamic.entity;
import org.litepal.crud.DataSupport;
import java.io.Serializable;
/** Created by bing on 2015/5/29. */
public class ImgEntity extends DataSupport implements Serializable {
private String imgUrl;
private int dynamicitementity_id;
public ImgEn... |
package jianzhioffer;
/**
* @ClassName : Solution42
* @Description : 连续子数组的最大和
* 基于数组中有正有负的情况,不然,如果同号,那么就直接排序取最小,不存在连续最大和的问题
* @Date : 2019/9/19 19:51
*/
public class Solution42 {
public int FindGreatestSumOfSubArray(int[] array) {
if (array==null || array.length==0)
return 0;
int ... |
package Algorithm.March;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class tweentyThree {
public static void main(String[] args) throws IOException{
//1978(¼Ò¼ö ã±â)
answer_1978();
}
private stati... |
package com.xx.base.project.util.file;
/**
* 文件名称常量
* Created by lixingxing on 2019/6/11.
*/
public class ProFileConfig {
public static void init(String APP_ROOT_DIRs, String SHAREPREFERENCESs){
APP_ROOT_DIR = APP_ROOT_DIRs;
SHAREPREFERENCES = SHAREPREFERENCESs;
}
/**
* 默认 APP Sh... |
package com.zpf.dto;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Created by LoseMyself
* on 2017/3/13 14:03
*/
// 对象类型,主键类型
public interface girlRepository extends JpaRepository<girl,Long> {
public List<girl> findByAge(Long age);
}
|
/**
* @author Duc Minh Le (s3651764)
*/
public class Util {
public static String[] splitAndTrimTokens(String s, String regex) {
String[] tokens = s.split(regex);
for (int i = 0; i < tokens.length; i++) {
tokens[i] = tokens[i].trim();
}
return tokens;
}
}
|
package com.example.myapplication.circle;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewG... |
package by.epam.javatraining.aliakseibuslau.tasks.maintask.model.Exception;
public class NullArrayEx extends BasicExeption {
public NullArrayEx() {
super("NOT DEFINED!");
}
}
|
package com.jgchk.haven.utils.typeconverters;
import android.arch.persistence.room.TypeConverter;
import android.location.Location;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
@SuppressWarnings("UtilityClass")
public class LocationTypeConverter {
@TypeC... |
package cn.wormholestack.eventnice.core;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CopyOnWriteArraySet;
/**
* @description: 事件接收器注册中心
* @Author MRyan
* @Date 202... |
package com.sai.one.algorithms.arrays;
import java.util.PriorityQueue;
/**
* Created by shravan on 18/8/16.
* http://www.programcreek.com/2014/05/leetcode-kth-largest-element-in-an-array-java/
*/
public class KLargestArray {
public static void main(String args[]){
int[] arr = {1,4,5,22,7,88,9};
... |
package com.datalinks.rsstool.util;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Logger;
public class RssUtil {
public final static Logger LOGGER = Logger.getLogger(RssUtil.class.getName());
static Propertie... |
/*
* 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;
/**
*
* @author agunga
*/
public class MailObject {
private String to;
private String messageSubject... |
/*
* 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 uttec;
/**
*
* @author vicin
*/
public class MenuPrincipal extends javax.swing.JFrame {
/**
* Creates new form Me... |
package com.egswebapp.egsweb.dto;
import javax.validation.constraints.NotBlank;
public abstract class AbstractPageDto {
@NotBlank(message = "title must not be empty")
private String title;
@NotBlank(message = "description must not be empty")
private String description;
@NotBlank(message = "lang... |
public interface Valuable {
// 각 사물의 가치를 추산하는 메소드 , 사물에 따라 가치를 추산하는 공식이 다르다.
public abstract double estimateValue(int month);
public abstract double estimateValue();
}
|
package com.citibank.newcpb.persistence.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import com.citibank.newcpb.enums.TableTypeEnum;
import com.citibank.newcpb.exception.UnexpectedException;
import com.citibank.newcpb.vo.Of... |
package com.javawebtutor.Models.Classes;
public class ClientCarCheck {
private String model;
private String mark;
private String repairCauses;
private String state;
private int price;
public ClientCarCheck(String model, String mark, String repairCauses, String state, int price) {
this.... |
package com.dangdang.ddframe.test;
import com.dangdang.ddframe.concurrent.ForkBlur;
import org.apache.commons.codec.binary.StringUtils;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.LocaleUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.Str... |
package network.nerve.converter;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.nuls.core.exception.NulsException;
import io.nuls.core.io.IoUtils;
import io.nuls.core.log.Log;
import io.nuls.core.... |
package Servlet;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpSe... |
package be.odisee.pajotter.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Propagation;
import be.odisee.pajotter.domain.Partij;
import be.odisee.pajotter.domain.Vraag;
imp... |
package com.social.server.controller;
import com.social.server.dto.UserDto;
import com.social.server.http.ErrorCode;
import com.social.server.http.Response;
import com.social.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMap... |
package com.neu.spring;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Contr... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class main {
public static void main(String[] args){
InputStreamReader input = new InputStreamReader(System.in);
BufferedReader tastiera = new BufferedReader(input);
String modello = "";
... |
package com.appdevgenie.practiceproject.ui.main;
import android.util.Log;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.appdevgenie.practiceproject.models.Skill;
import com.appdevgenie.practiceproject.service.LearnerDataInterface;
impor... |
package com.example.itime;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
impor... |
package org.shujito.cartonbox.view.adapter;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import org.shujito.cartonbox.R;
import org.shujito.cartonbox.controller.listener.OnTagsFetchedListener;
import org.shujito.cartonbox.model.Tag;
import org.shujito.cartonbox.view.Post... |
package com.masters;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
public class MyServiceApplication {
public static void main(String[] args) {
... |
package com.auro.scholr.home.presentation.viewmodel;
import static com.auro.scholr.core.common.Status.DASHBOARD_API;
import android.util.Log;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.auro.scholr.R;
import com.auro.scholr.core.appl... |
package tests.main_view_partner;
import baseplatformANDROID.BaseTest;
import baseplatform.DataClass;
import objects_partner.MainViewPartner;
import org.testng.annotations.*;
import utility.ReusMeth;
import java.io.IOException;
import static org.testng.Assert.assertEquals;
/*
by Sergey
*/
public class UiElementsText... |
package com.citibank.ods.persistence.pl.dao;
import java.math.BigInteger;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.entity.pl.TplRelationPrvtEntity;
//
//©2002-2007 Accenture. All rights reserved.
//
/**
* [Class description]
*
* @see package com.citibank.ods.persisten... |
package model;
import java.util.ArrayList;
import model.*;
public class Company {
//attributes
private String name;
//constants
public static final int MAXCLIENTS = 5;
public static final String MORGAN = "Morgan";
//relation
public Client [] clients;
//methods
/**
*This method is the construct... |
package ru.geekbrains.lesson2;
import lesson2.Array;
import java.util.Arrays;
public class HomeworkArrayImpl<E extends Comparable<? super E>> implements Array<E> {
private static final int DEFAULT_CAPACITY = 8;
protected E[] data;
protected int size;
public HomeworkArrayImpl() {
this.data... |
/*
* This file is part of gplugins, licensed under the MIT License (MIT).
*
* Copyright (c) 2017, Jamie Mansfield <https://www.jamierocks.uk/>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the ... |
public enum STATUS {
AVAILABLE,NOT_AVAILABLE
}
|
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.