- 4
What code can you use to get user input for the value of age and money
5 Respostas
+ 5
Pls remove profanity from your code
+ 4
You can use the Scanner class:
import java.util.Scanner;
Scanner input = new Scanner(System.in);
int age = input.nextInt();
int money = input.nextInt();
And I think you should read this:
https://www.sololearn.com/Terms-of-Use/
+ 2
I removed the words, plz forgive me
+ 2
Red_Scar115 It is okay. :)
+ 1
Ok thnx and i didn't know the terms of use so thnx for the link and i will remove it now