How do you enter a name and age in Java?

println(“Enter your name :”); String st=s. nextLine(); System. out. println(“Enter your age :”); int age=s.

Sizin İçin Seçtik  What is default constructor and what is the advantages of having it?

Leave a Reply

Your email address will not be published. Required fields are marked *