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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -