Can someone show me how to set up the indexes so I can only print the second one? Also, can someone show me how to assign it to read variable(n).
package com.codegym.task.task07.task0705;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
One large array and two small ones
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] n = new int[20];
int[] o = new int[10];
int[] p = new int[10];
for (int i = 0; i < n.length; i++) {
n[i] = Integer.parseInt(reader.readLine());
n[i] = o[0] + n[i];
n[i] = p[0] + n[10];
System.out.println(n[i]);
}
}
}