Java Tutorial #3 || User Input and Libraries || Code nagar

Publicado em: 12 Novembro 2021
no canal de: Code Nagar
11
1

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!!



}
}


Nesta página do site você pode assistir ao vídeo on-line Java Tutorial #3 || User Input and Libraries || Code nagar duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code Nagar 12 Novembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 11 vezes e gostou 1 espectadores. Boa visualização!