Commits

Takayuki KONDO committed 949e463

add debug message

Comments (0)

Files changed (1)

     public static int sumItemsPrice(ArrayList<Item> items){
 	int sum = 0;
 	for (int i = 0; i < items.size(); i++){
-	    sum += items.get(i).getPrice();
+	    //System.out.println(i);
+	    sum += (items.get(i)).getPrice();
 	}
 	return sum;
     }