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

  • Java
  • Thread starter RockHopper
  • Start date
  • #1

Main Question or Discussion Point

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. :-)
 

Answers and Replies

  • #2
33,719
5,417
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. :-)
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.
 

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

Replies
3
Views
11K
Replies
26
Views
4K
Replies
1
Views
2K
  • Last Post
Replies
1
Views
2K
Replies
3
Views
4K
Replies
1
Views
1K
Replies
17
Views
5K
Top