text
stringlengths
10
2.72M
package com.tencent.mm.plugin.wallet_core.model; import com.tencent.mm.g.a.sg; import com.tencent.mm.platformtools.ab; import com.tencent.mm.protocal.c.ayv; import com.tencent.mm.sdk.b.b; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.x; import java.util.List; class o$5 extends c<sg> { fin...
package collection.test2; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Set; import collection.vo.Customer; public class CustomerMapTest2 { public static void main(String[] args) { HashMap<String, Customer> map = new HashMap<String, Customer>(); ...
package day8; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.PageFactory; import org.testng.Assert; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annot...
/* * 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.abeam.itap.framework.service; import com.abeam.itap.framework.common.exception.ABSystemException; import java.util.loggin...
/* * 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 classes; import java.util.ArrayList; import javax.swing.JOptionPane; /** * * @author Mateus Bernini */ public class Banco ...
package com.system.service; import com.github.pagehelper.PageHelper; import com.system.entity.BusinessLogEntity; import com.system.mapper.BusinessLogMapper; import com.system.util.BusinessException; import com.system.util.PagerInfo; import com.system.util.ServiceResult; import org.slf4j.LoggerFactory; import org.sprin...
import java.util.ArrayList; import java.util.Map; import java.util.Scanner; import java.util.TreeMap; /** * Created by tanya on 4/13/2016. */ public class SchoolSystem { public static void main(String args[]) { Scanner console = new Scanner( System.in ); int rows = Integer.parseInt( console.nextL...
package com.beiyelin.document.repository; import com.beiyelin.document.entity.Document; import org.springframework.data.solr.repository.Query; import org.springframework.data.solr.repository.SolrCrudRepository; import java.util.List; /** * Created by newmann 017-09-17. */ public interface DocumentRepository exten...
package student.collectionsgenerics; public class UsingCollections { public static void main(String[] args) { // Work with a list of Strings. manageFootballTeams(); // Work with a LinkedList of Doubles. // manageSalaries(); // Work with a TreeMap of Employees. // manageEmployees(); } // Wo...
package rest.dao; import java.util.List; import org.springframework.stereotype.Repository; import rest.entity.Employee; @Repository public interface EmployeeDAO { public Employee getEmployeeById(int id) ; public List<Employee> getAllEmployees() ; public void deleteEmployee(int id); public voi...
package org.scottrager.appfunding; import java.util.ArrayList; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class CouponBookArrayAdapter extends ArrayAdapter<Str...
package com.monsordi.na_at; import android.content.ContentValues; import android.database.Cursor; import com.monsordi.na_at.sqlite.FeedReaderContract.FeedEntry; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Created by diego on 09/04/18. */ public class Worker{ private ...
package com.tencent.pb.common.b.a; import com.google.a.a.b; import com.google.a.a.e; public final class a$ap extends e { public int veE; public int veF; public a$ap() { this.veE = 0; this.veF = 0; this.bfP = -1; } public final void a(b bVar) { if (this.veE != 0) {...
package walking_web.webb; import java.util.Optional; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; ...
package com.hit.neuruimall.mapper; import com.hit.neuruimall.model.OrderItemModel; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository public interface OrderItemMapper { public List<Integer> selectAllOrderId(); public Lis...
package org.maven.ide.eclipse.io; import junit.framework.TestSuite; import org.sonatype.tests.http.runner.junit.Junit3SuiteConfiguration; public class RedirectProjectCatalogTest extends AbstractIOTest { public void testDummy() { } public static TestSuite suite() throws ...
package cn.edu.sdjzu.xg.bysj.dao; //201902104050 姜瑞临 import cn.edu.sdjzu.xg.bysj.domain.Department; import cn.edu.sdjzu.xg.bysj.domain.School; import cn.edu.sdjzu.xg.bysj.service.SchoolService; import util.Condition; import util.JdbcHelper; import util.Pagination; import java.sql.*; import java.util.Collection; impor...
import org.antlr.v4.runtime.misc.NotNull; import java.util.HashMap; import java.util.List; import java.util.Map; public class VisitorImplementation extends KornBaseVisitor<Value> { }
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
/* * Copyright 2006 Ameer Antar. * * 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...
import com.sun.jna.*; import com.sun.jna.platform.win32.WinDef; import com.sun.jna.platform.win32.WinNT; import com.sun.jna.ptr.PointerByReference; import java.util.List; import java.util.Arrays; public class SCREEN extends Structure { public int nScreenIndex; public short uVendorID; public short uProductI...
package com.av.payment.repository; import com.av.payment.model.SubscriptionRequest; import com.av.payment.model.SubscriptionResponse; import com.av.payment.repository.validator.RequestValidator; import com.av.payment.util.Contants; import com.av.payment.repository.persistor.SubscriptionPersister; import org.springfram...
package com.mideas.rpg.v2.game.item.shop; import java.sql.SQLException; import java.util.ArrayList; import org.lwjgl.input.Mouse; import org.lwjgl.opengl.Display; import com.mideas.rpg.v2.Interface; import com.mideas.rpg.v2.Mideas; import com.mideas.rpg.v2.FontManager; import com.mideas.rpg.v2.game.CharacterStuff; i...
package demo.rabbit.controller; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.cache.Cache; impor...
package com.dis.bankaccount4.business.service; import java.util.Calendar; import com.dis.bankaccount4.data.dao.BankAcountDAO; import com.dis.bankaccount4.data.dao.TransactionDAO; import com.dis.bankaccount4.data.entity.BankAccountDTO; import com.dis.bankaccount4.data.entity.TransactionDTO; public class BankAccount {...
/* * Copyright 2008 University of California at Berkeley * * 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 require...
package com.facebook.react.modules.systeminfo; import android.app.UiModeManager; import android.os.Build; import android.provider.Settings; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.module.annotations.ReactMod...
package com.database.endingCredit.domain.user.dto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @NoArgsConstructor @AllArgsConstructor public class UserIdDTO { private String customerId; /** * @return String return the customerId */ publ...
package cn.canlnac.onlinecourse.domain.interactor; import java.util.Map; import javax.inject.Inject; import cn.canlnac.onlinecourse.domain.executor.PostExecutionThread; import cn.canlnac.onlinecourse.domain.executor.ThreadExecutor; import cn.canlnac.onlinecourse.domain.repository.ChatRepository; import rx.Observable...
package lib.game.path; import math.geom.Point3f; public interface ParametricPath { public Point3f par(float t); }
/** * */ package com.cnk.travelogix.mdmbackoffice.workflow; import de.hybris.platform.catalog.enums.ArticleApprovalStatus; import de.hybris.platform.core.model.ItemModel; import de.hybris.platform.workflow.model.WorkflowActionModel; import de.hybris.platform.workflow.model.WorkflowDecisionModel; import org.apache....
/* * Copyright (C) 2018 Ilya Lebedev * * 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...
public class limitOrderMatch { }
package com.rock.andrew.fit.fragments; import android.os.Bundle; import android.support.v4.app.Fragment; import android.text.Editable; import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditT...
package com.tiandi.logistics.controller; import com.alibaba.fastjson.JSON; import com.baomidou.mybatisplus.core.metadata.IPage; import com.tiandi.logistics.aop.log.annotation.ControllerLogAnnotation; import com.tiandi.logistics.aop.log.enumeration.OpTypeEnum; import com.tiandi.logistics.aop.log.enumeration.SysTypeEnum...
package prefeitura.siab.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; import prefeitura.siab.persistencia.AcsDao; import prefeitura.siab.tabela.Acs; @...
package fang.dailytask; import com.fang.dailytask.DuplicateRemoval; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static org.junit.Assert.assertEquals; /** * Author: fangxueshun * Description: 快速去重验证 * Date: 2017/3/2 * Time: 23:08 */ public class Test...
package com.vilio.plms.service.bms.impl; import com.sun.org.apache.xpath.internal.operations.Bool; import com.vilio.plms.dao.*; import com.vilio.plms.exception.ErrorException; import com.vilio.plms.glob.BmsGlobDict; import com.vilio.plms.glob.Fields; import com.vilio.plms.glob.GlobDict; import com.vilio.plms.glob.Retu...
package SoftwareAS.Controller; import java.util.HashMap; import java.util.Map; import Exceptions.ActivityAlreadyExistsException; import Exceptions.ActivityNotFoundException; import Exceptions.AdminNotFoundException; import Exceptions.DeveloperNotFoundException; import Exceptions.NotAuthorizedException; import Excepti...
/*! * Copyright 2002 - 2017 Webdetails, a Pentaho company. All rights reserved. * * This software was developed by Webdetails and is provided under the terms * of the Mozilla Public License, Version 2.0, or any later version. You may not use * this file except in compliance with the license. If you need a copy of ...
package com.example.ian.youtubeapp; import android.support.constraint.ConstraintLayout; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.ViewGroup; import android.widget.Button; import android.widget.Toast; import com.google.android.youtube.player...
package org.nyer.sns.netease; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.apache.commons.lang.StringUtils; import org.apache.http.entity.mime.MultipartEntity; import org.apache.http.entity.m...
package com.shangcai.common.wx; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset;...
package com.example.mobilebooks; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import com.parse.FindCallback; import com.parse.Parse; import com.parse.ParseException; import com.parse.ParseObject; import com.parse.ParseQuery; im...
package au.gov.ga.geodesy.igssitelog.support.marshalling.moxy; /** * When marshalling composite null objects, generate empty XML sub-elements (in combination with {@link NullPolicySessionEventListener}. */ public abstract class MandatoryCompositeAdapter<T> extends OptionalCompositeAdapter<T> { @Override pub...
package com.zhouyi.business.core.service; import com.zhouyi.business.core.common.ReturnCode; import com.zhouyi.business.core.dao.LedenCollectIrisMapper; import com.zhouyi.business.core.model.LedenCollectIris; import com.zhouyi.business.core.model.Response; import com.zhouyi.business.core.model.provincecomprehensive.po...
/* * 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 TFD.DomainModel; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedVa...
package ru.bm.eetp.controler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.ResponseStatus;...
package com.liuhy.setterinject; /** * Created by liuhy on 2017/2/18. */ public class Address { private String addr; private Integer door; public String getAddr() { return addr; } public void setAddr(String addr) { this.addr = addr; } public Integer getDoor() ...
package com.company.store_item_abstract_challenge; public class VitaliLinkedList implements NodeList { //vizivajem ListItem interface. private ListItem root = null; public VitaliLinkedList(ListItem root) { //soedenjajem this.root s interface. this.root = root; } @Override pub...
package com.everis.eCine.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Service; import com.everis.eCine.model.Nationalite; import com.everis.eCine.repository.NationaliteRepository; @Service p...
package com.muryang.sureforprice.vo; public class BaseUrl { private long siteId ; private String siteName ; private String categoryId ; private String categoryName ; private long categoryDepth ; private long id ; private String baseURL ; private long authenticationType ; public long ge...
package pl.sdacademy.designpatterns.structural.composite; import java.util.concurrent.CopyOnWriteArrayList; public class Main { public static void main (String[] args) { CocaColaCan coke = new CocaColaCan (); Snickers snickers = new Snickers (); CompositeProduct compositeProduct = new CompositeProd...
package cn.lawwing.jisporttactics.utils; import java.util.concurrent.ExecutorService; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; /** * 线程操作类 */ public class ThreadUtils { private static final String TAG = "ThreadUtils"; ...
package cn.hrmzone.table; import cn.hrmzone.util.FileNameParser; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import java.io.File; import java.i...
package com.example.demo.service; import com.example.demo.domain.Page; import com.example.demo.domain.User; import com.github.pagehelper.PageInfo; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import javax.servlet.http.HttpServletRequest; impo...
package com.chuxin.family.parse; import com.chuxin.family.parse.been.CxKidsInfoData; import com.chuxin.family.parse.been.data.KidFeedChildrenData; import com.chuxin.family.utils.CxLog; import org.json.JSONException; import org.json.JSONObject; import android.content.Context; /** * 孩子资料网络数据解析 对应接口/Child/update * @...
/* * 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 models; import java.util.*; import javax.persistence.*; import play.db.jpa.*; import play.data.validation.*; /** * * @aut...
package controllers; import java.io.File; import java.io.IOException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.persistence.Id;...
/* * Created on 17 oct. 2004 * * To change the template for this generated file go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package jsesh.mdcDisplayer.mdcView; import jsesh.mdc.model.ModelElement; import jsesh.mdcDisplayer.preferences.DrawingSpecification; /** * @author Serg...
package com.cnk.travelogix.custom.ziffm.vendor.createchange; 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 ...
package com.tencent.mm.plugin.honey_pay.ui; import android.content.Intent; import android.os.Bundle; import com.tencent.mm.plugin.honey_pay.a.l; import com.tencent.mm.plugin.honey_pay.a.m; import com.tencent.mm.protocal.c.bdk; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.ui.base.a; import com.tence...
package pisi.unitedmeows.minecraft; public class Settings { /* define setting(s) */ public static boolean ENCHANTMENT_HELPER_MEMORY_LEAK_FIX = false; public static boolean CHUNK_UPDATE_VANILLAFIX = false; public static boolean NO_FPS_LIMIT_IN_GUIS = true; public static boolean INTEGRATEDSERVER_SHUTDOWN_FIX = true...
package com.mx.profuturo.bolsa.model.vo.common; public class BasicCatalogVO { protected int id; protected String descripcion; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getDescripcion() { return descripcion; } ...
/* * 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 pt.mleiria.mlalgo.distance; /** * @author Manuel Leiria <manuel.leiria at gmail.com> */ public class EuclideanDistance imple...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package unalcol.types.real.array; /** * @author jgomez */ public class DoubleArrayDotProduct { public double apply(double[] x, double[] y) { int n = (x.length < y.length) ? x.length : y.length; dou...
public class TestTorcia{ public static void main(String[] args){ // Dichiara due oggetti di tipo Torcia Torcia t1; Torcia t2; // Inizializza gli oggetti: richiama il costruttore che inizializza lo stato (torcia accesa) t1 = new Torcia(); ...
package FirstDay; import org.junit.Test; import static org.junit.Assert.*; public class SmallestTest { int a=7; int b=13; int c=12; Smallest s=new Smallest(); @Test public void testSmallest() { assertEquals(a,s.small(a,b,c)); } }
package com.amit.indiehooddemo.adapter; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.amit.indiehooddemo.DetailActivity; import co...
/* * 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...
package com.example.lastminute.Trips; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.util.Log; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.widget.Te...
package leecode.Array; import com.sun.org.apache.xpath.internal.operations.Bool; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class 组合总和II_40 { /* 不能包含两个相同的解 但是一个解里面却可以包含重复的数字 */ public List<List<Integer>> combinationSum2(int[] candidates, int target) { ...
package fiscal; public enum FiscalTipoServicoEnum { ENVIO_DE_IMAGEM_PMV(1L); FiscalTipoServicoEnum(Long value) { this.value = value; } private Long value; public void setValue(Long value) { this.value = value; } public Long getValue() { return value; } public boolean compareTo(FiscalTipoServico...
/* * 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 500062053 */ public class SingleThread { public static void main(String[] args) { Si...
/* * ********************************************************* * Copyright (c) 2019 @alxgcrz All rights reserved. * This code is licensed under the MIT license. * Images, graphics, audio and the rest of the assets be * outside this license and are copyrighted. * ***************************************************...
public class TaxiService { protected MySet<taxi> taxies; protected graph city; public TaxiService() { taxies = new MySet<taxi>(); city = new graph(); } public graph getGraph(){ return city; } public MySet<taxi> getTaxiSet(){ return taxies; } public void performAction(String actionMessage)throws Exc...
package com.jim.multipos.utils.rxevents.main_order_events; public class NotPermissionUsbEvent { }
package solution; import java.util.Arrays; /** * User: jieyu * Date: 10/21/16. */ public class HouseRobberII213 { public int rob(int[] nums) { if (nums.length == 0) return 0; if (nums.length == 1) return nums[0]; if (nums.length == 2) return Math.max(nums[0],nums[1]); int[] sum...
package acs.data; public enum MuscaleGroup { hands , legs , upper_abdomen , lower_abdomen ,upper_chest , lower_chest }
package bootcamp.test.filereaders.propertiesreader; import java.io.FileWriter; import java.io.IOException; import java.util.Properties; public class PropertyWriter { public void write() { Properties prop = new Properties(); prop.put("name", "test"); prop.put("email", "test@gmail.com"); try { prop.store(...
package com.zhangtao.fleamarket.Activity; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Bundle; import android.provid...
package task5; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Timeout; import org.junit.runners.model.TestTimedOutException; import java.util.Random; import java.util.concurrent.TimeoutException; import static org.junit.Assert.*; public class BubbleSortTest { @Rule public Timeout glob...
package com; import java.io.*; import java.util.*; import javax.servlet.GenericServlet; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServl...
package com.example.afshindeveloper.afshindeveloperandroid; import android.app.ProgressDialog; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; import android.util.EventLogTags; import android.util.Log; import com.example...
package bootcamp.test.jsexecutor; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import bootcamp.selenium.basic.LaunchBrowser; public class Click { public static void main(String[] args) { WebDriver driver ...
/* * 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 vasylts.blackjack.user; import org.junit.Test; import static org.junit.Assert.*; import org.junit.Before; import vasylts.black...
package com.ojas.rpo.security.entity; import org.codehaus.jackson.map.annotate.JsonView; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import com.ojas.rpo.security.JsonViews; import javax.persistence.*; import java.util.Collection; import...
package TestJava; public class arthimeticexception { public static void main(String[] args) { int a=10; int b=0; int result=0; try { result=a/b; } catch(ArithmeticException A) { System.out.println("exception is solved"); ...
package com.example.behavioral.strategy; /** * Copyright (C), 2020 * FileName: Strategy * * @author: xieyufeng * @date: 2020/12/8 13:40 * @description: */ public interface Strategy { int doOperation(int num1, int num2); }
package fr.polytech.al.tfc; import fr.polytech.al.tfc.account.model.Account; import fr.polytech.al.tfc.account.model.AccountType; import fr.polytech.al.tfc.account.model.BankAccount; import fr.polytech.al.tfc.account.repository.AccountRepository; import fr.polytech.al.tfc.profile.business.ProfileBusiness; import fr.po...
package com.mfm_app.services; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.mfm_app.entities.Exercise; import com.mfm_app.repo.ExerciseRepository; @Service public class ExerciseService { @...
package com.diozero.sbc; /* * #%L * Organisation: diozero * Project: diozero - Core * Filename: BoardInfo.java * * This file is part of the diozero project. More information about this project * can be found at https://www.diozero.com/. * %% * Copyright (C) 2016 - 2023 diozero * %% * Permission is...
package com.niesens.soccersubhelper.engine; public enum AgeGroup { U6(32, 3), U8(40, 4); private final int gameLengthMinutes; private final int gameNumOfPlayers; AgeGroup(int gameLengthMinutes, int gameNumOfPlayers) { this.gameLengthMinutes = gameLengthMinutes; this.gameNumOfPlaye...
package com.sinata.rwxchina.component_aboutme.contract; import com.sinata.rwxchina.basiclib.utils.rxUtils.BaseContract; import java.io.File; import java.util.List; import java.util.Map; /** * @author:zy * @detetime:2017/11/27 * @describe:类描述 * @modifyRecord:修改记录 */ public interface UpdatePersonalInfoContract {...
package commandline.language; import commandline.exception.ArgumentNullException; import commandline.language.parser.GenericCommandParser; import commandline.language.syntax.CommandSyntaxValidator; import org.jetbrains.annotations.NotNull; /** * User: gno, Date: 09.07.13 - 14:22 */ public class CommandLineLanguage ...
/** * 234. Palindrome Linked List * Easy */ public class Solution { public boolean isPalindrome(ListNode head) { ListNode fhead = new ListNode(-1); ListNode slow = head, fast = head, t; boolean isOdd = false; while (slow != null && fast != null) { t = slow; ...
package edu.buffalo.cse.sql.util; import java.util.ArrayList; import edu.buffalo.cse.sql.Schema; import edu.buffalo.cse.sql.data.Datum; import edu.buffalo.cse.sql.data.Datum.CastError; public class TableView { public void show(ArrayList<Datum[]> data, ArrayList<Schema.Var> var) throws CastError{ ArrayList<In...
package calcu; import javax.swing.JOptionPane; public class Ventana1 extends javax.swing.JFrame { Calculadora calcu= new Calculadora(); CalculadoraT Calcu1= new CalculadoraT(); Conversor calcu2=new Conversor(); public Ventana1() { initComponents(); } @SuppressWarnings("unchec...
package net.minecraft.network; public final class ThreadQuickExitException extends RuntimeException { public static final ThreadQuickExitException INSTANCE = new ThreadQuickExitException(); private ThreadQuickExitException() { setStackTrace(new StackTraceElement[0]); } public synchronized Throwable f...
package inter; public class CuttingRod { public static void main(String[] args) { //int[] price = new int[]{2,5,7,8}; int[] price = new int[] { 1, 5, 8, 9, 10, 17, 17, 20 }; int length = 8; int dp[][] = new int[price.length][length + 1]; for (int i = 0; i < price.length; i++) { for (int j = 1; j < lengt...