public static void main(String[] args) { Object obj = new int[] { 1, 2, 3 }; // line 12 int[] someArray = (int[])obj; // line 13 for (int i : someArray) System.out.print(i + " "); // line 14 }
Object obj = new int[] { 1, 2, 3 }; // line 12
int[] someArray = (int[])obj; // line 13
for (int i : someArray) System.out.print(i + " "); // line 14
}
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.