Java Software Solutions > PP1.3 > Solution

Problem:

Write an application that prints, on separate lines, your name,
your birthday, your hobbies, your favorite book, and your favorite
movie. Label each piece of information in the output.

Output:

Not available.

Solution:

public class Info
{
   //-----------------------------------------------------------------
   //  Prints information about the programmer.
   //-----------------------------------------------------------------
 public static void main (String args[])
 {
  System.out.println("Name     : Lara");
  System.out.println("Birthday : March 25");
  System.out.println("Hobbies  : Sailing, Cooking, Hiking");
  System.out.println("Favorite Book  : The Brothers Karamasov");
  System.out.println("Favorite Movie : Remains of the Day");
 }
}

No comments:

Post a Comment