Skip to main content

Practice ยท 2 of 3

CSV row parser

Implement static String field(String row, int index) that extracts one comma-separated field: field("name,age,city", 1) is "age". Out-of-range index returns "". Fields keep their own spaces; do not trim.

Difficulty: beginner

Back to lesson: Practice: Practice: Text Processing