>>178708810Speaking of
Which do you prefer?
object a = new object(1, 2);
object1 b = new object1(a);
int c = input;
list.add(b, c)
or
list.add(new object1(new object(1,2)), c);
I've recently got in the habit of the second
>>178709130>can you store strings in an array?Indeed
And the problem solving is great. The feel of progress is fantastic. But when you get stuck at a brick wall, its just so frustrating.
>>178709381In my project im working with an arraylist of an arraylist of objects.
Here's a few lines from my code
if ((a.get(a.size()-1).getPrice() < a.get(a.size()-2).getPrice()))
{
double temp = a.get(a.size()-2).getPrice() - a.get(a.size()-1).getPrice();
double perc = (temp / a.get(a.size()-2).getPrice()) * 100;
}
im sick of writing 'get' and 'size'
its so fucking confusing to keep track of