Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: Help understanding methods Date: Sun, 27 Jul 2014 21:36:18 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 28 Jul 2014 04:36:16 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="9050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Y1Kr2ZAeizJGeeIbHauuD" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:I/axD6kPe2fALtqml6L02xd5wKM= Xref: csiph.com comp.lang.java.programmer:29384 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