🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #435

Re: Finding 2 biggest numbers in a row

#435
From: Michiel Konstapel
Date: Wed, 15 Nov 2000 00:00
12 lines
1385 bytes
>     final static int MIN = -9999999;
>
>     public static void main(String[] args)
>     {
>       int first = MIN;
>       int second = MIN;
>       int[] list = {78, 67, 51, 15, 34, 28, 31, 53, 35, 50, 68, 1, 33, 92,
95, 13};
<snip>

I'd use int first = Integer.MIN_INFINITY;
Technical Details
Message-ID: <eMxQ5.310$Kb6.4233@amoeba1.srv.nld.sonera.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A11B99A.2BB2E1E7@skynet.be> <8usf9t$fod$1@news1.skynet.be> <3A11CCFF.A6526AE9@skynet.be> <3A124685.78849562@ludomedia.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5d71,470c011dba4db9c3
X-Google-Attributes: gidf5d71,public
X-Google-Thread: fcea4,470c011dba4db9c3
X-Google-Attributes: gidfcea4,public
X-Google-Thread: 113ae9,470c011dba4db9c3
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10a146,470c011dba4db9c3
X-Google-Attributes: gid10a146,public
From: "Michiel Konstapel" <ask@me.nl>
Subject: Re: Finding 2 biggest numbers in a row
Date: 2000/11/15
Message-ID: <eMxQ5.310$Kb6.4233@amoeba1.srv.nld.sonera.net>
X-Deja-AN: 693924268
References: <3A11B99A.2BB2E1E7@skynet.be> <8usf9t$fod$1@news1.skynet.be> <3A11CCFF.A6526AE9@skynet.be> <3A124685.78849562@ludomedia.ch>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Complaints-To: abuse@sonera.nl
X-Trace: amoeba1.srv.nld.sonera.net 974301322 212.127.144.52 (Wed, 15 Nov 2000 16:15:22 MET)
Organization: Sonera Quicknet
X-MSMail-Priority: Normal
NNTP-Posting-Date: Wed, 15 Nov 2000 16:15:22 MET
Newsgroups: comp.lang.java,comp.lang.java.help,comp.lang.java.programmer,be.comp.programming