i don't know how to set a specific array (with values of lets say {1,2,3,4}
) as an object property?
(this is the only property)
i tried this in my class as a constructor (and i don't want to use initializing constructor)
public class Arrays {
public int [] arr = {2,3,4,5};
public Arrays (int[] arr ) {
this.arr = arr; }
but what do i put in the brackets ?
Arrays a = new Arrays ();
thanks!