- 1
what these brackets do here like string[ ]
4 ответов
0
Square brackets indicate that you're dealing (in this example) with an array of strings, and not just one
0
can u please describe a little
0
Take a look at this example
https://code.sololearn.com/ceAp5M6W4Ht7/?ref=app
str is a variable type String, stores only one string
strArr is an array, set or group of String variables. That's what brackets indicate. Brackets are also used to access a string from the array, using its position starting from zero.
For example: strArr[1] returns the second string.
Everything is explained in.the course, follow it
0
thanx