0

Possible Duplicate:
Difference between int[] array and int array[]

What is the difference between these two declarations of an array of native types in Java?

double items[] = new double[10];

double[] items = new double[10];

If they are the same is there any reason to prefer one over the other?

Community
  • 1
  • 1
Simon
  • 78,655
  • 25
  • 88
  • 118

0 Answers0