I apologize but I have no idea exactly what I'm doing and I apologize now in advance if it his hard to read since I'm posting this via cellphone since I do not have access to the internetfrom my pc. I am using Netbeans attempting to write a code with the list of these colors. yellow red white red yellow white white green red white. I need to store the colors Ina stack or perhaps multiple stacks. I cannot print them prior to storing them in the stack.
2. print the colors in reverse input sequence.
3. print the colors in input sequence
I cannot use arrays or files for temporary storage. and to use multiple ArrayStacks<T>objects.
this is what I had which I know is not nearly right
import java.util.*;
public class colorStack {
* * public static void main(String[] args) {
* * * * Stack<String> stack = new Stack<String>();
* * * * stack.push("white");
stack.push("red");
* stack.push("green");
stack.push("white");
}
}
I understand I need to push the strings to stack just no idea how. any help would be greatly appreciated thanks

