Help pls

I am creating a class named Arrays Here I have to set a mutator that set the integer array nums(the attribute) values to the aray argument(parameter(.The mutator will store values of the array argument one at a time into the same element of nums array using a for loop.If array argument is shorter store only the element into nums and leave the remaining elements of the array nums unchanged.If the argument array is longer,store only as many elements as are present in the array nums so that outofboundarrayexception error doesn't occur.....The one integer array attribute is created named nums and constructor has one integer parameter for the size of the array that value is used to instantiate the interger array called nums and then initializes the array and counting up one for each element....The accessor getNums returns the entire array nums

I dont see any error with this code that I wrote....but somehow the Testarrays class doesn't use the mutator to store the values of array ary1 and print it

Thanks for the help...But I see the testArrys class does n't work I meant it doesn't use the mutator and accessor created in the Arrys class.... I get an error message...and cant figure it out ...If you know can you pls help me?...

: The comment notice this modification -> nums=new int wont work in Java...I get an error saying: : Arrys.java:4: '[' expected: nums = new int;//notice this modification: ^: 1 error: : : That is the problem which is why I had to give a size earlier in my previous reply mail....: : Sriram

The problem is the design of this forum.For some reason the rest of that line was cut off.I wrote the line as nums = new int[leftbr]size[rightbr];but the rest of it was cut off.I've actually used the stupid leftbr and rightbr tags