StringTokenizer

  • 9
  • Locked
Using a StringTokenizer, split the query variable into parts based on the delimiter variable. Example: getTokens("java.util.stream", "\\.") returns the string array {"java", "util", "stream"}
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Константин Савченко
Level 25 , Ukraine, Ukraine
26 December 2021, 22:33
What is wrong?
Константин Савченко
Level 25 , Ukraine, Ukraine
26 December 2021, 22:36
I should return String[] from method. I return it, but main method should return
{"java", "util", "stream"}
. Why it returns
[java, util, stream];
?
PeterC Android Developer
17 October 2021, 17:13
The array must be of size 6.