Whenever I try to print the elements I copied from array stonefist to array vaporeon I get
This new array: [I@175705e
Is this a problem on my end or is this a problem with my version of java?
public class ArrayTest
{
public static void main(String[] args)
{
int[] stonefist = new int[6];
int[] vaporeon = new int[stonefist.length];
stonefist[0] = 34;
stonefist[1] = 2;
stonefist[2] = 14;
stonefist[3] = 34;
stonefist[4] = 58;
stonefist[5] = 4;
int jolteon = 0;
int flareon = 0;
int dragonite = Integer.MIN_VALUE;
for(int i = 0; i < stonefist.length; i++)
{
System.out.println(stonefist[i]);
if(stonefist[i] > dragonite)
{
dragonite = stonefist[i];
}
jolteon = jolteon + stonefist[i];
flareon = jolteon/stonefist.length;
System.arraycopy(stonefist,1,vaporeon,0,3);
}
System.out.println("The largest number is: " + dragonite);
System.out.println("The average is: " + flareon);
System.out.print("This new array: " + vaporeon);
}
}