text
stringlengths
10
2.72M
/* * 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 GitarrDBModule; import java.io.Serializable; import java.util.Collection; import javax.persistence.Basic; import javax.persist...
/** * Copyright (c) 2016, 指端科技. */ package com.rofour.baseball.controller.model.manager; import com.rofour.baseball.controller.model.BasePage; import java.io.Serializable; /** * @ClassName: QuotaInfo * @Description: 指标传输实体 * @author xl * @date 2016年7月18日 下午3:40:34 */ public class QuotaInfo extends BasePage...
package org.buaa.ly.MyCar.entity; import com.alibaba.fastjson.annotation.JSONField; import com.fasterxml.jackson.annotation.JsonFilter; import com.fasterxml.jackson.annotation.JsonInclude; import com.sun.imageio.plugins.common.LZWCompressor; import lombok.Data; import lombok.ToString; import org.hibernate.annotations...
/******************************************************************************* * Copyright (C) 2010 Lucas Madar and Peter Brewer * * 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 ...
package com.tencent.mm.modelsns; public final class d { StringBuffer ehd = new StringBuffer(); StringBuffer ehe = new StringBuffer(); private int index = 0; public final void q(String str, Object obj) { this.ehd.append(this.index + " " + str + "->" + obj + "\n"); this.ehe.append(obj); ...
package pageObjectModel; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.testng.Assert; import common.VerifyElement; public class ParentSignUp { WebDriver driver; VerifyElement pageElement; boolean eleme...
class if_Test2 { public static void main(String ar[]){ int a=-6; if (a>0) { System.out.println("¾ç¼ö"); } else { System.out.println("À½¼ö"); } } }
package com.cardflip; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.google.firebase.auth.FirebaseAuth; public class GameOver extends AppCompatActivity impleme...
package com.android.netperf_new; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebSettings; import android.webkit.WebView; impor...
/* * 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 ma...
/* * Copyright (C) 2020-2023 Hedera Hashgraph, LLC * * 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 applicab...
package com.app.collection; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; import java.util.Set; public class DemoHashMap { public static void main(String[] args) { HashMap<Integer, String> hm = new HashMap<Integer, String>(); hm.put(null, "20"); ...
package com.blackonwhite.service; import com.blackonwhite.client.TelegramClient; import com.blackonwhite.exceprion.BotException; import com.blackonwhite.model.Card; import com.blackonwhite.model.User; import com.blackonwhite.util.TextUtils; import org.springframework.stereotype.Service; import telegram.Message; impo...
package org.zerock.w2; import org.zerock.web.HelloServlet; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet(name = "hello", value = "hello2") public ...
import java.io.File; public class CreateDirectory { public static void main(String[] args) { try { String directoryName = ""; for(int i = 0; i < args.length; i++) { directoryName += args[i]; } File file = new File("./" + directoryName); file.mkdir(); } catch(Exception e) { e.printStackTrace...
package com.sneaker.mall.api.model; import com.alibaba.fastjson.annotation.JSONField; /** * 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 li...
package start.mapper1; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; /** * @Author: Jason * @Create: 2020/10/13 6:59 * @Description 用户mapper */ @Repository public interface UserMapper1 { @Insert("insert into test_us...
package com.shopify.api; import lombok.Data; @Data public class ShopifyWebhookDataCustomer{ private String id; private String email; private String phone; }
package com.gcipriano.katas.salestaxes.model.taxing; import java.math.BigDecimal; public interface Tax { BigDecimal applyOn(BigDecimal amount); }
public class Tank extends Weapen{ public void move(){ System.out.println("this is tankmove"); } public void attack() { System.out.println("this is tankattack"); } }
package com.stark.innerclass; /** * 静态内部类 * 1.声明在类体部,方法体外,并且使用static修饰的内部类 * 2.访问特点可以类比静态变量和静态方法 * 3.脱离外部类的实例独立创建 * 在外部类的外部构建内部类的实例 * new Outer.Inner(); * 在外部类的内部构建内部类的实例 * new Inner(); * 4.静态内部类体部可以直接访问外部类中所有的静态成员,包含私有 * <p> * 用途:多用于单例模式 */ public class StaticInnerTest { public static void main(String...
package org.wit.snr.nn.srbm.math; public interface ActivationFunction { double evaluate(double... x); }
/* * 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 MomentFunctions; /** * * @author Will_and_Sara */ public class BasicProductMoments { private double _Mean; private d...
package com.movhaul.agent.Fragment; import android.Manifest; import android.app.AlertDialog; import android.app.Dialog; import android.app.ProgressDialog; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.dr...
package py.com.isproject.rodate.bean; import java.util.List; import javax.annotation.PostConstruct; import javax.faces.view.ViewScoped; import javax.inject.Named; import org.springframework.beans.factory.annotation.Autowired; import py.com.isproject.rodate.model.Usuario; import py.com.isproject.rodate.repository.Us...
package hirondelle.web4j.model; import java.io.IOException; import java.io.ObjectInputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** General implementation of {@link MessageList}. */ public class MessageListImpl implements MessageLis...
package com.tencent.mm.plugin.subapp.ui.voicetranstext; import android.view.View; import android.view.View.OnClickListener; class VoiceTransTextUI$1 implements OnClickListener { final /* synthetic */ VoiceTransTextUI ouz; VoiceTransTextUI$1(VoiceTransTextUI voiceTransTextUI) { this.ouz = voiceTransTe...
package com.zafodB.ethwalletp5.UI; import android.app.Fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.content.DialogInterface; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import an...
package com.favccxx.shy.constants; public interface ShyConstants { public static int STATUS_SUCCESS = 200; public static int STATUS_ERROR = 400; public static int CODE_SUCCESS = 2000; //操作成功 public static int CODE_LACK_PARAMS = 4001; //缺少必要的参数 public static int CODE_INVALID_PARAMS = 4002; //...
package se.slashat.slashat.async; import se.slashat.slashat.R; import se.slashat.slashat.adapter.EpisodeAdapter; import se.slashat.slashat.fragment.ArchiveFragment; import se.slashat.slashat.model.Episode; import se.slashat.slashat.service.ArchiveService; import android.app.ProgressDialog; import android.os.AsyncTask;...
package zm.gov.moh.core.repository.database.dao.domain; import androidx.lifecycle.LiveData; import androidx.room.Dao; import androidx.room.Insert; import androidx.room.OnConflictStrategy; import androidx.room.Query; import zm.gov.moh.core.repository.database.entity.domain.Drug; @Dao public interface DrugDao { @...
package net.minecraft.client.renderer.debug; import java.util.List; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.RenderGlobal; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.ut...
package com.media2359.mediacorpspellinggame.data; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.SerializedName; import java.util.List; /** * Created by xijunli on 13/2/17. */ public final class Question implements Parcelable { public static final Creator<Question...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package co.th.aten.network.entity; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; impo...
package com.quaero.quaerosmartplatform.domain.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; import java.util.Date; /** * <p> * 计划到料查询列表 * </p> * * @author wuhanzhang@ * @since 2021/1/25 8:57 */ @Data @ApiModel publi...
package practice; import java.util.Scanner; public class ConvertRadius { static Scanner sc = new Scanner(System.in); static double radiusValue,area,circumference; final static double PI = 3.1415; public static void main(String [] args) { System.out.print("Enter radius value: "); radiusValue = sc.n...
package ec.com.yacare.y4all.asynctask.ws; import android.os.AsyncTask; import android.provider.Settings; import android.util.Log; import ec.com.yacare.y4all.activities.DatosAplicacion; import ec.com.yacare.y4all.activities.socket.MonitorIOActivity; import ec.com.yacare.y4all.lib.webservice.ContestarPortero; ...
package net.minecraft.entity.ai; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.monster.EntityCreeper; public class EntityAICreeperSwell extends EntityAIBase { EntityCreeper swellingCreeper; EntityLivingBase creeperAttackTarget; public EntityA...
package nowcoder.剑指offer; /** * @Author: Mr.M * @Date: 2019-03-08 15:06 * @Description: 两个链表的第一个公共结点 **/ public class T36两个链表的第一个公共结点 { public ListNode FindFirstCommonNode(ListNode pHead1, ListNode pHead2) { if(pHead1==null || pHead2==null){ return null; } int len1 = 0; int len2 = 0; ListNode x1 = pH...
public class Main { public static void main(String[] args) { Fenster fenster = new Fenster("TestVersion 0.03"); fenster.setVisible(true); } }
package gr.athena.innovation.fagi.core.similarity; import gr.athena.innovation.fagi.specification.SpecificationConstants; import java.math.BigDecimal; import java.math.RoundingMode; import org.apache.logging.log4j.LogManager; /** * Class providing methods for computing Jaro Similarity and Jaro Distance. * * @autho...
package com.ilp.innovations.myapplication; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button...
import javax.swing.*; import java.awt.*; public class RhythmPanel extends JPanel{ private int length; public boolean[] rhythm; private boolean erase; public RhythmPanel(){ setLength(16); setErase(false); } // Actual methods @Override public Dimension getPreferredSize(...
package io.github.wickhamwei.wessential.wresidence.command; import io.github.wickhamwei.wessential.WEssentialMain; import io.github.wickhamwei.wessential.wresidence.WResidence; import io.github.wickhamwei.wessential.wtools.WPlayer; import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.command.Comma...
package exercicios; import java.util.Scanner; public class Ex01 { public void executa() { // Instancia o scanner para leitura de dados Scanner sc = new Scanner(System.in); // Recebe o 1o inteiro System.out.println("Informe o 1o inteiro:"); int n1 = sc.nex...
package fr.lteconsulting.servlet; import java.io.IOException; import java.util.List; import javax.ejb.EJB; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.pegdown.PegDownProcessor; i...
package edu.nju.logic.service; import edu.nju.data.entity.Answer; import edu.nju.data.entity.Question; import edu.nju.data.entity.User; /** * Created by cuihao on 2016/7/25. */ public interface AuthService { boolean canEditQuestion(long user, Question question); boolean canDeleteQuestion(long user, Question...
package leetcode560; import java.util.Arrays; public class Main { public static void main(String[] args) { int[] nums = {1,2,3,4,5,6,7,-22}; System.out.println("Nums: " + Arrays.toString(nums)); int k = 5; System.out.println("K: " + k); FindSubarraySumEqualToTargetFunction solutio...
package com.example.fibonacci; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; public class DetallesPais extends AppCompatActivity { TextView detalles; @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
package pl.polsl.wkiro.recognizer.utils; import com.openalpr.jni.exceptions.TaskInterruptedException; public class TaskUtils { public static boolean checkTaskInterrupted(boolean throwException) { boolean result = false; if (Thread.interrupted()) { if(throwException) { ...
package com.tienganhchoem.model; public class TracNghiemModel extends AbstractModel<TracNghiemModel>{ private String content; private String answerA; private String answerB; private String answerC; private String answerD; private String answerTrue; private Long idBaiTracNghiem; private...
package questions.ReverseNodesInkGroup_0025; import questions.common.ListNode; /* * @lc app=leetcode.cn id=25 lang=java * * [25] K 个一组翻转链表 * * https://leetcode-cn.com/problems/reverse-nodes-in-k-group/description/ * * algorithms * Hard (54.91%) * Likes: 456 * Dislikes: 0 * Total Accepted: 52.4K * To...
package com.tencent.mm.plugin.recharge.model; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import org.json.JSONObject; public final class a { public static final int[] mot = new int[]{-1, -1}; public static final int[] mou = new int[]{-2, -2}; public int bJt; ...
package com.smxknife.java.ex30; /** * @author smxknife * 2020/1/20 */ public class IntMaxPlus1 { public static void main(String[] args) { int i = Integer.MAX_VALUE + 1; System.out.println(Integer.toBinaryString(Integer.MAX_VALUE)); System.out.println(Integer.MAX_VALUE); System.out.println(Math.pow(2, 31));...
package org.newdawn.slick.openal; public interface Audio { void stop(); int getBufferID(); boolean isPlaying(); int playAsSoundEffect(float paramFloat1, float paramFloat2, boolean paramBoolean); int playAsSoundEffect(float paramFloat1, float paramFloat2, boolean paramBoolean, float paramFloat3, f...
package com.tencent.mm.plugin.profile.ui; import android.view.View; import android.view.View.OnClickListener; import com.tencent.mm.plugin.profile.ui.NormalUserFooterPreference.c; import com.tencent.mm.plugin.report.service.h; class NormalUserFooterPreference$c$2 implements OnClickListener { final /* synthetic */...
/** * <copyright> * </copyright> * * $Id$ */ package edu.tsinghua.lumaqq.ecore.group; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>XCluster</b></em>'. * <!-- end-user-doc --> * *...
package gugutech.elseapp.controller; import gugutech.elseapp.model.UserUserT; import gugutech.elseapp.service.UserService; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.stereotype.Controller; import org.sprin...
package ru.mrequ.core; public interface Drawer { void drawText(String text); void draw(GameObject o); }
package business.api.exceptions; public class NotFoundLessonIdException extends ApiException { private static final long serialVersionUID = 2050228254550241644L; public static final String DESCRIPTION = "The ID not was found, tray again"; public static final int CODE = 333; public NotFoundLessonIdExc...
package com.espendwise.manta.util.validation.rules; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterato...
package banking.exceptions.account_exceptions; public class AccountDoesntExistException extends Exception { /** * */ private static final long serialVersionUID = -8267845269358150548L; }
package jp.smartcompany.job.modules.core.manager.impl; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import jp.smartcompany.job.modules.core...
package cn.lucode.fastdev.redis.service; import java.util.List; import java.util.Set; /** * Created by yunfeng.lu on 2017/10/4. */ public interface IRedisOperation { void setValue(String key,String value); void setSetValue(String key,Long timeout,String... values); /** * 添加SET类型值 * @param k...
package de.jmda.gen.java.impl; import static de.jmda.core.util.StringUtil.sb; import de.jmda.core.util.StringUtil; import de.jmda.gen.GeneratorException; import de.jmda.gen.impl.DefaultGenerator; import de.jmda.gen.java.ParameterNameGenerator; public class DefaultParameterNameGenerator extends DefaultGenerator im...
/* * Copyright 2013 Cloudera. * * 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 i...
package com.example.admin.busmanagerproject; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import andro...
package com.bw.movie.mvp.view.activity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.bw.movie.IView.IFee...
package com.ar.cmsistemas.bean; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import com.ar.cmsistemas.service.CiudadService; @ManagedBean(name = "altaCiudadBean") @ViewScoped public class AltaCiudadBean { private String ciudad; public String getCiudad() { return ciudad; } public...
package com.tencent.mm.plugin.wallet_payu.bind.model; import android.os.Bundle; import com.tencent.mm.plugin.wallet_payu.pwd.a.a; import com.tencent.mm.ui.MMActivity; import com.tencent.mm.wallet_core.d.i; class c$1 extends a { final /* synthetic */ c pEf; c$1(c cVar, MMActivity mMActivity, i iVar, Bundle bu...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Task4 { /*4. Ввести целое число в консоли. Если оно является положительным, то прибавить к нему 1; если отрицательным, то вычесть из него 2; если нулевым, то заменить его на 10. Вывести полученное ...
package checkers; public interface CheckersClient { void setColor(int color); void boardNotify(Move move); Move getMove(); }
package com.ecomm.config; import java.util.Properties; import javax.sql.DataSource; import org.hibernate.SessionFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframe...
package receiver; import java.util.ArrayList; import shipment.Shipment; public abstract class Receiver { private ArrayList<Shipment> shipments; private int[] preferredDeliveryTime; public Receiver(int[] preferredDeliveryTime) { shipments = new ArrayList<Shipment>(); this.preferredDeliveryTime=preferred...
package Structural.Bridge; import org.omg.CORBA.OBJ_ADAPTER; /** * * Bridge pattern decouples abstraction from it's implementation. * so that they can change independently. * * it is mainly used to implement platform independence feature. * * Abstractor, RefinedAbstractor, Implementor, ConcreteImplementor. * ...
/** * ClassName: package-info<br/> Function: TODO: ADD FUNCTION. <br/> Reason: TODO: ADD REASON. * <br/> Date: 2018年09月21日 17:22 <br/> * * @author lcc * @version * @see * @since */ package com.example.javax;
package valatava.lab.warehouse.service.dto; import java.util.Set; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import lombok.Data; /** * A DTO representing a user, with his authorities. * * @author Yuriy Govorushkin */ @Data public class UserDTO { private Long id; ...
package com.gm.wj.controller; import cn.hutool.json.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.gm.wj.entity.User; import com.gm.wj.result.Result; import com.gm.wj.service.UserService; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; i...
package com.gabriel.paiva.cursomc.cursomc.enums; import java.io.Serializable; public enum TipoCliente { PESSOAFISICA (1, "Pessoa física"), PESSOAJURIDICA (2, "Pessoa jurídica"); private Integer code; private String descricao; private TipoCliente(Integer code, String descricao) { this.co...
/** * */ /** * @author sameerkhurana10 * */ package VSMFeatureDictionary;
package controllers; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ListChangeListener; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.e...
import club.ximeng.util.IdCardUtil; import org.junit.Test; import java.time.LocalDate; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; /** * 身份证单元测试 * * @author liu xm * @date 2021/3/23 13:19 */ public class IdCardUtilTest { private static final String ID_18 = "321083197812162119"; ...
package com.server; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * This class creates a servlet for handling HTTO requests to get JSON string */ public c...
package com.tencent.mm.plugin.aa.a.c; import com.tencent.mm.plugin.aa.a.k; import com.tencent.mm.vending.app.a; import com.tencent.mm.vending.g.g; import com.tencent.mm.vending.h.e; import com.tencent.mm.vending.j.d; import java.util.Map; public class e$c implements e<d<Boolean, String, Long>, Map<String, Object>> { ...
package sc.ustc.view.widget; /** * @author HitoM */ public class Button extends AbstractWidget { public static final String BUTTON_TAG = "buttonView"; @Override public String getHtmlView() { return "<input type=\"submit\" value=\""+this.getValue()+"\"/>\n"; } }
package ca.antonious.habittracker.habitdetails; import ca.antonious.habittracker.models.Habit; /** * Created by George on 2016-09-04. * * IHabitDetailsView is to be implemented by a GUI class that * renders the details of a habit. It exposes a method to notify * the view when a habit has been updated. */ public...
package net.optifine; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.EnumMap; import java.util.HashSet; import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.S...
package TestJava; public class uncheckchild { public void disp() throws ArithmeticException { System.err.println("i am from disp"); } }
import java.lang.Exception; @SuppressWarnings("serial") public class EmptyDeckException extends Exception { public EmptyDeckException() { super("Error, the deck has insuffisent cards"); } }
// Sun Certified Java Programmer // Chapter 3, P198 // Assignments class ValueTest { public static void main(String[] args) { int a = 10; // Assign a value to a System.out.println("a = " + a); int b = a; System.out.println("b = " + b); b = 30; System.out.printl...
package com.ibeiliao.pay.admin.controller.pay; import com.ibeiliao.pay.admin.utils.resource.Menu; import org.springframework.stereotype.Controller; /** * 支付管理功能,这里仅用于菜单展示 * @author linyi 2016/8/1. */ @Controller @Menu(name = "支付管理", parent = "", sequence = 800000) public class PayManagementController { }
package ch3.sub7; import ch3.sub6.methodreference.Apple; import java.util.Arrays; import java.util.Comparator; import java.util.List; import java.util.function.Predicate; public class Application { public static void main(String[] args) { List<Apple> inventory = Arrays.asList( new Apple(...
package pl.gabinetynagodziny.officesforrent.entity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import java.time.LocalDate; import java.time.LocalDateTime; import ...
package com.sudipatcp.twopointers; import java.util.ArrayList; import java.util.Collections; public class CountTriangles { public static int nTriang(ArrayList<Integer> A) { Collections.sort(A); long countTr = 0; for(int i = A.size() - 1; i >= 1; i--) { int j = 0; i...
import java.util.Arrays; public class CountingStar { public static String[] starCount(String[] args) { int count = 0; for(String s: args) { if(s.equals("Star")) count ++; } if (count % 2 == 0) { return Arrays.copyOf(args, args.length); } else { String[] res = new String[args.length - count]; ...
package com.blackonwhite.payload; public enum CallBackPayload { WHITE_CARD_CHOICE, BLACK_CARD_CHOICE, QUESTION, START_GAME }
package com.yiibai; /** * Created by jany.nie on 2019/6/20. */ public class OrderNotFoundException extends Exception { public OrderNotFoundException(String s) { } }
/** * */ /** * @author GURSHARAN SINGH * */ module GreedyAlgoQA { }
package stack.queue; public class ResizingArrayStack { private Object[] stack; private int N; public ResizingArrayStack() { stack = new Object[1]; } public boolean isEmpty() { return N == 0; } public void push(Object o) { if(null == o); //throw new Exception(); if(N == stack.length) resize...
/** * Spring Framework configuration files. */ package workstarter.config;