java convert dobule tostring code example Example: double to string java double number = -895.25; String numberAsString = String.valueOf(number);