Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15901
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!216.196.98.146.MISMATCH!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Mon, 09 Jul 2012 17:03:03 -0500 |
| Date | Mon, 09 Jul 2012 15:03:06 -0700 |
| From | Patricia Shanahan <pats@acm.org> |
| User-Agent | Thunderbird 1.5.0.2 (Windows/20060308) |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Arrays in java |
| References | <7eb3b37e-612a-4f51-98e5-f39cfd565739@googlegroups.com> <jtetf3$80q$1@dont-email.me> |
| In-Reply-To | <jtetf3$80q$1@dont-email.me> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <cpednYtiE_GHyGbSnZ2dnUVZ_uidnZ2d@earthlink.com> (permalink) |
| Lines | 25 |
| X-Usenet-Provider | http://www.giganews.com |
| NNTP-Posting-Host | 200.48.72.223 |
| X-Trace | sv3-1KxdVhMj7dYV5orAGMkXH1uk2NY+DEq3ZLPkFGu46QryEMLLVnB6US+JjCSUpDKnerolGfvF8sR4sBk!bTBcx0C1ZdpXMyxQHREWpWBzJQ1/ICVATY/xpG/BGjYZavgliNQW+2Gmgh5475FZu/M13dafqBDM!KXNmyhDOiEr/V/yu7rE040Q3RIyuWwsyIxcc1oeNWLcBNQ== |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 1894 |
| Xref | csiph.com comp.lang.java.programmer:15901 |
Show key headers only | View raw
Eric Sosman wrote:
> On 7/9/2012 10:54 AM, mmc.java wrote:
...
>> I did notice the the following will cause a compilation error
>> []int productIDs = {10,20,30}; //causes an error
>
> So will
>
> int productIDs = []{10,20,30};
> int productIDs = {10,20,30}[];
> int productIDs = {[10,20,30]};
> productIDs int[] = {10,20,30};
>
> ... and a lot of other random stuff, too.
>
I think the OP may be trying to find out why one totally illogical
placement of the "[]" works, although another, slightly less illogical,
placement does not. At least "[]int" keeps all the type information
together.
The answer, already given, is to allow C and C++ programmers to use a
familiar order.
Patricia
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Arrays in java "mmc.java" <michael.p.mulligan@gmail.com> - 2012-07-09 07:54 -0700
Re: Arrays in java Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-09 11:30 -0400
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-09 15:03 -0700
Re: Arrays in java Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-07-09 15:16 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-09 16:14 -0700
Re: Arrays in java Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-07-09 21:43 -0700
Re: Arrays in java Lew <noone@lewscanon.com> - 2012-07-09 23:47 -0700
Re: Arrays in java Roedy Green <see_website@mindprod.com.invalid> - 2012-07-11 15:32 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-11 16:21 -0700
Re: Arrays in java Gene Wirchenko <genew@ocis.net> - 2012-07-11 17:08 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-11 17:20 -0700
Re: Arrays in java Gene Wirchenko <genew@ocis.net> - 2012-07-11 22:09 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-12 11:31 -0700
Re: Arrays in java Gene Wirchenko <genew@ocis.net> - 2012-07-13 09:07 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-13 13:00 -0700
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-15 00:54 -0500
Re: Arrays in java Jeff Higgins <jeff@invalid.invalid> - 2012-07-16 15:59 -0400
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-16 23:44 -0700
Re: Arrays in java glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-07-17 08:01 +0000
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-17 03:04 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-17 13:02 -0700
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-17 22:03 -0700
Re: Arrays in java Lew <noone@lewscanon.com> - 2012-07-17 22:10 -0700
Re: Arrays in java glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-07-18 05:12 +0000
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-17 22:39 -0700
Re: Arrays in java Martin Gregorie <martin@address-in-sig.invalid> - 2012-07-18 21:24 +0000
Re: teaching Java and formal grammars Patricia Shanahan <pats@acm.org> - 2012-07-19 06:48 -0700
Re: teaching Java and formal grammars Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-19 10:27 -0400
Re: teaching Java and formal grammars Gene Wirchenko <genew@ocis.net> - 2012-07-19 10:55 -0700
Re: Arrays in java Patricia Shanahan <pats@acm.org> - 2012-07-13 08:28 -0500
Re: Arrays in java Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-07-11 18:33 -0700
Re: Arrays in java markspace <-@.> - 2012-07-09 09:17 -0700
Re: Arrays in java Lew <lewbloch@gmail.com> - 2012-07-09 12:56 -0700
Re: Arrays in java Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-07-09 12:45 -0400
Re: Arrays in java Roedy Green <see_website@mindprod.com.invalid> - 2012-07-09 11:03 -0700
Re: Arrays in java Arun GOPI <arun041@gmail.com> - 2012-07-16 02:53 -0700
csiph-web