text
stringlengths
10
2.72M
/* * Copyright (C) 2015 Miquel Sas * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is dis...
/* * 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 servlet; import DataBase.DataBase; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import ...
/* * Copyright (C) 2019-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.pineapple.mobilecraft.tumcca.server; import com.google.gson.Gson; import com.google.gson.JsonSyntaxException; import com.pineapple.mobilecraft.tumcca.data.Account; import com.pineapple.mobilecraft.tumcca.data.Profile; import org.json.JSONException; import org.json.JSONObject; /** * Created by yihao on 15...
package pl.whirly.recruitment.payment.model; import java.util.Random; public class Payment { private String id; private String userId; private String productId; private double amountGross; private String currency; public Payment(String id, String userId, String productId, double amountGross, Strin...
package com.legalzoom.api.test.OrdersServiceResponseParser; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import java.util.List; import javax.ws.rs.client.ClientRequestContext; import javax.ws.rs.client.Cli...
public class Calculator { private float left; private float right; private String operation = ""; private float result; public void setLeft(float left) { this.left = left; } public void setRight(float right) { this.right = right; } public void setOperation(String operation) { this.operatio...
/** * 23. Merge k Sorted Lists * 使用归并方法,利用Priority Queue小顶堆特性会更简单 */ class Solution { public ListNode mergeKLists(ListNode[] lists) { if (lists == null || lists.length == 0) return null; int f = 1; while (f < lists.length) { // 归并逻辑 for (int i = 0; i < lists.length - f; i += f...
package org.alienideology.jcord.event.channel.group.update; import org.alienideology.jcord.event.channel.group.GroupUpdateEvent; import org.alienideology.jcord.internal.object.IdentityImpl; import org.alienideology.jcord.internal.object.channel.Channel; import org.alienideology.jcord.internal.rest.HttpPath; /** * @a...
/* * StatisticEntities.java * This file was last modified at 2018.12.03 20:05 by Victor N. Skurikhin. * $Id$ * This is free and unencumbered software released into the public domain. * For more information, please refer to <http://unlicense.org> */ package ru.otus.models; import lombok.Data; import lombok.Equal...
package pages; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.WebDriverWait; import java.util.List; import java.util.Random; import static junit.framework.Assert.assertEquals; public c...
package com.tencent.mm.e.b; import com.tencent.mm.ab.i.a; import com.tencent.mm.modelvoice.q; import com.tencent.mm.sdk.platformtools.x; class h$3 implements a { final /* synthetic */ h bFa; h$3(h hVar) { this.bFa = hVar; } public final void onError() { this.bFa.bEL.zY(); x.e...
/******************************************************************************* * Copyright 2020 Grégoire Martinetti * * 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://ww...
package assemAssist.model.option; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; import assemAssist.TestInit; import assemAssist.mo...
package com.trey.fitnesstools; import android.app.Dialog; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v7.app.AlertDialog; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import a...
package org.proyectofinal.gestorpacientes.modelo.entidades; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.NamedQuery; @Entity @NamedQuery(name = "Usuario.getAll", query = "from...
package com.polsl.edziennik.desktopclient.view.common.panels.tablePanels; import javax.swing.JPanel; import com.polsl.edziennik.desktopclient.controller.utils.filters.ReportFilter; import com.polsl.edziennik.desktopclient.model.tables.ReportTableModel; import com.polsl.edziennik.desktopclient.view.common.panels...
package mvc_demo.interfaces; import java.util.HashMap; import java.util.List; public interface ModelInterface { public String getTblName(); public String getTblName(String className); public void set(String name, String val); public String get(String name); public HashMap<String, String> get(); public List<Hash...
/*! * 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.sdl.webapp.tridion.contextengine; import com.tridion.ambientdata.AmbientDataContext; import com.tridion.ambientdata.claimstore.ClaimStore; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import java.net.URI; import java.util.Collections; import java.util.Map; @Component...
package com.goldgov.dygl.module.partyMemberDuty.duty.service.impl; import java.util.Calendar; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Service; import com.goldgov...
package org.newdawn.slick.util; import java.io.InputStream; import java.net.URL; public interface ResourceLocation { InputStream getResourceAsStream(String paramString); URL getResource(String paramString); } /* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview\Preview.jar!\org...
/* * created 14.03.2005 * * $Id: IDataType.java 567 2006-11-06 23:24:39Z cse $ */ package com.byterefinery.rmbench.external.model; /** * specification of a datatype that is associated with a database column * * @author cse */ public interface IDataType { public static final String SIZE_NOT_SUPPORTED = ...
package com.lec.ex08robot; public class RobotOrder { public void action(Robot robot) { // 이 안에 있는 robot만 일시킬 수 있다 //Dance타입이면 Dance 시킴 if (robot instanceof DanceRobot) { // instance of- checks whether an object is an instance of a specific class // or an interface. ((DanceRobot) robot).dance(); // D...
package one.kii.summer.beans.utils; import one.kii.summer.beans.annotations.Commit; import org.junit.Assert; import org.junit.Test; import static one.kii.summer.beans.utils.HashTools.NULL_HEX; /** * Created by WangYanJiong on 04/05/2017. */ public class TestHashTools { @Test public void testHashHex() { ...
package OOPS; public class Test2OverRiding { public static void main(String[] args) { OverRiding2 obj = new OverRiding2(); obj.m1(); } }
package pje14.git.test; public class C4 { }
package com.jim.multipos.ui.mainpospage.view; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.SimpleItemAnimator; import android.text.InputType; ...
package com.greenglobal.eoffice.domain.application.congvandi.commands; import static java.util.Collections.singletonList; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import com.greenglobal.eoffice.domain.application.congvandi.commands.create.CreateCongVanDiCmd; import com.greengl...
/* * Copyright (C) 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 applicable la...
package lab_11_x3; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextArea; @Su...
package pe.edu.upeu.hotel.dao; import java.util.List; import pe.edu.upeu.hotel.entity.Login; import pe.edu.upeu.hotel.entity.Usuario; public interface LoginDao { Login usuario (Usuario usuario); }
package com.google.android.gms.common.api; import android.os.Looper; import android.util.Pair; import com.google.android.gms.common.internal.q; import com.google.android.gms.common.internal.w; import java.util.ArrayList; import java.util.Iterator; import java.util.concurrent.CountDownLatch; import java.util.concurrent...
// Sun Certified Java Programmer // Chapter 2, P125 // Object Orientation interface Vroom extends Fi, Baz { }
package net.crunchdroid.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDeleteAction; import javax.persistence.*; @Data @NoArgsConstructor @AllArgsConstructor @Entity public class ProduitFactur...
package com.fleet.webssh.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.socket.config.annotation.EnableWebSocket; import org.springframework.web.socket.config.annotation.WebSocketConfigurer; import org.springframework.web.socket.config.annotation.WebSocketHandlerReg...
public class Main { public static void main(String[] args) { Test a=new Test(); a.jar_test(); System.out.println("Main class test success!"); } }
package compilador.estruturas; import java.util.Arrays; import compilador.helper.ArrayHelper; public class String { /** * A sequncia de caracteres que comp›em a string. */ private char[] chars; public String(char[] chars) { this.chars = new char[chars.length]; System.arraycopy(chars, 0, this.chars,...
/** * Created by lzj on 2016/11/2. * 二分检索 */ public class BiSearch { /** * 二分检索查找数组a中是否有found值,有返回found在a中的下标,无返回-1 * @param a 数组a(已排序) * @param low 查找低位 * @param high 查找高位 * @param found 带查找的值 * @return found在a中的下标(从0开始)或-1 */ public static int bisearch(int[] a, int low...
package com.udacity.hnoct.stockhawk.graph; import com.github.mikephil.charting.components.AxisBase; import com.github.mikephil.charting.formatter.IAxisValueFormatter; import com.udacity.hnoct.stockhawk.data.PrefUtils; /** * Created by hnoct on 1/24/2017. */ public class DateAxisValueFormatter implements IAxisValue...
package com.polsl.edziennik.desktopclient.controller.teacher.students; import java.awt.event.ActionEvent; import javax.swing.ImageIcon; import com.polsl.edziennik.desktopclient.controller.teacher.TeacherAction; import com.polsl.edziennik.desktopclient.view.teacher.StudentsManagementForTeacher; import com.pol...
package com.ifisolution.cmsmanagerment.entities; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence...
package com.gcteam.yandextranslate; import com.gcteam.yandextranslate.domain.Direction; import com.gcteam.yandextranslate.domain.Language; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; /** * Created by turist on 17.04.2017. */ public class DirectionTests { private Directi...
package pro.eddiecache.utils.props; import java.io.InputStream; import java.util.Properties; public abstract class PropertyLoader { private static final String SUFFIX = ".conf"; private static final String SUFFIX_PROPERTIES = ".properties"; public static Properties loadProperties(String name, ClassLoader loader...
package de.lise.terradoc.core.report.elements; import de.lise.terradoc.core.report.ReportDocument; import java.io.StringWriter; import java.util.ArrayList; import java.util.List; public class TableOfContents implements ReportElement { private final ReportDocument reportDocument; public TableOfContents(Repo...
package kh.picsell.dao; import java.util.List; import org.mybatis.spring.SqlSessionTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import kh.picsell.dto.NoticeFileDTO; import kh.picsell.dto.PieceNoticeFileDTO; @Repository public class PieceN...
package br.inf.ufg.mddsm.controller.img; import java.util.ArrayList; public class AlloyValidator implements Validator { @Override public ArrayList<IntentModel> validateModels(ArrayList<IntentModel> models, Object... params) { DSC dsc = (DSC) params[0]; ArrayList<IntentModel> validModels = new ArrayList<IntentM...
package com.tencent.mm.g.a; public final class qs$b { public boolean bJm = false; }
package com.sporsimdi.model.entity; import javax.persistence.Entity; import javax.persistence.Table; import com.sporsimdi.model.base.ExtendedModel; @Table @Entity public class TesisTipi extends ExtendedModel { private static final long serialVersionUID = 8986161490957095179L; private String adi; ...
package com.tencent.mm.plugin.aa; import android.widget.Toast; import com.tencent.mm.g.a.bp; import com.tencent.mm.plugin.aa.b.4; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.plugin.wxpay.a.i; import com.tencent.mm.protocal.c.c; import com.tencent.mm.sdk.platformtools.ad; import com.tencent.mm....
/* * 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.agfa.dach.support.internal.atms.controller; import com.agfa.dach.support.internal.atms.data.AggregateAppointment; import c...
package com.yuta.clocktime.adapter; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import ...
package com.sinata.rwxchina.component_home.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.Text...
package com.weigs.PrototypePattern; /** * @author weigs * @date 2017/7/2 0002 */ public class Rectangle extends Shape { public Rectangle() { type = "Rectangel"; } @Override public void draw() { System.out.println("Rectangle::draw()"); } }
package com.example.week5; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.GridView; import android.widget.Text...
package edu.kit.pse.osip.core.utils.language; import java.util.Locale; import java.util.MissingResourceException; import java.util.ResourceBundle; /** * This class is the interface to load menu texts in different languages. * * @author Maximilian Schwarzmann * @version 1.0 */ public final class Translator { ...
package com.xhs.property.enumClass; public enum PropertyContentEnum { wait_review("待审核", 0), review_pass("审核通过", 1), not_pass("未审核通过", 2); private String type; private int state; PropertyContentEnum(String type, int state) { this.type = type; this.state = state; } pub...
package com.e6soft.activiti.controllers; import java.io.InputStream; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletResponse; import org.activiti.engine.RepositoryServic...
package com.project.service; import java.util.HashMap; import java.util.List; import com.project.dto.DefaultData; public interface DashboardService { public List<HashMap<String, Object>> getDashboardRecords(DefaultData data); }
package org.fuserleer.crypto.bls.group; import java.util.Collection; import java.util.Objects; import org.apache.milagro.amcl.BLS381.BIG; import org.apache.milagro.amcl.BLS381.ECP; import org.fuserleer.utils.Numbers; /** * Forked from https://github.com/ConsenSys/mikuli/tree/master/src/main/java/net/consensys/mikul...
package ninja.littleed.swing.watermark; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Graphics; import java.io.IOException; import java.io.InputStream; import java.net.URI; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.Windo...
package br.edu.unidavi.cities; import android.Manifest; import android.arch.lifecycle.ViewModelProviders; import android.content.DialogInterface; import android.content.pm.PackageManager; import android.location.Location; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import a...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Maryam Athar Khan // Lab 03 // September 11, 2015 // This program will determine how much each person in a group has to spend in order to pay the check after a restaurant meal // // import S...
package com.alexngai.moxieappv2.tabs; import com.alexngai.moxieappv2.tabs.exercise.ActivityFragment; import com.alexngai.moxieappv2.tabs.exercise.ExerciseFragment; import android.app.Activity; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.Fragment...
package com.tencent.tencentmap.mapsdk.a; import com.tencent.tencentmap.mapsdk.a.ld.b; /* synthetic */ class lj$4 { static final /* synthetic */ int[] a = new int[b.values().length]; static { try { a[b.a.ordinal()] = 1; } catch (NoSuchFieldError e) { } try { ...
package com.poker.lobby; import java.util.ArrayList; import java.util.List; import java.util.Optional; import com.engine.event.EventManager; import com.player.Player; import com.player.TablePlayer; import com.poker.table.Blinds; import com.poker.table.Table; /** * The lobby controller, contains methods for finding ...
package com.espendwise.manta.auth; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.GrantedAuthorityImpl; import java.util.Arrays; public class AuthConst { public static final String ROLE_UNDEFINED = "ROLE_UNDEFINED"; public static final String N...
package com.technology.share.mapper; import com.technology.share.domain.view.VExtCss; public interface VExtCssMapper extends MyMapper<VExtCss> { }
package com.example.Calculator.model; public class Doctorinfo { String name; int id; String section; float timmimg; //peramiterised constructor public Doctorinfo(String name, int id, String section, float timmimg) { this.name = name; this.id = id; this.section = section...
package subjects.sample.string; /** * @description: “气球” 的最大数量balloon * https://leetcode-cn.com/problems/maximum-number-of-balloons/ * @author: dsy * @date: 2020/11/27 17:26 */ public class S1189 { public static int maxNumberOfBalloons(String text) { int[] nums = new int[5]; for (char c : text...
package org.sodeja.functional; public interface Function4<R, P1, P2, P3, P4> { public R execute(P1 p1, P2 p2, P3 p3, P4 p4); }
package com.ebupt.portal.canyon.common.annotation; import com.ebupt.portal.canyon.common.enums.LogEnum; import java.lang.annotation.*; /** * 日志注解 * * @author chy * @date 2019-03-08 15:23 */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface EBLog { String value() d...
package com.fpmislata.banco.negocio.dominio; public enum Rol { ADMINISTRADOR, USUARIO }
package org.bashemera.openfarm.repository; import org.bashemera.openfarm.model.AnimalType; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @RepositoryRestResource(collectionResourceRel = "animaltype", path = "animalTypes"...
package com.company; import java.util.Random; public class basic_array_2 { public static void main(String[] args) { Random random = new Random(); int[] number= new int[10]; for(int i=0; i<number.length; i++){ number[i]=1+random.nextInt(100); System.out.println("Slot "+i+" contains ...
package newgame; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.layout.*; import javafx.stage.Stage; import mainmenu.ButtonOneHandlerObject; import matches.MatchOpponents; import java.io.FileInputStream; public class...
package woc.assignment.one; import java.util.HashMap; import java.util.HashSet; import java.util.Set; public class StringDuplicateCount { public static void main(String[] args) { String key = "Ram is a good boy Ram good"; String[] strARR = key.split(" "); System.out.println("Word coumt : "...
package com.sinata.rwxchina.aichediandian.wxapi; /** * @author HRR * @datetime 2017/12/29 * @describe * @modifyRecord */ public class Constants { public static final String APP_ID = "wx62b43c4dd762da48"; }
package it.com.aop.dao; import it.com.aop.entity.User; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ju...
package service; import dto.Page; import dto.StuTea; import dto.Student; import java.util.HashMap; /** * Created by Esther on 2016/8/20. */ public interface StudentService { /** * 列出学生 * @return 学生列表 */ HashMap<String, Object> list(Page page); /** * 添加学生 * ...
package com.mahirkole.walkure.model; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.*; import java.util.Date; import java.util.Set; @EqualsAndHashCode(callSuper = true) @Data @Entity public class Season extends CoreModel { @Id @GeneratedValue private Long id; @ManyToO...
package com.pine.template.mvvm.adapter; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.databinding.DataBindingUtil; import com.pine.template.base.recycle_view.BaseListViewHolder; import com.pi...
package igra; public enum Stanje { BELI_NA_POTEZI, CRNI_NA_POTEZI, ZMAGA_CRNI, ZMAGA_BELI, NEODLOCENO; public Stanje zamenjaj() { if ( this == BELI_NA_POTEZI) { return CRNI_NA_POTEZI; } else if ( this == CRNI_NA_POTEZI ) { return BELI_NA_POTEZI; } else { return this; } } } ...
package com.beiyelin.addressservice.controller; import com.beiyelin.addressservice.entity.City; import com.beiyelin.addressservice.service.CityService; import com.beiyelin.common.resbody.ResultBody; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMappin...
package cn.edu.jsu.cyz.vo; import java.io.Serializable; public class staff implements Serializable { private String JobNumber; private String Name; private int Age; private String DepartmentNumber; private String DepartmentName; private int WageId; public staff(String jobNumber, String name, int age, String ...
// ********************************************************************** // This file was generated by a TAF parser! // TAF version 3.2.1.6 by WSRD Tencent. // Generated from `/data/jcetool/taf//upload/opalli/pitu_meta_protocol.jce' // ********************************************************************** package NS_...
package com.city.beijing.service.impl; import com.city.beijing.dao.CheckExceptionDao; import com.city.beijing.model.LogLoanMatchedCheckException; import com.city.beijing.model.LogLoanMatchedCheckExceptionExample; import com.city.beijing.service.CheckExceptionService; import com.city.beijing.utils.Utility; import org.s...
package org.jboss.perf.test.server.dao; import java.util.List; import org.jboss.perf.test.server.model.Local; public interface LocalDao { List<Local> getLocalsByProjectId(long projectId); }
import java.util.Arrays; public class ArraysExercises { public static void main(String[] args) { // int[] numbers = {1, 2, 3, 4, 5}; Person[] newPerson = new Person[3]; newPerson[0] = new Person("Correy"); newPerson[1] = new Person("Jon"); newPerson[2] = new Person("Doe");...
package com.awrzosek.ski_station.cong_prize_management; import com.awrzosek.ski_station.basic.BasicConsts; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.*; public class SkipassPriceManager {//TODO zawrzeć to jakoś fajnie w ui - może być póki co brzydko private static final BigDecimal...
package Objects.TrafficLight.TrafficLightState; import Objects.DrawObject; public abstract class State implements DrawObject { public abstract String getName(); }
import java.util.*; public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int q[] = new int[in.nextInt()]; for(int z=0;z<q.length;z++){ q[z] = in.nextInt(); } System.out.println(java.util.Arrays.stream(q).sum()); } }
package com.kangYh.fangdou2.app.mine; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.bumptech.glide.Glide; import com.bumptech.g...
package video; import java.io.File; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketTimeoutException; import java.sql.SQLException; import ja...
package com.javed.jkclasses; import java.util.ArrayList; import java.util.HashMap; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; ...
package com.plter.translate3d; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animatio...
package la.opi.verificacionciudadana.exceptions; /** * Created by Jhordan on 11/02/15. */ public class StorageException extends Exception { public StorageException() { super(); } public StorageException(String msg) { super(msg); } }
package com.urhive.panicbutton.activities; import android.annotation.SuppressLint; import android.os.Bundle; import android.support.design.widget.CoordinatorLayout; import android.support.design.widget.TabLayout; import android.support.v4.app.FragmentManager; import android.view.Menu; import android.view.MenuInflater;...
package com.shop.dao; import java.util.List; import com.shop.model.User; public interface UserDao extends BaseDao<User> { // 根据用户名查询用户 public User findByUsername(String userName); // 根据用户名和密码查询用户 public User findByUsernameAndPassword(String username, String password); // 根据激活码查询用户 public User findByCode(Stri...
package engine.events; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.PriorityQueue; import java.util.Queue; import engine.events.Event.EventType; /** * * @author Anselme FRANÇOIS * */ public class EventManager { private stat...