print name and age using by Scanner | | print the age and name in java program

Veröffentlicht am: 16 März 2022
auf dem Kanal: STUDY PATHSALA
824
6

hlw everyone
I am Lokesh. Welcome to our youtube channel"Mirganj Study"

About this video:
this video is help you to print the name and age from user * hiw to use Scanner class*

// Accept the User's name, age and print in following manner
// Ex - Hello pintu, you are 12 years old.
public class Ques3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the your name:");
String name = sc.nextLine();
System.out.println("Enter your age");
int age = sc.nextInt();
System.out.println("Hello "+name+" , you are "+age+" years old");
}
}




Queries Solved:




Let's start your preparation with Mirganj Study
Visit playlist of Chemistry:
Visit playlist of Maths:

Subscribe my channel #Mirganj_Study
If you guys support this channel then we will also provide Full tutorial videos of class 10th and 12th Maths,Physics and Chemistry.
And also upload Programming videos of C,C++,java,python and all other programming language with basics . AND also provide notes of all related videos on this channel.

Some other Social links:
Visit my


Auf dieser Seite können Sie das Online-Video print name and age using by Scanner | | print the age and name in java program mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer STUDY PATHSALA 16 März 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 824 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!