[2320] in java-interest

home help back first fref pref prev next nref lref last post

Re: main() routine

daemon@ATHENA.MIT.EDU (Philip Brown)
Fri Sep 29 08:46:50 1995

To: Arthur.Vanhoff@Eng.Sun.COM
Date: Wed, 27 Sep 1995 15:26:35 -0700 (PDT)
Cc: michael@santafe.edu, java-interest@java.Eng.Sun.COM
In-Reply-To: <Roam.1.2.811277263.4190.avh@acorn> from "Arthur van Hoff" at Sep 16, 95 11:47:43 am
From: phil@bolthole.com (Philip Brown)

Sorry go go back a week... I'm just catcing up. We REALLY need a newsgroup.
Ugh.


[ Arthur van Hoff writes ]
> 
>         class SayHello {
> 	    public static void main(String argv[]) {
> 	        System.out.println("Hello " + argv[0]);
> 	    }
>         }
> 
> To invoke this you call:
> 
> 	java SayHello Michael

So argv[0] is mapped to the first argument, going against C++ and C
standards of years???

Or was this a typo, I hope?
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post