Catching screen prints in Java

Posted by Amir Rachum on Stack Overflow See other posts from Stack Overflow or by Amir Rachum
Published on 2010-05-21T14:43:10Z Indexed on 2010/05/21 14:50 UTC
Read the original article Hit count: 138

Filed under:
|

There's a class I'm working with that has a display() function that prints some information to the screen. I am not allowed to change it. Is there a way to "catch" the string it prints to the screen externally?

© Stack Overflow or respective owner

Related posts about java

Related posts about homework