Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 391 Bytes

File metadata and controls

23 lines (17 loc) · 391 Bytes

Back

P1.11

Write a program that prints three items, such as the names of your three best friends or favorite movies, on three separate lines.


Solution:

import static java.lang.System.out;

class P0111 
{
  public static void main(String[] args) 
  {
    out.println("Avatar");
    out.println("The Da Vinci Code");
    out.println("The Hobbit");
  }
}