How to split the strings in a file and read them?

后端 未结 3 1683
情书的邮戳
情书的邮戳 2020-12-06 17:53

I have a file with information in it. It looks like:

    Michael 19 180 Miami
    George 25 176 Washington
    William 43 188 Seattle

I wan

3条回答
  •  有刺的猬
    2020-12-06 18:54

     String[] splited = read.split("\\s+");
      for (int i= 0; i

    You should loop the result after you split the string.

提交回复
热议问题