• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

color changing

 
David Maddox
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a program about the stock market. I was wondering if there was a way to change the output of your program in command prompt(i.e. stock goes down turns red) if so how
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No... there are various ways to do this in a Unix shell, or on the DOS prompt, but there isn't a way to set the text color in Java's output stream.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic