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
Press Submit to check your solution.
Back to lesson: Practice: Practice: Text Processing