In my toString I'm trying to print the total cost as $9.30. It is printing as $9.3 - without the 0 on the end.
This looks like:
public String toString() { return "$"+total; }
However my "total" variable must be of type double, I've tried casting it with (float)total which hasn't worked. Do I need to save total into a float variable out of the toString or is there another way I can get it to appear as $9.30