I was creating a program that had an array involved and at one point I wanted to print out part of the array. I wanted to know how to print out for example array indexes 2-5.
I tried doing something like this but it didn't work.
String[] testArray = {"a", "b", "c", "d", "e", "f'", "g"};
System.out.println(testArray[2,5]);
but it didn't work. (not that I fully expected it too).
I was just wondering how you would do something like this.