I am writing a java program that will be run from the command line and where the user should be able to indicate their preferences like this, for example:
The user wants to send from the Client to the Server their name (n) and weight (k), and they'll set the Server to have a window (w)of 4 and a delay (d) of 50%...so the commandline would look something like this:
(java abc.Client -n Roger -k 400 receiver_ip_addr receiver_port java abc.Server -w 4 -d 0.5 receiver_ip_addr receiver_port)
Everything I look up on UI from the commandline mentions reading with Scanner, like: "what is your name?" followed by: name = Scanner.nextLine();
Thanks in advance for any help!