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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -