hi. i am at the end of a long weekend of doing nothing but working on a programming assignment.
i have an ArrayList and want to print out each element. each element is an int array. not sure how to print it out. the relevant code is below. but basically, i have used an iterator to create new arrays in another class. they are collected in my test class and printed out there. i just don't know how to convert it from hash code into something readable. a toString method ? i am sorry to have to ask this, i am just brain dead.
while (iterator.OneRoll_hasNext()){
new_pos = (iterator.OneRoll_next());
oneResult.add(new_pos);
}
for (int i =0; i<oneResult.size(); i++){
System.out.println(oneResult.get(i));
}
}
thanks
crquick


Reply With Quote
{


Bookmarks