Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to create a box around text in Java. Inside windows cmd.exe

  1. Jun 23, 2012 #1
    How can I make a box around text in Java which will appear in Windows cmd.exe?

    Only using System.out.print("X"); and System.out.println("X"); . It MUST be a solid box and not use symbols like - or _ .

    It can also use int X , double X, char X, String X, and boolean X.

    Please explain it step by step. I'm a complete noob. :-)
  2. jcsd
  3. Jun 24, 2012 #2


    Staff: Mentor

    Is this a homework assignment? If so, you need to show what you've tried before we can give any help. See the rules here - https://www.physicsforums.com/showthread.php?t=414380 - especially the section titled Homework Help.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook