20th May 2019, 1:07 PM
Sudheshna
Sudheshna - avatar
4 Antworten
+ 5
You should print the array, then you will see it: welcome@to@solo@learn inside your array after split("@"): [welcome, to, solo, learn] (that's why length = 4) Another example: String str = "hello world"; String[] arr = str.split(" "); -> [hello, world]
20th May 2019, 9:49 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
Btw: you askes this question twice https://www.sololearn.com/Discuss/1808922/?ref=app
20th May 2019, 9:51 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
It is the limit. You should read the article in kiRA post. There are some examples using positive and negative limit.
21st May 2019, 7:38 AM
Denise Roßberg
Denise Roßberg - avatar
0
What does the second argument in the example code specifies???
21st May 2019, 6:26 AM
Sudheshna
Sudheshna - avatar