import java.io.*;
class Life{
public static void main (String[] args)
{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
String userName= null;
try {
while(true) {
userName = br.readLine();
if(userName.equals("42"))
System.exit(1);
else
System.out.println(userName);
}
} catch (IOException ioe) {
}
}
}
hi, I have written these progrma but it says
public static void main is not available in this program!, could you help me sort this out. Its compiled and running fine in my Local PC