+ 1

Why always user input 🥹 //import

Import

25th Jul 2025, 2:30 AM
Sen Busaye
Sen Busaye - avatar
6 Answers
+ 2
If you ask you question more clearly it will be more likely someone will be able to help you.
25th Jul 2025, 2:59 AM
Zvi
Zvi - avatar
+ 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(); ...
25th Jul 2025, 10:28 AM
Lothar
Lothar - avatar
+ 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.
25th Jul 2025, 3:11 AM
Zvi
Zvi - avatar
0
I meant user input
25th Jul 2025, 3:01 AM
Sen Busaye
Sen Busaye - avatar
0
I knew how to code it but sometimes it gives me a headache
25th Jul 2025, 3:47 AM
Sen Busaye
Sen Busaye - avatar
0
You are using Java. Java gives everyone a headache
25th Jul 2025, 5:55 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar