text stringlengths 10 2.72M |
|---|
package com.vipvideo.ui.adpter;
import android.view.View;
import android.widget.TextView;
import com.lixh.base.adapter.VBaseHolder;
import com.vipvideo.R;
import com.vipvideo.bean.MovieTypeBean;
import butterknife.Bind;
/**
* Created by Moushao on 2017/8/30.
*/
public class TopCondHolder extends VBaseHolder<Movi... |
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
in... |
package com.team3.bra;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Vector;
/**
* This class is for an object representing an Order.
*
*/
public class Order implements Serializable {
private static final long serialVersionUI... |
package uz.pdp.appcodingbat.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import uz.pdp.appcodingbat.entity.Language;
import uz.pdp.appcodingbat.payload.LanguageDto;
import uz.pdp.appcodingbat.payload.Result;
import uz.pdp.appcodingbat.repository... |
import java.io.*;
import java.lang.*;
import java.util.*;
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// #include<stdbool.h>
// /*
# Author : @RAJ009F
# Topic or Type : GFG/Array
# Problem Statement : Non Repeating Numbers
# Description :
# Complexity :
=======================
#sample o... |
package com.example.calendar.entities;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class EventEntity {
@Id
@Gene... |
package com.foda.campus.ui.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import com.foda.campus.R;
import com.foda.campus.view.EndOfListView;
import com.lemon.aklib.adapter.BaseAdapt... |
/*
* Copyright (c) 2015, Idibon, Inc.
*/
package com.idibon.api.model;
import java.util.Date;
import java.util.UUID;
import java.util.Collections;
import org.junit.*;
import javax.json.*;
import java.io.StringReader;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
public class AnnotationB... |
package tests.Google;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
/**
* Created by user on 02.01.17.
*/
public class HomePage {
private ChromeDriver driver;
public HomePage(ChromeDriver driver) {
this.driver = driver;
}
public ResultPage search(String s) {... |
package org.artifact.base.util;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* Json返回结果封装类,带有主动过滤Json属性功能
* <p>
* 日期:2015年8月25日
*
* @version 0.1
* @author Netbug
*/
public class JsonResult {
public final static int SUCCESS = 0;
public final static int ERR... |
/*
* 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 Generic;
/**
*
* @author YNZ
*/
class Book{
}
class Phone{
}
//parcel of T
class Parcel<T... |
// **********************************************************
// 1. 제 목: 상담 관리
// 2. 프로그램명 : CounselAdminBean.java
// 3. 개 요: 상담 관리
// 4. 환 경: JDK 1.3
// 5. 버 젼: 1.0
// 6. 작 성: 2003. 7. 13
// 7. 수 정:
// **********************************************************
package com.ziaan.... |
package ar.gob.ambiente.servicios.especiesforestales.entidades;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
imp... |
/*
* Copyright 2003 The Apache Software Foundation
*
* 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 appli... |
package Tutorial.P3_ActorTool.S1_ActorRefSelection;
import akka.actor.*;
import akka.event.Logging;
import akka.event.LoggingAdapter;
/**
* Created by greenlucky on 6/4/17.
*/
public class WatcherActor extends UntypedActor{
private LoggingAdapter log = Logging.getLogger(getContext().system(), this);
priv... |
package oasispv.pv;
/**
* Created by Usuario on 01/12/2016.
*/
public class datoscomanda {
public String prdesc;
public int cantidad;
public int comensal;
public int tiempo;
public int idpr;
public float precio;
public String nota;
public datoscomanda(String prdesc, Integer cantidad... |
package com.esum.comp.smail.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import javax.mail.Message;
import javax.mail.MessagingException;
import org.apache.commons.io.IOUtils;
public class SMailUtil {
public static byte[] getRawData(Message message) throws MessagingException, IOExcepti... |
package com.zzt.panorama.cg;
import android.graphics.Bitmap;
import android.opengl.GLES20;
import android.opengl.GLUtils;
import android.support.annotation.NonNull;
import com.zzt.panorama.util.LogHelper;
/**
* Created by Android_ZzT on 2018/9/6.
*/
public class Texture {
private static final String TAG = Textur... |
/*
* Created on 06/10/2008
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.citibank.ods.modules.general.centrapproval.functionality;
import java.math.BigInteger;
import org.apache.struts.action.ActionForm;
... |
package controller;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
//import Service.EventIterator;
import Service.EventService;
import Service.Implemantation.EventIteratorImpl;
import Service.Implemantation.EventServiceImpl;
import model.Event;
public class EventController extends Thre... |
package com.twu.biblioteca.input;
public interface IUserInput {
String nextLine();
int nextInt();
}
|
package com.infybuzz.feignclients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.infybuzz.response.AddressResponse;
@FeignClient(
// url = "${address.service.url}",
value =... |
package com.mubir.carservice.services.inventory;
import com.mubir.carservice.services.inventory.model.CarInventoryDto;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
... |
package myGame.entity.gameTile;
public class Spawner {
}
|
package com.iaaa.morestairsmod;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.init.Blocks;
//import net.minecraftforge.client.model.ModelLoader;
import net.minecraf... |
package cn.v5cn.v5cms.dao;
import cn.v5cn.v5cms.entity.Comments;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
/**
* Created by ZXF-PC1 on 2015/7/28.
*/
@Repository
public inter... |
package vnfoss2010.smartshop.serverside.services.parser.vatgia.dom;
import java.util.ArrayList;
import java.util.List;
public class Group {
public String name;
public List<Pair> listAtt = new ArrayList<Pair>();
public Group(String name) {
this.name = name;
}
public Group() {
}
@Override
... |
/*
* 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 pak;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.... |
package test;
import java.util.Scanner;
public class Armstrong {
public static void main (String[] args){
int a=0,b,c,d;
Scanner s=new Scanner(System.in);
System.out.println("Enter any num:");
d=s.nextInt();
c=d;
while(d>0){
b=d%10;
d=d/10;
a=a+(b*b*b);
}
if(c==a){
System.out... |
package AStarSearch.tiles;
import AStarSearch.WorldState;
import AStarSearch.Tile;
import javax.swing.*;
import java.awt.*;
/**
* intialPendantQty -> quantidade de pingentes no jogo
* pendantImage -> classe para guardar a imagem do pingente
*/
public class PendantTile extends Tile {
public static int initial... |
package matthbo.mods.darkworld.block;
import matthbo.mods.darkworld.creativetab.CreativeTabDarkWorld;
import matthbo.mods.darkworld.init.ModBlocks;
import matthbo.mods.darkworld.reference.Refs;
import net.minecraft.block.Block;
import net.minecraft.block.BlockBush;
import net.minecraft.block.material.Material;
import ... |
//accept a numbar calculate and display sum of degit
import java.util.*;
public class sum_d_foor_loop
{
public static void main(String args[])
{
Scanner x=new Scanner(System.in);
System.out.print("Enter a number:-");
int num=x.nextInt();
int sum=0;
for(int d=0;num>0;d++)
{
d=num%10;
sum=su... |
/**
* Copyright 2017 伊永飞
*
* 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 ... |
package com.order.dao;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupp... |
package com.bignerdranch.android.myapplication;
/**
* Created by Dad on 6/19/2017.
*/
public class Butter {
}
|
package com.metoo.manage.buyer.action;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annot... |
package com.pky.smartselling;
import com.pky.smartselling.domain.company.Company;
import com.pky.smartselling.domain.company.CompanyStatus;
import com.pky.smartselling.domain.employee.Employee;
import com.pky.smartselling.domain.employee.EmployeeActiveStatus;
import com.pky.smartselling.domain.employee.EmployeeType;
i... |
package rs.java.textreader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import rs.java.textreader.service.TextReader;
import rs.java.textreader.service.TextWriter;
import java.io.FileWriter;
import java.io.IOException;
@SpringBootApplication... |
package com.ipincloud.iotbj.srv.service;
import com.ipincloud.iotbj.srv.domain.Org;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
//(Iotbj) 服务接口
//generate by redcloud,2020-07-24 19:59:20
public interface OrgService {
//@param id 主键
//@return 实例对象Org
Org queryById(Lo... |
public class RemoveThread implements Runnable {
private World world;
public RemoveThread(World world) {
this.world = world;
}
@Override
public void run() {
int i = 0;
while(true) {
try {
Thread.sleep(3000);
try {
System.out.println("Watek:" + " " + Thread.currentThread().getNam... |
package com.xld.common.bean.ENUM;
/**
* http status枚举类
* @author xld
*/
public enum HttpStatusEnum implements HttpStatusHandler {
SUCCESS(200, 1, "操作成功"),
SUCCESS_POST(201, 1, "操作成功"),
SUCCESS_DELETE(204, 1, "操作成功"),
PARAMTER_ERROE(400, 3, "参数错误"),
ROLE_ERROE(401, 6, "无权限访问"),
SESSION_ERROR... |
import java.lang.reflect.Method;
class prvtmthd{
private void square(int n){
System.out.println(n*n);
}
}
public class callprivtmthdwithparamtr {
public static void main(String args[]) throws Exception{
Class o=Class.forName("prvtmthd");
prvtmthd obj = ne... |
package etc;
public interface Binterface {
public void m();
}
|
package de.kfs.db.events;
public class ConfirmAddEvent {
}
|
package com.scottagarman.android.helios.api.hueapi.models;
/**
* Created by scottagarman on 7/12/13.
*/
public class HueBridgeModel {
private String id;
private String internalipaddress;
private String macaddress;
public String getId() {
return id;
}
public String getInternalipaddre... |
package com.designurway.idlidosa.a.adapters;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.No... |
package br.com.zolp.estudozolp.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* Classe responsável pelo mapeamento da entidade TbGravidadeInsonia.
*
* @author mamede
* @version 0.0.1-SNAPSHOT
*/
@Entity
@Table(name = "TbGravidadeInsonia")
public class Tb... |
package Loops;
public class For {
public static void main(String[] args) {
for (int i = 0; i <= 10; i+=2){ // S shagom 2
System.out.println(i);
}
// i ne dostupen za predelami tsikla
//vivesti chisla ot 1000 do 0 kotorie deliatsia na 3 bez ostatka
for (int i = ... |
package com.lenovohit.hcp.card.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lenovohit.hcp.base.annotation.RedisSequence;
import com.lenovohit.hcp.base.model.HcpBaseModel;
@Entity
@Table(name = "B_PATIENT... |
package com.syntax.class03;
public class TemperatureCheck {
public static void main(String[] args) {
int temp = 32;
if(temp < 32) {
System.out.println("Water will freeze with with teperatire less..");
}else {
System.out.println("Watre will not freeze with temperature....");
}
Syste... |
import checkmethod.checkMethods;
import org.testng.Assert;
import org.testng.annotations.Test;
@Test
public class LoginTest extends SetUp implements checkMethods {
// @Override
// public void setUp() {
// super.setUp();
// }
// public void IsEmptyFields() {
// LoginPage loginPage = main... |
// **********************************************************
// 1. 제 목: COMPLETE STATUS DATA
// 2. 프로그램명: CompleteStatusData.java
// 3. 개 요: 수료 현황 관리자 data bean
// 4. 환 경: JDK 1.3
// 5. 버 젼: 1.0
// 6. 작 성: 박진희 2003. 8. 21
// 7. 수 정:
// **********************************************... |
/*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
/*
* 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 pelatihan.java.project.uts.dao.impl;
import java.util.List;
import org.hibernate.Query;
import pelatihan.java.project.uts.dao.... |
package com.cg.demo.multi;
public class ThreadDemo extends Thread {
public static void main(String[] args) throws Exception {
Thread ob2 = new Thread (new ThreadDemo());
ob2.start();
System.out.println("m "+ ob2.isAlive());
}
public void run() {
Thread obj = Thread.currentThread();
System.out.println... |
import java.util.Iterator;
import java.util.Hashtable;
public class TorteriaDan implements Menu{
Hashtable menuItems = new Hashtable();
public TorteriaDan(){
addItem();
}
public void addItem(){
for(int i=0;i<13;i++){
Ingrediente menuItem = new Ingrediente(i);
menuItems.put(menuItem.getNombre()... |
package com.taimoor.mapstruct.mapper;
import com.taimoor.mapstruct.dto.PatientDto;
import com.taimoor.mapstruct.model.Patient;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
/**
* @author Taimoor Choudhary
*/
@Mapper(componentModel = "spring")
public int... |
package com.arrays;
import java.util.Arrays;
public class ThreeSumClosest {
public int closest(int[] num , int target){
if(num == null || num.length==0) return 0;
int min = Integer.MAX_VALUE;
int result = 0;
int length = num.length;
Arrays.sort(num);
for(int i=0;i<length;i++) {
int j... |
package org.xitikit.examples.java.mysql.logwatch.simple;
import java.util.ArrayList;
import java.util.List;
public final class BlockedIpv4Validator{
public static void validateBlockedIpv4Insert(BlockedIpv4 blockedIpv4){
List<String> errors = new ArrayList<>();
if(blockedIpv4 == null){
... |
package edu.mit.cci.wikipedia.vizservlet;
import edu.mit.cci.wikipedia.collector.GetRevisions;
import edu.mit.cci.wikipedia.util.MapSorter;
import edu.mit.cci.wikipedia.util.NetworkGenerator;
import edu.mit.cci.wikipedia.util.Processing;
import edu.mit.cci.wikipedia.vizservlet.PMF;
import java.io.IOException;
import ... |
/*
* 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 dequeproject;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
import java.util.Iterator;
/**
*
*... |
package au.com.uiautomation.PageObjects;
import au.com.uiautomation.BaseConfig;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
public class HomePageObjects extends BaseConfig {
private static WebElement element = null;
public static WebElement signin_button()
{
element = driver.find... |
package pt.ua.cm.bestwave.ui.profile;
import android.location.Address;
import android.location.Geocoder;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RatingBar;
impor... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package LoloModel;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.io.IOException;
import Auxiliar.Consts;
import Auxiliar.Posicao;
/**
*
* @author Junio
*/
public abstract cl... |
package com.performance.optimization.design.decorator;
import org.junit.Test;
/**
* 装饰者测试
* @author qiaolin
*
*/
public class DecoratorTest {
/**
* 将装饰者和被装饰者组装在一起
*/
@Test
public void test(){
IPacketCreator component = new PacketHTTPHeaderCreator(
new PacketHTMLHeaderCreator(new PacketBodyCreator()... |
package com.auro.scholr.home.presentation.view.adapter;
import android.content.Context;
import android.graphics.PorterDuff;
import android.os.Handler;
import android.os.Looper;
import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... |
package ru.job4j.list;
import java.util.ListIterator;
import java.util.NoSuchElementException;
/**
* Класс SimpleLinkedList реализует сущность Связный список.
*
* @param <E> параметризированный тип.
* @author Gureyev Ilya (mailto:ill-jah@yandex.ru)
* @version 1
* @since 2017-05-26
*/
class SimpleLinkedList<E> e... |
/*
Copyright (C) 2013-2014, Securifera, 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:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and... |
package ffm.slc.model.enums;
/**
* The type of email listed for an individual or organization.
*/
public enum ElectronicMailAddressType {
HOME_PERSONAL("Home/Personal"),
ORGANIZATION("Organization"),
OTHER("Other"),
WORK("Work");
private String prettyName;
ElectronicMailAddressType(String prettyName) {
thi... |
package architecture.dto;
import architecture.entity.Board;
import architecture.util.DateUtil;
public class BoardDTO{
//
private String id; //key : boardId(clubId)
private String name; //alternative key
private String adminEmail;
private String foundationDay;
private BoardDTO(){
//
... |
/*
* 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.victuxbb.javatest.security.service;
import com.victuxbb.javatest.model.user.User;
import com.victuxbb.javatest.security.to... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity;
import pl.edu.icm.unity.exceptions.InternalException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
imp... |
package com.example.android.musicalstructure.ui.models;
import java.io.Serializable;
public class Song implements Serializable {
private String name;
private int duration;
private String mediaFile;
public Song(String name, int duration) {
this.name = name;
this.duration = duration;
... |
package projetos.testes;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import cdp.exception.DataException;
import cdp.exception.ValidacaoException;
import cdp.factorys.FactoryDeProjeto;
import cdp.projetos.CategoriaPED;
import cdp.projetos.Extensao;
import cdp.projetos.ImpactoSoci... |
package com.suven.frame.server.controller;
import com.suven.frame.server.data.vo.ResponseResultVO;
import com.suven.frame.server.exception.SysMsgEnumType;
import com.suven.frame.server.handler.OutputMessage;
import com.suven.frame.server.handler.ResponseJson;
import org.springframework.stereotype.Controller;
import o... |
package com.lize.redis.service;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
/**
* redis连接池
*/
public class RedisPool {
//Redis服务器IP
private static String ADDR = "127.0.0.1";
//Redis的端口号
private static int PORT = 6379;
// //访... |
package com.project.android.app.kys.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.project.android.app.kys.R;
import com.project.android.app.kys.busine... |
package org.antran.saletax.internal;
import java.math.BigDecimal;
import java.math.RoundingMode;
import org.junit.Test;
public class BigDecimalTest
{
@Test
public void test()
{
BigDecimal num1 = new BigDecimal("10.00");
BigDecimal num2 = new BigDecimal(2);
BigDecimal ... |
package info.pomisna.OrthodoxCalendar;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum CalendarEvent {
CHRISTMAS(12, 25),
EPIPHANY(1, 6);
int month;
int day;
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DAO;
import Bean.Venue;
import Utility.DBConn;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author mengqwang
*/
public class VenueDAO {
public void setVenueObj(Venue sv) throws SQLEx... |
package com.controller;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework... |
package algo6003.temp;
public class IntStack {
int [] stack;
int top = 0;
public IntStack(){
stack = new int [4];
}
public boolean isEmpty(){
return top == 0;
}
public void push(int i){
if(top == stack.length){
resize(stack.length*2);
}
... |
package com.example.shufflewordapp;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.fragment.app.Fragment;
public class IncorrectFragment extends Fragment {
private Button mButton;
... |
/*
* Класс: org.sheart.mpanzer.particle.Particle
* Описание:
* Класс является родителем для всех классов частиц, игровых объектов, ис-
* пользуемых для повышения визуального качества проекта. Частицы, возник-
* шие за пределами поля зрения игрока, мгновенно удаляются. Это свойство
* не позво... |
package coolc.codegenerator;
public class ConstantStringCode
{
private static int _count = 0;
private String _text;
private int _number;
private int _lenght;
private String _getType;
public ConstantStringCode(String text)
{
this._text = text.replace("\n", "\\0A").replace("\f", "\\0C").replace("\t", "\\09").... |
package com.javarush.task.task14.task1419;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
/*
Нашествие исключений
*/
public class Solution {
public static List<Exception> exceptions = new ArrayList<Exception>();
public static void main(String[] args) {
initExceptions();
... |
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
public class JsonSerializer {
private static String getSerializedKey(Field field) {
String annotationValue = field.getAnnotation(JsonField.class).value();
if (annotationValue.isEmpty()) {
return field.getN... |
package demo;
import java.awt.Toolkit;
import java.util.Scanner;
public class Timer {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("How many hrs do you want to set? ");
long periodInMilisec = input.nextLong()*60*60*1000;
System.out.println("How ... |
package com.mohit.customercrudgradle.controllers;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
... |
/**
* @Author: 吴硕涵
* @Date: 2019/1/5 1:16 PM
* @Version 1.0
*/
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
imp... |
package common.android.log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class LogReader {
public static LogList read(long after, String tag, String pattern) throws IOExc... |
package models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
/**
* Created by greenlucky on 6/3/17.
*/
@Entity
public class Book {
@Id
@GeneratedValue(strategy = G... |
package main.qkj.text;
import java.util.Date;
import java.util.List;
public class BeanOfBean {
private Integer uuid;
private String beanAuthor;//作者
private String namespace;//命名空间
private Date beanCreateTime;
private String beanPackage;//文件路径前缀如com.qkj.adm.action 只需要写com.qkj.adm即可
private List<SonBea... |
package hu.lamsoft.hms.common.persistence.customer.entity;
import java.util.Date;
import javax.persistence.Entity;
import hu.lamsoft.hms.common.persistence.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Entity
@Data
@EqualsAndHashCode(callSuper=true)
public class Customer extends BaseEntit... |
package com.legaoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
/**
* @author <a href="mailto:shengbo.gao@gmail.com;78772895@qq.c... |
/**
* Copyright 2014 零志愿工作室 (http://www.0will.com). All rights reserved.
* File Name: BaseEntity.java
* Author: chenlong
* Encoding UTF-8
* Version: 1.0
* Date: 2014年12月4日
* History:
*/
package com.Owill.web.system.entity;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persisten... |
package web.id.azammukhtar.subico.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;... |
package edu.mycourses.util;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Utils {
public static final String BASE_PATH = "/edu/mycourses/st";
public static final String UF_BASE_PATH = "/edu/mycourses/uf/";
public static int[] re... |
package com.deepakm.puzzles.sudoku.solver;
/**
* Created by dmarathe on 1/21/16.
*/
public interface SudokuSolver {
public boolean solve();
}
|
package com.c4wrd.loadtester.configuration;
import com.c4wrd.loadtester.exceptions.HighLoadException;
import com.c4wrd.loadtester.request.Endpoint;
import com.c4wrd.loadtester.request.QueryCombination;
import com.c4wrd.loadtester.request.QueryParameter;
import com.typesafe.config.*;
import java.util.HashMap;
import j... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.