This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Forgive my lack of knowledge regarding correct programming for API collections Hash Map, but I can't quite get it right, as I wanted program to submit the placed Strings - including the ISBN numbers, yet as coded, program only submits the authors, I can't get it to give the ISBNs - is it that next() method thats forcing it to skip alternating strings - and/or can I put in another method that will output the ISBN strings as stored ?
The output order is as Exercise stipulates - so its half right, I suppose.
public class MyMap
public static void main(String  args)
Map myHashMap = new HashMap();
myHashMap.put("James Joyce", "111-12-1212");
myHashMap.put("Mai Li", "222-21-2121");
myHashMap.put("Murray Kaye", "333-31-1313");
myHashMap.put("Sam Adams", "444-41-4141");
myHashMap.put("Juanita Perez", "555-51-1515");
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\user>set PATH=C:\jdk1.42\jdk\bin
C:\Documents and Settings\user>cd C:\lab_files\Lesson_7
Thank you for your help in advance
A man of words and not of deeds is like a garden full of weeds, and when the weeds begin to grow, its like a garden full of snow, and when the snow begins to fall- its like a bird upon the wall and when the bird begins to fly, its like an eagle in the sky