java - How to read full line while using line split? -


bufferedreader tableread = new bufferedreader(new filereader(tablefile));    while ((tableline = tableread.readline()) != null){             cnamedata = tableline.split(",");             (int =0; i< cnamedata.length; i++){                 system.out.println(cnamedata[i]);             }         } 

this code in mind takes line example, john, 23, male, , splits , puts array cnamedata, when prints out gives 23 , male only, how insert john array? in advance.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -