fbpx

#kotlinDevChallenge – 11

Write a Kotlin function to parse CSV data provided as a string, and return the data in a structured format.

The CSV data will be provided as a single string, where each line represents a row and each value is separated by a comma. The function should parse this string and convert it into a List<Person>

test cases
  1. A simple CSV string.
  2. A CSV string with empty lines.
  3. A CSV string with different line endings.
  4. A CSV string with a missing element in one of the rows.
  1. Fill in the code.
  2. You can copy the code into IntelliJ/Android Studio, but it shouldn’t be necessary.
  3. Click “run” – the green triangle. The code will compile and several tests will be run.
  4. In the logs, you will see “try again” if the solution is incorrect, or “success” and a special code.
  5. Provide this code in the form below along with your email and click “send”.
  6. Solutions will be presented the next day on Instagram

more insights

Uncategorized
Jarosław Michalik

3 things that defined my Android dev career

Building an Android developer career isn’t just about coding—it’s about the experiences that push you to grow. Whether it’s connecting with other Android devs at meetups or mastering the fundamentals, it’s those key moments that shape how you approach the craft.

Read More »

AndroidPro newsletter 🚀

join 3057 developers reading AndroidPro newsletter every week

👉 tips & tricks, articles, videos

👉 every Thursday in your inbox

🎁 bonus on signup – Clean Architecture blueprint

brought to you by Jarek Michalik, Kotlin GDE

You can unsubscribe any time. For details visit our privacy policy.

android pro newsletter tips and tricks how to learn android