java Double.toString format code example Example: java convert double to string double total = 44; String total2 = Double.toString(total);