text stringlengths 10 2.72M |
|---|
package appModules;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.Select... |
package com.example.labs.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
public class OpeningPage extends AppCompatActivity {
private ImageButton anxious, sad, tired, happy;
... |
package com.lesports.albatross.entity.community;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by jiangjianxiong on 16/6/1.
*/
public class CommunityEntity extends MultiItemEntity {
@Seria... |
package com.zackstrife.hugo.capezzone;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.T... |
import com.gargoylesoftware.htmlunit.ElementNotFoundException;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.Expecte... |
package com.intricatech.topwatch;
import android.text.SpannableString;
/**
* Created by Bolgbolg on 17/05/2017.
*/
public interface NewSplitListener {
void onNewSplitCreated(SpannableString timeSS, SpannableString distanceSS);
}
|
package ir.ceit.search.nlp.stemming.global.utils;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
* @author htaghizadeh
*/
public class TrieImpl<T> implements TrieInterface<T> {
private TrieNode<T> rootNo... |
package com.sinotech.settle.utils;
//import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.poifs.filesystem.POI... |
package com.mariusreimer.tapjoy;
/**
* Created by marius on 01/03/17.
*/
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.modules.core.DeviceEventManagerModule;
import com.tapjoy.TJEarnedCurrencyListene... |
package com.navarromugas.test;
import com.navarromugas.models.*;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;
public class DiosTest {
private Dios dios;
private Mundo mundoCreadoPorDios;
private Gps gps;
@Before
public v... |
package com.legaoyi.platform.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.legaoyi.mq.MQMessageProducer;
import com.legaoyi.rabbitmq.RabbitmqDirectExchangeMessageProducer;
i... |
package com.onlyu.reactiveprog.controllers;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
@Slf4j
@AllArgsConstructor
public class FailureController {
@GetMapping("/acces... |
package src;
public class Product {
int id;
String title;
int cost;
public Product(int id, String title, int cost) {
this.id=id;
this.title=title;
this.cost=cost;
}
public void printProd(){
System.out.println(title + "number " +id +" costs "+cost+" ... |
/*
* 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 main.java.spatialrelex.ling;
import edu.stanford.nlp.ling.IndexedWord;
import edu.stanford.nlp.semgraph.SemanticGraph;
import ... |
package hw1;
public class PrintTest2 {
public static void main(String[] args) {
}
}
|
package sax;
import java.io.*;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.XMLReaderFactory;
/*
* Crea un programa que devuelva el número de discos registrados en
“... |
package com.shangdao.phoenix.entity.customer;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
... |
import java.util.Vector;
public class B4Integertest {
public static void main(String[] args) {
Vector v=new Vector();
/*
v.add(new Integer(10));
v.add(new Integer(20));
v.add(new Integer(30));*/
v.add(10); //jdk5 auto-boxing
v.add(20);
... |
package com.weathair.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.weathair.entities.forum.Post;
import com.weathair.entities.forum.Topic;
/**
* @author MIACHELL
*
* Interface PostRepository for CRUD into Post table
*
*/
public interface PostRepo... |
package logic;
import java.io.Serializable;
import java.time.DayOfWeek;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.temporal.TemporalAmount;
import java.util.ArrayList;
i... |
package com.androidbook.networking;
import java.net.MalformedURLException;
import java.net.URL;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserFactory;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
im... |
// O. Bittel
// 19.9.2011
package aufgabe1.dictionary;
import java.util.List;
public interface Dictionary<K,V> {
public static class Element<K, V> {
public K key;
public V value;
public Element() {
super();
}
public Element(K key, V value) {
super();
this.key = key;
this.value = value... |
package com.tfg.hipersch;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.util.Patterns;
import android.view.View;
import android.widget.ProgressB... |
package fr.eni.poo.tp.transporteur.bo;
public interface Livrable {
// METHODE QUI NE PREND AUCUN PARAMETRES (PARENTHESE VIDE) ET RENVOIE FLOAT :
float getTarifLivraison();
}
|
package com.ebanq.web.pageobjects.profiles;
import com.codeborne.selenide.Condition;
import com.ebanq.web.pageobjects.BasePage;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.open;
import static com.ebanq.web.other.Urls.*;
public class Ba... |
package br.com.mixfiscal.prodspedxnfe.domain.sped;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
public class SPED0000 extends SPEDBase implements Serializable {
private static final long serialVersionUID = -7224068271691261662L;
private String codVer;
private String c... |
package com.cxxt.mickys.playwithme.model;
import com.cxxt.mickys.playwithme.model.bean.response.CodeResponse;
import com.cxxt.mickys.playwithme.model.bean.response.RegisterResponse;
import com.cxxt.mickys.playwithme.model.bean.response.ResponseResult;
import io.reactivex.Observable;
import retrofit2.http.Field;
impo... |
package cc.smh.dao;
import cc.smh.common.dao.IBaseDao;
public interface UserDAO extends IBaseDao {
}
|
package com.igs.util;
import com.hl.util.Constants;
import com.hl.util.LogUtils;
import com.igs.entity.req.ReqBodyBaseBean;
import com.igs.entity.rsp.BaseRsp;
import com.igs.entity.rsp.RspBodyLoginBean;
/**
* 类描述:
* 创建人:heliang
* 创建时间:2016/1/11 13:52
* 修改人:8153
* 修改时间:2016/1/11 13:52
* 修改备注:
*/
... |
package com.ahav.reserve.pojo;
public class Result {
private int status = 400;
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
@Override
public String toString() {
return "Result{" +
"status=" ... |
package beans;
import java.util.List;
import dao.BookDao;
import pojo.Book;
public class BookBean
{
private String subject;
private BookDao dao;
private List<Book> bookList;
public BookBean() throws Exception{
this.dao = new BookDao();
}
public String getSubject() {
return subject;
}
public void setSubje... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package items;
import game.Constants;
import javax.swing.*;
import java.awt.*;
/**
*
* @author Nitesh
*/
public class Board extends Panel
{
private JLabel border[]= new JLabel[4];
private JLabel leg[]= new ... |
package com.cinema.biz.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cinema.biz.dao.SimPcControlMapper;
import com.cinema.biz.model.SimPcControl;
import com.cinema.biz.model.base.TSim... |
package com.amazonaws.models.nosql;
import com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.DynamoDBAttribute;
import com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.DynamoDBHashKey;
import com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.DynamoDBIndexHashKey;
import com.amazonaws.mobileconnec... |
package com.zhicai.byteera.activity.community.group;
import com.lidroid.xutils.db.annotation.Table;
import com.zhicai.byteera.commonutil.StringUtil;
import java.io.Serializable;
/** Created by bing on 2015/6/1. */
@Table(name = "GroupEntity")
public class GroupEntity implements Serializable,Comparable<GroupEntity>{... |
// Copyright (C) 2016 The Android Open Source Project
//
// 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 ... |
package Revise.graphs;
import java.util.*;
public class Dijkstra {
static GraphAdjList graphAdjList = null;
public static void minDistanceDijkstra(String srcVertex, String endVertex) {
Node srcNode = graphAdjList.graph.get(srcVertex);
PriorityQueue<Node> pq = new PriorityQueue<>(new Comparat... |
package com.logicbig.example;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("trades")
public class TradeController {
@RequestMapping("/{trade}")
public String handleT... |
package com.nisira.core.dao;
import com.nisira.core.entity.*;
import java.util.List;
import android.database.sqlite.SQLiteDatabase;
import com.nisira.core.database.DataBaseClass;
import android.content.ContentValues;
import android.database.Cursor;
import com.nisira.core.util.ClaveMovil;
import java.util.ArrayList;
im... |
package de.trispeedys.resourceplanning.delegate.requesthelp;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import de.trispeedys.resourceplanning.datasource.Datasources;
import de.trispeedys.resourceplanning.entity.Helper;
import de.trispeedys.res... |
/**
* This class will process all the information for the females
*
* @author Carlos
*/
public class Female extends HumanBeing implements Comparable<HumanBeing> {
private String lastDegree;
//Constructor
public Female(String name, int age, String lastDegree) throws notHumanBeingException {
super(... |
/*
* 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... |
package com.hb.framework.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.json.JSONException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapp... |
package com.rndapp.t.models.mbta;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by ell on 2/7/15.
*/
public class MBTAMode {
@SerializedName("route_type")
private String mRouteType;
@SerializedName("route")
private ArrayList<MBTARoute> mRoutes;
pu... |
package com.bistel.flink.function;
import org.apache.flink.api.java.tuple.Tuple4;
import org.apache.flink.streaming.api.functions.AssignerWithPunctuatedWatermarks;
import org.apache.flink.streaming.api.watermark.Watermark;
import com.bistel.tracereport.model.TraceReportInfo;
public class MyWatermarkEmitter implement... |
package com.mercadolibre.bootcampmelifrescos.integration;
public class PurchaseOrderControllerTest {
}
|
package ca.deuterium.assignment1;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.supp... |
package com.training.utils;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.training.beans.Customer;
public class CustomerDAOImpl implements DA... |
package io.nuls.base.data;
import io.nuls.base.basic.NulsByteBuffer;
import io.nuls.core.crypto.HexUtil;
import io.nuls.core.exception.NulsException;
import org.junit.Test;
import java.io.IOException;
/**
* 测试extend字段
*
* @author captain
* @version 1.0
* @date 2019/6/21 11:13
*/
public class BlockExtendsDataTe... |
package indi.jcl.magicblog.controller;
import indi.jcl.magicblog.service.IUserService;
import indi.jcl.magicblog.vo.Response;
import indi.jcl.magicblog.vo.User;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
... |
package com.cairone.webdriver;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.Select;
import org.openqa.sele... |
package Vorlesung06;
import java.util.ArrayList;
public class FahrzeugList<T extends Auto> extends ArrayList<T> {
public T getFastest() {
T result = null;
for (T t : this) {
if (result == null) {
result = t;
} else if (t.vMax > result.vMax) {
result = t;
}
}
return result;
}
}
|
package com.adidas.microservices.publicservice.controller;
import com.adidas.microservices.publicservice.entity.Subscription;
import com.adidas.microservices.publicservice.proxy.SubscriptionServiceProxy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowi... |
package com.example.mad;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class content extends AppCompatActivity {
public boolean onCreateOptio... |
package swivl.demo.entities;
public class Matches {
}
|
class SevenRC
{
public static void main(String args[])
{
int Arr[][]={{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,16},{17,18,19,20,21},{22,23,24,25,26}};
int sum=0;
for(int i=0;i<Arr.length;i++)
{
for(int j=0;j<=2;j=j+2)
{
sum=sum+Arr[i][j];
System.out.print(Arr[i][j]+" ");
}
System.out.println()... |
package com.cs.rest.status;
import com.cs.security.AccessDeniedException;
/**
* @author Joakim Gottzén
*/
public class AccessDeniedMessage extends ErrorMessage {
private static final long serialVersionUID = 1L;
private AccessDeniedMessage(final String message) {
super(StatusCode.ACCESS_DENIED, mes... |
package web.id.azammukhtar.subico.UI.HomeFragment;
import android.util.Log;
import android.view.View;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import org.jetbrains.annotations.NotNull;
import sta... |
package com.xcl.community.dto;
import lombok.Data;
/**
* GithupUser
*
* @author 徐长乐
* @date 2020/5/1
*/
@Data
public class GithupUser {
private String name;
private Long id;
private String bio;
}
|
package fabricas;
import entidades.Loja;
public class FabricaLoja {
public FabricaLoja(){
}
public Loja criarLoja(String nome, String endereco, String cnpj, String imagem){
return Loja.CriarLoja(nome,endereco,cnpj,imagem);
}
}
|
/*
* 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 logica;
import java.sql.SQLException;
import java.util.List;
import persistencia.EquipoAlmacen;
import persistenci... |
package com.junzhao.base.http;
import com.junzhao.base.base.APP;
import com.junzhao.base.utils.MLLogUtil;
import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;
import org.apache.htt... |
package com.Nikolovska.spring.HRManagement.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.http.HttpStatus;
import org.springframework.http.R... |
/**
* Package contenant les classes graphiques
*/
package GUI; |
package algorithms.context;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
... |
package com.cc.multirecycleview.bean;
import static com.cc.multirecycleview.holder.SimpleCategoryViewHolder.CATEGORY_TYPE_LIST;
/**
* 底部分页类型
*
* @author 陈聪 2020-05-06 15:33
*/
public class CategoryProBean extends CategoryBean {
/** 配置的展示布局 */
public int layout = 0;
/** 配置背景颜色 */
public int bgColo... |
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.shape.Rectangle;
public class Player{
Rectangle player = new Rectangle();
KeyCode moveUp;
KeyCode moveDown;
boolean up = false, down = false;
double[] info;
public Player(int p, double[] info){
// ... |
package xyz.spacexplorer.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import xyz.spacexplorer.dto.atom.AtomDTO;
import xyz.spacexplorer.dto.atom.AtomDTOExample;
import xyz.spacexplorer.utils.OriginalMapper;
public interface AtomDao extends OriginalMapper<AtomDTO> {
int countBy... |
package util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
import org.jsoup.select.Elements;
imp... |
package com.github.fierioziy.particlenativeapi.core.asm;
import com.github.fierioziy.particlenativeapi.core.asm.mapping.SpigotClassRegistry;
import org.objectweb.asm.Opcodes;
public class BaseASM implements Opcodes {
/*
Constant names to ease possibly future refactoring
*/
// API
public static ... |
package cuj.DemoOfSmack.Config;
/*
*
* project_name: DemoOfSmack
* class_name:
* class_description:
* author: cujamin
* create_time: 2016年7月13日
* modifier:
* modify_time:
* modify_description:
* @version
*
*/
public class SmackConfig {
private String serviceName ;
private String host ;
private int port ;
pub... |
package juego;
import java.util.ArrayList;
import java.util.List;
import cartas.BrazoDerechoExodia;
import cartas.BrazoIzquierdoExodia;
import cartas.CabezaExodia;
import cartas.Carta;
import cartas.PiernaDerechaExodia;
import cartas.PiernaIzquierdaExodia;
import excepciones.CapacidadMaximaException;
impo... |
package org.shiro.demo.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.bouncycastle.jcajce.provider.asymmetric.dsa.DSASigner.noneDSA;
import org.shiro.demo.controller.app.vo.AppAttendVO;
import org.shiro.dem... |
package com.blog.asktask.service.impl;
import com.blog.asktask.domain.Post;
import com.blog.asktask.repos.PostRepository;
import com.blog.asktask.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public c... |
package com.dubeboard.dubeboard;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.util.ArrayList;
import java.util.List;
/**
* Create... |
/*
* Copyright (c) 2020.
* Kamalita's coding
*/
package RegularProgramming.Thread;
public class TestSingleThread {
public static void main(String[] args) throws Throwable {
Thread checkextends=new Checkextends();
Thread t=Thread.currentThread();
checkextends.start();
Thread chec... |
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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... |
package com.carsonjones.tuber;
/**
* Created by macuser on 12/17/15.
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
impor... |
package com.kinsella.people.business.service;
import com.kinsella.people.data.entity.Address;
import com.kinsella.people.data.entity.Person;
import java.util.List;
import java.util.Optional;
public interface PersonService {
Optional<Person> create(Person person);
Optional<Person> create(long id, String fir... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.apache.hadoop.mapreduce;
import java.util.Properties;
import java.util.concurrent.Callable;
/**
*
* @author ashwinkayyoor
*/
public class CallableCombiner implements Callable {
private final Combine... |
package nesto.mediaplayer;
import android.content.res.Configuration;
import android.graphics.Point;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import a... |
package test;
public class Person {
//FIELDS
private String fname, lname;
private int age, day, month, year;
//CONSTRUCT
public Person() {}
public Person(String fname, String lname, int age) {
setFname(fname);
setLname(lname);
setAge(age);
}
//GETTER AND SETTER
public String getFname() {
return f... |
package practico17.Steps;
import org.testng.Assert;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import practico17.PageObject.LandingPage;
public class CRMSteps extends BaseSteps {
@When("hago click en CRM")
public void hago_click_en_crm() {
landingPage = new LandingPage(driver);... |
package com.stackroute.userservice.controller;
import com.stackroute.userservice.domain.User;
import com.stackroute.userservice.domain.UserCredentialsDTO;
import com.stackroute.userservice.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus... |
package com.logicbig.example.beanmethodparameters;
public class BeanC {
} |
class practice //output is 13 and 6//
{
public static void main(String[]arg)
{
int a=10;
int b=a+3;
int c=a-4;
System.out.println(b);
System.out.println(c);
}
} |
/*
* ### Copyright (C) 2006-2009 Michael Fuchs ###
* ### All Rights Reserved. ###
*
* Author: Michael Fuchs
* E-Mail: michael.fuchs@unico-group.com
* URL: http://www.michael-a-fuchs.de
*/
package org.dbdoclet.tidbit;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
i... |
package factoring.fermat;
import java.util.Collection;
import factoring.FactorizationOfLongs;
import factoring.math.PrimeMath;
/**
* Created by Thilo Harich on 02.03.2017.
*/
public class FermatFact implements FactorizationOfLongs {
protected int [] smallFactors = {2,3,5,7,11,13,17,19};
protected int minFactor;... |
/*
* Copyright 2018 Neil Lee <cnneillee@163.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 applicable ... |
package ru.avokin.highlighting;
import java.util.List;
/**
* User: Andrey Vokin
* Date: 05.10.2010
*/
public interface CodeHighlighter {
List<HighlightedCodeBlock> highlight(String text);
}
|
package main.java.algorithms.tsp;
import java.util.ArrayList;
import javafx.application.Platform;
import main.java.graphs.DistanceGrid;
import main.java.graphs.grid.GridTile;
import main.java.main.Vector2;
import main.java.pane.simulation.TspSimulation;
public class TotalEnumeration extends Thread
{
// Variables
p... |
package kr.co.hangsho.orders.mappers;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import kr.co.hangsho.customers.vo.Customer;
import kr.co.hangsho.orders.vo.Order;
@Mapper
public interface OrderMapper {
void addOrder(Order order);
int getSeq();
List<Order> getOrders();
Order getOrder(... |
package mediadif.dataManagement;
import java.util.ArrayList;
/**
*
* @author antnhu
*/
public class ProjectManager extends Staff{
private ArrayList<Project> projects;
public ProjectManager(String code, String firstName, String lastName) {
super(code, firstName, lastName);
proj... |
package net.tnemc.ghost.core.account;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
/*
* Ghost Server Plugin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published ... |
package com.meritamerica.assignment1;
public class MeritAmericaBankApp {
public static void main(String args[]){
AccountHolder newAccount = new AccountHolder("Reuben", "E", "Pena", "123-45-4567", 100, 1000);
System.out.print(newAccount);
newAccount.checkingAccount.deposit(500);
... |
package appium.practice;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.ServerSocket;
import java.net.URL;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.openqa... |
package ch.mitti.tetris;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.BorderFactory;
import javax... |
/*
* 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... |
package adefault.loginscreen;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import ... |
package commands.client;
import java.util.List;
import core.client.ClientFrame;
import net.UserInfo;
import net.client.ClientConnection;
import ui.client.RoomGui;
public class UpdateRoomUIClientCommand implements ClientCommand {
private static final long serialVersionUID = 706856426348903599L;
private final List<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.