786snow
Programmer
- Nov 12, 2006
- 75
Code:
public class HelloWorldApp1 {
//delaring constructor
public HelloWorldApp1()
{
int grade1=7;
}
....
Hi, if I have a constructor in my programe now how can I access the value of grade1.
When in my method if I do System.out.print(grade1); i get error