File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Getting error in this code??? why is that so? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting error in this code??? why is that so?" Watch "Getting error in this code??? why is that so?" New topic
Author

Getting error in this code??? why is that so?

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1050



http://www.lifesbizzare.blogspot.com || OCJP:81%
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13869
    
  10

Are we supposed to guess what the error is? Please TellTheDetails.

Looking at your code , line 7 is invalid. You can't put arbitrary statements at class level, only variable declarations with an optional initialization value.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Pratik D mehta
Ranch Hand

Joined: Jul 29, 2010
Posts: 121


I think you wan to do this


Understanding is Everything - Peter Lord
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error in this code??? why is that so?
 
Similar Threads
int divided by int
compound assignment operator behaving differently for Byte and byte
under what conditions can an int be assigned to a byte?
byte... x
constructor