Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 503 Bytes

File metadata and controls

24 lines (18 loc) · 503 Bytes

Back

Business P1.18

Write a program that prints a two-column list of your friends' birthdays. In the first column, print the names of your best friends; in the second column, print their birthdays.


Solution:

import static java.lang.System.out;

class P0118 
{
  public static void main(String[] args) 
  {
    out.println("Bob\t\t01/02/1990");
    out.println("Jon\t\t02/03/1991");
    out.println("Tim\t\t03/04/1992");
    out.println("Nik\t\t04/25/1993");
  }
}