I am learning Java and I have the following code:
public Slide[] thisIsASlide (String [] slider) { 
    for (String amount : slider) { 
        Slide st = thisNewMethod(slider, 20,20);
    } 
   return ; 
} 
The elements will be stored into amount at each iteration. I want to put this amount into a new array and return it. Please can someone help?
Thanks
Edit: I think I said this wrong I need to know how to put the variable of Slide (st) into a new array and return it. Please can someone help with this?
 
     
     
    