Hello World

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fritz Kaufmann

    Hello World

    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!
  • kimbuba

    #2
    Re: Hello World

    System.out.prin tln("hello world");

    "Fritz Kaufmann" <kawuma@bluemai l.ch> ha scritto nel messaggio
    news:1c16556a.0 401160553.5c81d 3d9@posting.goo gle.com...[color=blue]
    > 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![/color]


    Comment

    • Vladimir Bezugly

      #3
      Re: Hello World

      > I have a problem. I'm a beginner and try to[color=blue]
      > get the following program working. It has
      > an exception. Can you tell me?[/color]

      What exception?

      Comment

      • K. Malek

        #4
        Re: Hello World

        Fritz Kaufmann wrote:[color=blue]
        > 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![/color]
        your syntax is incomplete...
        it should be System.out.prin tln.......etc
        ^^^

        Comment

        • Tony Morris

          #5
          Re: Hello World

          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" <kawuma@bluemai l.ch> wrote in message
          news:1c16556a.0 401160553.5c81d 3d9@posting.goo gle.com...[color=blue]
          > 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![/color]


          Comment

          Working...