Advertisement
Guest User

Untitled

a guest
May 21st, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class AsiriYukleme {
  2.  
  3. public String formatDuzenle(int value){
  4. return String.format("%5d", value);
  5. }
  6.  
  7. public String formatDuzenle(double value){
  8. return String.format("%.2f", value);
  9. }
  10.  
  11. public String formatDuzenle(String value){
  12. return String.format("%10.3f", Double.parseDouble(value));
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement