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
Post a Comment