John Jai wrote:Hi Petr,
use trim() function in String class.
Ashish Schottky wrote:@petra: Welcome to Javaranch.
Ashish Schottky wrote:
This seems to be a home-work problem.And you have done well.
just use a for-loop and use trim for every string.
Campbell Ritchie wrote: particularly the second.