Professional Documents
Culture Documents
Binary Files
Binary Files
*;
import java.util.*;
public class BinFiles
{
String name; int age; double marks;
static Scanner in = new Scanner(System.in);
static Scanner sc = new Scanner(System.in);
do
{
System.out.println("1 . Add records ");
System.out.println("2 . Update records ");
System.out.println("3 . Display records ");
System.out.println("4 . Exit");
System.out.println("Enter your choice ");
ch = sc.nextInt();
switch(ch)
{
case 1:obj.addrecord();
break;
case 2:obj.update();
break;
case 3:obj.print();
break;
case 4:System.exit(0);
break;
default :System.out.println("Wrong choice entered ");
}
}while(ch!= 4);
}
}