I'm too new in java and I always appreciated when you share with me your knowledge. Here I'm trying following self-test exercise;
Give two declaration for two variables called feet and inches.Both variables are of type int and both are to be initialised to zero in declaration.
I try this way and it's compilable !! but not sure....did I miss something?
public class feetInches
{
public static void main(String [] args)
{
int feet = 0;
int inches = 0;
int totalFeet = inches * 12;
System.out.println("5 feet is " + 5* 12);
}
}
Thank you in advance
MJ