how to cast a double as a string java code example Example: cast double to string java double total = 44; String total2 = Double.toString(total);