Page 1 of 1

Task: Create a java program to do the following operations: 1. Ask the user to input 10 student names (You can enter dup

Posted: Sat May 14, 2022 7:40 pm
by answerhappygod
Task Create A Java Program To Do The Following Operations 1 Ask The User To Input 10 Student Names You Can Enter Dup 1
Task Create A Java Program To Do The Following Operations 1 Ask The User To Input 10 Student Names You Can Enter Dup 1 (83.29 KiB) Viewed 32 times
Task: Create a java program to do the following operations: 1. Ask the user to input 10 student names (You can enter duplicate name) and write them in a text file called Student.txt file 2. Read student names one by one from Student.txt file and add them into a LinkedList. 3. Display the students name from LinkedList using iterator. 4. Check which student name is repeated more number of time and display its name and number of time it has been repeated. Sample Output: Enter 10 names: Mohammad Ahmed Ali Fahad Abdulrahman Abdullah Mohammad Ali Faisal Mohammad 10 student names added to the Student.txt file The students added to the LinkeList are: Mohammad Ahmed Ali Fahad Abdulrahman Abdullah Mohammad Ali Faisal Mohammad The student who is repeated more number of time is Mohammad and he is repeated 3 times