Link to home
Start Free TrialLog in
Avatar of komlaaa
komlaaa

asked on

reading a single string

Hi,
I know readLine read in string and can be splted,
how can i read in a sigle at a time:
example if i have firstString secondString
How do i read them and need to split after

Thanks
Avatar of Mick Barry
Mick Barry
Flag of Australia image

while (null!=(line=in.readLine()))
{
   String[] split = line.split(" ");
   ...
}
SOLUTION
Avatar of jLasitha
jLasitha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks