If you have to pass an array to the method myMethod you would usually do something similar to this:
int |
But why create an array when you can pass the integers directly? The compiler takes care to pack the integers into an array.
myClass.myMethod(23, 48, 96, 114); |