Of course!!! You are right. There I was a little bit blockheaded:)
Type: Posts; User: janpiel
Of course!!! You are right. There I was a little bit blockheaded:)
You should use dynamic structures in this case:
public static void main(String[] args) {
ArrayList<Integer> inputVals = new ArrayList<>();
Integer temp = 0;
Scanner scanner = new...