char[] colors={'R','G','B','Y','W'};
Scanner sc=new Scanner(System.in);
Stack stack=new Stack();
void push(){
for(int i=0; i<15; ++i){
stack.push();
}
I've got an array of colors and i want to push random colors into a stack unto 15 elements. How can i push and display all the elements in the stack.