main() parameters  
Author Message
Bill Cunningham





PostPosted: 2003-7-5 9:49:00 Top

java-programmer, main() parameters What's the difference in these parameters?

main(String[] args) and main(String args[]) ?

public class app extends Applet{
public static main void (String[] args)....

Bill





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
 
Richard Klein





PostPosted: 2003-7-6 2:13:00 Top

java-programmer >> main() parameters There is no difference, you can declare an array like String[] args or
String args[]

Richard

"Bill Cunningham" <email***@***.com> schreef in bericht
news:email***@***.com...
> What's the difference in these parameters?
>
> main(String[] args) and main(String args[]) ?
>
> public class app extends Applet{
> public static main void (String[] args)....
>
> Bill
>
>
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 80,000 Newsgroups - 16 Different Servers! =-----


 
BobJ





PostPosted: 2003-8-1 1:39:00 Top

java-programmer >> main() parameters No diff - just an attempt by Sun to make things easier for C++ programmers
as they switch to Java, so they allow either form..
BobJ
"Bill Cunningham" <email***@***.com> wrote in message
news:email***@***.com...
> What's the difference in these parameters?
>
> main(String[] args) and main(String args[]) ?
>
> public class app extends Applet{
> public static main void (String[] args)....
>
> Bill
>
>
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 80,000 Newsgroups - 16 Different Servers! =-----