Forked from anonymous/New method in MainActivity.java
Created
April 12, 2018 03:05
-
-
Save Juliblues/4cd9fb0c9151e8ffc9966cc8e0c459a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This method displays the given price on the screen. | |
| */ | |
| private void displayPrice(int number) { | |
| TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
| priceTextView.setText(NumberFormat.getCurrencyInstance().format(number)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment