Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,774 members, 7,810,007 topics. Date: Friday, 26 April 2024 at 06:39 PM |
Nairaland Forum / Science/Technology / Programming / JAVA Syntax Correction. (1001 Views)
I Have A Very Import Question On Python Syntax / Javascript Function Declaration Syntax: Var... / Programming Your Own Code Syntax Highlighter (2) (3) (4)
JAVA Syntax Correction. by Mckayce(m): 2:04pm On Jul 17, 2016 |
Help me Java gurus. Fulaman sonoflucifer dhtml CC: EVERYONE //PLEASE i find it very confusing when learning java and reading already made java programs ...... when reading my java tutorials i see main(String args[]) but when i look at programs i see main(String[] args).. please which is correct or am i getting something wrong |
Re: JAVA Syntax Correction. by Nobody: 2:19pm On Jul 17, 2016 |
The square brackets indicate an array. In Java, you can declare an array using either method. Put the square brackets after the type or after the variable. String[] args or String args[] creates an array named args. |
Re: JAVA Syntax Correction. by Mckayce(m): 6:04am On Jul 18, 2016 |
thanks |
Re: JAVA Syntax Correction. by Anmich: 9:13am On Jul 18, 2016 |
Mckayce: Both of them are correct and that section is where the program starts execution from. There can only be one of that in a java program |
(1) (Reply)
Pls I Need An App Developer Asap!!!!!!!!!!!! / See What The Statistics Says About Nigeria / Upcoming Bloggers Come In
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |