[2314] in java-interest
Re: main() routine
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Fri Sep 29 08:29:19 1995
Date: Wed, 27 Sep 1995 16:11:08 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Philip Brown <phil@bolthole.com>
Cc: java-interest@java.Eng.Sun.COM
Hi Philip,
> > 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?
Nope. That's it. There really isn't a platform indepedent program name that
we can provide you with.
Have fun,
Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com