text
stringlengths
10
2.72M
package es.maltimor.genericRest; import java.util.Date; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.DeleteProvider; import org.apache.ibatis.annotations.InsertProvider; import org.apache.ibatis.annotations.Options; import org.apache.ibatis.annotations.Result; import org.apache.ib...
package com.wework; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.util.HashMap; import java.util.Map; public class WebPage { private String url; private Integer rank; private Integer sessions=0; private Map<String, String> searchTermExists = new HashMap<String, String>...
package com.dao.impl; import com.dao.IUserDao; import com.pojo.User; import com.util.JdbcUtil; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; public class UserDaoImpl implements IUserDao { ...
package nyc.c4q.theaulait; /** * Created by c4q-vanice on 3/28/15. */ import java.util.ArrayList; public class Dog { String name; String breed; int age; public Dog(String name, String breed, int age){ this.name = name; this.breed = breed; this.age = age; } public S...
package com.projeto.view.ingrediente; import java.util.List; import javax.swing.table.AbstractTableModel; import com.projeto.model.models.Ingrediente; public class TabelaIngredienteModel extends AbstractTableModel{ private static final long serialVersionUID = -5426828834886363335L; private final String colunas[...
package com.example.huanglisa.nightynight; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.ArrayList; import java.util.List; /** * Created by huanglisa on 11/20/16. */ public...
package com.test.singtelInterface; public interface CommonFeaturesForBirdAndButterFly { public void fly(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package legaltime.controller; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import legaltime.model.ClientBean; import legaltime.model.ClientManager; import legaltime.mod...
package com.bingo.code.example.design.facade.facadepartfunction; public interface CModuleApi { //子系统外部使用 public void c1(); //子系统内部使用 public void c2(); //子系统内部使用 public void c3(); }
package iterator; import chainexception.ChainException; public class TopNRAJoinException extends ChainException{ public TopNRAJoinException(String s){super(null,s);} public TopNRAJoinException(Exception prev, String s){ super(prev,s);} }
/** * 208. Implement Trie (Prefix Tree) * Medium * 一开始另写了个TreeNode,要清楚一点,不过要精简的话,代码还可以提取一下就是 */ class Trie { public int count; public Trie[] child; /** Initialize your data structure here. */ public Trie() { this.count = 0; this.child = new Trie[26]; } /** Inserts a word i...
package leetcode; /** * @author kangkang lou */ public class Main_28 { public static int strStr(String haystack, String needle) { if (haystack.length() < needle.length()) { return -1; } if (haystack.equals("") && needle.equals("")) { return 0; } int...
package com.tencent.mm.plugin.facedetect.ui; import android.text.TextPaint; import android.text.style.ClickableSpan; import android.view.View; import com.tencent.mm.plugin.facedetect.a.b; import com.tencent.mm.protocal.c.bbt; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; class...
package io.github.vibrouter.managers; import android.content.Context; import com.google.android.gms.maps.model.LatLng; import java.util.HashSet; import java.util.Set; import io.github.vibrouter.hardware.RotationSensor; import io.github.vibrouter.hardware.SelfLocalizer; import io.github.vibrouter.models.Coordinate; ...
import java.util.Scanner; import java.io.*; public class Commission{ public static double Cal(double amt){ double inst=5.5; double inst1=10.0; double com=0.0; if(amt<=50000.90){ com=amt*(inst/100); } else{ com=amt*(inst1/100); } return com; } public static void main(String args[]){ double amt=460.500; System.out.printl...
package com.mrice.txl.appthree.adapter; /** * Created by app on 2017/10/11. */ public class FTwoAdapter { }
package com.ryl.framework.jwt; import com.fasterxml.jackson.databind.ObjectMapper; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import javax.servlet.http.HttpServletRequest; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import static com....
package pages; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; public class RegisterPage { static WebDriver driver; public RegisterPage(WebDriver driver) { this.driver = driver; } public void preencherIdDinamico() { WebElement d...
package com.fundwit.sys.shikra.authentication; import org.junit.Test; import static org.junit.Assert.*; public class BearerAuthenticationTokenTest { @Test public void test() { String token = "test_token"; BearerAuthenticationToken authenticationToken = new BearerAuthenticationToken(token); ...
package edu.isi.karma.cleaning.research; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.PriorityQueue; import java.util.Vector; import ...
package graphana.graphs.visualization.output; import java.awt.*; /** * Implementing class holds a contour color * * @author Andreas Fender */ public interface GraphOutputContourColor { public Color getContourColor(); }
package com.sudipatcp.tree; import java.util.ArrayList; public class ZigZagLevelOrder { public void printLevelOrder(Node root){ ArrayList<ArrayList<Integer>> ans = new ArrayList<>(); int h = height(root); int i; ArrayList<Integer> hold; for (i=1; i <=h; i++){ ...
package com.jhy.reduce; import com.jhy.entity.TerminalTypeInfo; import com.jhy.util.MongoUtils; import org.apache.flink.streaming.api.functions.sink.SinkFunction; import org.bson.Document; /** * 用户终端偏好标签Sink * 将统计的结果数量存到Mongo里 * * Created by JHy on 2019/05/13 */ public class TerminalTypeSink implements Sink...
package com.mx.profuturo.bolsa.service.reports; import java.io.IOException; import javax.servlet.http.HttpServletResponse; import com.mx.profuturo.bolsa.model.reports.vo.ReportVO; public interface ExcelService { void downloadXLSXFile(HttpServletResponse response, ReportVO report) throws IOException; }
package com.tencent.rtmp.sharp.jni; import android.content.Intent; import java.util.ArrayList; class TraeAudioManager$2 implements Runnable { final /* synthetic */ ArrayList a; final /* synthetic */ String b; final /* synthetic */ String c; final /* synthetic */ TraeAudioManager d; TraeAudioManag...
/* * Copyright (C) 2013 readyState Software Ltd * * 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 ...
package com.seemoreinteractive.seemoreinteractive; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSON...
package com.mahirkole.walkure.model; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @EqualsAndHashCode(callSuper = true) @Data @Entity public class Country extends CoreModel { @Id @GeneratedValue ...
package com.tencent.mm.plugin.setting.ui.setting; import android.content.Intent; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.kernel.g; import com.tencent.mm.sdk.platformtools.ah; import com.tencent.mm.sdk.platformtools.x; class SettingsAliasUI$5 implements e { final /* synthetic ...
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final /** * Lagdays generated by hbm2java */ public class Lagdays implements java.io.Serializable { private LagdaysId id; public Lagdays() { } public Lagdays(LagdaysId id) { this.id = id; } public LagdaysId getId() { retu...
package com.tencent.mm.ae; import android.database.Cursor; import com.tencent.mm.model.ah; import com.tencent.mm.model.au; import com.tencent.mm.model.c; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.sdk.platformtools.x; public final class b extends ah { public final boolean gV(int i) { ...
/* * 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 Gestion.vues.InterfacesGraphiques; import Gestion.controllers.ClassMetiers.UtilisateurMetier; import Gestion.passerelle.Passer...
package com.mochasoft.fk.configuration.mapper; import java.util.List; import com.mochasoft.fk.configuration.entity.Configuration; import com.mochasoft.fk.mapper.MyBatisRepository; @MyBatisRepository public interface ConfigurationMapper { /** * This method was generated by MyBatis Generator. ...
package com.projetopadrao.models.resposta; public class Tarefa { }
/* * [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 te...
package com.ml.coupon.web.rest.error; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.MethodArgumentNotValidException; import org.springframework.web.bind.annotation.ControllerAdvice; import org...
package academy.devdojo.variaveis; import java.util.Scanner; public class CalculadorDiferencaIdade { public static void main(String[] args) { int firstAge = 26; int secondAge = 22; int ageDifferent = firstAge - secondAge; System.out.println("A diferença entre as...
package com.tencent.mm.plugin.music.model.e; import android.net.Uri; import android.text.TextUtils; import com.tencent.mars.smc.IDKey; import com.tencent.mm.an.d; import com.tencent.mm.hardcoder.HardCoderJNI; import com.tencent.mm.plugin.music.c.a.b; import com.tencent.mm.plugin.music.cache.e; import com.tencent.mm.pl...
package com.trust.demo.code.QuanXian; import android.annotation.TargetApi; import android.app.AppOpsManager; import android.app.usage.UsageStats; import android.app.usage.UsageStatsManager; import android.content.Context; import android.content.Intent; import android.os.Build; import android.provider.Settings; import...
package com.example.wpro.myapp7; import android.app.DatePickerDialog; import android.app.TimePickerDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.DatePicker; import android.widget.EditText; import android.widget.TimePicker; import jav...
package enthu_f; public class e_1393 { public static void main(String[] args) { String myStr = "good"; char[] myCharArr = { 'g', 'o', 'o', 'd' }; String newStr = ""; for (char ch : myCharArr) { newStr = newStr + ch; } boolean b1 = newStr == myStr; boolean b2 = newStr.equals(myStr); System.out.prin...
package com.company; import java.util.Scanner; public class Task2_2 { public static boolean isPalindrome(String text) { text = text.replaceAll("\\W",""); ////delete unnecessary symbols StringBuilder strBuilder = new StringBuilder(text); strBuilder.reverse(); ...
package Peli; public class Nappula { private boolean valkoinen; public Nappula() { // TODO Auto-generated constructor stub } }
package com.wuyan.masteryi.admin.controller; import com.wuyan.masteryi.admin.service.CategoryService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org...
package com.ev.srv.demopai.service; import com.evo.api.springboot.exception.ApiException; import java.util.Map; import com.evo.api.springboot.exception.ApiException; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.http.ResponseEntity; import org.springframework.web.multipart.MultipartFil...
package com.xujiangjun.archetype.exception; import com.xujiangjun.archetype.enums.ResponseEnum; import lombok.Getter; /** * 自定义业务异常类 * * @author xujiangjun * @since 2018.05.20 */ public class BusinessException extends RuntimeException { @Getter private int code; public BusinessException(ResponseEnu...
package Application; import java.io.IOException; import Clustering.FCM_Fast; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.geometry.Insets; import javafx.scene.control.Button; import javafx.scene.cont...
package com.ientaltsev2.langs; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.ClientProtocolException; impo...
package com.herz.sockets.client; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.InetAddress; import java.net.Socket; import java.util.Random; public class ClientRunner { private Socket mSocket; private DataInputStream mDataInputStream; private...
package pages; public class ProductPage extends BasePage { public String returnTextTabProduct() { return getVisibleElementById("enterproductdata") .getText() .replaceAll("[^A-Za-z- ]", ""); } public void clickInProductTab() { getClickableElementById("enterproductdata").click(); } public void ins...
import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class Main { public static void main(String[] args) { ScheduledThreadPoolExecutor threadPoolExecutor = new ScheduledThreadPoolExecutor(3); // threadPool...
package lexer; public class Real extends Token { public final float value; public Real(float v){super(Tag.REAL);value=v;} public String toString (){return ""+value;} }
package com.example.x_b; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNul...
package ctci.chap2; import ctci.ctciLibrary.AssortedMethods; import ctci.ctciLibrary.LinkedListNode; public class DeleteMiddleNode{ // Assuming singly linked list // Can't delete if node is last the list, but could potentially flag as "end" by filling in some dummy data public static void deleteNode(LinkedListNo...
/* * Copyright (C), 2013-2014, 上海汽车集团股份有限公司 * FileName: ContentType.java * Author: baowenzhou * Date: 2015年09月28日 上午11:33:46 * Description: //模块目的、功能描述 * History: //修改记录 * <author> <time> <version> <desc> * 修改人姓名 修改时间 版本号 描述 */ package com.xjf.we...
/* * 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 edu.eci.arsw.webstore.services.product; import edu.eci.arsw.webstore.model.Product; import java.util.List; /** * * @author ...
package com.wt.jiaduo.service; import org.springframework.data.domain.Page; import com.wt.jiaduo.dto.jpa.XiaomaiTiaoxiubingHouqi; public interface XiaomaiTiaoxiubingHouqiService { public Page<XiaomaiTiaoxiubingHouqi> findAll(Integer pageNum,Integer pageSize); public XiaomaiTiaoxiubingHouqi saveOne(XiaomaiTiaoxiubi...
package io.github.qyvlik.iostnode.response.tx; import com.alibaba.fastjson.annotation.JSONField; import java.util.List; import java.util.Map; public class TxReceipt { public static final String TX_RECEIPT_STATUS_CODE_SUCCESS = "SUCCESS"; // 成功 public static final String TX_RECEI...
package com.example; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.health.Health; import org.springfr...
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder; import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.IstAnalyseIdentType; import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.IstAnalyseType; import java.io.StringWriter; import java.math.BigInteger; import javax.xml.bind.JAXBElement;...
package com.cm4j.registry; import com.cm4j.registry.registered.IRegistered; /** * 注册容器:类型为对象的class,值为对象本身 * * @author yeas.fun * @since 2021/1/7 */ public abstract class AbstractClassRegistry<K, V extends IRegistered> extends AbstractRegistry<K, V> { /** * 扫描包进行注册 * * @param packScan 待扫描的包,有多...
package cl.tesoreria.sae.retenciones.vo; public class ConvenioJudicialVO { private String convJuducialId; private String juzgado; private String sindico; private String fechaIngre; private String rut; private String dv; private String nombre; private String appPat; private String a...
package com.enat.sharemanagement.security; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class AuthenticationResponse { private String token; private String userId; private String displayName; private boolean ...
package com.cse308.sbuify.common; import java.util.Collection; import com.cse308.sbuify.album.Album; import com.cse308.sbuify.song.Song; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property="type") @JsonSubTypes...
package file; import java.io.*; import java.util.ArrayList; import entity.*; public class InputFile { ArrayList<String> data = new ArrayList<String>(); ArrayList<Contract> contracts = new ArrayList<Contract>(); public void InputFileFunction() { try { BufferedReader bis = new BufferedReader(new...
package org.wuqinghua.server; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.ZooDefs; import org.apache.zookeeper.ZooKeeper; import java.io.IOException; /** * Created by wuqinghua on 18/2/24. */ public class SomeDistributedServer { private Zoo...
package dev.televex.fhgcore.listeners; import dev.televex.fhgcore.core; import dev.televex.fhgcore.tags; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.PlayerDeathEvent; import org.bukkit.event.player.PlayerTeleportEvent; /** * All code Copyright (c) 2015 by Er...
package stubs; import java.util.Arrays; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mrunit.mapreduce.MapDriver; import org.apache.hadoop.mrunit.mapreduce.MapReduceDriver; impor...
package com.tencent.tencentmap.mapsdk.map; import com.tencent.mapsdk.raster.model.Marker; public interface TencentMap$OnMarkerDraggedListener { void onMarkerDrag(Marker marker); void onMarkerDragEnd(Marker marker); void onMarkerDragStart(Marker marker); }
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final import java.math.BigDecimal; import java.util.Date; /** * PDataDetail generated by hbm2java */ public class PDataDetail implements java.io.Serializable { private PDataDetailId id; private PDataHeader PDataHeader; private Str...
package edu.wayne.cs.severe.redress2.entity.refactoring.json; import java.util.List; public class JSONRefactoring { private String type; private List<JSONRefParam> params; private List<JSONRefactoring> subRefs; public String getType() { return type; } public List<JSONRefParam> getPa...
package com.timgroup.ahcleak; import java.net.URI; public interface Config { public static final URI SERVER_URI = URI.create("http://localhost:8888/hello"); }
package java.String; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class FindAndReplacePattern890 { public List<String> findAndReplacePattern(String[] words, String pattern) { List<String> result = new ArrayList<>(); for (String word : wo...
import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import game.arendelle.Chalet; import game.arendelle.Kingdom; import game.arendelle.Reachable; import game.arendelle.SnowPalace; import game.arendelle.SnowStorm; import game.arendelle.TrollCave; import game.ite...
package LinkedList; public class Practice5 { }
package sensorySystem; import java.awt.Color; import environment.Environment; import environment.Robot; /** * sensory system that collect environment information * @author simon * */ public class Probe { private Environment m_env; private Robot robot; public double[] distRetina; public Color[] colRetina; ...
package com.timmy.customeView.imoocRipple; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import an...
package com.tencent.mm.ui.chatting; import android.os.Looper; import android.os.Message; import com.tencent.mm.model.au; import com.tencent.mm.sdk.platformtools.ag; import com.tencent.mm.sdk.platformtools.x; class ac$1 extends ag { final /* synthetic */ ac tMu; ac$1(ac acVar, Looper looper) { this.tM...
package com.oxycab.provider.common.fcm; /** * Created by santhosh@appoets.com on 21-05-2018. */ import android.annotation.SuppressLint; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import and...
/** * */ package de.zarncke.lib.sys.module; import java.io.FileInputStream; import java.io.IOException; import de.zarncke.lib.err.Warden; import de.zarncke.lib.i18n.Translations; import de.zarncke.lib.io.IOTools; import de.zarncke.lib.jna.LinuxFunctions; import de.zarncke.lib.sys.Health; import de.zarn...
package com.campus.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; /** * 学生表 */ @Data @AllArgsConstructor @NoArgsConstructor @ToStr...
package JZOF; /** * Created by yang on 2017/3/24. */ /* 输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构) */ public class IsSubTree { public boolean HasSubtree(TreeNode root1, TreeNode root2) { boolean isSubTree = false; if(root1!=null&&root2!=null) { if (root1.val == root2.v...
package com.tencent.mm.sdk.platformtools; import android.content.Context; import android.content.res.Configuration; import android.graphics.Bitmap; import android.os.Build.VERSION; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import android.util.DisplayMetrics; import a...
package com.holmes.sorts; /** * 冒泡排序 * * 复杂度为 O(n^2) */ public class BubbleSort extends AbstractSort{ public static void main(String[] args) { int[] array = new int[]{15, 18, 13, 16, 2, 5, 8, 4, 6, 9, 12, 3, 5, 15, 16, 118, 1, 6}; AbstractSort bubbleSort = new BubbleSort(); bubbleSor...
package com.mysql.cj.util; public class DataTypeUtil { public static long bitToLong(byte[] bytes, int offset, int length) { long valueAsLong = 0L; for (int i = 0; i < length; i++) valueAsLong = valueAsLong << 8L | (bytes[offset + i] & 0xFF); return valueAsLong; } } /* Location: C:...
/* * 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 ejb.session.singleton; import ejb.session.stateless.AircraftConfigurationSessionBeanLocal; import ejb.session.stateless.Aircra...
package httf; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Graphics; import java.awt.Toolkit; import java.awt.event.KeyEvent; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; import javax.swing.JFrame; import javax.swing.JPanel; ...
package MiddleClass; import java.util.Stack; /** * @author admin * @version 1.0.0 * @ClassName useOneStackToSort.java * @Description 对一个栈里的整型数据, 按升序进行排序(即排序前, 栈里 的数据是无序的, 排序后最大元素位于栈顶) , * 要求最多只能使用一个额外的 栈存放临时数据, 但不得将元素复制到别的数据结构中 * * 这题的关键是只能使用一个额外的stack,这是个临时栈,用于倒转,还有一个本身的原有栈 * 大致思路是临时栈中由栈底从大到小排列(降序),遇到不符合规则的(...
package com.zhouyi.business.core.utils; import org.jsoup.helper.DataUtil; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * @author 李秸康 * @ClassNmae: CalendarUtils * @Description: TODO 时间工具类 * @date 2019/9/4 9:54 * @Version 1.0 **/ publi...
package lintcode; import lintcode.util.TreeNode; import java.util.Iterator; import java.util.LinkedList; import java.util.List; /** * 二叉查找树迭代器 * * @author zhoubo * @create 2017-11-03 14:29 */ public class L86 { } class BSTIterator { List<TreeNode> treeNodes = new LinkedList<>(); Iterator<TreeNode> it...
package generic; /** * Author: fangxueshun * Description: * Date: 2017/5/31 * Time: 10:23 */ public class Plate<T> { private T item; public Plate(T t){ this.item = t; } public void set(T t){this.item = t;} public T get(){return this.item;} public static void main(String[] args)...
/* * 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 eva_7_arreglos_objetos; /** * * @author danie */ public class EVA_7_ARREGLOS_OBJETOS { /** * @param...
package codechicken.enderstorage.init; import codechicken.enderstorage.block.BlockEnderStorage; import codechicken.enderstorage.block.BlockEnderStorage.Type; import codechicken.enderstorage.client.ParticleDummyModel; import codechicken.enderstorage.client.render.item.EnderChestItemRender; import codechicken.enderstora...
package com.cse308.sbuify.playlist; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties("playlist") public class PlaylistProperties { /** * Maximum number of songs per playlist. */ private Integer maxSongs = 10000; /** * Songs per playlist ...
package com.tencent.mm.ui.f.a; public final class a { c utd; public a(c cVar) { this.utd = cVar; } }
package junkuvo.apps.inputhelper.fragment.item; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.TextView; import junkuvo.apps.inputhelper.R; public class ListItemViewHolder extends RecyclerView.ViewHolder { public final View mView; public final TextView mIdView...
package abstraction; interface Bank{ double getInterestRate(); default void welcomeMsg() { System.out.println("Welcome to bank"); } static int getPPFInterestRate() { return 7; } } class ICICI implements Bank{ @Override public double getInterestRate() { return 8; } public vo...
package com.tencent.mm.g.a; import android.content.Context; import android.widget.ImageView; import com.tencent.mm.protocal.c.vx; import com.tencent.mm.sdk.b.b; public final class fw extends b { public a bOx; public b bOy; public static final class a { public long bJA; public ImageView bO...
package edu.asu.mldelaro.testbed; public class Main { public static void main(String[] args) { //AAAA //BBBB //CCCC //DDDD //EEEE //FFFF //GGGG } }
package exterminatorJeff.undergroundBiomes.api; import Zeno410Utils.*; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; /** * * @author Zeno410 */ public final class UndergroundBiomesSettings extends Settings { public static Streamer<UndergroundBiomesSettings> streamer(final U...