User input

User input

User input is like it sounds wher the user is able to input the information they want the program to use, this is done in diffrent ways depending on what platform you are using. For example codeHS uses things like

int i= readInt(“…”);

while eclipse uses things like

System.out.print(” . . .”)

int k = scannerName.nextInt();

The reason they are different is because eclipse can import the scanner class while, codeHS from what I know doesn’t have you import anything, and the reason they don’t import scanner is probably either because its a online platform, so it doesn’t connect to your computer the same as eclipse or because it causes issues like slowing down the program.

For more information on user input for specific platforms go to the links below:

Eclipse

CodeHS