By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Hello World

P: n/a
Hello There

I have a problem. I'm a beginner and try to
get the following program working. It has
an exception. Can you tell me?

public class Hello{

public static void main (String args[]){
System.println("hello world");
}

}

Thanks and greez!
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
System.out.println("hello world");

"Fritz Kaufmann" <ka****@bluemail.ch> ha scritto nel messaggio
news:1c**************************@posting.google.c om...
Hello There

I have a problem. I'm a beginner and try to
get the following program working. It has
an exception. Can you tell me?

public class Hello{

public static void main (String args[]){
System.println("hello world");
}

}

Thanks and greez!

Jul 17 '05 #2

P: n/a
> I have a problem. I'm a beginner and try to
get the following program working. It has
an exception. Can you tell me?


What exception?
Jul 17 '05 #3

P: n/a
Fritz Kaufmann wrote:
Hello There

I have a problem. I'm a beginner and try to
get the following program working. It has
an exception. Can you tell me?

public class Hello{

public static void main (String args[]){
System.println("hello world");
}

}

Thanks and greez!

your syntax is incomplete...
it should be System.out.println.......etc
^^^
Jul 17 '05 #4

P: n/a
In the future, when you have a problem that results in an exception (which
you aren't in this case, you are receiving a compile-time error), it assists
those who are assisting you to give the actual exception name, line number
and stack trace as opposed to "it gives an exception" which is really
meaningless. You can get this by simply copy/paste from the command line
from which you are running.

Once you've encountered your first exception, or read the appropriate
documentation, you'll know what this means.

Just a tip for future posts.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
"Fritz Kaufmann" <ka****@bluemail.ch> wrote in message
news:1c**************************@posting.google.c om...
Hello There

I have a problem. I'm a beginner and try to
get the following program working. It has
an exception. Can you tell me?

public class Hello{

public static void main (String args[]){
System.println("hello world");
}

}

Thanks and greez!

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.