Here you can find the source of arrayDot2Zero(String[] values)
public static String[] arrayDot2Zero(String[] values)
//package com.java2s; public class Main { public static String[] arrayDot2Zero(String[] values) { int count = values.length; String[] results = new String[count]; for (int index = 0; index < count; index++) { if (values[index].equals(".")) { results[index] = "0"; } else { results[index] = values[index]; }/*from w w w . j a v a 2s . c o m*/ } return results; } }