Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1377
| From | totentanz.bbs@bbs.cs.nthu.edu.tw (隱了個板) |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: New to java, Help please ;)? |
| Date | 2011-11-18 14:43 +0000 |
| Organization | 楓橋驛站 |
| Message-ID | <A17CCROA$j_help@bbs.cs.nthu.edu.tw> (permalink) |
On Mon, 19 Sep 2011 13:56:34 -0700 (PDT), Andre Ramseier
<andreramseier@gmail.com> wrote, quoted or indirectly quoted someone
who said :
>
> Scanner input = new Scanner {System.in};
> testscore = input.nextInt{};
Your basic problem is that you are using {} and () as if they were
interchangeable. Java is extremely picky about them. Look at a sample
program like HelloWorld to get a feel for where you use each.
See http://mindprod.com/jgloss/helloworld.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
It is a lot easier to combine things later that
have been too finely categorised than to split
things later whose are categories are too coarse.
--
▄ ◢ ▄▄▄ ▄▄▄ ▄ ▄▄▄ [1;37m 清大資工[m
[1;37;44m █ █◣◢█ █▄█ █▄█ █ █▄▄ [33mtotentanz[37m 從[33m 223.139.246.111 [m
█ █◥◤█ █ █ █ █▄▄ █▄▄ [1;37m【楓橋驛站】 telnet://imaple.tw[m
Back to comp.lang.java.help | Previous | Next | Find similar
Re: New to java, Help please ;)? totentanz.bbs@bbs.cs.nthu.edu.tw (Áô¤FӪO) - 2011-11-18 14:43 +0000
csiph-web