It's very hard to see what it is supposed to do. You
initialize a class with a constructor, meaning that it
should go "this is a test when it's constructed". What
is out a member of, and where should it be printed?
Try System.out, so that it will be displayed
console-wise part of the java lang and then move it to
you class.
If this doesn't work, try some Swing classes, as they
have a lot of textpad-like classes like JEditorPane,
JTextPane etc, you'll probably find something that you
like!