java - Can't convert double array to String using Apache Commons Lang -
i have been trying convert double array string numbers separated space.
public class stringtest { public static void main(string[] args) { double[] g = {1.2,1.4,1.4} ; string d = stringutils.join(g, " "); system.out.println(d); } } commons lang javadoc tells me possible this, code runs [d@54a50a00 printed out. missing here?
you using stringutils#join(t...). seem want use stringutils#join(double[], char). change " " ' '.
Comments
Post a Comment