text stringlengths 10 2.72M |
|---|
package com.programapprentice.app;
/**
* User: program-apprentice
* Date: 8/4/15
* Time: 10:01 PM
*/
import java.util.Stack;
/**
* Reverse digits of an integer.
* Example1: x = 123, return 321
* Example2: x = -123, return -321
* */
public class ReverseInteger_7 {
public int reverse_v1(int x) {
if... |
package p08;
import java.util.Random;
public class Lotto {
private int[] lottoNums;
private Random r;
private int lottoTemp;
private int lotooMax;
private int[] checkLottoNums;
public Lotto() {
this(6, 45);
}
public Lotto(int rNumsLength, int lotooMax) {
lottoNums = new int[rNumsLength];... |
package codejam1;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class creep {
public static void main(String[] args) {
Scanner sc = null;
try {
sc = new Scanner(new File("C:/Users/Aloy Aditya Sen/workspace/Thought/src/input/inStream"));
} catch (... |
package com.proyectofinal.game.objects.trops;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Rectangle;
import com.proyectofinal.game.helpers.AssetManager;
/**
* Created by ALUMNEDAM on 09/05/2017.
*/
public class Ninja extends Tropas {
public Ninja(float x, float y, int desviacionX... |
package com.kamak.katalogfilmuiux;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.... |
package sample.mybatis;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
public class Main {
public static void main(String[] args) ... |
package com.javaee.ebook1.service.impl;
import com.javaee.ebook1.mybatis.vo.BookListVO;
import com.javaee.ebook1.service.BookListService;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context... |
/*
* Copyright (C) 2014 Vasilis Vryniotis <bbriniotis at datumbox.com>
*
* 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 v... |
package hashcode_and_equal_method_using_hashset;
// as we know hashset does not contain duplicate elements.
// but if we create two user defined object with same values then it contains both objects because both two objects have different hash code
import java.util.HashSet;
import java.util.Objects;
class Student2... |
package org.oatesonline.yaffle.services.impl;
import java.io.IOException;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.oatesonline.yaffle.entities.dao.DAOFactory;
import org.oa... |
package section3;
public class ByteShortIntLong {
public static void main(String[] args) {
System.out.println("Integer Range");
int myMin = Integer.MIN_VALUE;
System.out.println("Minimum: " + myMin);
int myMax = Integer.MAX_VALUE;
System.out.println("Maximum: " + myMax);
// overflow
int myBust... |
package com.qac.nbg_app.messenging.messages;
public class Address {
}
|
package simplefactory2;
public interface Hair {
public void drawHair();
}
|
package com.turios.modules.core;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import javax.inject.Singleton;
import android.util.Log;
@Singleton
public class ExpirationCoreModule {
private static final String TAG = "ExpirationCor... |
/**
* Created by jeffbrinkley on 3/2/17.
*/
public class User {
int id;
String user_name;
public User(int id, String user_name) {
this.id = id;
this.user_name = user_name;
}
}
|
class Solution {
public int thirdMax(int[] nums) {
Set<Integer> set = new HashSet<Integer>();
for(int i = 0; i < nums.length; i++){
set.add(nums[i]);
}
if(set.size() == 1) {
for(Integer i:set) return i;
}
if(set.size() == 2){
int ma... |
package com.gxtc.huchuan.ui.mine.classroom.directseedingbackground.createtopic;
import com.gxtc.commlibrary.BasePresenter;
import com.gxtc.commlibrary.BaseUserView;
import com.gxtc.commlibrary.data.BaseSource;
import com.gxtc.huchuan.bean.CreateLiveTopicBean;
import com.gxtc.huchuan.http.ApiCallBack;
import java.util... |
package com.mars.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;
/**
* Created by mars on 2015/8/24.
*/
@Data
@XmlRoo... |
package main.java.com.example.projekt_jee_liga.web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespo... |
package com.tpg.microservices.test1.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import com.tpg.microservices.test1.bean.Item;
@RepositoryRestResource
public interface ItemRepository extends CrudRepository<Item, In... |
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Loading {
public void read(int level) {
try {
File lev = new File("levels.txt");
Scanner scan = new Scanner(lev);
// Поиск нужного уровня
String s = "";
while(scan.hasNextLine()) {
s = s... |
package com.wdl.webapp.controller.login;
import java.util.Date;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.apache.shi... |
/*
* 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... |
/*
* /*
* * Copyright (C) Henryk Timur Domagalski
* *
* * 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.... |
package com.wellsfargo.SBA3.its.exceptions;
public class UserException extends Exception {
public UserException(String errMsg){
super(errMsg);
}
}
|
package com.itfacesystem.domain.org;
import com.itfacesystem.domain.common.BaseDomain;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
/**
* Created by wangrongtao on 15/10/13.
*/
public class User extends BaseDomain implements Comparable<User>{
private lo... |
// https://java.keicode.com/lang/operators.php
// javac -encoding utf-8 OpTest4.java
package operator;
public class OpTest4 {
public static void main(String[] args) {
boolean a;
a = ( 1 == 2 );
System.out.println( a );
a = ( 1 < 2 );
System.out.println( a ); ... |
package br.com.huegroup.salao.json;
import java.io.IOException;
import org.joda.time.LocalTime;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.TreeNode;
import com.fasterxml.jackson.databind.DeserializationContext;
... |
package com.sherry.epaydigital.bussiness.domain;
import com.sherry.epaydigital.data.model.Card;
import java.util.List;
import java.util.Set;
public class CustomerDomain {
private long id;
private String first_name;
private String last_name;
private String email;
private String password;
priva... |
package com.T_Y.controller;
import com.T_Y.model.User;
import java.io.IOException;
import java.sql.SQLException;
public class UserManagement {
// public String[] showFavorites(User tempUser) throws SQLException, IOException, ClassNotFoundException {
// return tempUser.getFavoritesArr();
// }... |
/*
* 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 pl.polsl.aei.io.turnieje.model.datamodel;
/**
* Id datatype pattern
*
* @author Piotr Uhl
*/
public abstract class Id {
... |
package com.ipincloud.iotbj.srv.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Date;
import java.sql.Timestamp;
import com.alibaba.fastjson.annotation.JSONField;
//(Sensorcate)传感器类型
//generate by redcloud,2020-07-24 19:59:20
public class Sensorcate implements S... |
package com.Hellel.PSoloid.homework7.MyLinkedList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
/**
* Created by otk_prog on 14.07.2015.
*/
public class MyLinkedListApp<T> {
public static void main(String[] args) {
Node elem1 = new Node("11");
Node ele... |
package be.mxs.common.util.pdf.general.oc.examinations;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import be.mxs.common.util.pdf.general.PDFGeneralBasic;
public class PDFNeuropsyOutpatientSummary extends PDFGeneralBasic {
//--- ADD CONTENT ------------------------------------... |
package com.hlx.view.play;
import com.hlx.model.Score;
import com.hlx.view.common.PositionUtil;
import com.hlx.view.common.TipLabel;
import com.hlx.view.common.TranslucentPanel;
import java.util.*;
/**
* The rank view of play frame
* @author hlx
* @version 2018-3-20
*/
public class RankPanel extend... |
package com.citibank.ods.modules.product.prodriskcatprvt.functionality.valueobject;
import com.citibank.ods.common.functionality.valueobject.BaseODSFncVO;
import com.citibank.ods.entity.pl.BaseTplProdRiskCatPrvtEntity;
/**
* @author leonardo.nakada
*
*
* Preferences - Java - Code Style - Code Templates... |
package au.gov.nsw.records.digitalarchive.search;
public class OpenGovFacet {
private String dataPublished;
private String type;
private String coverage;
private String rights;
private String agencyName;
private String content_type;
public String getDataPublished() {
return dataPublished;
... |
package com.twair;
/**
* Created by sangeeth on 02-04-2016.
*/
public enum SeatTypes {
BUSINESSCLASS("Business Class"), FIRSTCLASS("First Class"), ECONOMYCLASS("Economy Class");
private final String className;
private SeatTypes(String className)
{
this.className = className;
}
publi... |
package com.gxtc.huchuan.ui.mine.classroom.directseedingbackground.livebgsetting;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.gxtc.commlibrary.... |
package com.mpls.v2.dto;
import java.util.List;
public class IndustriesFullDto extends IndustriesShortDto {
List<BlogShortDto> blogsList;
public List<BlogShortDto> getBlogsList() {
return blogsList;
}
public IndustriesFullDto setBlogsList(List<BlogShortDto> blogsList) {
this.blogsLi... |
package mydomain.needit;
/**
* Created by Michal on 08/03/2016.
*/
public class Response {
UserLocation userLocation;
private final String responseToUser;
public String getResponseToaccessToken() {
return responseToaccessToken;
}
private final String responseToaccessToken;
public ... |
package com.xld.common.bean.ENUM;
/**
* 业务码
* @author xld
*/
public interface BusinessCode {
/**
* 获取业务错误码
* @return 错误码
*/
int getCode();
/**
* 获取业务错误信息
* @return 业务错误信息
*/
String getMessage();
}
|
package com.ak.texasholdem.winconditions;
public enum HandTypes {
HIGH_CARD(1), PAIR(2), TWO_PAIRS(3), TRIPLE(4), STRAIGHT(5), FLUSH(6), FULL_HOUSE(7), FOUR_OF_A_KIND(8),
STRAIGHT_FLUSH(9), ROYAL_FLUSH(10);
private int value;
private HandTypes(int value) {
this.value = value;
}
public int getValue() {
ret... |
package com.junzhao.shanfen.pws;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import com.junzhao.shanfen.R;
import com.... |
package ru.aggregator.object.response;
import ru.aggregator.model.Gene;
/**
* Created by user on 03.01.2015.
*/
public class GeneResponse extends AbstractResponse {
public static GeneResponse create(Gene entity) {
GeneResponse response = new GeneResponse();
response.setId(entity.getId());
... |
package br.com.ifpb.observer;
import java.util.Objects;
public class User implements Subscriber {
private String email;
public User(String email) {
this.email = email;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = emai... |
package Teatrus.persistence;
import Teatrus.model.Spectacol;
public interface IRepositorySpectacol extends IRepository<Integer, Spectacol> {
}
|
/**
* Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
* Copyright (c) 2006-2018, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ============================================... |
package BinaryTree;
/*
相同节点值的最大路径长度
687. Longest Univalue Path (Easy)
1
/ \
4 5
/ \ \
4 4 5
Output : 2
*/
public class LongestUnivaluePath {
private int path = 0;
public int longestUnivaluePath(TreeNode root) {
dfs(root);
retur... |
package vnfoss2010.smartshop.serverside.services.comment;
import java.util.List;
import java.util.Map;
import vnfoss2010.smartshop.serverside.Global;
import vnfoss2010.smartshop.serverside.database.CommentServiceImpl;
import vnfoss2010.smartshop.serverside.database.ServiceResult;
import vnfoss2010.smartshop.s... |
package com.keega.weixin.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* 我的薪酬控制器
* Created by zun.wei on 2016/12/12.
* To change this template use File|Default Setting
*... |
public class Productos{
protected String fc;
protected String nl;
} |
package com.atguigu.java;
/**
* @author shuning
* @date 2019/7/29-17:55
*/
public class Test2 {
public static final int INT = 10;
public static void main(String[] args) {
System.out.println("ss");
}
//test
public void test(){
}
/**
*
*/
private int age = 15;
... |
package com.gsccs.sme.api.domain.base;
public class CtreeGrid {
private String id;
private String text;
private String iconCls;
private String state;
private String parentId;
private String type;
private String url;
private String permission;
public String getId() {
return id;
}
public void setId(String... |
package com.freddy.mpesa.stkpush.model;
import android.util.Base64;
import com.freddy.mpesa.stkpush.Mode;
import com.freddy.mpesa.stkpush.api.RetroClient;
import com.freddy.mpesa.stkpush.api.response.STKPushResponse;
import com.freddy.mpesa.stkpush.interfaces.STKListener;
import com.freddy.mpesa.stkpush.interfaces.ST... |
package net.su.controller;
import java.text.DateFormat;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.s... |
/*
* Copyright 2002-2022 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 org.rs.utils;
import java.io.ByteArrayOutputStream;
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
im... |
package net.dark.entreprise.international.adhess.savedata.DataBase;
/**
* Created by adhess on 31/05/2018.
*/
public class Modification {
private long id;
private String url;
private String last_modification;
public Modification(long id, String url, String last_modification) {
this.id = id;... |
package com.hqzmss.strategy;
public class ConcreteStrategyTwo implements Strategy{
public void print() {
System.out.println("打印两行");
}
}
|
import java.util.*;
public interface Expression
{
public SymbolTable.TypeDesignator type (SymbolTable table);
public boolean referenceable (SymbolTable table);
interface Designator extends Expression
{
public class Variable implements Designator
{
String name;
Variable (String n)
... |
/*
* Copyright 2002-2022 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.cs240.server.service;
import dao.*;
import model.Person;
import request.PersonsRequest;
import result.PersonsResult;
import service.shared.Relatives;
import java.sql.Connection;
import java.util.ArrayList;
/***
* Uses a recursive function to get all persons who are related to said person.
*/
public cla... |
package com.programapprentice.app;
/**
* User: program-apprentice
* Date: 8/16/15
* Time: 7:04 PM
*/
/**
* 1. divident is Integer.MIN_VALUE
* 2. divisor is Integer.MIN_VALUE
* Find N such that
* divisor * 2 ^ N < dividend < divisor * 2 ^ (N + 1)
* Then
* result += 2 ^ N
* divendd -= divisor * 2 ^ N
* */
pu... |
package com.xwj.entity;
public enum Color {
RED(1,"红"),
YELLOW(2,"黄"),
BLUE(3,"蓝");
private int code;
private String name;
Color(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(in... |
package com.tindertone.tinder.dao.jdbc.mapper;
import com.tindertone.tinder.entity.*;
public class DisplayUserRowMapper {
public DisplayUser mapRow(User user, Photo photo){
DisplayUser displayUser = new DisplayUser();
displayUser.setUserId(user.getId());
displayUser.setUserDescription(use... |
package boletin75;
import javax.swing.JOptionPane;
/**
*
* @author miglezlor
*/
public class Comparacion {
public int pedirNumero(){
int num;
String res=JOptionPane.showInputDialog("Introduce un número");
num=Integer.parseInt(res);
return num;
}
public void compara... |
package com.example.tecomca.mylogin_seccion05.Activities;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Parcel;
import android.support.annotation.NonNull;
import android.support.design.widget.Navigation... |
package com.kic.app;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.... |
package ru.mcfr.oxygen.framework.operations;
import com.sun.org.apache.xml.internal.serialize.OutputFormat;
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ro.sync.ecss.extensions.api.*... |
package com.regentzu.untitledgame.bodypart.guidepart;
import com.regentzu.untitledgame.bodypart.BodyPart;
/**
* Created on 12/16/13.
*/
public abstract class Balls extends BodyPart{
protected Float width;
@Override
protected void partSetup() {
this.width = 1f;
}
public Float getWidth(... |
package com.szhrnet.taoqiapp.utils;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.net.Uri;
import android.os.Environment;
import com.jph.takephoto.app.TakePhoto;
import com.jph.takephoto.compress.CompressConfig;
import com.jph.takephoto.model.Cr... |
package com.wizered67.game.Entities;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.*;
import com.wizered67.game.Collisions.ContactData;
import com.wizered67.game.Constants;
import com.wizered67.game.EntityManager;
imp... |
package edu.asu.commons.event;
import java.io.Serializable;
import edu.asu.commons.net.Identifier;
/**
* $Id$
*
* Event marker interface, tags all semantic messages used locally within
* the event channel or transmit remotely via the Dispatcher.
*
* @author <a href='alllee@cs.indiana.edu'>Allen Lee</a>
* @v... |
/*
* 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.ut.healthelink.model;
import com.ut.healthelink.validator.NoHtml;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.pers... |
package delivery;
/**
* @메쏘드명 : DeliveryInfo
* @작성자 : jwt1029
* @작성일자 : 2019-01-30
* @설명 :
*/
public class DeliveryInfo {
private String carrierId;
private String trackId;
private Integer progressCount;
public String getCarrierId() {
return carrierId;
}
public void setCarrierId(S... |
package com.cskaoyan.bean.film;
import java.io.Serializable;
/**
* @Author: Qiu
* @Date: 2019/6/7 22:18
*/
public class FilmConditionVo implements Serializable {
private Integer catId=99;
private Integer sourceId=99;
private Integer yearId=99;
public FilmConditionVo() {
}
public FilmCondi... |
// Samuel Bermuez sa167851
// COP 3503 Summer 2018
import java.io.*;
import java.util.*;
import java.lang.Object;
import java.util.HashMap;
class knights
{
HashMap<Integer, Integer> square;
public knights (HashMap<Integer,Integer> square)
{
this.square = square;
}
public HashMap<... |
package com.davivienda.sara.tablas.tareasadminaccesousuario.servicio;
import com.davivienda.sara.base.AdministracionTablasInterface;
import com.davivienda.sara.base.BaseEntityServicio;
import com.davivienda.sara.entitys.TareasadminAccesoUsuario;
import javax.persistence.EntityManager;
/**
* EdcMultifuncionalServicio... |
package eCommerceDemos.business.concretes;
import eCommerceDemos.business.abstracts.UserInfoCheckService;
import eCommerceDemos.business.abstracts.UserService;
import eCommerceDemos.business.abstracts.ValidityCheckService;
import eCommerceDemos.core.abstracts.OuterService;
import eCommerceDemos.dataAccess.abstracts.Us... |
package net.mv.grub;
import net.mv.flatware.Plate;
public class Steak implements Food {
private Plate paperPlate;
private int size;
public Steak(int size){
this.size = size;
}
public void setPaperPlate(Plate paperPlate){
this.paperPlate = paperPlate;
}
@Override
public void getEaten() {
System.ou... |
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;
public class ERSimulator {
private PriorityQueue patientList1;
private PriorityQueue patientList2;
private PriorityQueue roomList;
private LocalDateTime endTime;
publi... |
package com.share.myview2;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import and... |
package com.trump.auction.cust.controller;
import com.trump.auction.cust.model.UserInfoModel;
import com.trump.auction.cust.service.UserInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Requ... |
package org.study.schedule;
import java.util.List;
import org.study.admin.ScheduleVO;
public interface ScheduleService {
public List<ScheduleVO> reserveSelectDay() throws Exception;
public List<ScheduleVO> reserveSelectTime(String movie_code, String cinema_code, String day) throws Exception;
public ScheduleVO res... |
package syifa.app.portalti16.entity;
import java.io.Serializable;
/**
* Created by USER on 26/11/2018.
*/
public class Mahasiswa implements Serializable {
private int id;
private String name;
private String nim;
public Mahasiswa(String name, String nim) {
this.name = n... |
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
private static HashMap<String,Integer> makeHash(String str)
{
HashMap<String, Integer> hashMap = new HashMap<>();
String[] split = str.split("|");
for (String s:split)
{
i... |
package tal.com.orders.converters;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import tal.com.orders.entities.PaymentMethod;
@Converter(autoApply = true)
public class PaymentMethodConverter implements AttributeConverter<PaymentMethod , String > {
@Override
public String conver... |
package hu.gyabraham.wlspringboot;
import hu.gyorgyabraham.RequestStructure;
import hu.gyorgyabraham.ResponseStructure;
import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.Reque... |
public class DishTest {
// Create another class called DishTest
// Add a main method and inside the method...
// 1) instantiate a Dish object and assign to a variable called dish1
// 2) assign creative values for each of the properties
// 3) test the printSummary() method by invoking it a... |
package br.com.douglastuiuiu.biometricengine.integration.creddefense.dto.response.pooling;
import java.io.Serializable;
/**
* @author douglas
* @since 31/03/2017
*/
public class PoolingCol1CreditRequestDTO implements Serializable {
private static final long serialVersionUID = -3557139308923109045L;
priva... |
package chatClient.ListOnlineUI;
import dependencies.lib.UserBean;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class ListOnlineController {
ListOnlineModel model;
ListOnlineView view;
private UserBean user;
public ListOnlineController(UserBean user) {
this.us... |
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
class Demo extends JFrame
{
public Demo(Object row[][])
{
Container c=getContentPane();
c.setLayout(new BorderLayout()) ;
Object cols[]={"Prodid","Product","CP","Discount","SP"};
JTable tab=new JTable(row,col... |
/*
* Copyright 2002-2020 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.pronix.android.apssaataudit;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.vi... |
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package edu.psu.cse.siis.ic3;
import edu.psu.cse.siis.coal.arguments.Argument;
import edu.psu.cse.siis.coal.arguments.ArgumentValueAnalysis;
import edu.psu.cse.siis.coal.arguments.ArgumentValueManager;
import edu.... |
package templateMethod;
/**
* Date: 2019/3/4
* Created by LiuJian
*
* @author LiuJian
*/
class WindowsComputer extends Computer {
@Override
protected void computeWithSoft() {
System.out.println("compute with soft B");
}
@Override
protected void loadOperateSystem() {
System.ou... |
package de.varylab.discreteconformal.functional.node;
import de.jtem.halfedge.Face;
public class ConformalFace <
V extends ConformalVertex<V, E, F>,
E extends ConformalEdge<V, E, F>,
F extends ConformalFace<V, E, F>
> extends Face<V, E, F> {
private double
initialEnergy = 0.0;
public double getI... |
package br.edu.ifpb.tsi.pdm.pdmproject.model;
import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Calendar;
@SuppressLint("SimpleDateFormat")
public class Tarefa {
private int id;
private Atividade atividade;
private Disciplina disciplina;
private Calendar dataHora;
privat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.