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