I am trying to learn Java and was specifically learning about User Input using Scanner class.
I was wondering if you can add something like a ':' or ';' after a prompt.
My understanding is somewhat like this
Scanner var1 = new Scanner(System.in); //Creates a new object of scanner class
String var2 = var1.next(); //Stores input in a string variable
So what should be the way to put a ":" after the prompt, in the same line?