Practice ยท 1 of 3
Quoted-CSV Row Scanner
Implement static List<String> parseRow(String line) โ a character
scanner that:
- splits on commas OUTSIDE double quotes
- treats "" inside a quoted field as a literal "
- keeps quoted commas in the field ("a,b" โ one field a,b)
- returns empty field list entries for consecutive commas
(a,,b โ [a, , b])
The tests hit every rule from the lesson.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: I/O & Formats Lab