text
stringlengths
10
2.72M
/* * Copyright 2011 frdfsnlght <frdfsnlght@gmail.com>. * * 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 appl...
package au.rmit.bde; import java.io.IOException; import java.text.DecimalFormat; import java.util.HashMap; import java.util.Map; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io....
package br.com.teste.agenda.service.command; import br.com.teste.agenda.dto.command.TelefoneCommandDto; public interface ITelefoneCommandService { TelefoneCommandDto salvar(TelefoneCommandDto telefoneDto); void remover(String id); }
package com.example.mvpclean.domain.filters; import com.example.mvpclean.datas.HomeCategory; import java.util.List; /** * HomeCategory 탭의 데이터 가공하는 인터페이스 */ public interface CategoryFilter { List<HomeCategory> filter(List<HomeCategory> tasks); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package openopoly.err; /** * * @author amferraz */ public class UnmortgageablePlaceException extends GameException{ /** * O construtor da classe configura uma mensagem especifica da exceção */ pub...
package ca.csf.dfc.poo.adaptateur.classes; public interface MediaPlayer { public void play(String audioType, String fileName); }
package com.rc.portal.webapp.action; import java.io.PrintWriter; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import com.rc.app.framework.webapp.action.BaseAction; import com.rc.app.framework.webapp.model.page.PageWraper; import com.rc.portal.serv...
package com.example.homestay_kha; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import android.Manifest; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.loc...
package com.samples.queue; public class PriorityQueueTest { }
package com.tencent.mm.plugin.wallet_core.id_verify; import android.app.Activity; import android.content.Intent; import com.tencent.mm.g.a.sz; import com.tencent.mm.g.a.tk; import com.tencent.mm.sdk.b.a; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; class a$1 implements Runnab...
/** * */ package com.goodhealth.design.demo.Singleton; /** * @author 24663 * @date 2018年10月19日 * @Description 线程安全的饿汉式单例 不是按需加载,直接初始化实例对象 */ public class SingletonB { //访问方式: SingletonB instance=SingletonB.getInstance(); private static SingletonB single=new SingletonB(); private S...
package components; public class Matrix { int size; private int[][] matrice; public Matrix(int size) { this.size = size; this.matrice = new int[size][size]; int x = 0; while (x < size) { int y = 0; while (y < size) { this.matrice[x][y] = -1; ++y; } ++x; } } public int getSize() { ...
package tr.edu.fsm.javaprogramingapp.konu; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; import tr.edu.fsm.javaprogramingapp.R; /** * Created by dilara on 02/12/16. */ public class Aciklamalar extends Activity { private WebView webView; public void onCreate(Bundle ...
// Write a Java program that takes a number as input and prints its multiplication table upto 10. // Test Data: // Input a number: 8 // Expected Output : // 8 x 1 = 8 // 8 x 2 = 16 // 8 x 3 = 24 // ... // 8 x 10 = 80 class task7{ public static void main(String[] args) { Integer numeris; System.out.print("Ive...
package com.uii.academico.Adapter; import android.content.Context; import android.graphics.Color; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; import com.android.voll...
package enthu_leitner; public class e_982 { private static int loop = 15; static final int INTERVAL = 10; boolean flag; static { System.out.println("Static"); } static { loop = 1; } static { loop += INTERVAL; } { flag = true; loop = 0; } public static void main(String[] args) { } }
package com.yiki.blog.SecurityLearn; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; @Service public class JWTservice { @Autowired private BCryptPasswordEncoder bCryptPasswor...
package com.jlgproject.adapter.newDebt; 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.TextView; import com.bumptech.glide.Glide; import c...
package com.cmpickle.volumize.view; /** * @author Cameron Pickle * Copyright (C) Cameron Pickle (cmpickle) on 4/6/2017. */ public interface TopLevelRouter { void moveToVolumePage(); void moveToSchedulePage(); void moveToProfilePage(); void moveToSettingsPage(); void ...
package com.example.faisal.explicit_intent; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; public class newActivity extends Activity { @Override protected...
import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; /* * To change this license header, choose License Headers in ...
/* package com.demo.test.abstractfactory; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class JDBCPoolUtil { private static JDBCPool pool = JDBCPool.getJdbcPoolInstance(); public static void main(String[] args) throws SQLException { ...
package me.zeus.MoarSoundz; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; public class CommandHandling implements CommandExecutor { //================================================================...
package com.mastercom.ps.connector.config; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.lang.invoke.MethodHandles; import java.util.Properties; import org.apache.log4j.Logger; import com.mastercard.api.c...
package com.ireslab.sendx.electra.electra; import java.util.UUID; import org.apache.commons.text.RandomStringGenerator; public class TestOperationsClass { public static void main(String[] args) { System.out.println(UUID.randomUUID().toString().replaceAll("-", "")); System.out.println(new RandomStringGenerator...
import java.util.Random; public class EstadoTabuleiro { private int casas[][]; private int numRainhas; private int heuristica[][]; private int posRainhas[]; public EstadoTabuleiro(int dimensao) { this.numRainhas = dimensao; this.casas = new int[dimensao][dimensao]; ...
package ProgramacionModular; import java.util.Scanner; public class FactorialRecursividad { static Scanner entrada = new Scanner(System.in); public static void main(String[] args) { int numero =pedirNumero(); int resultado=factorial(numero); verResultado(resultado); } ////////////////////////////////////////...
package com.crewmaker.controller; import com.crewmaker.dto.response.ApiResponse; import com.crewmaker.dto.response.ImageResponse; import com.crewmaker.service.ImageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.stereoty...
package de.zarncke.lib.index.crit; import java.io.Serializable; import java.util.Collection; import java.util.LinkedHashSet; /** * Represents constraints on elements of a specific type by any of a number of keys. * * @author Gunnar Zarncke * @param <K> key type * @param <T> object type */ public ab...
package architecture; import java.io.File; import java.util.Scanner; import rdbms.RDBMS; import tools.BasicFunctions; import dataStructure.ParseTreeNode; import dataStructure.Query; import edu.stanford.nlp.parser.lexparser.LexicalizedParser; import javax.xml.parsers.DocumentBuilder; import javax.xml.parser...
package com.lingnet.vocs.dao.impl.workorder; import java.util.List; import org.hibernate.SQLQuery; import org.springframework.stereotype.Repository; import com.lingnet.common.dao.impl.BaseDaoImplInit; import com.lingnet.util.Pager; import com.lingnet.vocs.dao.workorder.WorkOrderLogDao; import com.lingnet.v...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the ter...
package group.wnrcorp.com.navigationproject; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; public class FirstFragment3 extends Fragment { private static final String ...
package fr.isima.cours.jee.server; import fr.isima.cours.jee.business.UserDisplay; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; impo...
package com.worldchip.advertising.client.entity; public class System { private Date date; private Time time; private int Vol; private int Angle; public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public Time getTime() { return time; } public void setTime(T...
package com.example.userportal.service.impl; import com.example.userportal.domain.Product; import com.example.userportal.domain.SpecificationPosition; import com.example.userportal.exception.ResourceNotFoundException; import com.example.userportal.repository.ProductRepository; import com.example.userportal.repository....
package org.bashemera.openfarm.service; import java.util.List; import org.bashemera.openfarm.model.Config; import org.bashemera.openfarm.repository.ConfigRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class ConfigManager imple...
package www.mapscloud.cn.listdemo.activity; import android.app.Activity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import java.util.ArrayList; import java.util.List; import www.mapscloud.cn.listdemo.R; impo...
package plp.orientadaObjetos1.declaracao.variavel; import plp.expressions2.memory.VariavelJaDeclaradaException; import plp.expressions2.memory.VariavelNaoDeclaradaException; import plp.orientadaObjetos1.excecao.declaracao.ClasseJaDeclaradaException; import plp.orientadaObjetos1.excecao.declaracao.ClasseNaoDeclaradaExc...
package day20passbyvaluepassbyreferencedate; import java.util.ArrayList; import java.util.List; public class ForEachLoop01 { //Remove repeated elements from a list //Example: [a, b, c, b, a, a, d] ==> [a, b, c, d] public static void main(String[] args) { List<String> list = new ArrayList<>(); list.ad...
package li.cil.ceres.api; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotation used to mark fields as serialized for generated serializers. * <p> * This annotation may also be used on classe...
package com.base.ifocus.myapplication.Fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater;...
package com.hawk.mgc.repository.springdatajpa; import java.sql.Timestamp; import java.util.Date; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.TypedQuery; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package graphics; import graphics.Sprite; import java.util.logging.Level; import java.util.logging.Logger; import org.lwjgl.util.vector.Vector2f; import org.newdawn.slick.Animation; import org.newdawn.slick.S...
package com.shsy.tubebaby.Converter; import android.accounts.NetworkErrorException; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import org.json.JSONException; import org.json.JSONObject; import java.io.ByteArrayInputStream; import java.io.IOException; i...
package power; /** * Square is a class used to represent a box of the grid. */ public class Square { private int x; //column position private int y; //line position private CoinColor color; /** * Create a Square item with given coordinates. * * @param x the value of the column positio...
package day38interview; public class PostAndPreIncrement { public static void main(String[] args) { // int a= 12; a= a++; System.out.println(a);//12 int b= 22; b++; System.out.println(b);//23 int c= 32; c= ++c; System.out.println(c);//33 } }
package com.sdk4.boot.util; import javax.servlet.http.HttpServletRequest; /** * @author sh */ public class DruidUtils { private DruidUtils() { throw new IllegalStateException("Utility class"); } public static void setLoginedName(HttpServletRequest request, String username) { if (usernam...
package com.zhiyou100.controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import com.zhiyou100.service.exception.LoginException; import com.zhiyou100.service.exception.SeckillException; // ...
package com.smxknife.flink.useranalysis.hotitemsanalysis; import com.smxknife.flink.useranalysis.hotitemsanalysis.model.ItemViewCount; import org.apache.flink.api.common.state.ListState; import org.apache.flink.api.common.state.ListStateDescriptor; import org.apache.flink.configuration.Configuration; import org.apache...
package ngordnet; import java.util.HashMap; import java.util.Collection; import edu.princeton.cs.introcs.In; public class NGramMap { HashMap<Integer, YearlyRecord> words; TimeSeries<Long> counts; /** Constructs an NGramMap from WORDSFILENAME and COUNTSFILENAME. */ public NGramMap(String wordsFilename...
package principal.base.utils; public class Constantes { public static final String URL = "rapiservi-rapitaxi.rhcloud.com"; public static final String PUERTO = ""; public static final String SERVLET = "rapiServer"; public static final String SERVICIOS = "rest"; public static final String URL_COMPL...
package co.uniqueid.authentication.client; import com.google.gwt.json.client.JSONObject; public class UniqueIDGlobalVariables { public static JSONObject uniqueID = null; public static JSONObject companyUniqueID = null; }
package com.sinata.rwxchina.component_basic.basic.basiccomment; import android.content.Context; import android.support.annotation.LayoutRes; import android.support.annotation.Nullable; import android.widget.ImageView; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseView...
package com.mahirkole.walkure.aspect; import com.mahirkole.walkure.exception.CoreException; import com.mahirkole.walkure.util.CoreResponse; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.springframework.core.annotation.Order...
package com.example.structural.proxy; /** * Copyright (C), 2020 * FileName: Girl * * @author: xieyufeng * @date: 2020/10/27 10:58 * @description: */ public interface Girl { void eat(); void shopping(); }
package gcodeviewer.utils; public class Bounds { // these define a BoundingBox MutablePoint5d lower, upper; // this is a bounding sphere float radius; public Bounds() { lower = new MutablePoint5d(Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE); upper = new MutablePoint5d(Float.MIN_VALUE, Float.MIN_VALUE...
package test; import java.util.Comparator; import model.AccessPoint; import model.GridPoint; /** * Sort based on the distance between a given reference point * @author Quentin Braet * */ public class APDistanceComparator implements Comparator<AccessPoint> { private GridPoint reference; /** * Constructor f...
// salesperson class public class SalesPerson { private String name = null; private int numItem1sold = 0; private int numItem2sold = 0; private int numItem3sold = 0; private int numItem4sold = 0; private double totalSales = 0.0; private double weekWage = 0.0; private final double rate =0.09; private final...
package com.bank.investments.request; import com.bank.investments.domain.Investment; import com.bank.investments.domain.InvestmentStatus; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; @Getter @Setter @AllArgsConstructor public class InvestmentRequest { ...
package com.jt.order.service.impl; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.jt.order.mapper.OrderItemMapper; import com.jt.order.mapper.OrderMapper; import com.jt.order.mapper.Order...
package com.tencent.mm.ui; public class ae$b { int egS; int id; int order; int tpN; public ae$b(int i, int i2, int i3) { this(i, i2, i3, 0); } public ae$b(int i, int i2, int i3, int i4) { this.id = i; this.tpN = i2; this.egS = i3; this.order = i4; ...
public class Main { // public static void main(String[] args) throws InterruptedException { // Thread thread = Thread.currentThread(); // System.out.println("Current thread: " + thread.getName()); // // Thread.sleep(3000); // // System.out.println("Current thread: " + thread.getName()); /...
package spring.setup.service.impl; import java.util.List; import org.springframework.stereotype.Service; import spring.setup.dao.UserDao; import spring.setup.model.User; import spring.setup.service.UserService; @Service public class UserServiceImpl implements UserService { private final UserDao userDao; publ...
package com.nurhossen.bdjosbnurassignment.service.network; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; import static com.nurhossen.bdjosbnurassignment.utils.ApiConstant.BASE_URL; public class RetrofitClient { private static volatile Retrofit retrofitinstance =null; priv...
package edu.wayne.cs.severe.redress2.parser; import edu.wayne.cs.severe.redress2.entity.CompilationUnit; import edu.wayne.cs.severe.redress2.entity.TypeDeclaration; import edu.wayne.cs.severe.redress2.exception.CompilUnitException; import java.util.ArrayList; import java.util.List; /** * This is a compilation unit ...
/* * 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.mcc.poliklinik.controller; import com.mcc.poliklinik.entities.Jadwal; import com.mcc.poliklinik.services.JadwalSer...
package com.xiruan.demand.demand.job; import com.xiruan.demand.entity.automation.JobTemplate; import com.xiruan.demand.repository.JobTemplateDao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.sp...
/* * 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 sprint4.project; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.i...
package org.firstinspires.ftc.teamcode.robot; /* Class for drive functionality. Called in other classes. */ import org.firstinspires.ftc.robotcore.external.Telemetry; public class Wobbler { Hardware robot; Telemetry telemetry; boolean toggleWasPressed; boolean isOpen; int closeTimer = 11; ...
package 集合; import java.io.*; /** * @Author: Mr.M * @Date: 2019-03-12 20:44 * @Description: **/ public class IO { public static void main(String[] args) throws Exception { // A(); OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream( "osw2.txt")); osw.write('a'); osw.write(97); // o...
package com.example.jkl.dao; import com.example.jkl.mapper.UserOrderShipMapper; import com.example.jkl.pojo.Order; import com.example.jkl.pojo.UserOrderShip; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import tk.mybatis.mapper.entity.Example; impo...
package com.oakfusion.router; import com.oakfusion.router.util.UriTree; import java.lang.reflect.Method; import static java.lang.String.format; public class Router { public static final Route R_404 = new Route("", "", null, null); protected RouteContext ctx; private final HttpMethodBuilder httpMethodBuilder =...
import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.DefaultListModel; import javax.swing.JButton; import javax.swing.JFileChooser; import java.awt.Font; import javax.swing.JTextField; import javax.swing.JOptionPane; ...
package com.tencent.mm.booter.notification; import java.io.Serializable; class c$a implements Serializable { public int cYz; public String userName; private c$a() { } public /* synthetic */ c$a(byte b) { this(); } public final String toString() { return "[" + this.userNa...
package engine; import engine.cutCondition.CutCondition; import java.util.List; public class TimeStepSimulator { private final double timeDelta; private final double saveTimeDelta; private final CutCondition cutCondition; private final FileGenerator fileGenerator; private final List<Particle> par...
package ProjectPersonal.Thethreecarddealer; import java.util.Random; import java.util.Vector; public class ProbabilityGame { //A class that will create Deck of 52. public class DeckofCards{ //this class stores Card number, color and suite or shape. private class Node{ String cardnumber; ...
public class Second { Simple simple; String s; public Second(String si) { s = si; // 'simple' not initialized } public void check() { if(simple == null) System.out.println("not initialized"); else System.out.println("initialized"); } private...
/* * 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 cn.canlnac.onlinecourse.data.entity; import com.google.gson.annotations.SerializedName; import java.util.List; /** * 话题列表. */ public class ChatListEntity { @SerializedName("total") private int total; @SerializedName("chats") private List<ChatEntity> chats; public int getTotal() { ...
package org.japo.java.basics.main; public class HorarioComercial { public static void main(String[] args) { // Apertura int HA = 9; int MA = 30; int SA = 0; // Cierre int HC = 23; int MC = 59; int SC = 59; // Hora arbitraria ...
package com.todolist.app.ws.io.entity; import java.io.Serializable; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; impor...
package com.tb.bughub.order.demo.model; import javax.persistence.*; import java.util.Objects; @Entity @Table(name="MENU_ITEM") public class MenuItem { @Id @Column(name = "id") private String id; @Column(name = "name") private String name; @ManyToOne(cascade = CascadeType.ALL,fetch = FetchTyp...
// // Generated by JTB 1.3.2 // package visitor; import syntaxtree.*; import java.util.*; /** * Provides default methods which visit each node in the tree in depth-first * order. Your visitors may extend this class. */ public class ConverttoMiniRA1 extends GJDepthFirst<Arginfo,Arginfo>{ // // Auto class vis...
package com.java.smart_garage.contracts.serviceContracts; import com.java.smart_garage.models.Currency; import java.util.List; public interface CurrencyMultiplierService { List<Currency> getAllCurrency(); double getCurrency(String value); }
package com.example.sonata.personaldiary; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.ContextMenu; import android.view.Menu; impo...
package www.movieapp.Constant; /** * Created by amy on 10/24/2017. */ public class Constant { public static String END_POINT="http://api.themoviedb.org/3/"; public static String POSTER_PATH="http://image.tmdb.org/t/p/w185"; public static String SORT_BY_TOP_RATED="movie/top_rated"; public static St...
package com.sxf.service; import com.sxf.entity.Manager; public interface ManagerService { Manager find(String username); void add(String username, String number); void del(Integer mid); void edit(Integer mid, String username, String password); }
package q0581; import java.util.Arrays; import java.util.Stack; public class ShortestUnsortedContinuousSubarray { /** 给定一个整数数组,你需要寻找一个连续的子数组,如果对这个子数组进行升序排序,那么整个数组都会变为升序排序。 你找到的子数组应是最短的,请输出它的长度。 示例 1: 输入: [2, 6, 4, 8, 10, 9, 15] 输出: 5 解释: 你只需要对 [6, 4, 8, 10, 9] 进行升序排序,那么整个表都会变为升序排序。 */ public static int...
/* * 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.radio.Model; import javax.annotation.Generated; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; @Generated("jsonschema2pojo") public class TemplateParams { @SerializedName("user_name") @Expose private String userName; @SerializedName(...
package com.elvarg.world.entity.combat.magic; import java.util.Iterator; import java.util.Optional; import com.elvarg.world.World; import com.elvarg.world.entity.combat.CombatFactory; import com.elvarg.world.entity.combat.hit.PendingHit; import com.elvarg.world.entity.combat.method.impl.MagicCombatMethod; import com.e...
package com.cpe.mysql.webblog.controller; import com.cpe.mysql.webblog.entity.Role; import com.cpe.mysql.webblog.model.RoleModel; import com.cpe.mysql.webblog.repository.RoleRepository; import com.cpe.mysql.webblog.services.RoleService; import org.springframework.beans.factory.annotation.Autowired; import org.s...
package smart.entity; import jakarta.persistence.*; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; @DynamicInsert @DynamicUpdate @Entity @Table(name = "t_admin_user") public class AdminUserEntity extends BaseEntity { @GeneratedValue(strategy = Generation...
package com.javarush.task.task18.task1822; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.Buffer; import java.util.Arrays; /* Поиск данных внутри файла */ public class Solution { public static void main(String[] args) { ...
package com.kuali.sim; import java.util.ArrayList; import java.util.List; public class Elevator { /* * identity of this elevator */ private String name; private int idx; /* * Occupied, UnOccupied, Maintenance */ private Service.Status status; /* * Opended, Closed */ priva...
package pl.polsl.wkiro.recognizer.logic; import com.openalpr.jni.Alpr; import com.openalpr.jni.AlprPlateResult; import com.openalpr.jni.AlprResults; import com.openalpr.jni.exceptions.ProcessingException; import com.openalpr.jni.exceptions.TaskInterruptedException; import pl.polsl.wkiro.recognizer.dto.ProcessingResul...
package br.com.nozinho.ejb.service.impl; import javax.ejb.Stateless; import br.com.nozinho.ejb.service.RegionalService; import br.com.nozinho.model.Regional; @Stateless public class RegionalServiceImpl extends GenericServiceImpl<Regional, Long> implements RegionalService { }
package boundary; import java.awt.BorderLayout; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.eve...
package com.FileL.打印流; /* * printStream * printWriter * println()调用的就是打印流的各种重载的函数*/ import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.InputStreamReader; public class Demo { //1.PrintStream public static void main(String[] args) throws FileNotFo...