Split Java String into Two String using delimiter

后端 未结 7 1085
情话喂你
情话喂你 2020-12-03 18:09

I have a string that has the value of name:score. I want to split the string into two strings, string a with the value of name and str

相关标签:
7条回答
  • 2020-12-03 18:46

    Use:

    String [] stringParts = myString.split(":");
    
    0 讨论(0)
提交回复
热议问题