Android String to Int Convert amount2String(String amount)

Here you can find the source of amount2String(String amount)

Description

amount String

Declaration

public static String amount2String(String amount) 

Method Source Code

//package com.java2s;

public class Main {

    public static String amount2String(String amount) {
        String temp = amount.replace(".", "").replace(",", "");
        return String.format("%012d", Long.parseLong(temp));
    }/*from   w w  w  . j  a  va2 s . co  m*/
}

Related

  1. toInt(String obj)
  2. toInt(String str, int defValue)
  3. toInt(String str, int defValue)
  4. toInteger(String value)
  5. toNumber(String str)
  6. String2Int(String str)
  7. string2Int(String str)
  8. isTextInteger(String texto)
  9. getInt(String str, int defaultValue)