diff --git a/HelloToast/app/src/main/java/com/example/android/hellotoast/MainActivity.java b/HelloToast/app/src/main/java/com/example/android/hellotoast/MainActivity.java index 72bfe597..187e5979 100644 --- a/HelloToast/app/src/main/java/com/example/android/hellotoast/MainActivity.java +++ b/HelloToast/app/src/main/java/com/example/android/hellotoast/MainActivity.java @@ -65,6 +65,6 @@ public void showToast(View view) { public void countUp(View view) { mCount++; if (mShowCount != null) - mShowCount.setText(Integer.toString(mCount)); + mShowCount.setText(NumberFormat.getNumberInstance(Locale.getDefault()).format(mCount)); } }