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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -