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


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

Re: New to java, Help please ;)?

Started bytotentanz.bbs@bbs.cs.nthu.edu.tw (Áô¤F­ӪO)
First post2011-11-18 14:43 +0000
Last post2011-11-18 14:43 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.help


Contents

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

#1377 — Re: New to java, Help please ;)?

Fromtotentanz.bbs@bbs.cs.nthu.edu.tw (Áô¤F­ӪO)
Date2011-11-18 14:43 +0000
SubjectRe: New to java, Help please ;)?
Message-ID<A17CCROA$j_help@bbs.cs.nthu.edu.tw>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.java.help


csiph-web