How to create a class like System.out.print

Hi,I need to create a class like System.out.printSay for ex: i have a class A .. I need to call it A.b.ccis the method.. could you tell me, how can i do this.. AMJ
[219 byte] By [_AM__] at [2007-9-30 14:33:14]
# 1
class A{public static final B b=new B();}class B{public String getXXX(){return "Callled getXXX()";}}public class C{public static void main(String[] args){System.out.println(A.b.getXXX());}}
johnsonpp at 2007-7-5 13:56:54 > top of Java-index,Administration Tools,Sun Connection...