aspose file tools*
The moose likes Cattle Drive and the fly likes Variable Scope and Life time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Variable Scope and Life time" Watch "Variable Scope and Life time" New topic
Author

Variable Scope and Life time

Tharindu Priyath
Greenhorn

Joined: Nov 01, 2012
Posts: 6

This program is correct.


But this program is compile error.Why
Campbell Ritchie
Sheriff

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

Please look at a few threads in our “beginning Java” forum: 1 2 3 4.

Are there several people all in the same class who are struggling with this question? All those threads appear to be about the same question as you are asking here. They will also probably answer your question.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
I have added code tags to your post, and you can see how much better it looks Please always use those tags.
 
wood burning stoves
 
subject: Variable Scope and Life time