text
stringlengths
10
2.72M
package com.liferay.mobile.screens.messageboardscreenlet.view; import com.liferay.mobile.screens.base.list.view.BaseListViewModel; /** * Created by darshan on 6/8/15. */ public interface MyListViewModel<E> extends BaseListViewModel<E> { void setListCount(int totalCount); void setAdapter(String adapterClas...
package com.cpz.Demo04; import java.util.ArrayList; public class Mymain { public static void main(String[] args) { Manger manger=new Manger("群主",1000); Member one= new Member("成员A",0); Member two= new Member("成员B",0); Member there= new Member("成员C",0); manger.show(); ...
package com.tirthal.learning; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import static org.junit.Asse...
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 luma <stubma@163.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 2 of the License, or * (at your option) any lat...
package com.github.emailtohl.integration.core.user.entities; public enum Gender { MALE, FEMALE, UNSPECIFIED }
package com.polyvelo.servlets; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java...
package searching; public class ThePaintersPartition { public static void main(String[] args) { int arr[] = { 5, 10, 30, 20, 15 }; int k = 3; int n = 5; System.out.println(midTime(arr, n, k)); } static int midTime(int arr[], int n, int k) { int low = 0; int high = 1; for (int e : arr) { low = Mat...
package test3.suiteEx; import org.testng.annotations.Test; public class Test3 { @Test public void t3_1() { System.out.println("t3"); } }
/* * Copyright (C) 2014 - 2015 Marko Salmela, http://fuusio.org * * 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 ...
package domain; import java.util.Collection; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.validation.Valid; import javax.validation.constrai...
package com.usnoozeulose.app.alarm.alert; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.Ova...
package com.example.shopping.repository; import com.example.shopping.entity.Product; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.repository.history.RevisionRepository; import org.springframework.stereotype.Repository; @Repository public interface ProductRepository ex...
/* * 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 MapaeoBD; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import ja...
package GUI_Components; import javax.imageio.ImageIO; import javax.swing.*; import javax.swing.table.DefaultTableCellRenderer; import java.awt.*; import java.io.File; import java.io.IOException; /** * BEGEOT_BUNOUF_CustomJFrame is extending the JFrame class * It contains various optimized prefabs for creating a ...
package tree; import javax.net.ssl.CertPathTrustManagerParameters; import java.util.Collections; /** * Create by coldwarm on 2018/9/19. * java实现单链表 */ public class SingleLinkedList { private Node head; private Node current; private int size; public SingleLinkedList(){ head = current =new ...
package pages; import driversConfig.DriverManager; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import net.serenitybdd.core.annotations.findby.FindBy; import net.serenitybdd.core.pages.WebElementFacade; @Getter @Slf4j public class RegistrationPage extends BasePage{ @FindBy(css = ".header__menu-link") ...
package Poker; public class Card { public String color; public String Csize; public Card(String color, String csize) { this.color = color; Csize = csize; } @Override public String toString() { return "(" + color + Csize +")" ; } }
package com.leepc.chat; import com.leepc.chat.service.MessageService; import com.leepc.chat.util.Constant; import com.leepc.chat.util.TokenUtils; import io.jsonwebtoken.Claims; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context...
/* Copyright (C) 2009, Bioingenium Research Group http://www.bioingenium.unal.edu.co Author: Alexander Pinzon Fernandez JNukak3D 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 2 of the...
package com.example.ta; import android.Manifest; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.fr...
package util; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Set; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import javax.face...
package jour29; import java.io.FileInputStream; import java.io.FileNotFoundException; public class Exception2 { public static void main(String[] args) { // C/ Yeni dosyayi programa ekleyiniz //FileNotFoundException ve ArithmeticException hatalari var try { FileInputStream ekle =new FileInputStream("C/")...
package com.kdgm.webservice; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * ...
//import org.apache.log4j.BasicConfigurator; import org.apache.thrift.server.TServer; import org.apache.thrift.server.TThreadPoolServer; import org.apache.thrift.transport.TServerSocket; import org.apache.thrift.transport.TServerTransport; import org.apache.thrift.transport.TTransportException; public class Bra...
package backjoon.graph; import java.io.*; import java.util.*; public class Backjoon16234 { static class Index{ int row, col; public Index (int row, int col){ this.row = row; this.col = col; } } static BufferedReader br = new BufferedReader(new InputStreamRe...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
package ba.bitcamp.LabS09D05.generics; import java.util.Collection; /** * Class ArrayList of Integers * * @author nermingraca * */ public class ArrayList<T> { private T[] array; private int size; private final int DEFAULT_SIZE = 1; /** * Constructor of object ArrayListInt, set to default values */ ...
import javax.swing.*; import java.awt.*; public class FirstView extends JPanel { private DefaultListModel<Student> listModel; private JList<Student> list; private StudentContainer container; FirstView(StudentContainer container) { this.container = container; listModel = new DefaultLis...
package com.ssgl.controller; import com.ssgl.service.FacultyService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /* * 功能: *...
package com.sharpower.action; import com.opensymphony.xwork2.ActionSupport; import com.sharpower.entity.Fun; import com.sharpower.fun.control.FunControl; import com.sharpower.scada.exception.PlcException; public class AjaxFunControlAction extends ActionSupport{ private static final long serialVersionUID = 1L; priv...
package com.trushil.aopdemo; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereotype.Component; @Aspect @Component public class MyDemoLoggingAspect { @Pointcut("execution(* com.trushil.aopdemo.*.*(..))")...
/* * Copyright (c) 2011, 2020, Frank Jiang and/or its affiliates. All rights * reserved. ParameterCSVC.java is PROPRIETARY/CONFIDENTIAL built in 2013. Use * is subject to license terms. */ package com.frank.svm.config; import java.util.Map.Entry; import libsvm.svm_parameter; import com.frank.math.Spar...
package org.codeshifts.spring.batch.reader.csv.person.accessor; import org.codeshifts.spring.batch.reader.csv.person.PersonReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.batch.core.configuration.annotation.StepScope; import org.springframework.batch.item.file.mapping.Defaul...
package com.dev.hotelBiling; public interface HotelInterface { public HotelBill delete(int itemCode); public HotelBill add(HotelBill h); public String update(String foodName); public double priceTotal(int foodItem, int count); }
package kr.highthon.common.api; import lombok.Getter; import lombok.NoArgsConstructor; @Getter public class Error { private String fieldName; private String message; public Error(String fieldName, String message) { this.fieldName = fieldName; this.message = message; } }
package ull.patrones.estrategia; import ull.patrones.auxilares.Fecha; public interface IEvento extends Runnable { public long getIdTipoEvento(); public Fecha getFecha(); public void start(); }
package com.gauro.rabbitmqfanoutexchangeconsumer; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class RabbitmqFanoutExchangeConsumerApplicationTests { @Test void contextLoads() { } }
package com.zjh.design; import com.zjh.design.store.ICommodity; import com.zjh.design.store.impl.CouponCommodityService; import com.zjh.design.store.impl.PhoneCommodityService; import com.zjh.design.store.impl.ShoppingCardCommodityService; /** * @author : zhaojh * @date : 2020/12/7 14:56 * @description : */ publi...
package com.ziroom.service; import com.ziroom.dao.LogDAO; import com.ziroom.entity.LogEntity; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Tr...
import java.util.Scanner; public class struct_array { static int g_num; static String g_name; static String g_type; int num; String name; String type; public static boolean Search(String sc) { //Scanner sc1 = new Scanner(System.in); boolean flag = true; int k = 0; struct_array...
package com.example.duy.thread_asyntask_handler; import android.app.Activity; import android.os.AsyncTask; import android.os.SystemClock; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; /** * Created by duy on 29/05/2017. */ public class...
package br.com.cc.varzeafc.controllers; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.security.core.A...
package WebBot; import java.io.Serializable; public class Account implements Serializable { public String getName() { return name; } public void setName(String name) { this.name = name; } public int getTime() { return time; } public void setTime(int time) { this.time = time; } private String name; p...
package ac.kr.ajou.dirt; class DirtySample { Item[] items; public DirtySample(Item[] items) { this.items = items; } public void updateQuality() { for (Item item : items) { if (!item.name.equals("Sulfuras, Hand of Ragnaros")) { item.sellIn -= 1; } if (item.name.equals("Age...
package com.accp.domain; public class Staff { private String sid; private String sname; private String ssex; private Integer shpid; private Integer detid; private String susername; private Integer stnid; private String sbody; private String sheight; private String snati...
package mando.sirius.bot.commands.discord.habbo; import com.eu.habbo.Emulator; import mando.sirius.bot.Sirius; import mando.sirius.bot.structures.Command; import mando.sirius.bot.structures.SiriusUser; import net.dv8tion.jda.api.entities.Message; import javax.annotation.Nonnull; import javax.annotation.Nullable; pub...
/* * Copyright 2009 Kjetil Valstadsve * * 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 agre...
package com.voksel.electric.pc.security; import com.voksel.electric.pc.component.MenuTreeItem; import com.voksel.electric.pc.domain.entity.Role; import org.springframework.security.core.userdetails.UserDetailsService; import java.util.Collection; public interface AuthenticationService extends UserDetailsService{ ...
import java.util.Arrays; import java.util.Scanner; public class Random23 { public static int findMinWeight(int[] arr, int k) { int all = 0; int n = arr.length; int sum = 0; for(int i=0;i<n;i++) { all+=arr[i]; } Arrays.sort(arr); k = Mat...
package com.weigs.singleton; /** * @author weigs * @date 2017/7/1 0001 */ public class SingleObjectTest { public static void main(String[] args) { SingleObject singleObject1 = SingleObject.getSingleObject(); SingleObject singleObject2 = SingleObject.getSingleObject(); if (singleObject1 =...
package com.tencent.mm.plugin.emoji.f; import com.tencent.map.lib.gl.model.GLIcon; import com.tencent.mm.ab.b; import com.tencent.mm.ab.b.a; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.network.k; import com.tencent.mm.network.q; import com.tencent.mm.plugin.emoji.model.i; import com.t...
package com.example.raghav.multilibrariesproject.mvp; /** * Created by raghav on 9/26/16. */ public interface IEmployeeDetailInteractor { void getEmployeeDetais(); void setPresenter(IEmployeePresenter employeePresenter); }
package com.stem.entity; public class TigerOpt { private Integer id; private String optName; private String optCode; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getOptName() { return o...
package com.openclassrooms.KatzenheimLibrariesApp.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.Authentication; import org.springframework.security.core.userdetails.UserDetails; import org.spr...
package com.app.main.dto; 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; import javax.persistence.Id; import javax...
// Tests that incompatible variable assigns in functions error. int main() { return 0; } int f(IncompatClassFuncParamAssignClass1 a) { a = new IncompatClassFuncParamAssignClass2(); return 0; } class IncompatClassFuncParamAssignClass1 { } class IncompatClassFuncParamAssignClass2 { }
/** * Bitcoind * The REST API can be enabled with the `-rest` option. The interface runs on the same port as the JSON-RPC interface, by default port `8332` for **mainnet**, port `18332` for **testnet**, and port `18443` for **regtest**. * * OpenAPI spec version: 0.16 * Contact: johan@lepetitbloc.net * * NOTE: Th...
package petko.osm.model.facade; import java.util.List; public interface OsmDataStore { public List<OsmNode> getNodes(); public List<OsmRelation> getRelations(); public List<OsmWay> getWays(); }
package com.tencent.mm.model; import java.util.List; public interface ai { List<ah> getDataTransferList(); }
package enthu_l; public class e_1099 { public static void main(String args[]){ int x = 0; labelA: for (int i=10; i<0; i--){ int j = 0; labelB: while (j < 10){ if (j > i) break labelB; if (i == j){ x++; continue l...
package com.caicai.dao; import com.caicai.model.User; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface UserDao { Integer createUser(User user); User getUserById(@Param("id") Integer id); }
package com.gotkx.utils.bubbleSort; public class bubbleSortImp { public static void main(String[] args) { int[] nums = {1, 9, 5, 7, 9, 2, 10, 14, 8, 77, 66, 99}; long startTime = System.currentTimeMillis(); bubbleSort(nums); long endTime = System.currentTimeMillis(); //Sy...
package cn.czfshine.network.project.cs.dto; import lombok.Data; import java.io.Serializable; /**登出消息 * @author:czfshine * @date:2019/4/4 13:57 */ @Data public class Logout implements Serializable { private String username; }
package com.sneaker.mall.api.task.impl; import com.google.common.base.Strings; import com.sneaker.mall.api.dao.info.GeoLocationDao; import com.sneaker.mall.api.model.GeoLocation; import com.sneaker.mall.api.task.Task; import com.sneaker.mall.api.util.BaiduLocationUtil; import com.sneaker.mall.api.util.Gps2BaiDu; impor...
package com.zjm.design.d16_iterator; public class ListCollection implements CollectionTest { public String string[] = {"A","B","C","D","E"}; @Override public ItratorTest iterator() { return new ListIterator(this); } @Override public Object get(int i) { return string[i]; } @Override p...
package com.witt.norm; /** * * 见名知意 * 驼峰命名 * 不能用关键字 * */ public class SysMonitoring { private boolean flag = true; // 首字母小写 public void fileExist(){ //... } }
package com.jadn.cc.ui; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.NotificationManager; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android...
/* * Purpose:-Write a static function sqrt to compute the square root * of a nonnegative number c given in the input using Newton's method: * *@Author:-Arpana kumari *version:-1.0 *@since:-20 April, 2018 */ package com.bridgeit.algorithmprogram; import com.bridgeit.utility.Utility;...
package com.ims.persistence.hibernate.dao; import java.util.List; import org.apache.log4j.Logger; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import com.ims.dto.ProductGroupMapDTO; import com.ims.dto.ProductMasterDTO; import co...
package io.swagger.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.model.Address; import io.swagger.v3.oas.annotations.media.Schema; import java.util.UUID; import org.springframework.validation.annotation.Vali...
package com.elepy.annotations; import com.elepy.dao.CrudFactory; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * A link to the {@link CrudFactory} to be used to singleCreate Crud implementations fo...
package com.freejavaman; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.TextView; public class UI_ImgBtn extends Activity { ImageButton btn; TextView txt; @Override public void ...
/* * 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. */ /** * * @author Rogelio Chacón */ public class Secundaria { public int Atributo1 = 10; private int Atributo2 = 20; protected i...
package com.sebprunier.jobboard.serialization; import java.util.List; import com.sebprunier.jobboard.Job; public interface JobSerializer { String marshall(Job job); String marshallAll(List<Job> jobs); Job unmarshall(String text); List<Job> unmarshallAll(String text); }
package com.tencent.mm.plugin.game.model; import com.tencent.mm.sdk.platformtools.x; public class am$a { public int eiF; public String jOg; public am$a(int i, String str) { this.eiF = i; this.jOg = str; } public static am$a g(int i, Object... objArr) { am$a am_a = new am$...
package jdbchomework.dao.jdbc; import jdbchomework.dao.model.CustomersDao; import jdbchomework.entity.Customer; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; public class CustomersJdbcDao extends AbstractJdbcDao<Customer> implements CustomersDao { public CustomersJdbcDao(C...
package com.tech.blog.dao; import com.tech.blog.entities.User; import java.sql.Connection; import java.sql.*; public class UserDao { private Connection con; public UserDao(Connection con) { this.con = con; } public boolean saveUser(User user) { boolean f=fals...
/* */ package com.cleverfishsoftware.loadgenerator.message.receiver; /** * * @author peter */ public interface MessageReceiverRunner { }
package com.supconit.kqfx.web.fxzf.warn.services.Impl; import hc.base.domains.AjaxMessage; import hc.base.domains.Pageable; import hc.business.dic.services.DataDictionaryService; import hc.orm.AbstractBasicOrmService; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; ...
package rhtn_homework; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.Arrays; public class BOJ_2517_달리기 { private static Pair[] person; private static int S; private static int[] tree...
package com.tencent.mm.plugin.account.friend.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; class FindMContactInviteUI$2 implements OnClickListener { final /* synthetic */ FindMContactInviteUI eLY; FindMContactInviteUI$2(FindMContactInviteUI findMContactIn...
package capstone.abang.com.Models; /** * Created by Rylai on 2/20/2018. */ public class Location { private String code; private String lat; private String lng; private Location() { } public Location(String code, String lat, String lng) { this.code = code; this.lat = lat; ...
package app.com.blogapi; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import java.util.ArrayList;...
package 多线程.三个线程保证顺序执行; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class 使用Condition { private static Lock lock=new ReentrantLock(); private static Condition condition1=lock.newCondition(); private static Con...
package ua.goit.timonov.enterprise.service; import org.springframework.transaction.annotation.Transactional; import ua.goit.timonov.enterprise.dao.EmployeeDAO; import ua.goit.timonov.enterprise.model.Employee; import ua.goit.timonov.enterprise.model.Waiter; import java.util.List; /** * Web service for EmployeeDAO ...
package project.timesheetWebapp.service; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import project.applyLeaveWebapp.dto.Respon...
package services; import model.domain.Persoana; import model.domain.Proiect; import model.domain.UserOnProject; import model.forms.PersonOnProjectFormModel; import model.forms.ProiectFormModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; impor...
package Repository; import Model.Patient; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; public interface PatientRepository extends JpaRepository<Patient, Long> { List<Patient> findByName(String name); List<Patient> f...
package org.fuserleer.serialization.mapper; import java.io.IOException; import java.util.Arrays; import java.util.function.Function; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.f...
/* * This file is part of SMG, a symbolic memory graph Java library * Originally developed as part of CPAChecker, the configurable software verification platform * * Copyright (C) 2011-2015 Petr Muller * Copyright (C) 2007-2014 Dirk Beyer * All rights reserved. * * Licensed under the Apache License, Ver...
package be.continuum.slice.event; import be.continuum.slice.value.PhoneNumber; import lombok.Builder; import lombok.Data; /** * AddPhoneNumber * * @author bartgerard * @version v0.0.1 */ @Data @Builder public class PhoneNumberRemovedEvent { private final PhoneNumber phoneNumber; }
import java.util.ArrayList; public class Main { public static void main(String[] args) { Company company = new Company(); ArrayList<Employee> arrayListManager = new ArrayList<>(); ArrayList<Employee> arrayListTopManager = new ArrayList<>(); ArrayList<Employee> arrayListOperator = new...
package net.minecraft.block; public class BlockHalfStoneSlab extends BlockStoneSlab { public boolean isDouble() { return false; } } /* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview\Preview.jar!\net\minecraft\block\BlockHalfStoneSlab.class * Java compiler version: 8 (52.0) ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
package controllers; import java.util.*; import notifiers.*; import play.Logger; import play.data.validation.*; import play.mvc.*; import models.*; import utils.*; public class Invites extends Application { public static void invite() { render(); } }
package polyhedra; import java.util.Comparator; class ByArea implements Comparator<Prism> { public int compare(Prism p1, Prism p2) { return (int)(p1.area() - p2.area()); } }
package br.com.smarthouse.modelgenerics; import java.io.Serializable; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import jav...
import java.io.File; import java.io.FileOutputStream; import org.jdom2.*; import org.jdom2.output.*; /** * GenerateurXML écrit dans un fichier, à charque fin de lot, toutes * les données lues en indiquant le lot dans le fichier XML. * * @author Xavier Crégut <Prenom.Nom@enseeiht.fr> */ public class GenerateurXML...
import java.util.*; class LookAndSay { public String[] lookAndSay(int n) { if (n == 1) { return new String[]{"1"}; } String[] result = new String[n]; result[0] = "1"; for (int i = 1; i < n; i++) { int len = result[i - 1].length(); int count = 1; String str = ""; for ...
/** * 155. Min Stack * 双栈法不一定getMin()最快,但是所有操作平均速度应该是很快的 */ public class Solution { public static void main(String[] args) { MinStack minStack = new MinStack(); minStack.push(-2); minStack.printStack(); minStack.push(0); minStack.printStack(); minStack.push(-3); ...