aspose file tools*
The moose likes Beginning Java and the fly likes small program on methods 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 "small program on methods" Watch "small program on methods" New topic
Author

small program on methods

naveen vamsi
Greenhorn

Joined: Mar 21, 2013
Posts: 7
hi,
i just started java recently this program gives so many errors please help
Abdulla S Mamuwala
Greenhorn

Joined: Jul 27, 2009
Posts: 21
Please can you list some of the errors that you are getting?
naveen vamsi
Greenhorn

Joined: Mar 21, 2013
Posts: 7
Abdulla S Mamuwala wrote:Please can you list some of the errors that you are getting?



[Capture11.JPG]

Abdulla S Mamuwala
Greenhorn

Joined: Jul 27, 2009
Posts: 21
The answer to your problem has been given very nicely by compiler in the screen shot you have shared.
Compiler says that it is expecting an "identifier" that you have not provided in your program. It is also telling you the line numbers that have problems. So make the compiler happy and give it what it wants! I am sure you can do it!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39396
    
  28
Welcome to the Ranch

I have added code tags to your code, and you can see how much better it looks Please avoid screenshots.

I can see several other syntax errors in your code; you are putting ; instead of method bodies, and then methods inside other methods.
Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

You seem to love football. I doubt whether your name is actually Messi Kaka. Anyways, welcome again to the ranch. Which book are you studying Java from?


~ Mansukh
Rajdeep Biswas
Ranch Hand

Joined: Mar 26, 2012
Posts: 186

messi kaka wrote:hi,
i just started java recently this program gives so many errors please help

Hi messi kaka, welcome. Can you plesae tell us what are the methods in your class and what is the objective? I am not suspecting anything about what you wrote at this moment.


The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5



Methods declared inside methods are not supported.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: small program on methods