daily pastebin goal
90%
SHARE
TWEET

Untitled

a guest May 17th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     private String formatMileage(final String km) {
  2.         if ((km == null) || (km.length() == 0)) {
  3.             return km;
  4.         }
  5.         try {
  6.             final double mileage = Double.parseDouble(km);
  7.             return formatMileage(mileage);
  8.         } catch (final NumberFormatException e) {
  9.             return km;
  10.         }
  11.     }
RAW Paste Data
Top