java - how to create an anonymous int array for the purpose of passing as a parameter -


i need create anonymous int array passed method. don't want declare variable , pass variable because makes code crowded. can integer array.

new box(new integer[]{1,2,3}); 

how int?

just do:

new box(new int[]{1,2,3}); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -