Arrays.toString(float[] a) has the following syntax.
public static String toString(float[] a)
In the following code shows how to use Arrays.toString(float[] a) method.
/*w ww . jav a2 s . com*/ import java.util.Arrays; public class Main { public static void main(String[] args) { float[] f1 = new float[] { 1.1f, 9.7f, 3.4f }; System.out.println(Arrays.toString(f1)); } }
The code above generates the following result.