Question
Write a public static method that takes no parameters and has return type HashMap of Integer to String. In this method, you may assume there
Write a public static method that takes no parameters and has return type HashMap of Integer to String. In this method, you may assume there is a file named "supposedly.csv" with lines in the format "straight(Integer),above(String),quietly(Integer),together(Integer),horizon(String),ride(String),absolutely(Integer),index(String)" where each Integer column contains only well-formed integers. There is no header line in this file. This method will return a new HashMap that maps "absolutely" to "above" by putting one key-value pair into the HashMap for each line in "supposedly.csv"
*/
public static HashMap
HashMap
try {
Scanner fin = new Scanner(new File("supposedly.csv"));
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started