text stringlengths 10 2.72M |
|---|
// Sun Certified Java Programmer
// Chapter 4, P291
// Operators
class CompareTest {
public static void main(String[] args) {
boolean b = 100 > 99;
System.out.println("The value of b is " + b);
}
}
|
package com.example.passin.encryption;
import org.springframework.stereotype.Component;
@Component
public class CtrMode {
public final AesUtils aesUtils;
public CtrMode(AesUtils aesUtils) {
this.aesUtils = aesUtils;
}
public byte[] encrypt(byte[] iv,byte[] message,byte[] key) throws Excepti... |
package controlador;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import modelo.MySQLConnection;
/**
* Servlet impleme... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.BeschichtungsInformationLackListeType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
public cla... |
package com.alium.ic.domains;
// Generated 2013-06-19 17:36:03 by Hibernate Tools 3.4.0.CR1
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
i... |
/*
* 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 file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package Sorting;
import java.util.Arrays;
/**
*
* Q- https://leetcode.com/explore/interview/card/top-interview-questions-medium/110/sorting-and-searching/800/
*
* A - https://leetcode.com/explore/interview/card/top-interview-questions-medium/110/sorting-and-searching/800/discuss/60294/Solution-explained
*
*... |
package com.chiriyankandath.englishvowelssounds.manager;
import android.app.Activity;
import android.content.Context;
import com.chiriyankandath.englishvowelssounds.util.SharedPreferenceHelper;
/**
* Created by puannjoy on 1/6/2016.
*/
public class ProfileManager {
SharedPreferenceHelper sharedPreferenceHelper;
... |
package kr.pe.ssun.bark.database;
/**
* Created by x1210x on 2016. 7. 24..
*/
public class User {
public String name;
public String email;
public User() { }
public User(String name, String email) {
this.name = name;
this.email = email;
}
}
|
/**
* Class MyMath3 extends Homework3
*
* @author C. Thurston
* @version 5/7/2014
*/
public class MyMath extends Homework
{
MyMath()
{
super();
}
public void createAssignment(int pages)
{
setPagesRead(pages);
setTypeHomework("Math");
}
public String toString()
{
return getTypeHomework() + " - ... |
package com.service.leave.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.service.leave.domain.Employee;
import com.service.leave.domain.LeaveDetails;
@Repository
public class LeaveDaoImpl extends AbstractGenericDao<LeaveDetail... |
package br.com.treinarminas.academico.classandobject;
public class Principal {
public static void main(String[] args) {
Pessoa p = new Pessoa();
p = new Pessoa();
p.nome = "Maria Sophia";
p.idade = 6;
p.sexo = 'F';
System.out.println(p.nome);
Pessoa p1 = p;
System.out.println(p1.idade);
... |
package com.he.jsbinding;
import java.nio.ByteBuffer;
public class JsObject {
final int ctx_id;
final int id;
private final long vm;
JsObject(long paramLong, int paramInt1, int paramInt2) {
this.vm = paramLong;
this.ctx_id = paramInt1;
this.id = paramInt2;
}
public... |
package com.tencent.mm.plugin.scanner.ui;
import android.widget.TextView;
class SelectScanModeGrid$a$a {
public TextView lSz;
public TextView mLP;
SelectScanModeGrid$a$a() {
}
}
|
package algorithms.tasks;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.IntStream;
import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.anyInt;
i... |
package com.healthiq.entities;
import java.util.Date;
/**
* This is an input data in the format [time, type, id]
*
* Examples:
* [07:00, "EXERCISE", 1]
* [07:31, "FOOD", 1]
*
* @author Bakhy
*
*/
public class Entry {
public Date time;
public String type;
public Integer id;
public Entry(Date time,... |
package com.taikang.healthcare.cust;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringCon... |
import javax.swing.*;
public interface MainForm {
JPanel getContent();
JButton getButton();
JTextField [] getTextFields();
}
|
package com.ireslab.sendx.electra.service;
import com.ireslab.sendx.electra.model.ClientAssetMgmtRequest;
/**
* @author iRESlab
*
*/
public interface ClientAssetMgmtService {
public void createAccountOnStellar(ClientAssetMgmtRequest clientAssetMgmtRequest);
}
|
// Authors: Mika, Thomas, Mason, Sohan
package org.team3128.compbot.autonomous;
import edu.wpi.first.wpilibj.command.CommandGroup;
import org.team3128.common.utility.math.Pose2D;
import org.team3128.common.utility.math.Rotation2D;
import org.team3128.common.drive.Drive;
import org.team3128.common.hardware.gyroscope.G... |
package micro.catalogos.services;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import dto.main.Respuesta;
import micro.catalogos.interfaces.ITimeUnitsService;
import utils._config.language.Translator;
@Service
public cl... |
package com.tencent.mm.pluginsdk.ui;
import android.text.Editable;
import android.text.TextWatcher;
import com.tencent.mm.sdk.platformtools.bi;
class MMPhoneNumberEditText$2 implements TextWatcher {
final /* synthetic */ MMPhoneNumberEditText qFR;
MMPhoneNumberEditText$2(MMPhoneNumberEditText mMPhoneNumberEd... |
package com.example.l03.projektpaszport;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.... |
/*
* FileName: SimpleEditMethodService.java
* Description:
* Company: 南宁超创信息工程有限公司
* Copyright: ChaoChuang (c) 2005
* History: 2005-12-7 (guig) 1.0 Create
*/
package com.spower.basesystem.common.service.spring;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Ma... |
package Chapter7;
public class CastingTest2 {
public static void main(String args[]) {
//Car car = new Car();
Car car = new FireEngine(); //이와 같이 변경하면 에러가 발생하지 않는다.
Car car2 = null;
FireEngine fe = null;
car.drvie();
//fe = (FireEngine)car; //< error ! 참조변수 car가 참조하고 있는 인스턴스가 Car타입의 인스턴스인 것이 문제.
//조상... |
package com.elasticsearch.synchronization.synchronization.service.impl;
import com.elasticsearch.synchronization.synchronization.model.User;
import com.elasticsearch.synchronization.synchronization.model.dto.UserDTO;
import com.elasticsearch.synchronization.synchronization.repo.IUserDAO;
import com.elasticsearch.synch... |
/**
* The WaveGameRevisit program implements an application that
* presents the user with a game of "dodge the bullets and enemies'
* like nature. The objective is to reach as high a score as possible.
*
* @author Aaron Gore
* @version 1.0
* @since 2019-06-02
*/
package wavegamerevisit;
import java.awt.i... |
package com.tt.miniapp.launchcache.meta;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.storage.async.Action;
import com.storage.async.Scheduler;
import com.tt.miniapp.launchcache.RequestType;
import com.tt.miniapp.thread.ThreadUtil;
import com.tt.miniapphos... |
package org.timesheet.web;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.Rem... |
package com.sula.util;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
/**
* 短信
* @author Administrator
*
*/
public class SmsUtil {
//执行发送
public static void exece(String mobile, String content)
{
// 短信网关发送
Map<String, String> rep = new HashMap<String, 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 halloween.game.jam;
import entity.PlayerData;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import ... |
class Maca extends Produto {
public Maca() {
super(1.10,"Maçã");
}
@Override
public double getPreco() {
return this.getPrecoUnitario()*this.getQtde();
}
}
|
package com.perfectorial.entity;
import java.io.Serializable;
/**
* @author Reza Safarpour (rsafarpour1991@gmail.com) on 9/11/2015
*/
public interface Entity extends Serializable {
String getId();
void setId(String id);
}
|
/*
* Copyright (c) 2014 Anthony Benavente
*
* 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 or agr... |
public class Origem{
//Atributos
private int id;
private String pais;
private int ano;
//Metodos
//Setters
public void setId(int id){
this.id = id;
}
public void setPais(String pais){
this.pais = pais;
}
public void setAno(int ano){
this.ano = ano;
}
//Getters
public int getId... |
package com.lubarov.daniel.data.deque;
import com.lubarov.daniel.data.queue.MutableQueue;
import com.lubarov.daniel.data.stack.MutableStack;
/**
* A structure which supports pushing and popping elements on both the front and the back.
*/
public interface MutableDeque<A> extends MutableStack<A>, MutableQueue<A> {
... |
package org.lxy.innerclass;
/**
* @author menglanyingfei
* @date 2017-5-25
*/
class Bar {
void doStuff(Foo f) {
f.foo();
}
}
interface Foo {
void foo();
}
public class Test2 {
static void go() {
Bar b = new Bar();
// 参数式的匿名内部类
b.doStuff(new Foo() {
public void foo() {
System.out.println("foo");... |
/**
*
*/
package alg.code123;
import java.util.Arrays;
import java.util.Comparator;
/**
* 给定一组整数,拼接成最大的整数
*/
public class ConcatMaxInt {
public static void main(String[] args) {
String[] ints = new String[] { "73", "7", "4", "21" };
Arrays.sort(ints, new Comparator<String> () {
@Overri... |
package com.tencent.mm.plugin.game.wepkg.utils;
import com.tencent.mm.plugin.game.wepkg.model.e;
import com.tencent.mm.sdk.platformtools.bi;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class b$a {
public final Map<String, e> kgm = new ConcurrentHashMap();
public final e Er(Str... |
package com.company;
import java.util.Scanner;
public class LinearSearch {
static int arr[] = {10, 20, 80, 30, 60, 50,
110, 100, 130, 170};
public static void main(String[] args) {
System.out.println("Enter the number to Search:");
Scanner inputReader = new Scanner(System.in);
int numberToS... |
package vanadis.launcher;
import vanadis.blueprints.ResourceLoader;
import vanadis.core.lang.Not;
import org.osgi.framework.BundleContext;
import java.net.URL;
public class BundleResourceLoader implements ResourceLoader {
private final BundleContext bundleContext;
@Override
public URL get(String res) {... |
/*
* 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 model.bean;
/**
*
* @author sampa
*/
public class HistoricodeConsumo {
private Destino destino;
private Item ite... |
package cn.xyz.repository.mongo;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.bson.types.ObjectId;
import org.mongodb.morphia.query.Query;
import org.mongodb.morphia.query.UpdateOperations;
import org.mongodb.morphia.query.UpdateResults;
import org.springframework.stereotyp... |
package models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@NoArgsConstructor
public class Films {
private int count;
}
|
package com.tencent.mm.plugin.freewifi.ui;
import com.tencent.mm.plugin.freewifi.m;
import com.tencent.mm.plugin.freewifi.model.d;
import com.tencent.mm.plugin.freewifi.model.j;
import com.tencent.mm.plugin.freewifi.ui.c.a;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.x;
clas... |
package org.w3c.dom;
/**
* -----
* Copyright (c) World Wide Web Consortium, (Massachusetts Institute of
* Technology, Institut National de Recherche en Informatique et en
* Automatique, Keio University). All Rights Reserved.
* http://www.w3.org/Consortium/Legal/
* -----
*/
/**
* DOM operat... |
package jp.mironal.java.aws.app.glacier;
import static org.junit.Assert.*;
import jp.mironal.java.aws.app.glacier.AwsTools.AwsService;
import jp.mironal.java.aws.app.glacier.AwsTools.Region;
import org.junit.Test;
public class AwsToolsTest {
@Test
public void testMakeUrl_Glacier_US_EAST_1() {
asser... |
package gxc.domain;
import java.io.Serializable;
import java.util.Date;
public class Board implements Serializable{
private static final long serialVersionUID = 7960485363539460207L;
private Integer bid;
private String uid;
private String username;
private String email;
private String msgTitle; //标题
private S... |
package com.example.custom;
import com.example.custom.widget.CircleAnimation;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
/**
* Created by ouyangshen on 2017/10/14.
*/
public class... |
package com.samer.funshine.model;
import android.util.Log;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* Created by Samer AlShurafa on 1/17/2018.
*/
public class DailyWeatherReport {
public static final String WEATHER_TYPE_CLOUDS = ... |
package concurrent_test;
import java.util.concurrent.TimeUnit;
/**
* Description:
*
* @author Baltan
* @date 2018/12/27 10:50
*/
public class InterruptTest {
public static void main(String[] args) {
Thread thread1 = new Thread(() -> {
try {
TimeUnit.SECONDS.sleep(5);
... |
package utils;
/**
* Enum class for different types of payment usage in CTM.
* It has got a variable visibleText which contains the visible text option for the enum under the dropdown.
*
* @author Thiru
*/
public enum PAYMENT_TYPE {
MONTHLY_DIRECT_DEBIT("Monthly Direct Debit"),
PAY_ON_RECEIPT_OF_BILL("Pay On... |
package com.tt.miniapphost.monitor;
import com.tt.miniapphost.host.HostDependManager;
import java.util.Collection;
import java.util.Map;
public class AppBrandEnsure {
public static boolean ensureFalse(boolean paramBoolean) {
IEnsure iEnsure = HostDependManager.getInst().getEnsure();
boolean bool = ... |
package org.nmrg.common.utils.clazz;
import org.nmrg.common.BaseCommon;
import org.nmrg.model.ResultMsgModel;
/**
** 类相关的信息
** @ClassName: ClazzUtils
** @Description: TODO
** @author CC
** @date 2017年9月1日 - 上午10:13:44
*/
public class ClazzUtils extends BaseCommon {
}
|
package nl.jtosti.hermes.image.advice;
import nl.jtosti.hermes.image.exception.CacheFileNotFoundException;
import nl.jtosti.hermes.util.ErrorDTO;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;... |
package com.spring1.UserServiceProxyFactopry;
import com.spring1.Service.UserService;
import com.spring1.Service.UserServiceImpl;
import org.springframework.cglib.proxy.Enhancer;
import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;
import java.lang.reflect.Meth... |
package com.tencent.mm.plugin.appbrand.ui.recents;
import android.view.View;
class e$2 implements Runnable {
final /* synthetic */ e gAf;
final /* synthetic */ View val$view;
e$2(e eVar, View view) {
this.gAf = eVar;
this.val$view = view;
}
public final void run() {
this.... |
/*
*/
package boardFinder.demo.repository;
import boardFinder.demo.domain.Bend;
import boardFinder.demo.domain.Snowboard;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
*
* @author Erik
*/
@Repository
publ... |
/**
*
*/
package exception;
/**
* Classe do tipo Exception que ao fazer a verificacao do erro lança a mensagem no cadastro do prato no restaurante
* @author Gabriel Alves - Joao Carlos - Melissa Diniz - Thais Nicoly
*
*/
@SuppressWarnings("serial")
public class CadastroPratoInvalidoException extends Exception{
... |
package com.lcss.spikegoodssystem.controller;
import com.lcss.spikegoodssystem.api.*;
import com.lcss.spikegoodssystem.entity.Order;
import com.lcss.spikegoodssystem.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springfra... |
package com.example.retrofit_firebase;
import androidx.appcompat.app.AppCompatActivity;
//import android.graphics.Movie;
import android.os.Bundle;
import android.util.Log;
import java.util.Arrays;
import java.util.List;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class MainA... |
/*
* SearchCacheServiceImpl.java
* This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin.
* $Id$
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
*/
package ru.otus.server.services;
import org.apache.logging... |
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class TestHungPhan {
HungPhan hp;
@BeforeEach
public void beforeFunction(){
hp = new HungPhan();
}
@Test
public void testGetFullName() {
assert... |
package pro.eddiecache.utils.discovery;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import pro.eddiecache.core.model.IContextCacheManager;
import pro.eddiecache.core.model.IProvideScheduler;
public class UDPDiscoveryManager
{
... |
package com.geektech.beerapp;
import android.app.Application;
import android.util.Log;
import com.geektech.beerapp.data.beers.BeerRepository;
import com.geektech.beerapp.data.beers.IBeerDataSource;
import com.geektech.beerapp.data.beers.local.BeerLocalDataSource;
public class BeerApp extends Application {
publi... |
package parser.lexer;
import java.io.*;
class Input {
public static final int EOF = -1;
private InputStream inputStream;
private Reader reader;
private int[] buffer;
private int readPos, readLen;
private int readOffset;
private boolean eof = false;
private boolean buffering = false;
... |
package uk.gov.hmcts.befta.dse.ccd.definition.converter;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import com.fasterxml.jackson.databind.Jso... |
package com.jim.multipos.ui.admin_main_page.fragments.company.di;
import android.support.v4.app.Fragment;
import com.jim.multipos.config.scope.PerFragment;
import com.jim.multipos.ui.admin_main_page.fragments.company.CompanyAddFragment;
import com.jim.multipos.ui.admin_main_page.fragments.company.presenter.CompanyFr... |
package br.com.globallabs.java.bootcamp.desenvolvimento.avancado.java11;public class ClientHttp {
}
|
package org.wikipedia.search;
import org.wikipedia.PageTitle;
public class FullSearchResult {
private final PageTitle title;
private final String thumbUrl;
private final String wikiBaseId;
public FullSearchResult(PageTitle title, String thumbUrl, String wikiBaseId) {
this.thumbUrl = thumbUrl;... |
/*
* 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 src;
import java.util.LinkedList;
/**
*
* @author kannie
*/
public class FactorNode extends ParseTreeNode {
public Fac... |
package lab;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
public class FilmDAO {
public static List<Film> findAll(int currentPage, int pageSize, String ss, String st, String od)
throws Excep... |
package fr.lteconsulting.servlet.vue;
import java.io.IOException;
import java.util.List;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import fr.lteconsulting.dao.BigDao;... |
<#assign className=table.className>
<#assign classNameLower=className?uncap_first>
package ${basepackage}.controller;
import ${basepackage}.service.CommonService;
import com.appc.litsso.common.util.PageDto;
import com.appc.litsso.common.util.PageUtils;
import io.swagger.annotatio... |
package com.kelompoka.tubes;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.SearchView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androi... |
// Maryam Athar Khan
// Lab 09
// October 30, 2015
// This program assigns students their midterm grades using arrays
import java.util.Scanner; // import Scanner class
public class Students { // define a class
public static void main(String[] args) { // define the main method
Scanner myScanner=new Scanner(... |
package com.peng.pp_app_sdk.utils.handler;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
/**
* Created on 2015/12/9 0009.
* Author wangpengpeng
* Email 1678173987@qq.com
* Description Handler的封装类
*/
public class HandlerUtils extends Handler implements IHandler {
private I... |
package com.tinroof;
import javax.persistence.*;
/**
* Created by Brett on 12/21/16.
*/
@Entity
@Table(name="calendar")
public class Calendar {
@Id
@GeneratedValue
int calendarId;
@Column
String name;
@ManyToOne
User user;
public Calendar(String name, User user) {
this.name = name;
this.user = user... |
package dentistrymanager;
@SuppressWarnings("serial")
public class DentistCalendar extends PartnerCalendar {
public DentistCalendar() {
super(0);
super.setTitle("Dentist Calender");
}
} |
package com.corejsf.ch7;
import java.io.Serializable;
import java.util.Date;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import javax.validation.constraints.Future;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;... |
package de.jmda.app.cgol.xy;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import de.jmda.app.cgol.Cell;
import de.jmda.app.cgol.Population;
/**
* Implements {@link Population} so that it contains only living {@link Cell}s.
*/
publ... |
package com.tencent.mm.boot.svg.a.a;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.s... |
/*
* 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.mycompany.springwebapp.dao;
import com.mycompany.springwebapp.model.UserDetail;
import com.mycompany.springwebapp.model.Us... |
package com.andy.weexlab.activity;
/**
* Created by Andy on 2017/9/12.
*/
public class StorageActivity extends BaseWXActivity {
private boolean firstCreate;
@Override
public boolean renderLocal() {
return false;
}
@Override
public String urlRend() {
return "http://192.168.31... |
package com.test.inheritance.multi_level;
/**
* Created by srikanth on 21/12/16.
*/
public class IndianBike extends Bike{
}
|
package com.atguigu.springcloud.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.UUID;
import java.util.concurrent.atomic.A... |
package com.CoreJava;
public class ExceptionFinally
{
String a="10";
int b=Integer.parseInt(a);
public static void main(String s[])
{
try
{
int length=s[0].length()+s[1].length();
if(length<10)
return;
System.out.println("Name length should be less than 20 in total");
... |
package com.ci.tileentity;
import com.ci.api.tileentity.TileEntityWire;
import java.util.Arrays;
public class TileEntityWireCopper extends TileEntityWire {
public TileEntityWireCopper(int type){
super(type);
}
}
|
package com.ceiba.parkingceiba.unit;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import com.ceiba.parkingceiba.domain.imp.RestriccionPlacaImp;
public class RestriccionPlacaTest {
@Test
public void diaHabilParaPlacaQueIniciaPorA() {
// Arrange
RestriccionPlacaImp restriccionPlaca = ne... |
package com.fordprog.matrix.interpreter.error.semantic;
import com.fordprog.matrix.interpreter.CodePoint;
public class OperationWithVoidFunctionSemanticError extends SemanticError {
private final String identifier;
public OperationWithVoidFunctionSemanticError(CodePoint codePoint, String identifier) {
supe... |
/**
* 275. H-Index II
* Medium
*/
public class Solution {
public int hIndex(int[] citations) {
int n = citations.length, l = 0, r = n;
while (l < r) {
int m = l + (r - l) / 2;
if (n - m > citations[m]) {
l = m + 1;
} else {
r = ... |
package Lab01.Zad3;
public class Car {
private String name;
private CarSpeed speed;
public Car(CarSpeed speed, String name) {
this.speed = speed;
this.name = name;
}
public void getCarName() {
System.out.println(this.name);
}
public void getSpeed() {
Syste... |
package com.tencent.mm.plugin.fav.ui;
import android.graphics.Bitmap;
import com.tencent.mm.plugin.fav.ui.k.6;
class k$6$1 implements Runnable {
final /* synthetic */ Bitmap jaX;
final /* synthetic */ 6 jaY;
k$6$1(6 6, Bitmap bitmap) {
this.jaY = 6;
this.jaX = bitmap;
}
public fi... |
/*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.47
* Generated at: 2016-06-06 03:03:52 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.ap... |
/*
* Copyright 2008 Kjetil Valstadsve
*
* 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 or agre... |
package Raghu1;
import java.util.Scanner;
public class HelloScan {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("enter the name");
sc.next();
System.out.println("enter the number");
sc.next();
}
}
|
package market;
public class Fruit {
private String name;
private int price;
private static Fruit cheapestFruit;
private Fruit(String name, int price) {
this.name = name;
this.price = price;
if ((cheapestFruit == null) || (price < cheapestFruit.price))
... |
package com.appc.report.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAnd... |
package solution;
/**
* User: jieyu
* Date: 10/29/16.
*/
public class SpiralMatrixII59 {
public int[][] generateMatrix(int n) {
int count = 0;
int x = 0, y = 0, temp = 0;
int[][] result = new int[n][n];
while (count < n * n) {
temp = goRight(result, x, y, count + 1);
... |
package com.swmansion.gesturehandler.react;
import android.support.v4.f.l;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.uimanager.events.Event;
import com.facebook.react.uimanager.events.RCTEventEmitter;
public final class b extends Event<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.