Question: - Read tab-separated file student-data.tsv using high-level (byte) stream. (DataOutputStream) - Create a POJO class to store the information (name, student id, city) - Print
- Read tab-separated file student-data.tsv using high-level (byte) stream. (DataOutputStream) - Create a POJO class to store the information (name, student id, city) - Print the information on the screen using toString() method. - Count how many students live in each city. (Store the data in a Map) - Print the results. - Who lives in city Boston. (City name is an input parameter to a method).
| Name | StudentID | City |
| Russell | 2010 | Boston |
| Aydar | 2011 | New York |
| Nhi | 2012 | Detroit |
| Chisom | 2013 | Trenton |
| Anna | 2014 | Las Vegas |
| Nic | 2015 | Detroit |
| Lukas | 2016 | Trenton |
| James | 2017 | Las Vegas |
| Tom | 2018 | Boston |
| Lily | 2019 | Boston |
Step by Step Solution
There are 3 Steps involved in it
To achieve what you described you need to perform several steps Read the tabseparated file studentdatatsv using a highlevel byte stream DataInputStrea... View full answer
Get step-by-step solutions from verified subject matter experts
