I'm a complete beginner in Java so I hope I make sense. I want to store values in a class from one method into another method. 

If the array is full in the fist class method, I want to add the values into the second method instead which has more space. I check if first method, inFor, is full, then it should add the value of the parameter newCoin into the method moreSpace. So do I call moreSpace inside inFor?

```
 public double inFor(newCoin) {

for(int i = 0; i<arr.length;i++)

 if (arr[i] == null){
  arr[i] = newCoin;

if (i >=arr.length){

  moreSpace(i) //add the values here

 public void moreSpace(){
 String[temp] = new String[arr.length + 1];
for (int i = 0; i < arr.length; i++){
temp[i] = arr[i];
 arr = temp;       

```