can you help me correct my java code......I do not know what is wrong with it...
import java.io.*;
public class info
{
public static void main (String args[])throws IOException
{
BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
String name,course; char section; int id,ctr=0,answer=0;
do
for(ctr=0;ctr>=3;ctr++)
{
System.out.print("\n Enter Name: ");
name=br.readLine();
System.out.print("\n Enter Course: ");
course=br.readLine();
System.out.print("\n Enter ID: ");
id=Integer.parseInt(br.readLine());
System.out.print("\n Enter Section: ");
section=br.readLine().charAt(0);
System.out.print("\n" + name);
System.out.print("\n" + course);
System.out.print("\n" + id);
System.out.print("\n" + section);
System.out.print("\n gusto mo pa ba??? press 1 oo 2 hindi.");
answer=Integer.parseInt(br.readLine());
}while(answer==1);
}
}
thank you so much.....