how to hide the previous information on display in java in a simple program.

language used here: JAVA I am making a program for 10 users to enter their name but as the next person enter his name he can see the previous one name, same like the 3rd person can see the first two name and last person can see the name of first 9 users. I want to make sure that no user can see the name of other users.

16th Oct 2022, 7:09 PM
Gurmeet Singh
Gurmeet Singh - avatar
2 Answers
Why not keep the output of names until the end and send them wherever they need to go instead of displaying to the users?
16th Oct 2022, 7:14 PM
Ausgrindtube - avatar