text stringlengths 10 2.72M |
|---|
package com.eximbills.cloud;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.annotation.WebServlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.htt... |
/**
* Copyright © 2012-2014 <a href="http://www.iwantclick.com">iWantClick</a>iwc.shop All rights reserved.
*/
package com.beiyelin.person.entity;
import com.beiyelin.commonsql.jpa.BaseDomainEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstr... |
// Sun Certified Java Programmer
// Chapter 6, P480
// Strings, I/O, Formatting, and Parsing
import java.text.*;
import java.util.*;
class Dates3 {
public static void main(String[] args) {
Date d1 = new Date(1000000000000L);
DateFormat[] dfa = new DateFormat[6];
dfa[0] = DateFormat.getIn... |
package tfg.example.org.materialdesign;
import com.google.gson.annotations.SerializedName;
/**
* Created by Iván on 19/04/2018.
*/
public class SuccessResponse {
@SerializedName("status_code")
public int status_code;
@SerializedName("status_message")
public String status_message;
public Succe... |
package com.goldgov.dygl.module.partyorganization.web;
import java.io.IOException;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... |
package org.alienideology.jcord.handle.modifiers;
import org.alienideology.jcord.handle.IDiscordObject;
/**
* IModifier - A modifier that support chainable methods to update multiple {@link Attribute} of an instance at once.
*
* @author AlienIdeology
* @param <R> The returning value of the method {@link #modify()... |
package com.rcwang.seal.eval;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.log4j.Logger;
import com.rcwang.seal.expand.EntityList;
import com.rcwang.seal.expand.Seal;
import com.rcwang.seal.expand.SeedSelector;
import com.rcwang.seal.rank.Ranker.Feature;
import com.rc... |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
public class ImportSeed {
static ArrayList<String> lineCSV = new ArrayList<String>();
private static String fileInput = "C:... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package herramientas;
import Utilidades.Consultas;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.*;
/**
*
* @author Administrador
*/
public class pasaoficin... |
/*
* 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 pt.mleiria.regressor.linearmodel;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3... |
package de.korten.wicket.examples.webcomponents.tasks.list;
import de.korten.wicket.examples.webcomponents.tasks.TaskEntry;
import de.korten.wicket.examples.webcomponents.tasks.TaskListChangedPayload;
import org.apache.wicket.event.IEvent;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.ma... |
package com.mengdo.gameframework.quartz;
import com.mengdo.gameframework.log.AbstractLogDispatcher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogTimer {
private Logger logger = LoggerFactory.getLogger(this.getClass());
private AbstractLogDispatcher logService;
public vo... |
package permutation22;
import java.util.Comparator;
import java.util.PriorityQueue;
public class Solution{
public int ksmallest(int[] a, int [] b ,int k){ // Why do you return an int array? We only want the k-th smallest, right? Not all of them
if ((a.length == 0 && b.length == 0) || k == 0){
... |
package com.flutterwave.raveandroid.di.modules;
import com.flutterwave.raveandroid.ach.AchUiContract;
import javax.inject.Inject;
import dagger.Module;
import dagger.Provides;
@Module
public class AchModule {
private AchUiContract.View view;
@Inject
public AchModule(AchUiContract.View view) {
... |
package com.altitudelabs.swiftcart.fragment;
import java.util.Timer;
import java.util.TimerTask;
import android.content.Context;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.v4.app.Fragment;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import... |
package pl.gabinetynagodziny.officesforrent.service;
import pl.gabinetynagodziny.officesforrent.entity.Unit;
public interface UnitService{
Unit mergeUnit(Unit unit);
}
|
package june18;
import java.io.FileInputStream;
import java.util.Properties;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.... |
package p3.control;
import p3.logic.game.Game;
public class HelpCommand extends NoParamsCommand{
public static final String symbol = "h";
public static final String name = "help";
public static final String help = "Displays this help message.";
public HelpCommand() {
super(HelpCommand.symbol, ... |
package com.tz.admin.server.controller;
import org.junit.Test;
import org.springframework.web.bind.annotation.RestController;
import static org.junit.Assert.assertEquals;
@RestController
public class HelloWorldControllerTest {
@Test
public void hello() {
assertEquals("hello", new IndexController().u... |
package com.example.demo.api.transaction.result;
import com.example.demo.core.model.Money;
import com.example.demo.core.model.result.BaseResult;
import java.util.Date;
public class TransactionDetailResult extends BaseResult {
private String transactionId;
private String transactionTitle;
private Date tra... |
package com.tiroller.diceroller.seeder;
import com.tiroller.diceroller.model.Unit;
import com.tiroller.diceroller.model.UnitType;
import com.tiroller.diceroller.repository.UnitRepository;
import com.tiroller.diceroller.repository.UnitTypeRepository;
public class DataSeeder {
private UnitRepository unitRepository;... |
package br.usp.memoriavirtual.modelo.fachadas;
import javax.ejb.Stateless;
import br.usp.memoriavirtual.modelo.fachadas.remoto.AuditoriaFachadaRemote;
@Stateless (mappedName = "AuditoriaFachada")
public class AuditoriaFachada implements AuditoriaFachadaRemote {
}
|
package com.xj.library.base;
/**
* @author mobile.xujun on 2017/3/9 16:53
* @version 0.1
*/
public class Constants {
public static final String WIFI_STATE="wifi_state";
public static final String WIFI_CONNECT_SSID="wifi_connect_ssid";
public static final String WIFI_TARGET_ID="wifi_target_id";
pu... |
package ExpressionsStatementsCodeBlocksMethods.Methods;
public class EqualSumChecker {
public static void main(String[] args) {
}
public static boolean hasEqualSum(int myFirstNumber, int mySecondNumber, int myThirdNumber){
return myFirstNumber + mySecondNumber == myThirdNumber;
}
}
|
import java.util.Scanner;
public class E26 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String word = input.nextLine();
String encodedWord = word;
while (encodedWord.contains("i") && encodedWord.contains("s")) {
... |
package com.qgil.common.utils;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alibaba.fastjson.JSONObject;
import com.qgil.common.pojo.Constant;
import com.qgil.common.pojo.Secret;... |
package com.clueless;
import java.util.UUID;
public class Game {
private String name;
private String password;
private String id;
private clueLessModel gameBoard = null;
public Game(String gameName, String gamePassword) {
name = gameName;
password = gamePassword;
id = String.valueOf(UUID.randomUUID());
... |
package com.erjiguan.apods.base;
import android.app.Dialog;
public interface IBaseView {
Dialog getLoadDialog();
void cancelDialog();
}
|
package com.baixiaowen.javaconcurrencyprogramming.deadlock死锁;
/**
* 描述: 代码优化, 避免死锁
*/
public class TransferMoney转账优化 implements Runnable {
int flag = 1;
static Account a = new Account(500);
static Account b = new Account(500);
// 多个锁对象的hash值相等的时候,会调用这个lock
static Object lock ... |
/*
* Copyright (C) 2015 Miquel Sas
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is dis... |
package com.smxknfie.springcloud.netflix.eureka.ribbon;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author smxknife
* 2018/9/5
*/
@SpringBootApplication
@Enabl... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package com.example.forwork;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import com.bumptech.glide.Glide;
import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.... |
import javafx.animation.FadeTransition;
import javafx.scene.image.Image;
import javafx.util.Duration;
public class Debug extends Game{
private Boolean status;
public Debug(Boolean status){
this.status = status;
}
public Boolean getStatus() {
return status;
}
public void setStatus(Boolean status) {
thi... |
package fibonacciExamples;
public class FibonacciNumbers {
public static void main(String[] args) {
System.out.println("Answer = " + fibonacci(25));
}
public static int fibonacci(int n) {
if (n == 0 || n == 1)
return n;
else
return fibonacci(n-1)+fibonacci(n-2);
}
}
|
package com.qgbase.biz.info.controller;
import com.qgbase.biz.info.TinfoQuery;
import com.qgbase.biz.info.domain.TPicture;
import com.qgbase.biz.info.service.TPictureService;
import com.qgbase.biz.storage.domain.TAttachment;
import com.qgbase.biz.storage.service.StorageService;
import com.qgbase.common.domain.OperInfo... |
package day15arrays;
import java.util.Arrays;
public class Arrays01 {
public static void main(String[] args) {
int num[] = {5, 1, 2};
System.out.println(Arrays.toString(num));
//how to sort array elements
Arrays.sort(num);
System.out.println(Arrays.toString(num));
//how to sort array elements i... |
package com.swrdfish.unshop.admin;
import com.swrdfish.unshop.database.Model;
public interface AdminResource {
public AdminConfig[] getConfig();
public Class<? extends Model> getModelClass();
}
|
/* Copyright (c) 2014, Delta Controls Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... |
package in.litico.unimate.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.An... |
package hm.node;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
public class ConnectionProperties {
public static final String IP;
public static final String CHANNEL;
public static final String CHAINCODE;
public static final int CA_PORT;
public static final int PEER0_PORT;
pub... |
package com.hendriksen.test;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import com.hendriksen.model.Swing;
import com.hendriksen.squashtracker.MainActivity;
import java.util.ArrayList;
import java.util.Arrays;
/**
* This test ensu... |
package controller;
/**
* Banque des controllers principaux
*/
public class ControllerManager {
/**Le controller de la cuisine, sous forme de CuisineController**/
public static CuisineController cuisineController;
}
|
package PL.Login;
import BLL.LoginController;
import DAL.BorrowerInfo;
import DAL.User;
import PL.BorrowBook.BorrowBookForm;
import PL.SearchBook.SearchBookForm;
import PL.UpdateBorrowingCardInfo.UpdateBorrowingCardInfoForm;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.Node;
import jav... |
package cn.com.newbest.newbestsmarthomeforandroidpad;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.RelativeLayout;
import com.zhy.autolayout.AutoLayoutActivity;
im... |
package com.mycompany.swingguisimple;
import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
public class Main {
// ตัวอย่างการเขียน Java GUI Swing
public static void main(String[] args) {
// JFrame = a GUI Window to add component to
// Step 1: Cre... |
package com.threepin.newasql;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.LinearLayout;
public class TableActivity extends Activity {
private LinearLayout removeLinearLayout;
private Linea... |
/*
* 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 prototype;
import anikolic_zadaca_2.OsobaUloga;
import anikolic_zadaca_2.Vrsta;
import java.util.List;
import java.util.Map;
... |
package com.thepenguins.books4u.rest.service;
import com.thepenguins.books4u.persistence.repository.BookRepository;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.jdbc... |
package switch2019.project.domain.domainEntities.person;
import switch2019.project.domain.domainEntities.frameworks.Owner;
import switch2019.project.domain.domainEntities.shared.DateAndTime;
import switch2019.project.domain.domainEntities.shared.PersonID;
import java.util.HashSet;
import java.util.Objects;
import jav... |
package methods;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.s... |
package com.travelportal.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import play.db.jpa.JPA;
@Entity
@Table(name="supplier_code")
public class SupplierCode {
@Id
public Long id;
@Column(name="supplier_code", unique=true)
... |
package a00267320.ait.com.androidacc;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
public class SensorData {
private Long id;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss.SSS")
private Date createTime;
private Double xCoor;
private Double yCoor;
private Double zCoor;
private Double ... |
package SvgPac;
import java.awt.BasicStroke;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
public class SvgPolyline extends ... |
package Minggu12.Teori;
public class TelevisiModern extends Elektronik {
private String modeInput;
public TelevisiModern() {
this.modeInput = "Nyalakan televisi modern dengan input : HDMI";
}
public String getModeInput() {
return this.modeInput;
}
}
|
package org.jcarvajal.webapp.controllers;
import static org.junit.Assert.*;
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import org.jcarvajal.webapp.model.AccessToken;
import org.jcarvajal.webapp.model.User;
import org.jcarvajal.webapp.server.RequestContext;
import org.jcarvajal.web... |
/*
* Copyright Haulmont
*
* 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 agreed to in writi... |
package com.perhab.napalm.statement;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks the method to be executed for performance test in parallel.
* @author bigbear3001
*
*/
@Retention(Retent... |
package model;
import java.util.Vector;
import model.impl.RecReceiverCardImpl;
import model.impl.TransTxRadioImpl;
public interface Receiver {
public void TP2Pmin(double TP);
public Vector<RecReceiverCardImpl> getOntvangers(); //getReceiver()
public RecReceiverCardImpl getOntvanger(TransTxRadioImpl rad);
publi... |
package com.restaurant.app.controller;
import com.restaurant.app.domain.Message;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... |
package com.unsee.gaia.web.exceptions;
public class NextStateException extends Exception {
public NextStateException() {
super("状态异常!");
}
public NextStateException(String message) {
super(message);
}
}
|
package com.hdc.seckill.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdc.seckill.pojo.SeckillGoods;
/**
* <p>
* Mapper 接口
* </p>
*
* @author hdc
* @since 2021-07-27
*/
public interface SeckillGoodsMapper extends BaseMapper<SeckillGoods> {
}
|
package lesson27.Ex4;
public class Run {
public static void main(String[] args) {
Throught timeKeeper = new Throught();
timeKeeper.fingerprintScan();
timeKeeper.faceScan();
timeKeeper.identified();
timeKeeper.closeTime();
timeKeeper.openTime();
timeKeeper.res... |
/**
* 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.example.duy.thread_asyntask_handler;
import android.os.Handler;
import android.os.Message;
import android.os.Process;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Progr... |
package ialogistica;
import aima.search.framework.HeuristicFunction;
public class MinimizedDeliverTimeHeur implements HeuristicFunction {
@Override
public double getHeuristicValue(Object arg0) {
EntregasWorld mundoEntregas = (EntregasWorld) arg0;
return mundoEntregas.getMinimizedDeliverTime();
}
}
|
package com.tencent.mm.plugin.appbrand.widget.recentview;
import com.tencent.mm.plugin.appbrand.widget.recentview.BaseAppBrandRecentView.c;
class BaseAppBrandRecentView$c$1 implements Runnable {
final /* synthetic */ c gPt;
BaseAppBrandRecentView$c$1(c cVar) {
this.gPt = cVar;
}
public final... |
package com.youthchina.domain.tianjian;
public class ComAuthorEssayMap {
private Integer user_id;
private Integer essay_id;
private Integer rela_type;
private Integer rela_id;
public Integer getUser_id() {
return user_id;
}
public void setUser_id(Integer user_id) {
this.us... |
package com.tencent.mm.plugin.appbrand.appcache;
import com.tencent.mm.plugin.appbrand.appcache.aq.a;
import com.tencent.mm.plugin.appbrand.appcache.base.b;
import com.tencent.mm.plugin.appbrand.appcache.j.3.1;
import com.tencent.mm.pluginsdk.g.a.c.k;
class j$3$1$1 implements a {
final /* synthetic */ 1 ffI;
... |
package com.dao.manager;
import com.dao.base.BaseDao;
import com.pojo.MainProxy;
import com.pojo.Manager;
public interface ManageDao extends BaseDao<Manager>{
public Manager getManagerById(int userId);
public int updateManager(Manager manager);
}
|
package ksichenko.oop_task;
import java.io.PrintStream;
abstract class Employ {
protected String name;
protected String sex;
protected String salary;
protected int id;
public void printSalary() {
System.out.println("Employ name: " + name);
System.out.println("Employ salary: " + s... |
public class Human implements Swim {
private String name;
private int age;
public Human(String name, int age) {
this.name = name;
this.age = age;
}
@Override
public void swim() {
System.out.println(toString() + "class Human");
}
@Override
public int age() ... |
package com.ahf.antwerphasfallen;
import android.test.mock.MockContext;
import com.ahf.antwerphasfallen.Helpers.PlayerHandler;
import com.ahf.antwerphasfallen.Model.Player;
import org.junit.experimental.theories.DataPoints;
import org.junit.experimental.theories.Theories;
import org.junit.experimental.theories.Theor... |
package de.jmda.fx.sandbox.graph.uml;
public abstract class Util
{
public static boolean isOdd(int i) { return not(isEven(i)); }
public static boolean isEven(int i) { return i % 2 == 0; }
public static boolean not(boolean b) { return b == false; }
} |
package commands;
public class ShooterSetDeflector extends CommandBase
{
int _deflectionIdx;
public ShooterSetDeflector(int idx)
{
super("Shooter.SetDeflection");
// do not require exclusive access to shooter
//requires(shooter);
_deflectionIdx = idx;
}
// Call... |
package use;
import game.Hero;
class UseHero{
public static void main(String[] args){
//¹æ¹ý 1) Hero hero=new Hero(100,300);
//¹æ¹ý 2)
Hero hero=new Hero();
}
} |
package com.fleet.solr.service;
import com.fleet.solr.entity.User;
import java.util.List;
import java.util.Map;
/**
* @author April Han
*/
public interface UserService {
void insert(User user);
void delete(String id);
void deletes();
void update(User user);
User get(String id);
List<U... |
package com.hs.doubaobao.model.AddLoanTable.uploadMessage;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.TextView;
impo... |
package com.cnk.travelogix.acco.rate.populator;
import com.cnk.travelogix.datamodel.supplier.rates.discountlongstay.model.DiscountLongStayModel;
import com.cnk.travelogix.masterdata.core.enums.PaxType;
import com.cnk.travelogix.rate.acco.data.DiscountLongStayData;
import com.cnk.travelogix.supplier.rates.enums.StayDay... |
package COM.JambPracPortal.BEAN;
import COM.JambPracPortal.DAO.QuestionsDataEntryDAO;
import COM.JambPracPortal.MODEL.QuestionsDataEntry;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class QuestionsDataEntryBEAN {
private QuestionsDataEntry... |
package com.qcwp.carmanager.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Created by Administrator on 2017/1/9.
*/
public class MySharedPreferences {
private Context mcontext;
public MySharedPreferences(Context context){
... |
package com.ducph.consoledrawing.model;
import com.ducph.consoledrawing.util.Utils;
import lombok.Data;
@Data
public class BucketFill implements Entity {
private int x;
private int y;
private char color;
public BucketFill(int x1, int y1, char color) {
Utils.shouldAllPositive(x1, y1);
... |
package com.application.view;
public class ExitPage implements IView {
@Override
public void render() {
System.out.println("++++++++Thanks for the visit++++++++");
System.exit(0);
}
}
|
package com.orca.app;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
... |
package aula3exercicio3;
public class Matematica {
public static double soma(double valor1, double valor2) { return valor1 + valor2; }
public static double subt(double valor1, double valor2) { return valor1 - valor2; }
public static double mult(double valor1, double valor2) { return valor1 * valor2; }... |
package service.impl;
import dao.DaoFactory;
import dao.api.Dao;
import dto.PlaceDTO;
import dto.SeanceDTO;
import mapper.BeanMapper;
import model.Place;
import model.Seance;
import service.api.Service;
import java.util.List;
public class PlaceServiceImpl implements Service<Integer, PlaceDTO> {
private static P... |
package com.ssgmail.shubhammsoni.materialapp;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
i... |
package expression;
import java.util.Map;
public class Variable implements Expression {
private final String name;
public Variable(String name){
this.name = name;
}
@Override
public char getOperator() {
return 'v';
}
@Override
public boolean equals(Expression expres... |
/*
* 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 isc.isma4.figuras;
/**
*
* @author Alvarez
*/
public class Cuadrado extends Figura{
double lado;
p... |
package com.qgbase.excel.domain;
import com.qgbase.excel.annotation.ExcelColumn;
import com.qgbase.excel.convert.IConverter;
import com.qgbase.util.SpringUtil;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import java.lang.reflect.Field;
import java.util.HashMap;
import ... |
package com.stackroute.activitystream.servicesbackend.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Inbox")
public class UserMessage {
... |
package com.rts.auth.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.securit... |
package árbolBB;
import java.util.Vector;
public class ABB {
Integer raiz;
ABB subABizq;
ABB subABder;
// Constructor de un arbol vacio
public ABB() {
raiz = null;
subABizq = null;
subABder = null;
}
// constructor de una hoja
public ABB( Intege... |
package cn.swordfall.hbaseOnFlink;
import cn.swordfall.hbaseOnFlink.flink172_hbase212.CustomTableInputFormat;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.configuration.Configuration;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.had... |
package com.tencent.mm.plugin.sns.ui;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
class MaskImageView$2 implements OnTouchListener {
final /* synthetic */ MaskImageView nOL;
MaskImageView$2(MaskImageView maskImageView) {
this.nOL = maskImageVie... |
package model;
import exception.NoSuggestionsException;
import org.json.JSONArray;
import org.json.JSONObject;
import persistence.Writable;
import java.util.ArrayList;
// Code partly taken from JsonSerializationDemo
//Class to suggest the university to user, if the interests or major or location of the UserChoices ... |
package zmansoo2_6;
import static java.lang.System.out;
public class zmansoo2_lab06_q3 {
public static void main(String[] args) {
Deck deck = new Deck ();
deck . printCards (); //prints deck
}
}
class Card
{
private int denomination;
private char suit;
public Card(int denominationIN, char suitIN)... |
package com.ymt.traveler;
/**
* Created by sunsheng on 2017/5/26.
*/
public class AppTraveler {
public static void main(String... args) {
Traveler traveler = null;
try {
if (args.length == 1) {
String platForm = args[0].toLowerCase();
if (platForm... |
package com.tencent.mm.plugin.remittance.bankcard.ui;
import android.widget.TextView;
import com.tencent.mm.g.a.sy;
import com.tencent.mm.plugin.wxpay.a.f;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.wallet_core.ui.e;
class BankRemitBankcardInputUI$1 implements Runnable {
final /* synthetic ... |
package fr.lteconsulting;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.List;
public class Application
{
public static void main( String[] args )
{
// Premier test
/*System.out.println( "TEST 1" );
try
{
for( int x = -10; x <= 10; x++ )
{
int f ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.