Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.lightlink.com!rahul.net!wasp.rahul.net!rahul.net!news.ripco.com!news.glorb.com!usenet.stanford.edu!ctu-gate!news.nctu.edu.tw!newsfeed.nthu.edu.tw!news.cs.nthu.edu.tw!MapleBBS From: totentanz.bbs@bbs.cs.nthu.edu.tw (隱了個板) Newsgroups: comp.lang.java.help Subject: Re: New to java, Help please ;)=?big5?Q?=3F?= Date: 18 Nov 2011 14:43:22 GMT Organization: 楓橋驛站 Lines: 24 Message-ID: NNTP-Posting-Host: bbs.cs.nthu.edu.tw Mime-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 8bit X-Trace: news.cs.nthu.edu.tw 1321951976 1161 140.114.87.5 (22 Nov 2011 08:52:56 GMT) X-Complaints-To: manager@cs.nthu.edu.tw NNTP-Posting-Date: Tue, 22 Nov 2011 08:52:56 +0000 (UTC) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1377 On Mon, 19 Sep 2011 13:56:34 -0700 (PDT), Andre Ramseier 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. -- e eee eee e eee  Mju  i ii iei iei i iee totentanz q 223.139.246.111  i ii i i i iee iee i毸j telnet://imaple.tw