Hey I just started programming and I need help with converting/displaying my array in the TextArea. The code below is part of my array class. output.setText(array[i]); gives me and error saying "needs String, found int". I'm not sure how to convert it and display the list of random numbers that are inside the array.
public void setArray(int x){
for(int i = 0; i > array.length; i++){
array[i] = x;
}
}
public void fillArray(){
int arrayNumbers = randomNumber.nextInt(100)+1;
for(int i= 0; i > array.length ; i++){
array[i] = arrayNumbers;
output.setText(array[i]);
}
}