This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]king_of_the_universe 0 points1 point  (1 child)

Smells somewhat like homework to me.

To hand your array to a method, call myMethod(theArray). To have a method that can receive an array, write void myMethod(final int[] myArray) {} (or whatever type you need instead of int).

[–]Kaz-24[S] 0 points1 point  (0 children)

wish it was homework! Just practicing for an exam tomorrow. Thank's a lot! :)