I'm doing a simple java program, when I try to compile it, the eclipse says that age isn't initialized
this is my code, please check it out
public class First
{
public void calculate()
{
int age;
if(age!= 0)
{
System.out.println(age)
}
else
{
System.out.println("you can't enter 0 as age")
}
}