Adding doubles to each other
I'm having trouble writing a method to calculate the total of some orders for a university project. 
Eclipse says there's an error, detailing only that the *+* is an invalid AssignmentOperator.

Some details:

 - There's no privacy issues.
 - *quantity* is an int.
 - *getPrice()* returns a double.
 - *total* is a double

It's probably something really simple, but because of that, searching around for an answer is pretty difficult.

----------

    public double calculateTotal(){
		for(OrderItem currentItem:items){
			for(int i=0;i<currentItem.quantity;i++){
				total+currentItem.product.getPrice();
			}
		}
		return total;
	}

Adding doubles to each other
===

I'm having trouble writing a method to calculate the total of some orders for a university project. 
Eclipse says there's an error, detailing only that the *+* is an invalid AssignmentOperator.

Some details:

 - There's no privacy issues.
 - *quantity* is an int.
 - *getPrice()* returns a double.
 - *total* is a double

It's probably something really simple, but because of that, searching around for an answer is pretty difficult.

----------

    public double calculateTotal(){
		for(OrderItem currentItem:items){
			for(int i=0;i<currentItem.quantity;i++){
				total+currentItem.product.getPrice();
			}
		}
		return total;
	}
