How to parse this output and separate each field/word

前端 未结 3 870
醉话见心
醉话见心 2021-01-22 18:12

This is Akshatha. I\'m stuck in parsing the following data. I want to fetch each word individually. Can I have a sample code so that I can proceed

 RTRV-HDR   RH         


        
3条回答
  •  旧巷少年郎
    2021-01-22 18:45

    I would try String.split(). Something like this...
    String [] words;
    words = line.split("\s+");

    The above splits the string on whitespace.

提交回复
热议问题