Here you can find the source of amount2String(String amount)
public static String amount2String(String amount)
//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*/ }