java - How to use delimiter using scanner when the file contain "0195153448";"Classical Mythology";"Mark P. O. Morford";"2002";"Oxford University Press" -
how use delimiter using scanner in java when text file contain following line.
"0195153448";"classical mythology";"mark p. o. morford";"2002";"oxford university press"
how output:
0195153448 classical mythology mark p. o. morford 2002 oxford university press
please tell me how use scanner delimiter in java here.
scan.usedelimiter(pattern.compile(";")); scanner.usedelimiter("");
Comments
Post a Comment