Pages: 1

  2010-07-05 07:48:23

mystic rain
» FTalkWhiz
FTalk Level: zero
2963
0
1969-12-31

Hello there I need help ): I'm still a beginner when it comes to java o.o and so I still have this kind of difficulty in making such kind of java programs... here's the little background of my progra

Geez, thanks for answering my question nanix ((: Well, our professor is a little bit slow in discussing OOP terms and others :D 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 :P 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)

Pages: 1

Board footer

© 2025 F Talk

Current time is 12:54

[ 10 queries - 0.015 second ]
Privacy Policy