Java Fundamentals by Gazihan Alankus Rogério Theodoro de Brito Basheer Ahamed Fazal Vinicius Isola and Miles Obare

Java Fundamentals by Gazihan Alankus Rogério Theodoro de Brito Basheer Ahamed Fazal Vinicius Isola and Miles Obare

Author:Gazihan Alankus, Rogério Theodoro de Brito, Basheer Ahamed Fazal, Vinicius Isola and Miles Obare
Language: eng
Format: mobi, epub
Publisher: Packt Publishing Pvt Ltd
Published: 2019-03-10T16:00:00+00:00


Exercise 26: Writing an Application that Finds a User by Email

In this exercise, you'll write an application that reads the users from a specified CSV file into a hashtable, using their email as a key. They then receive an email address from the command line and search for it in the hashtable, printing its information or a friendly message if this isn't found:

In your UsersLoader.java file, add a new method that will load users into a hashtable using the email as a key. Create a Hashtable at the beginning and return it at the end:public static Hashtable loadUsersInHashtableByEmail(String pathToFile)

throws IOException {

Hashtable users = new Hashtable();

return users;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.