daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest May 17th, 2018 92 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top