Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 379 Bytes

File metadata and controls

23 lines (17 loc) · 379 Bytes

Back

P1.5

Write a program that displays your name inside a box on the screen. Do you best to approximate lines with characters such as | - +.


Solution:

import static java.lang.System.out;

class P0105 
{
  public static void main(String[] args) 
  {
    out.println("+-----+");
    out.println("| Jay |");
    out.println("+-----+");
  }
}