Making a string array show each value followed by an integer array and its values: JAVA
<p>I would like to know how to print out a string which is "Hello index: " and then on each line print out a value in array2 starting with a value of 1, and then adding 5 onto each index as it goes up by 1...if anyone could help, it would be appreciated. I'm a beginner in java, but I know the basics up to arrays. I learned objects and using objects before I did arrays. My question is how can I get the values from each array to print out. And how would I set up my println to print those values. Thank you so much!</p>

<pre><code>public class tuna {
private String[] array1;
private int[] array2;

public tuna(String[] array1, int[] array2){
this.array1 = array1;
this.array2 = array2;
}
int i, k;
public String[] getArray1(){
    return array1;
}
public int[] getArray2(){
    return array2;
}
}


public static void main(String[] args) {
    String[] array1 = new String[10];
    int[] array2 = new int[10];
    array2[0] = 1;
    tuna me = new tuna(array1, array2);


    for(int i = 0; i &lt; array1.length; i++){
        array1[i] = "Hello index: ";
    }

    for(int x = 1; x&lt;array2.length - 1; x++){
                    change(array2);
        array2[x] = array2[x-1]; 
        if(array2[x+1] &gt; array2.length)
            array2[x+1] = array2[x];

    }

            me.getArray1();
            me.getArray2();
</code></pre>

<p>???System.out.println();..........</p>
