int[] conversation(Stack<Integer> stack){ return stack.toArray(); }
I used above code for converting stack to int[] but getting error : incompatable types: Object[] cannot be converted to int[].
Any other way to do that except iterating through loop?
1.4m articles
1.4m replys
5 comments
57.0k users