Here you can find the source of replaceStr(String number)
public static String replaceStr(String number)
//package com.java2s; public class Main { public static String replaceStr(String number) { if ("".equals(number) || number == null) { return "0"; } else {/*from w ww.j a v a 2 s .c o m*/ return number; } } }