I currently have this code that needs user input to pseudo-ify some words to send out and commit obfuscation on the integer later. I just need to get the user input. Anyone have a good source of api to get this from? I think I should be looking for System. commands.
Thanks in advance :)
The Scanner
class was implemented in Java 5.0 to make getting input easier:
Scanner input = new Scanner(System.in)
the System.in
will allow for console input.
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
/* will wait for input then assign it to the variable,
* in this case it will wait for an int.
*/
System.out.println(i); // will print the variable
https://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With