Path: csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jim Janney Newsgroups: comp.lang.java.programmer Subject: Re: diamond operator Date: Wed, 04 Apr 2012 10:23:31 -0600 Organization: nothing a little quicklime won't take care of Lines: 18 Message-ID: <2pmx6r31q4.fsf@shell.xmission.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="PnllQd880uOddfy6hsxHuQ"; logging-data="23048"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1966kASawnlp+aADQYK+E1A" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:YkXCi668qE37B5UzgKopxebnAgk= sha1:z+N2wyphZtWcNsvajL5gblxKqrM= Xref: csiph.com comp.lang.java.programmer:13370 Roedy Green writes: > I was looking over the table of contents of a book about new features > in Java 7 and came across a reference to the "diamond operator". > > It turns out to be simple, but one of the precious bits of Java > syntactic sugar to make it terser. > > http://fahdshariff.blogspot.ca/2011/07/java-7-diamond-operator.html > > http://mindprod.com/book/9781849685627.html This isn't wrong, but it fixes a problem I never knew I had. Any competent IDE will expand that for you anyway. -- Jim Janney