This was the program i had written
import java.io.*;
class Employee
{
float sal;
float ta;
float ra;
}
class EmployoeeDemo
{
public static void main(String args[])
{
Employee e = new Employee();
float ansal;
e.sal= 5000;
e.ta= 200;
e.ra= 400;
ansal= (e.sal+e.ta+e.ra) *12;
System.out.println("Annual salary is" + ansal);
}
}
When i run it i get an error saying Exception in thread "main"
what does this mean.
where am i going wrong?