Java program that displays your name inside a box on the screen
Posted by Samath
Last Updated: January 08, 2021

Write a Java program that displays your name inside a box on the screen.
Approximate lines with characters such as | - + .

public class Main
{
	public static void main(String[] args) {
	    
        System.out.println("+------+");
        System.out.println("|Samath|");
        System.out.println("+------+");
        
	}
}
Related Content
Solid Box of Asterisks in C
Solid Box of Asterisks in C
Samath | Dec 21, 2014