this error has nothing to do with eclipse infact I am sure it should
be giving you compile errors. Your code has various problems i.e
greetings not initialized, syntax error in for loop.



On Tue, 21 Dec 2004 11:05:34 -0500, Critter <[EMAIL PROTECTED]> wrote:
> I am just trying to build a simple class file using eclipse.. but I
> keep getting syntax errors..
> 
> public class Welcome {
> 
>        public static void main(String[] args) {
>                greeting[0] = "Welcome";
>                greeting[1] = "howdy";
> 
>                for (String g : greeting)
>                        System.out.println(g);
>        }
> }
> 
> Severity        Description     Resource        In Folder       Location      
>   Creation Time
> 2       Syntax error on token ")", invalid
> AssignmentOperator      Welcome.java    Welcome line 20 December 21, 2004
> 10:51:12 AM
> 2       Syntax error on token(s), misplaced
> construct(s)    Welcome.java    Welcome line 20 December 21, 2004 10:51:12
> AM
> 
> i am thinking it has to do with maybe eclipse using the wrong jre...
> but i am not sure.. I've pointed eclipse to use the newer jdk.. (i
> think..) any suggestions?
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ Single Dads ]-=
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ http://single-dads.us ]-=
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188380
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to