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]
# 1
Why don't you want to use System class?
sabre150a at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 2
> please sir give me the complete program .How? You're the one with the user defined class which you need to use, maybe if you need some help you should give us the program. Where exactly are you having trouble?
_helloWorld_a at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 3
What was wrong with the answers in your other two threads?
CaptainMorgan08a at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 4
> please sir give me the complete program.NO
corlettka at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 5
@anirban: what's the plan, are you going to post this question every day? http://forum.java.sun.com/thread.jspa?threadID=5176168 http://forum.java.sun.com/thread.jspa?threadID=5176610
prometheuzza at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 6

> 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

georgemca at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 7

@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;

}

[]

S_i_m_ua at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...
# 8
Will you spank me to ronda? I've got a very open mind. It's just closed to war, death, and the preparation of tax returns.
corlettka at 2007-7-12 15:02:41 > top of Java-index,Java Essentials,Java Programming...