Draw a Box
Completed
Print this box exactly:
+------+ | Java | +------+
Input
None.
Output
Three lines.
Example
Output
+------+ | Java | +------+
Editor
Java
Hints
One println per line.
Solution explanation
Programs run top to bottom, one statement after another.
Show solution
public class Main {
public static void main(String[] args) {
System.out.println("+------+");
System.out.println("| Java |");
System.out.println("+------+");
}
}