Simple Java Program 1: Display Personal Info

This program below simply displays your your name, age, birthday and contact number.

public class PersonalInfo {
public static void main(String[]args) {
System.out.println("Name: Sookie Stackhouse");
System.out.println("Age: 25");
System.out.println("Birthday: June 20, 1988");
System.out.println("Contact Number: 07472773");
}
}



Here's the output:

To change your personal information, just edit the characters between the quotation marks.
 

Comments

  1. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Java interview questions and answers

    Core Java interview questions and answers

    Java training in Tambaram

    Java training in Velachery

    ReplyDelete
  2. Thank For Sharing Your Information The Information Shared Is Very Valuable Please Keep Updating Us Time Went On Just Reading The Article Python Online Course

    ReplyDelete
  3. Thabkyou for this information.

    ReplyDelete
  4. Are you being given a certificate

    ReplyDelete
  5. Wow, what a detailed and nice article!
    Now I'm learning to code and write my experience to a blog.
    My latest blog post here: download visual studio code, the best editor for coder.

    ReplyDelete

Post a Comment