Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Help with Class that will output to any way that the user wants to output.

I am trying to create a simple class that will output information for the user, but I don't know if there is a way that I can get an output that does just use system.out.println in case the user wants to print it to a window or something like that.

Any help would be appreciated
use events? pass the string directly to the user
slowly becoming less active, contact me on-site before dealing.
Uhmmm I dont really get what you want.
CLI message:
PHP Code

<?php 
System
.out.println("lol"); 

GUI message:
PHP Code

<?php 
// you can set other options for this like info message, error message etc.
// this is swing
JOptionPane.showMessageDialog(null, "lol", "lolz"); 


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by lockheadApr 22, 2021 07:10 AM 0 147 Apr 22, 2021 07:10 AM
Last Post: lockhead
[Python] by mr_pedowbearFeb 12, 2017 10:24 AM 10 167 Feb 12, 2017 10:24 AM
Last Post: mr_pedowbear
[C] by zapotecsNov 4, 2015 03:55 PM 1 155 Nov 4, 2015 03:55 PM
Last Post: ValiumProp