I've been wondering what the value you get means when you print an array in java.
float[] array = new float[] {1f,1f,1f,1f};
System.out.println(array);
The output I receive is [F@7fbe847c
I assume the F means float (correct me if I am wrong)
I notice that when I use a string array, some things change
String[] array = new String[] {"a","a","a","a"}
System.out.println(array);
the output now is [Ljava.lang.String;@7fbe847c
I assume the Ljava.lang.String; means it is a string array (correct me if I am wrong).
Either way, the @7fbe847c stays the same.
My question isn't how to print an array (I already know to use Arrays.toString()), my question is what does the value mean and what is it normally used for?