Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29384
| From | Knute Johnson <eternal@knutejohnson.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Help understanding methods |
| Date | 2014-07-27 21:36 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <lr4k00$8qq$1@dont-email.me> (permalink) |
| References | (1 earlier) <lr483r$bpk$1@dont-email.me> <lr48at$c53$1@dont-email.me> <lr4a83$lo9$1@dont-email.me> <method-20140728040213@ram.dialup.fu-berlin.de> <max-20140728050920@ram.dialup.fu-berlin.de> |
On 7/27/2014 20:10, Stefan Ram wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>> void f
>> ( final int ... a );
>
> public static int max( final java.lang.Integer ... args )
> { return java.util.Arrays.asList( args ).stream().
> max( java.lang.Integer::compare ).get(); }
>
The final is implied (I think) and the java.lang. s are unnecessary but
it works just fine. I've got a way to go before I can write that way
though.
--
Knute Johnson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help understanding methods Scott Dunning <scottwd01@gmail.com> - 2014-07-27 17:46 -0700
Re: Help understanding methods Knute Johnson <eternal@knutejohnson.com> - 2014-07-27 18:13 -0700
Re: Help understanding methods Scott Dunning <scottwd01@gmail.com> - 2014-07-27 18:19 -0700
Re: Help understanding methods Knute Johnson <eternal@knutejohnson.com> - 2014-07-27 18:49 -0700
Re: Help understanding methods Knute Johnson <eternal@knutejohnson.com> - 2014-07-27 21:36 -0700
Re: Help understanding methods Martin Gregorie <martin@address-in-sig.invalid> - 2014-07-28 01:18 +0000
Re: Help understanding methods Scott Dunning <scottwd01@gmail.com> - 2014-07-27 18:56 -0700
Re: Help understanding methods "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-28 12:07 +0100
Re: Help understanding methods "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-28 12:44 +0100
Re: Help understanding methods Roedy Green <see_website@mindprod.com.invalid> - 2014-07-28 07:20 -0700
Re: Help understanding methods Josip Almasi <joe@vrspace.org> - 2014-07-28 21:29 +0200
csiph-web