Class c[] = getClassContext(); for (int i = 0; i < c.length; i++) { String name = c[i].getName(); System.out.println(name); }