MCPcopy Create free account
hub / github.com/JavaCourse00/JavaCourseCodes / AnalysisForList

Class AnalysisForList

01jvm/AnalysisForList.java:1–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected