public static void main(String[] args) {

                //sorting custom object array
                Employee[] empArr = new Employee[4];
                empArr[0] = new Employee(10, "Mikey", 25, 10000);
                empArr[1] = new Employee(20, "Arun", 29, 20000);
                empArr[2] = new Employee(5, "Lisa", 35, 5000);
                empArr[3] = new Employee(1, "Pankaj", 32, 50000);

                List<String> stringList = new ArrayList<String>();


                Arrays.sort(empArr);
                System.out.println("Default Sorting of Employees list:\n"+Arrays.toString(empArr));

                //sort employees array using Comparator by Salary
                Arrays.sort(empArr, Employee.SalaryComparator);
                System.out.println("Employees list sorted by Salary:\n"+Arrays.toString(empArr));

                //sort employees array using Comparator by Age
                Arrays.sort(empArr, Employee.AgeComparator);
                System.out.println("Employees list sorted by Age:\n"+Arrays.toString(empArr));

                //sort employees array using Comparator by Name
                Arrays.sort(empArr, Employee.NameComparator);
                System.out.println("Employees list sorted by Name:\n"+Arrays.toString(empArr));

                //Employees list sorted by ID and then name using Comparator class
                empArr[0] = new Employee(1, "Mikey", 25, 10000);
                Arrays.sort(empArr, new EmployeeComparatorByIdAndName());
                System.out.println("Employees list sorted by ID and Name:\n"+Arrays.toString(empArr));
            }