JAVA Syntax Correction. - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › JAVA Syntax Correction. (1108 Views)
| JAVA Syntax Correction. by Mckayce(op): 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(op): 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 |
I Have A Very Import Question On Python Syntax • Javascript Function Declaration Syntax: Var... • Programming Your Own Code Syntax Highlighter • 2 • 3 • 4
Php Micro Framework • Step-step Guide On Java, C, Javascript, Php, Python, Ruby, FORTRAN, E.tc. • How To Disable Lock Screen Ads On Opera Mini.