split string only on first instance - java

前端 未结 6 653
情话喂你
情话喂你 2020-12-07 12:52

I want to split a string by \'=\' charecter. But I want it to split on first instance only. How can I do that ? Here is a JavaScript example for \'_\' char but it doesn\'t w

6条回答
  •  情书的邮戳
    2020-12-07 13:23

    String[] func(String apple){
    String[] tmp = new String[2];
    for(int i=0;i

    i like writing own methods :)

提交回复
热议问题