| 1 | public class AnalysisForList { |
| 2 | |
| 3 | private int[] array = new int[] {1,2,3}; |
| 4 | |
| 5 | public void testFor() { |
| 6 | for (int i : array) { |
| 7 | System.out.println(i); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | public void testForIndex() { |
| 12 | for (int i=0;i<array.length;i++) { |
| 13 | System.out.println(array[i]); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | public void testForIndex01() { |
| 18 | int len = array.length; |
| 19 | for (int i=0;i<len;i++) { |
| 20 | System.out.println(array[i]); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected