I finally managed tocompile it. Now I have another question. how do you typecast in Java? let's say u have Cost = Quantity *.8763(float, float, and double, respectively). what should uput in front of the number to cast?