Hi guys need some resources ?!:
here are the codes boiss and girlsss!!:
// always import outside the class
import java.util.Scanner; // our import
public class Tut3 {
public static void main(String[] args) {
// lets make a instance of Scanner , means input
Scanner scan = new Scanner(System.in); // you can name it anything
System.out.print("Whats your NAME : "); // We will ask for the users name
String name = scan.nextLine(); // because its string we use nextLine() , in integer we use nextInt() , so on....
// So it printed my name , means its working lets ask for age
System.out.print("Enter your age : ");
int age = scan.nextInt();
System.out.print("Enter your height : ");
double height = scan.nextDouble();
// Lets print it !!!😀😀
System.out.println("Hello ,"+name+" ,you are "+age+"years old ,and height is "+height);
// pretty interesting huh!!
}
}
On this page of the site you can watch the video online Java Tutorial #3 || User Input and Libraries || Code nagar with a duration of hours minute second in good quality, which was uploaded by the user Code Nagar 12 November 2021, share the link with friends and acquaintances, this video has already been watched 11 times on youtube and it was liked by 1 viewers. Enjoy your viewing!