Test.out.println("Hello world");
sir, i am completely fail to do Test.out.println("Hello world"); i don't want to use System class but i want to do display Hello world by
Test.out.println("Hello world"); where Test is a user-defined class.
I want to use Test class(user defined) instead of System class.
please sir give me the complete program .
[342 byte] By [
anirbana] at [2007-11-27 5:34:30]

> sir, i am completely fail to do
> Test.out.println("Hello world"); i don't want to use
> System class but i want to do display Hello world by
>
> Test.out.println("Hello world"); where Test is a
> user-defined class.
> I want to use Test class(user defined) instead of
> System class.
> please sir give me the complete program .
Maybe if you gave us a bit more than some weird "I don't want to use System class" reason for doing this, you might get some help. At the moment, it just looks like you haven't a clue what you want to achieve
@anirban
It's dificult to help if you don't say why you don't want to use System, but maybe this can help (if you want Test.out instead of System.out)
// not tested
public class Test {
// why do that?
public static PrintStream out = System.out;
}
[]