Task: Create a java program to do the following operations: 1. Ask the user to input 10 student names (You can enter dup
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Task: Create a java program to do the following operations: 1. Ask the user to input 10 student names (You can enter dup
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!