11. public static void main(String[] args) { 12. Object obj=new int[]{ 1,2,3 }; 13. int[] someArray = (int[])obj; 14. for (int i : someArray) System.out.print(i +“ “ “); 15. }
Show comments for this question (1) Add comments Link to this question
1. public class Plant { 2. private String name; 3. public Plant(String name) { this.name = name; } 4. public String getName() { return name; } 5. } 1. public class Tree extends Plant { 2. public void growFruit() { } 3. public void dropLeaves() { } 4. }
Show comments for this question (0) Add comments Link to this question
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12 13. public class Sprite{ 14. //insert code here 15.)