mayumi yamada wrote:I want to take my Array List and use the index and Values that I have saved in it as the Key and Value of a Hashmap.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
mayumi yamada wrote:when I do that I get an error and it wants me to change to add, to addall and when I do that - it does not put the items in by themselves but all in one spot.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
No, you didn't. You are quite right in that. You called it array. Look: here it is in this quote from your first post:mayumi yamada wrote:Campbell Ritchie - Sorry but I do not understand what you are saying. I did not call it an List Array... . . .
Anybody reading your code quickly will think that is an array. It is not an array, and an ArrayList is not an array; it is a List. You should have given it a different identifier, maybe:-Also, you should give that List a type parameter. Read about generics.
mayumi yamada wrote:Could someone explain to me what I am doing wrong?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Campbell Ritchie wrote:I usually use that syntax with a while loop...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
mayumi yamada wrote:Since the second value of appearances will be multiple ones, will it be okay to use ArrayList then? Is there a better way to do that or am I on the right track this time?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
mayumi yamada wrote:first number the movie and the list of numbers after the actors in that movie?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
mayumi yamada wrote:This is how my tutor explained it to me...but I am still a bit confused on how to go about it.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
number=723 name=Light, Matt
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|