text stringlengths 10 2.72M |
|---|
package com.example.songsbook;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.... |
package org.coresystems.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicUpdate;
import lombok.Data;
@Table(... |
package org.reactome.web.nursa.client.details.tabs.dataset.widgets;
import java.util.Collections;
import com.google.gwt.cell.client.NumberCell;
import com.google.gwt.i18n.client.CurrencyList;
import com.google.gwt.i18n.client.NumberFormat;
class CellTypes {
/**
* A scientific formatter with leading zero, i... |
package ru.burykinsa.compilers.model;
/**
* Created by S.burykin on 19.02.2017.
*/
public enum ElementType {
NONTERM, TERM;
}
|
package com.tpg.brks.ms.expenses.persistence.entities;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Embeddable;
@Embeddable
@Data
@NoArgsConstructor
public class Name {
private String firstName;
private String lastName;
}
|
package com.aegamesi.mc.soundboard;
import org.bukkit.Sound;
import org.bukkit.inventory.meta.FireworkMeta;
public class SoundboardEffect {
public Type type;
public Sound sound;
public FireworkMeta fireworkMeta;
public SoundboardEffect(Type type) {
this.type = type;
}
public enum Type {
SOUND, FIREWORK;... |
package uchet.models;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "in_docs")
public cl... |
package com.example.js.jsbridgedemo;
import wendu.webviewjavascriptbridge.WVJBWebView;
/**
* Created by renxiao on 2018/1/29.
*/
public class DefaultHandler {
private final MainActivity mainActivity;
public DefaultHandler(MainActivity mainActivity) {
this.mainActivity = mainActivity;
}
pu... |
package com.bonc.service.impl;
import com.bonc.pojo.Mineral;
import com.bonc.pojo.Player;
import com.bonc.service.MineraService;
import java.util.Random;
import java.util.stream.IntStream;
public class MineralServiceImpl implements MineraService {
/**
* 挖掘金矿
* @param player 玩家
* @return
*/
... |
package org.aksw.autosparql.server.search;
import info.bliki.api.Page;
import info.bliki.api.XMLPagesParser;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList... |
package proxy4;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import singleton.Config;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
public class MyMethodInterceptor implements MethodInterceptor {
private Object object;
private static Map<S... |
package com.zhangdxchn.web.base;
/**
* Created by zhangdx on 16/8/14.
*/
public class Page {
}
|
/*
* 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 asteroidy.challenges;
import asteroidy.objekty.meteoridy.Meteorid;
import asteroidy.objekty.meteoridy.MeteoridVelky;
import as... |
package javaapplication1;
import java.util.*;
public class JavaApplication1 {
public static void main(String[] args) {
Scanner s1=new Scanner(System.in);
int n=s1.nextInt();
int arr[]=new int[n];
int k=s1.nextInt();
for(int i=0;i<n;i++)
{
arr[i]=s1.nextInt... |
package com.stocktrading.stockquote.util;
public class AppConstants
{
public static final String ENTITY_PACKAGE = "com.stocktrading.stockquote.entity";
public static final String ENUMERATION_PACKAGE = "com.stocktrading.stockquote.enumeration";
}
|
package DataBase;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.ResultSet;
import java.util.Random;
public class EditDataBase extends DataBase {
public Random random;
public int randomInt;
/**
* constructor for the edit da... |
package com.max.harrax.graphics;
import static org.lwjgl.opengl.GL20.GL_COMPILE_STATUS;
import static org.lwjgl.opengl.GL20.GL_FRAGMENT_SHADER;
import static org.lwjgl.opengl.GL20.GL_LINK_STATUS;
import static org.lwjgl.opengl.GL20.GL_VERTEX_SHADER;
import static org.lwjgl.opengl.GL20.glAttachShader;
import static org... |
package com.demoAngular.service;
import java.util.List;
import com.demoAngular.dto.UsersDto;
import org.springframework.stereotype.Service;
import com.demoAngular.entity.Users;
@Service
public interface UserService {
public List<UsersDto> getUsersById(long userId);
public List<UsersDto> getAllUsers();
p... |
package com.pky.smartselling.util;
import com.google.firebase.auth.FirebaseToken;
import com.pky.smartselling.controller.admin.dto.AdminCompanyDto;
import com.pky.smartselling.controller.api.dto.MerchantDto;
import com.pky.smartselling.controller.api.dto.MyselfDto;
import com.pky.smartselling.domain.company.Company;
i... |
package com.crutchclothing.users.dao;
import java.util.List;
import java.util.Set;
import com.crutchclothing.users.model.Address;
import com.crutchclothing.users.model.User;
import com.crutchclothing.util.AddressType;
public interface UserDao {
User findByUserName(String username);
void addUser(User... |
package be.mxs.common.util.io.messync;
import org.w3c.dom.Node;
import java.util.Vector;
/**
* Created by IntelliJ IDEA.
* User: MXS
* Date: 21-mrt-2005
* Time: 16:24:28
* To change this template use Options | File Templates.
*/
public class Message {
private String type;
private Vector persons;
p... |
package com.alex.room.unit;
import com.alex.room.repos.UserRepo;
import com.alex.room.service.RegistrationService;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servl... |
package com.gsccs.sme.plat.svg.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.spri... |
package com.example.testparam.controller;
import com.example.testparam.model.Article;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestM... |
import java.util.Scanner;
public class Point2D {
private double x;
private double y;
public Point2D(double x, double y) {
this.x = x;
this.y = y;
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
t... |
package extraction.process;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChann... |
/*
* Copyright 2015 XiNGRZ <chenxingyu92@gmail.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 applicab... |
package exercicio04;
public class Animal
{
private String nome;
private String raša;
Animal()
{
System.out.println("Um animal foi criado\n");
}
Animal(String nome)
{
this.nome=nome;
}
public void Caminha()
{
System.out.println("ESTA CAMINHANDO\n");
}
public String getRaša() {... |
package rollingHashSearch;
public class RollingHash
{
String hayStack;
String needle;
public RollingHash(String h, String n)
{
hayStack = h;
needle = n;
}
public int find()
{
int result = -1;
int needleHash = 0;
//the Needle Hash
for( int i = 0; i < needle.length(); i++)
n... |
package culture.baofeng.com.mpost;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutCompat;
... |
package com.example.newrestapi;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.htt... |
package defenseSystem;
import javax.swing.JFrame;
import defenseSystem_levels.Hub;
import java.awt.EventQueue;
//program executes from this file
public class Game extends JFrame{
public static int testInt = 0; //for testing purposes, -* to be removed
public enum gameState //game states
{
menu, levelOn... |
package byow.Core;
import byow.TileEngine.TETile;
public interface GameCharacter {
Position getPosition();
int getStartX();
int getStartY();
void addOnMap(TETile[][] world, Position p, TETile type);
void move(TETile[][] world, Position o, Position n, TETile t, TETile type);
default Positi... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.api;
import java.util.List;
import pl.edu.icm.unity.exceptions.EngineException;
import pl.edu.icm.unity.types.endpoint.EndpointConfiguration;
import pl.edu.ic... |
package Collections.ArrayList;
import org.junit.Test;
import java.util.ArrayList;
public class BasicArrayList {
private ArrayList<String> groceryItem = new ArrayList<>();
public void printGroceryItem(){
System.out.println("You have "+groceryItem.size()+" items in your shopping list.");
for... |
import java.util.Scanner;
class ISBN{
public static void main(String args[]){
long no;
System.out.println("Enter the ISBN Number");
Scanner in=new Scanner(System.in);
no=in.nextLong();
if(checkIsbn(no))
System.out.println("VALID");
else
System.out.println("INVALID");
}
public static boole... |
package com.greyfinch.tdd.exercise_02;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
@RunWith(JUnitP... |
package JH3;
import imagelecture.ChessProgram;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Insets;
import javax.swing.JFrame;
public class Chess extends JFrame
{
Image bufferedImage = null;
Dimension screenDimension = null;
Chess()
{
sup... |
package jgame.entity;
/**
* List of messages that entities can send to each other.
* @TODO Improve message system
* @author hector
*/
public enum MessageType
{
DAMAGE;
}
|
package com.isg.ifrend.core.model.mli.application;
import java.io.Serializable;
import java.util.Date;
/**
*
* Bean class for application.
*
*/
public class Application implements Serializable {
private static final long serialVersionUID = 6365821841670901527L;
private String applicationNumber;
private S... |
package factorypattern;
public class Owl implements Bird {
@Override
public void speak() {
System.out.println("Who?");
}
}
|
package com.spring.models;
import org.springframework.security.core.GrantedAuthority;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.pe... |
package nesto.tetris.tetris;
import nesto.tetris.C;
public class Trans {
public static String array2String(int[][] array) {
StringBuilder ar = new StringBuilder();
for (int i = 0; i < C.H_NUMBER + 3; i++) {
for (int j = 0; j < C.H_NUMBER / 2 + 3; j++) {
ar.append(array... |
package Lec_06_For_Loop;
import java.util.Scanner;
public class Pro_06_05_Histogram {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведете N-броя числа, които ще се проверяват: ");
int num = Integer.parseInt(scanner.nextLine());
... |
package com.atguigu.jdbc.entity;
public class Employee {
private Integer id;
private String empName;
private Integer empNo;
private String detpId;
private Integer age;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getEmpName() {
return empName;
}... |
/*
* Copyright 2016 Florian Spieß (Minn).
*
* 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 applica... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tcc.dao;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Tra... |
package com.github.life.lab.leisure.backend.gateway.application.filter.post;
import com.netflix.zuul.context.RequestContext;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties;
import org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter;
... |
package com.codigo.smartstore.sdk.core.struct.iterate.array;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import com.codigo.smartstore.sdk.core.structs.iterate.array.ArrayIterable;
import ... |
public class Student extends Person {
private int nummer;
public Student(String name, int nummer){
super(name);
this.nummer = nummer;
}
}
|
package com.shahinnazarov.gradle.models.k8s;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder(
{
"devicePath",
"name",
}
)
public final class VolumeDevice<R extends DefaultK8sObject> exte... |
/*
* 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 MyPackage;
import java.awt.Color;
import javax.swing.ButtonGroup;
import javax.swing.ButtonModel;
import javax.swing.JFrame;
... |
package com.alibaba.druid.admin.model.dto;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author linchtech
* @date 2020-09-16 18:32
**/
@Data
@NoArgsConstructor
public class DataSourceResult {
@JSONField(name = "ResultCode"... |
package id.kulina.ccppsdkflutter;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebResourceRequest;... |
package tradingmaster.exchange.mininghamster;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Component;
import tradingmaster.exchange.mininghamster.model.HamsterSignal;
import java.util.Date;
import jav... |
package com.lsjr.zizisteward.http;
/**
* Created by lcq on 2017/1/18.
*/
public class MyError {
private ErrorType errorType;
private String errorMessage;
public MyError(ErrorType errorType, String errorMessage) {
this.errorType = errorType;
this.errorMessage = errorMessage;
}
pu... |
package art4muslim.macbook.rahatydriver.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ListV... |
abstract class Veiculo{
protected String modelo;
protected int ano;
protected double valorDeMercado;
protected Motor motor; //= new Motor();
//construtor
public Veiculo(String modelo, int ano, double vMercado) {
this.modelo=modelo;
this.ano=ano;
this.valorDeMercado=vMercado;
this.motor=new Mo... |
/*
* http://codeforces.com/problemset/problem/706/C
* #dynamic-programming #string #todo
i phu thuoc i - 1
i + 1 phu thuoc i
#dynamic-programming => nhin bai toan 1 chieu.
=> co dinh 1 chieu.
=> dp (xay dung dc bai toan 1 chieu.
i - 1 k phu thuoc vao i, i khong phu thuoc vao i + 1)
/* i -> i + 1
- 0
... |
package ca.polymtl.rubikcube.util;
public final class Vect3f {
/**
* The components of the vector.
*/
public final double x, y, z;
/**
* Creates a vector with components (x,y,z)
* @param x
* @param y
* @param z
*/
public Vect3f(double x, double y, double z) {
this.x = x;
this.y ... |
package com.example.arena.activity.fragement.main;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.S... |
package com.cqut.util;
import org.springframework.util.LinkedMultiValueMap;
public class ResponseHeader {
public static LinkedMultiValueMap<String, String> getHeader() {
LinkedMultiValueMap<String, String> headers = new LinkedMultiValueMap<>();
/*headers.add("Access-Control-Allow-Origin", "*");*/
headers.add(... |
package com.gy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
@SpringB... |
package in.anandm.oj.validator;
import org.springframework.validation.Validator;
/**
* @className:in.anandm.todo.web.validator.BaseValidator.java
* @description:TODO
* @author anandm
* @date Aug 17, 2015 2:38:09 PM
*/
public abstract class BaseValidator implements Validator {
}
|
package com.hillel.javaElementary.classes.Lesson_11;
import com.hillel.javaElementary.classes.Lesson_10.ContactTable.Pair;
import java.util.*;
public class Functional {
public static <T> void uniqElements(List<T> input){
Set<T> result = new HashSet<>(input);
System.out.println(result);
}
... |
package chap1_ArraysStrings;
public class AreCharactersUniqueMap {
private boolean[] char_map;
private final int distinct_chars = 256;
public AreCharactersUniqueMap(){
char_map = new boolean[distinct_chars];
}
public boolean areCharactersUniqueMap(String str) {
int ... |
package com.mid;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
/**
*
* @author LaecioRodrigues
*/
public class EnviarResposta {
public void enviar(String res){
String resp = res;
try{
Socket s = new Socket("10.180.5... |
package library.entities;
import library.interfaces.entities.EBookState;
import library.interfaces.entities.IBook;
import library.interfaces.entities.ILoan;
public class Book implements IBook
{
private EBookState bookState_;
private ILoan loan_;
private String author_;
private String title_;... |
package com.shahinnazarov.gradle.utils;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactor... |
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadMXBean;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ConcurrentLinkedDeque;
/**
* Created by Anna Bonaldo on 31/08/2017.
*/
public class QuickSort {
... |
package com.koreait.register;
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;
@WebServlet("/UserRegister")
public... |
package network.nerve.dex.manager;
import io.nuls.core.core.annotation.Autowired;
import io.nuls.core.core.annotation.Component;
import network.nerve.dex.context.DexConfig;
import network.nerve.dex.task.DexInfoTask;
import network.nerve.dex.task.RefreshAssetInfoTask;
import java.util.concurrent.Executors;
import java... |
package com.GestiondesClub.services;
import java.io.Console;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
impo... |
package inheritance;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.*;
public class TheaterTest {
// Make sure movies are added properly
@Test
public void addMovie() {
Theater testTheater = new Theater("MOVIES HERE");
int expected = 0;
int actual =... |
public class allIndicesOfAnArray{
public static void main(String[] args){
int[] arr = {15, 11, 40, 4, 4, 7};
int x = 4;
int[] iarr = getAllIndices(arr, 0, x, 0);
for(int i=0; i<iarr.length; i++){
System.out.print(iarr[i] + " ");
}
}
public static int[]... |
package com.example.tarde.myapplication;
import android.app.AppComponentFactory;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.view.Men... |
package online.lahloba.www.lahloba.ui.address;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import java.util.List;
import online.lahloba.www.lahloba.data.model.CityItem;
import online.lahloba.www.lahloba.data.model.GovernorateItem;
import online.lahloba.www.lahloba.data.repository.... |
package Class;
import static org.junit.Assert.*;
import org.junit.Test;
/**
*
* @author donald
*
*/
public class ChargingPointsTest {
@Test
public void test() {
}
}
|
package com.example.cubomagicoranking2.Activities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import android.content.Intent;
import android.os.Bundle;
import android.service.notification.NotificationListenerService;
import android.u... |
package br.com.itau.creditcardtransactionservices.infra.exception.code;
public interface ErrorCode {
Integer getCode();
String getMessage();
String getLocalizedMessage();
}
|
package com.metoo.foundation.service.impl;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.metoo.core.dao.IGenericDAO;
import com.metoo.foundation.doma... |
package gov.nist.hit.core.service.impl;
import gov.nist.hit.core.domain.TestingStage;
import gov.nist.hit.core.domain.TestCaseDocumentation;
import gov.nist.hit.core.repo.TestCaseDocumentationRepository;
import gov.nist.hit.core.service.TestCaseDocumentationService;
import org.springframework.beans.factory.annotation... |
import java.util.Scanner;
public class Principal{
public static void main(String arg[]) {
Produto produto = new Produto();
Scanner scanner = new Scanner(System.in);
produto.descricao = "Celular";
produto.fornecedor = "Motorola";
produto.valorCusto = 550;
prod... |
/*
* 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.csci360.alarmclock;
import java.text.SimpleDateFormat;
import java.util.Calendar;
/**
*
* @author benjaminmuldrow
*/
p... |
package matthbo.mods.darkworld.block;
import matthbo.mods.darkworld.handler.ConfigHandler;
import matthbo.mods.darkworld.init.ModBlocks;
public class BlockDarkLapisOre extends BlockDarkWorld {
public BlockDarkLapisOre(){
super();
this.setUnlocalizedName("darklapisore");
this.setHardness(3.0F).setResistance(5... |
package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.BasicQuery;
import org.springframework.data.mongodb.core.query.Crite... |
package hashcode_and_equal_method_using_hashmap;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
// as we know hashmap override the value if we put key which are already exist in map
//but when we put user defined object(with properties) as key which are already exist(object with same prope... |
/*
* (c) Copyright 2001-2007 PRODAXIS, S.A.S. All rights reserved.
* PRODAXIS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.prodaxis.mappingfilegenerator.finder.wizard;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IType;
i... |
package ui;
import java.io.Serializable;
public class Inqurie_sg implements Serializable{
static String station_arrival00 ;
static String station_depart00 ;
static String depart_date00 ;
public String getStation_arrival00() {
return station_arrival00;
}
public void setStation_arrival00(String st... |
/*
* Copyright 2002-2023 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... |
/**
* Created by Administrator on 2017/8/15.
判断瑞年
计算1900到2016年有多少天
*/
//public class chapter4_21 {
// public static void main(String[] args){
// int sum = 0;
// for(int year=1900;year<=2015;year++){
// if(year%4==0&&year%100!=0||year%400==0){
// sum+=366;
// }els... |
import java.util.ArrayList;
import java.util.Scanner;
/**
* CUI versions of Hangman
*
* @author Cal Trainor
*/
public class Hangman {
private WordSelector selector;
private ArrayList<String> wordList;
private String wordToGuess = "";
private String correctWord = "";
private String incorrectGue... |
package fr.cea.nabla.interpreter.nodes.expression.binary;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.nodes.NodeInfo;
import fr.cea.nabla.interpreter.values.NV0Int;
import fr.cea.nabla.interpreter.values.NV0Real;
@NodeInfo(shortName = "min")
public abstract class NablaMinNode exte... |
package bn.impl.nodengines;
import java.io.Serializable;
import bn.BNException;
import bn.distributions.DiscreteDistribution.DiscreteFiniteDistribution;
import bn.messages.FiniteDiscreteMessage;
import bn.messages.MessageSet;
public class FiniteDiscreteNode implements Serializable
{
public static double updateMes... |
package listandarraylist;
import java.util.Scanner;
public class Main {
// private static Scanner scan = new Scanner(System.in);
private static Scanner scan= new Scanner(System.in);
private static Grocerylist list= new Grocerylist();
// public static int[] basedata= new int[10];
//initlaize public... |
package com.github.pwittchen.reactivenetwork.library;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static com.google.common.truth.Truth.assertThat;
@RunWith(AndroidJUnit4.class) public class ReactiveNetworkTest {
@Test public void testReactiveNet... |
package com.learning.arrays;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class Task12273Test {
Task12273 task12273;
char[][] concreteArray;
@Before
public void init() {
task12273 = new Task12273();
concreteArray = new char[3][3];
concreteAr... |
package com.yeebar.aer;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
/**
* C... |
package com.itb.wave8.diploma.controllers;
import com.itb.wave8.diploma.entities.Alumno;
import com.itb.wave8.diploma.entities.Diploma;
import com.itb.wave8.diploma.exceptions.UserNotActiveException;
import com.itb.wave8.diploma.exceptions.UserNotFoundException;
import com.itb.wave8.diploma.services.IDiplomaService;
i... |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.