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!!
}
}
En esta página del sitio puede ver el video en línea Java Tutorial #3 || User Input and Libraries || Code nagar de Duración hora minuto segunda en buena calidad , que subió el usuario Code Nagar 12 noviembre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 11 veces y le gustó 1 a los espectadores. Disfruta viendo!