double to string java stack overflow code example Example: double to string java stack overflow double total = 44; String total2 = String.valueOf(total);