Skip to main content

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

Back to lesson: Practice: I/O & Formats Lab