Develop a Java (C++ is not allowed) program that creates asorted file. The program must add student records consisting of(name, ID number and major), records gets added from keyboard input(student by student) and gets sorted in an ascending orderaccording to the student number. *
Also add the ability to search for a student in the file by itsstudent ID number as the primary key.
*The user first inserts a student then another, the program thencompares the student ID of the second one (if it’s smaller thesecond replaces the first one) and so on. Helpful to startcomparing from the bottom of the records and work your way up andwhen finding a smaller ID number shift the rest to the bottom ofthe file.
**I’ve asked this questions before and so don’t go searchingchegg for it, this is the fifth time i’ve reposted the question allbecause some either answers in C++ or simply take pictures of hishorrible handwriting. So Please ask anything ambiguous and i’llrespond immediatly