I need to add in my program a method where it will capture the logged-in user of the machine and then display it to the client.
The client will run the program, and then it will show you information about your computer that should include the user logged into the machine.
Is there any way to do it without having to use processBuilder
?