SCJP 1.4<br />SCWCD (in progress)
Secondly, with a dynamic array you use a loop to implement the array reference for the data i.e. Name would be Name [0][0 ] the first name and Course would be [0][1] but I'm not so sure I have implemented this for a HashMap i.e. as Name is my Key and Course is my value surely I do not need a loop to increment anything in the hashmap; and if I did is my understanding correct when I think I have to use the Set i.e. Set keys = map.keySet() to get an Iterator and use the iterator to put each of the elements of the set in turn? (A response on this question would be appreciated!)
Originally posted by Maureen Charlton:
"Firstly, what does the exception in thread "main" java.lang.Stack mean? Is it to do with recursion i.e. including the class Student and main TestStudent together is not such a good idea? (Arnald Burlet - thanks for your input here).
Originally posted by Maureen Charlton:
Secondly, with a dynamic array you use a loop to implement the array reference for the data i.e. Name would be Name [0][0 ] the first name and Course would be [0][1] but I'm not so sure I have implemented this for a HashMap i.e. as Name is my Key and Course is my value surely I do not need a loop to increment anything in the hashmap; and if I did is my understanding correct when I think I have to use the Set i.e. Set keys = map.keySet() to get an Iterator and use the iterator to put each of the elements of the set in turn? (A response on this question would be appreciated!)
SCJP 1.4<br />SCWCD (in progress)
SCJP 1.4<br />SCWCD (in progress)
SCJP 1.4<br />SCWCD (in progress)
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |