File Handling in Java Insert, Update, Delete, Search, Sort and Display with collection in File
//Source Code of Video File Handling in Java import java.util.*; import java.io.*; class Employee implements Serializable{ int empno; String ename; int salary; Employee( int empno, String ename, int salary){ this .empno = empno; this .ename = ename; this .salary = salary; } public String toString(){ return empno+ " " +ename+ " " +salary; } } class EmployeeDemo{ public static void main(String[] args) throws Exception{ int choice = - 1 ; Scanner s = new Scanner(System.in); Scanner s1 = new Scanner(System.in); File file = new File( "employee.txt" ); ArrayList<Employee> al = new ArrayList<Employee>(); ObjectOutputStream oos = null ; ObjectInputStream ois = null ; ListIterator li = null ; if (file.isFile()){ ois = new ObjectInputStream( new FileInputStream(file)); al = (ArrayList<Employee>)ois.readObject(); ois.close...