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!!
}
}
Sur cette page du site, vous pouvez voir la vidéo en ligne Java Tutorial #3 || User Input and Libraries || Code nagar durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Nagar 12 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 11 fois et il a aimé 1 téléspectateurs. Bon visionnage!