Geez, thanks for answering my question nanix ((: Well, our professor is a little bit slow in discussing OOP terms and others

that's why i'm having an advance study on some parts about OOP (java) So, you should be expecting that I have tons of question from my mind today

haha.
[quote=nanix84;#3644942;1278127017]import java.util.*;[/quote]
What is this for? Can you explain what's the purpose of this code for the program? |:
and hey, I did have changes of my codes:
<">but still, it has one error :\ I'm just a little bit confuse in using array in java ): I prefer using C program than this one aaaaaargh! hahaha! it's getting on my nerves now |: hmpf!
continuation for my questions (:
1.[quote=nanix84;#3644942;1278127017]HashMap itemPrice = new HashMap();
itemPrice.put("Jacket", new Double(10.00));
itemPrice.put("Pants", new Double(25.00));
itemPrice.put("Blouse", new Double(35.00));
itemPrice.put("Bag", new Double(15.00));[/quote]
Hey, what is hashmap for? |: and this one also -- itemPrice.put what is .put for? o.o
2. [quote=nanix84;#3644942;1278127017]Iterator It = itemKeys.iterator();[/quote]
The Iterator thing is new for me o.o can you explain it also o.o what does it do to the program |:
3. [quote=nanix84;#3644942;1278127017]if(itemPrice.containsKey(yourItem))[/quote]
that one also -- > the itemprice.containskey o.o what is .containskey for? o.o
Thanks again (:
Last edited by mystic rain (2010-07-05 07:48:50)