import java.util.Scanner; class Emp1{ int id; float bs; void getdata(int i) { Scanner scan1 = new Scanner(System.in); System.out.printf("[%d.] Enter employee ID: ", i+1); id = scan1.nextInt(); System.out.printf("[%d.] Enter employee basic salary: ", i+1); bs = scan1.nextFloat(); scan1.close(); } void showdata() { System.out.printf("%d\t%.2f", id, bs); } } public class Emp { public Emp() { // TODO Auto-generated constructor stub } public static void main(String[] args) { // Emp1 e1 = new Emp1(); // e1.getdata(); // e1.showdata(); Emp1 e[] = new Emp1[100]; int n, i; Scanner scan2 = new Scanner(System.in); System.out.print("Enter total records: "); n = scan2.nextInt(); scan2.close(); for(i=0; i