aspose file tools*
The moose likes Beginning Java and the fly likes Final Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Final" Watch "Final" New topic
Author

Final

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305


FinalTemp.java:4: error: <identifier> expected
i=10;
^
1 error

Don't understand problem !


My one regret in life is that I am not someone else.
- Woody Allen
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14270
    
  21

You cannot put arbitrary statements, such as the assignment statement in line 3, at class level. Statements must be inside a method or constructor.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

Thanks
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Mansukhdeep Thind,
Your post was moved to a new topic.
Moving the tangential discussion of certification in general to the MD forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Final