Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2006, 04:56 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default identifier expected errors

Al-salam Alikoum

i want any one to explain this errors

Z:\252\assingment\Game.java:12: illegal start of type
        while(i<9){
        ^
        //protected String Letterc;
    System.out.println("Please Enter The Center Letter: ");
    Letterc = stdin.readLine()//

Z:\252\assingment\Game.java:20: <identifier> expected
        protected String Letterc;
                                ^
Z:\252\assingment\Game.java:21: <identifier> expected
        System.out.println("Please Enter The Center Letter: ");
                          ^
Z:\252\assingment\Game.java:22: <identifier> expected
        Letterc = stdin.readLine();
                ^
Z:\252\assingment\Game.java:26: illegal start of type
        while(j<9){

        ^
Z:\252\assingment\Game.java:62: <identifier> expected
        }
        ^
6 errors

Process completed.

 
Old August 13th, 2006, 11:46 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no Exception

 
Old August 16th, 2006, 03:27 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you post the entire Java source code? It seems like something's terribly wrong with your overall structure. Perhaps you defined your function wrong, or you didn't terminate a block correctly.

Jon Emerson
http://blogs.adobe.com/jon.emerson/
 
Old September 2nd, 2006, 09:10 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hotleave
Default

Can you show you source code here?

ÎÒÃǶ¼ÊǹÂÒíµÄÌìʹ
Ö»ÓÐÏ໥ӵ±§²ÅÄÜ·ÉÏè





Similar Threads
Thread Thread Starter Forum Replies Last Post
"identifier> expected"error simmy_tj VB.NET 2002/2003 Basics 1 December 18th, 2006 08:31 AM
Identifier expected andriy JSP Basics 0 November 1st, 2006 11:28 PM
"Identifier expected" Error NehaJani VB.NET 2002/2003 Basics 6 January 23rd, 2006 11:27 PM
Identifier Expected syncmaster VB.NET 2002/2003 Basics 1 September 2nd, 2004 03:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.