User Comments for the tutorial:

Example of Java Stack Program

Total comments: 15      View Tutorial    Discuss: Example of Java Stack Program



thnksss ... for the code ..... 

thanks for the code, however it wouldnt compile until i changed the import to java.util.Stack... weird. 

Thanks This code really help me to use stack. 

what is stack(newinteger(10) i dndt get dat  

thanks ..
Hi..Thanks for the sample code RE: really helps me a lot..hope we learn more from you guys! More power.

Stack Program
it conot be run in a jcreator manny errors. cannot find symbol method push 

thanks a lot for the stack coding
thank you very very much. 

explanation of the StackDemo
hi good day! can you give me the explanation of the Program given entitle StackDemo,,,, thanx  

can i see the interface of that given program above..about stack..thankz.. 

there's must be something wrong?! why do you need to display the variable a? what is the value of "a"? is that an input variable or what ? and you havent push an element .. YOU MUST .. 

example of palindrome progaram using Stacks
pls help me ?? i dont know what to do .. 

I'm so sorry but I still can't understand how this program works. We have a problem in school and it is about palindrome and we need to do this by using only 1 stack. Please tell us more about this. Please help us 

hello. i have compile this program bt it contain 1 error. error is on the line Stack stack=new Stack(); class file contain wrong class:stack. plzz defile it. another question is that can we extend sinmgal class from itself? if yes or no than g 


Related Tutorial and Articles
Java Beginners

Stack  How to implement a stack using classes in java?   Here is an example that implements a Stack class based on arrays. public class Stack { private int top; private int[] storage; Stack(int 

Core Java

Java Stack
java stack click on the link: http:/ Java Stack       The Stack class works on the principle last-in-first-out (LIFO) stack of objects 

Java Beginners

Java Stack - Java Beginners
Java Stack  Can you give me a code using Java String STACK using the parenthesis symbol ( ) the user will be the one to input parenthesis......) if Open parenthesis push it to stack otherwise Pop the stack Thank you 

Java Beginners

stack and queue - Java Beginners
stack and queue  write two different program in java 1.) stack 2...:// Hope 

Java Beginners

stack - Java Beginners
on Stack visit to : Thanks that inputs a line of text and uses a stack object to print the words of the line... : import*; import java.util.*; public class StackExample{ Stack stack 

Java Beginners

ADT stack - Java Beginners
ADT stack  Design a Java interface for ADT Stack. Develop two....  Hi Friend, Try the following codes: ADT Stack: import...("Stack is empty"); return; } else { String str = " "; for (int i = 0; i <= top 

Java Beginners

ADT stack - Java Beginners
]. 2)Design a Java interface for ADT Stack. Develop two different classes...ADT stack  I want a algorithm for the below programs.... 1)Implement Lisp-like list in Java. Write basic operations such as 'car', 'cdr', and 'cons 

Java Beginners

java using Stack - Java Beginners
java using Stack  How convert decimal to binary using stack in java 

Java Interview Questions

Generic Java Stack
Generic Java Stack  Hi here the question the interviewer asked me- package; /** *The Stack class represents a last-in-first-out(LIFO) stack of objects *And this class can look at the object 

Java Beginners

java using Stack - Java Beginners
java using Stack  How convert decimal to binary using stack in java? whats the java program or code to that. Thank you rose india and java... the number: "); int num = input.nextInt(); Stack stack = new Stack