text stringlengths 10 2.72M |
|---|
package com.awesome.galleryapp;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import java.util.... |
package com.sda.project.model;
public enum ItemState {
NEW, ACTIVE, RESOLVED, CLOSED;
}
|
package com.nxtlife.mgs.view;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.nxtlife.mgs.ex.ValidationException;
public class Request {
public int countWords(String sentence) {
if (sentence == null || sentence.isEmpty()) {
return 0;
}
String[] words = sentence.split("\\s+");
... |
package com.example.nata.hallimane;
import android.app.Dialog;
import android.app.FragmentManager;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.app.Fragment;
import... |
package org.kernelab.basis;
public interface HashedEquality<T> extends Equality<T>
{
public int hashCode(T obj);
}
|
package com.tunisiana.tutorials.dao.impl;
import java.util.List;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation... |
package com.nuuedscore.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* Learning Personality Ent... |
package jardin.Flore;
public class Tomate extends Vegetal {
public Tomate(String etat, String[] Dessin ) {
super(etat, Dessin);
dessin[3] = "t";
dessin[4] = "T";
}
}
|
package com.jayqqaa12.mobilesafe.service;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import org.xmlpull.v1.XmlSerializer;
import android.content.Intent;
import android.content.res.Resources.NotFoundException;
import android.os.Binde... |
package Utilities;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
public class Screenshot
{
WebDriver dr;
//Assigns the local dr with t... |
/*
* 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 viinimuistio.domain;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClas... |
package pl.mgd.datasource.servlet;
import java.io.IOException;
import java.sql.SQLException;
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 pl... |
package com.itranswarp.jxrest;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.loggi... |
package cdn.discovery;
import java.util.HashMap;
import cdn.shared.message.types.LinkInfo;
public class Cdn extends HashMap<String, PeerList> {
/**
*
*/
private static final long serialVersionUID = 1L;
private LinkInfo[] links;
/**
* Returns null if no node left to advertise.
*
... |
package com.cs371m.austinrecycle;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import org.json.JSONArr... |
package fe.dto;
import be.entity.OrderPosition;
import java.util.ArrayList;
import java.util.List;
public class OrderDto {
private Long id_order;
private Long id_user;
private List<OrderPositionDto> orderPositions;
private Double total_price;
public OrderDto() {
orderPositions = new Arr... |
/**
* KITE2
*/
package com.kite.modules.att.dao;
import java.util.Date;
import org.apache.ibatis.annotations.Param;
import com.kite.common.persistence.CrudDao;
import com.kite.common.persistence.annotation.MyBatisDao;
import com.kite.modules.att.entity.SysBaseStudent;
/**
* 学员DAO接口
* @author lyb
* @version 201... |
package com.tencent.mm.plugin.profile.ui;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.profile.ui.NormalUserFooterPreference.j;
class NormalUserFooterPreference$j$1 implements OnClickListener {
final /* synthetic */ j lXQ;
Nor... |
package org.sbbs.base.webapp.action;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.dispatcher.Dispatche... |
package com.example.x_b;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View... |
package com.example.gymsy.connection;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class PostData implements Runnable {
private volatile String value... |
/**
* Cria um JPanel que contém uma tabela, usando o GridBagLayout
* @return JPanel
* */
public JPanel createTablePanel(String[] table_columns, Object[][] table_rows, JButton[] buttons,
String[] buttons_names, String panel_name,
... |
package com.kimkha.readability;
import org.jsoup.nodes.TextNode;
/**
* Object to relate a range of PC-data to a text node in an XOM tree.
*/
public class OffsetRange {
private int start;
private int end;
private TextNode text;
OffsetRange(int start, int end, TextNode text) {
this.start = st... |
package com.espendwise.manta.util;
import com.espendwise.manta.model.data.FiscalCalenderData;
import com.espendwise.manta.model.data.FiscalCalenderDetailData;
import com.espendwise.manta.model.view.FiscalCalendarIdentView;
import com.espendwise.manta.model.view.FiscalCalendarListView;
import com.espendwise.manta.model... |
package com.xm.user.service;
import com.xm.user.dao.BlogCatalogDao;
import com.xm.user.dao.BlogDao;
import com.xm.user.domain.Blog;
import com.xm.user.domain.BlogCatalog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Create... |
package com.duanxr.yith.midium;
import java.util.PriorityQueue;
/**
* @author 段然 2021/3/8
*/
public class KClosestPointsToOrigin {
/**
* Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0).
*
* The dis... |
public class Vector {
float x, y, z;
float length;
public Vector(float x, float y, float z) {
this.x = x;
this.y = y;
this.z = z;
length = (float) Math.sqrt(x*x + y*y + z*z);
}
public Vector add(Vector v) {
return new Vector(this.x + v.x,
this.y + v.y,
this.z + v.z);
}
public Vecto... |
package com.android.account;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import and... |
package com.company.Weak4Day2;
public class Task1 {
public static void main(String[] args) {
Person person1 = new Person("Suren", "Badalyan", "Male", "Armenian", "457687186", 24);
Person person2 = new Person();
person2.setFirstName("Suren");
System.out.println("Firstname - " + pers... |
/*
* 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 pe.gob.onpe.adan.model.adan;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.ut... |
package sortAlgorithm;
public class QuickSortDemo {
}
|
package uk.ac.dundee.computing.aec.instagrim.servlets;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartCon... |
package de.dhbw.studientag.dbHelpers;
import java.util.ArrayList;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import de.dhbw.studientag.model.Company;
import de.dhbw.studientag.model.Subject;
public final class OfferedSubjectsHelper {
protect... |
import java.util.*;
public class SelectionSort
{
public static void selectionSort(ArrayList<Integer> arr)
{
if(arr == null)
return;
for(int i = 0; i < arr.size()-1; i++)
{
int smallestIndex = findSmallest(arr, i, arr.size()-1);
swap(arr, i, smallestIndex);
}
}
/*
* Purpose... |
package model.interfaces;
import java.awt.Graphics2D;
import java.util.List;
import model.shapes.Shape;
public interface IShapeDraw {
void drawAllShapes(Graphics2D g2d,List<Shape>shapeList);
void clearCanvais(Graphics2D g2d);
}
|
package ru.qa.addressbook.tests;
import org.testng.annotations.*;
import ru.qa.addressbook.model.GroupData;
import ru.qa.addressbook.model.Groups;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
public class GroupDeletionsTests extends TestBase {
@BeforeMethod
... |
package com.lucy.start.mvc.spring.service;
import java.util.List;
import com.lucy.start.mvc.spring.vo.News;
public interface NewsService {
public List<News> getNews();
}
|
package figury;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.RenderingHints;
import javax.swing.JComponent;
import tools.RandomValues;
public class Circle extends JComponent implements Figure, Moveable
{
public Cir... |
package com.carty.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.carty.message.request.Article;
import com.carty.message.response.NewsMessage;
import com.carty.message.response.TextMessage;
import com.carty.service.CoreService;... |
package com.algorithm.queue;
/**
* @author zhangbingquan
* @desc 队列的抽象接口
* @time 2019/8/30 1:46
*/
public interface Queue {
/*
* @desc 入队
* @return boolean
*/
public boolean append(Object object)throws Exception;
/*
* @desc 删除元素
* @return java.lang.Object
*/
public Obj... |
package com.rui.cn.controller;
import com.rui.cn.feignclients.HelloFenginService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.... |
package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
public class SPacketUpdateHealth implements Packet<INetHandlerPlayCl... |
package com.java.smart_garage.repositories;
import com.java.smart_garage.contracts.repoContracts.ManufacturerRepository;
import com.java.smart_garage.models.Manufacturer;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annota... |
package com.elepy.auth.methods;
import com.elepy.annotations.ElepyConstructor;
import com.elepy.annotations.Inject;
import com.elepy.auth.AuthenticationMethod;
import com.elepy.auth.User;
import com.elepy.auth.UserLoginService;
import com.elepy.http.Request;
import java.util.Optional;
public class BasicAuthenticatio... |
package com.weboot.book.repository;
import com.weboot.book.model.Item;
import com.weboot.book.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author Yaroslav Bondarchuk
* Date: 02.01.2016
* Time: 18:15
*/
public interface UserRepository extends JpaRepository<User, ... |
package com.example.bilp210_7;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
private TextView adetTV,ucretTV;
... |
public class Gerente implements CalculoAumento{
Funcionario func;
public Gerente(double salario) {
func = new Funcionario();
func.setSalario(salario);
func.setListener(this);
func.novoSalario();
}
@Override
public String toString() {
return "Gerente [" + (func != null ? "func=" + func.getSalario()... |
/*
* Copyright (c) 2016 名片项目组 All rights reserved.
*/
package com.poetic.emotion;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Build;
import java.lang.reflect.Field;
/**
* <p>Created by poetic on 2016/4/8 14:51 Email: <a... |
package cn.edu.zucc.web.dao;
import cn.edu.zucc.core.feature.test.TestSupport;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static org.junit.Assert.*;
/**
* Created by zxy on 2016/7/9.
*/
public class UserMapperTest extends TestSupport{
@Autowired
private Us... |
package com.sdk4.boot.controller.user;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.sdk4.boot.bo.LoginUser;
import com.sdk4.boot.common.BaseResponse;
import com.sdk4.boot.domain.AdminUser;
import com.sdk4.boot.enums.UserTypeEnum;
import com.sdk4.boot.exception.BaseError;
im... |
/*
* This file is part of PixelCam Mod, licensed under the Apache License, Version 2.0.
*
* Copyright (c) 2016 CrushedPixel <http://crushedpixel.eu>
* Copyright (c) contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
import java.util.*;
public class Array_generic
{
public static <t> void print(t a[])
{
for(t i:a)
{
System.out.println(i+" ");
}
}
public static void main(String ars[])
{
Scanner s=new Scanner(System.in);
System.out.println("Enter size... |
package lintcode;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
public class L657 {
}
class RandomizedSet {
Set set = new HashSet<Integer>();
public RandomizedSet() {
// do intialization if necessary
}
/*
* @param val: a value to t... |
package org.usfirst.frc.team1165.robot.commands.auto;
import org.usfirst.frc.team1165.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
/**
*
*/
public class DriveStraightSpeed extends Command
{
private double mY;
private double mTwist;
public DriveStraightSpeed(double y, double twist)
... |
package blockchain.block.mining;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Hasher {
// Applies sha256 to the given input and returns the hash bytes
public static byte[] applySHA(byte[] input) {
try {
MessageDigest msgDigest = MessageDi... |
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.logger;
import java.io.File;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import javassist.bytecode.stackmap.TypeData.ClassName;
public class AutoTrxLogger {
static boolean append = true;
public final st... |
package tripleplacement.jobs;
import java.io.IOException;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.ha... |
package com.tutorial.inheritance;
import com.tutorial.inheritance.employee.Employee;
import com.tutorial.inheritance.employee.it.DotNetProgrammer;
import com.tutorial.inheritance.employee.it.JavaProgrammer;
import com.tutorial.inheritance.employee.network.NetWorkingEmployee;
public class HiringCompany {
pu... |
package com.hb.rssai.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.... |
package vectorAndStack;
//import java.util.Stack;
public class VectorAndStack {
public static void main(String[] args) throws Exception {
MyStack<Integer> stack = new MyStack<>();
stack.push(12);
stack.push(15);
stack.push(35);
int popped = stack.pop();
System.out.println(popped+" popped");
... |
package presentacion.vistas.departamento;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import javax.swing.ImageIcon;
import javax.swing.J... |
package jdbchomework.dao.jdbc;
import jdbchomework.dao.model.SkillsDao;
import jdbchomework.entity.Skill;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
public class SkillsJdbcDao extends AbstractJdbcDao<Skill> implements SkillsDao {
public SkillsJdbcDao(Connection connecti... |
package com.imesne.office.excel.read;
import com.imesne.office.excel.model.ExcelRange;
import com.imesne.office.excel.utils.ExcelKitUtils;
import com.imesne.office.excel.validation.CellValueValidator;
import java.util.ArrayList;
import java.util.List;
/**
* excel工具类配置
* <p>
* Created by liyd on 17/7/3.
*/
publi... |
package figures;
import components.Matrix;
import components.Piece;
/**
* Constructeur de la piece en 'S'.
*
* @param posX
* Position X de la piece.
* @param posY
* Position Y de la piece.
*/
public class S extends Piece {
/*
* param posX Position X de la piece.
*
* @param posY P... |
package com.todo.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Userregister")
public class UserVO {
@Id
@Gener... |
package xyz.tanku.suggestionbox.commands;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.... |
/*
* 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.duylp.mathutil.main;
import com.duylp.mathutil.MathUtility;
/**
*
* @author Le Phuoc Duy
*/
public class Main {
/... |
package simulator.factories;
import org.json.JSONArray;
import org.json.JSONObject;
import simulator.misc.Vector;
import simulator.model.Body;
import simulator.model.MassLosingBody;
public class MassLosingBodyBuilder extends Builder<Body> {
public MassLosingBodyBuilder() {
this.typeTag = "mlb";
... |
package idv.randy.petwall;
import android.app.Activity;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.java.iPet.R;
import java.util.List;
... |
package com.maverick.elevator.api;
import org.slf4j.*;
import org.springframework.stereotype.*;
import java.util.*;
import java.util.stream.*;
import static java.lang.Math.*;
/**
* Created by abhinav on 2017-03-08.
*/
@Service
public class ElevatorService implements ElevatorController {
private static final Lo... |
package org.slevin.dao.service;
import org.slevin.dao.ParserDao;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
@Component
@Transactional
public class ParserService implements ParserDao {
}
|
package scriptinterface.execution.parseerrors;
import scriptinterface.execution.returnvalues.ExecutionError;
/**
* An error that occurs when parsing a string.
*
* @author Andreas Fender
*/
public class ParseError extends ExecutionError {
public ParseError(String errorKey) {
super(errorKey... |
package main.form.exceptions;
import java.lang.reflect.Field;
public class UnsupportedFieldTypeException extends RuntimeException {
public UnsupportedFieldTypeException(Field field) {
super("Unsupported field: " + field);
}
}
|
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this.left = left;
* ... |
package com.jd.dao;
import com.jd.entity.User;
import java.util.List;
/**
* Created by HXS on 2021/4/25.
*
* 用户的持久层接口
*/
public interface IUserDao {
/**
* 查询所有操作
* @return
*/
List<User> findAll();
}
|
package uz.pdp.apphemanagement.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;
import uz.pdp.apphemanagement.entity.Salary;
import uz.pdp.apphemanagement.entity.User;
import uz... |
package com.kristi71111.bacoskyrestrict.commands;
import com.kristi71111.bacoskyrestrict.BacoSkyRestrict;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandConte... |
package com.tencent.mm.plugin.voip.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.voip.ui.e.16;
class e$16$2 implements OnClickListener {
final /* synthetic */ 16 oSg;
e$16$2(16 16) {
this.oSg = 16;
}
public fi... |
package com.example.huanglisa.nightynight;
/**
* Created by huanglisa on 11/25/16.
*/
public class ReceivedFriend {
public String id;
public String buildingId;
public String friendId;
public String name;
public boolean status;
}
|
package com.vendingMachine.DeloitteTask;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;... |
package com.baidu.camera.template.db;
import com.baidu.camera.app.CameraApp;
import com.j256.ormlite.android.apptools.OpenHelperManager;
import com.j256.ormlite.dao.Dao;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.sql.SQLException;
import java.util.Collection;
import java.ut... |
package com.ricex.cartracker.common.entity.auth;
import com.ricex.cartracker.common.entity.AbstractEntity;
import com.ricex.cartracker.common.viewmodel.auth.UserViewModel;
public class RegistrationKeyUse extends AbstractEntity {
private long keyId;
private long userId;
private UserViewModel user;
public Reg... |
package tw.org.iii.java;
import java.util.HashSet;
public class Brad71 {
public static void main(String[] args) {
HashSet<String> set = new HashSet<>();
set.add("Brad");
//set.add(123);
set.add("Chao");
}
}
|
class Pizza extends DecoratedPizza{
private Crust crust;
public Pizza(Crust crust){
super();
this.crust = crust;
}
public double pizzaCost(){
return crust.crustCost();
}
public String toString(){
return crust.toString() + "Toppings:\n";
}
public Strin... |
// punto 4
import java.util.*;
public class punto_04 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int cantidad = 0;
System.out.println("ingrese la cantidad de numeros primos a averiguar: ");
cantidad = sc.nextInt();
... |
package com.tencent.mm.plugin.card.ui;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.LinearLa... |
/**
*
*/
/**
* @author 123
*
*/
package model; |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mvirtual.catalog.heritage;
import mvirtual.catalog.SessionNames;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ActionContext;
import org.hibernate.Session;
import org.mvirtual.... |
package com.espendwise.manta.web.validator;
import com.espendwise.manta.util.validation.ValidationResult;
import com.espendwise.manta.web.forms.AccountSiteHierarchyManageFilterForm;
import com.espendwise.manta.web.util.WebErrors;
public class AccountSiteHierarchyManageFilterFormValidator extends AbstractFormV... |
package com.pybeta.daymatter.ui;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import com.pybeta.daymatter.BuildConfig;
import com.pybeta.d... |
/*
* 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 herramientas;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.util.Date;
/... |
package com.nju.edu.cn.model;
import com.nju.edu.cn.entity.FuturesUpdating;
/**
* Created by shea on 2018/10/19.
*/
public class FuturesUpdatingBean extends FuturesUpdating {
private String timeStr;
public String getTimeStr() {
return timeStr;
}
public void setTimeStr(String timeStr) {
... |
public class Vehicle {
private String brand; // Vehicle parent class
public void setBrand(String brand) {
this.brand = brand;
}
public String getBrand() {
return brand;
}
public void honk() { // Vehicle method
System.out.println("honk, honkkk!... |
package br.ufc.ong.model;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "animal")
public class Animal implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id_an... |
public class Chapter07 {
public static void main (String[] args) {
int lunchMoney = 800;
// if (lunchMoney >= 800 ) {
// System.out.println("チャーシューメンが食べられます");
// } else if (600 < lunchMoney) {
// System.out.println("ラーメンが食べられます");
// } else {
// System.out.println("どのラーメンも食べられません");... |
package mars.model;
import mars.exceptions.IllegalMovementException;
/**
* Contém as funções basicas que um robo deve implementar.
*
* @author gabriel
*
*/
public interface Robot {
/**
* Um robo sempre estará virado para uma das posições representadas por este Enum, Norte, Sul, Leste ou Oeste.
*
* @au... |
package com.zhonghui.auditcloud.core.provider;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.clou... |
/*
* 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 ma... |
package pt.smartthought.url.shortner.api.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
@NoArg... |
package com.showdy.hotfix;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class ReflectUtils {
public static Field findField(Object object, String name) throws NoSuchFieldException {
Class<?> clazz = object.getClass();
try {
while (clazz != Object.class) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.