+ 1
Why always user input 🥹 //import
Import
6 Answers
+ 2
If you ask you question more clearly it will be more likely someone will be able to help you.
+ 2
Sen Busaye ,
let me do a guess. are you talking about the *import* statement for the scanner class in java ? like this:
import java.util.Scanner; // <= ???
public class Program
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int fruit = input.nextInt();
...
+ 1
Sorry i still understand your question. Do you want to know why the user input woukd be asked from the user? Obviously to get his info.
If you have difficulty explaining your question in english you can write it fully in google tranlate and copy it here. It might be easier to express yourself more completely that way.
0
I meant user input
0
I knew how to code it but sometimes it gives me a headache
0
You are using Java. Java gives everyone a headache