Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1377

Re: New to java, Help please ;)?

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)

Show all headers | View raw


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.
--
  ▄       ◢ ▄▄▄ ▄▄▄ ▄     ▄▄▄  清大資工
  █ █◣◢█ █▄█ █▄█ █     █▄▄  totentanz 從 223.139.246.111       
  █ █◥◤█ █  █ █     █▄▄ █▄▄ 【楓橋驛站】 telnet://imaple.tw

Back to comp.lang.java.help | Previous | Next | Find similar


Thread

Re: New to java, Help please ;)? totentanz.bbs@bbs.cs.nthu.edu.tw (Áô¤F­ӪO) - 2011-11-18 14:43 +0000

csiph-web