Comment on Tutorial - Stack example in Java - push(), pop(), empty(), search() By Henry



Comment Added by : susmit

Comment Added at : 2011-03-02 09:09:46

Comment on Tutorial : Stack example in Java - push(), pop(), empty(), search() By Henry
for user input use this method....
1. import java.io.*;
2.for input:
InputStreamReader ob1 =new InputStreamReader(System.in);
BufferedReader ob2=new BufferedReader(ob1);
System.out.println("Enter no:");
int i=Integer.parseInt(ob2.readLine());
System.out.println("input string:"+i);


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. good....
View Tutorial          By: Rini at 2013-01-08 10:44:54

2. Hi, i am newly in java,please send me on sample pr
View Tutorial          By: aruna.k at 2012-12-13 06:05:44

3. hello!
I am so confused and a total beginne

View Tutorial          By: Jena at 2011-06-11 17:39:39

4. hi i need moving clock javascript code...please se
View Tutorial          By: madhavan at 2008-10-19 21:59:45

5. Excellent.. simple and too good to understand
View Tutorial          By: venkat at 2010-05-11 00:30:02

6. Hi, If any body was able to send the message suces
View Tutorial          By: Pradeep Singh Chouhan at 2011-03-02 23:03:05

7. hi
thanks for your code i wanted to know w

View Tutorial          By: anshul at 2009-10-28 15:10:10

8. Hai,
I have the same problem *** time out a

View Tutorial          By: Anitha at 2009-04-20 03:12:23

9. I do my projest in j2me.so please send me your ide
View Tutorial          By: sivasakthivel.s at 2011-06-22 13:26:54

10. array is the one which can save similar data typed
View Tutorial          By: Cegonsoft Reviews at 2011-07-26 00:54:18