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



Ask a Question

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. Great example. To reset the initial value on readb
View Tutorial          By: Bala at 2014-07-22 04:48:34

2. excellent..... thanks it help me a lot.......
View Tutorial          By: REJAPUTRA at 2009-10-23 09:19:25

3. You know what will be usefull if we can use this
View Tutorial          By: mechkid at 2012-12-03 14:54:41

4. Bless you, bless you, bless you! You've kept me f
View Tutorial          By: KRuthenberg at 2009-09-25 19:42:55

5. I find dis site very educating
View Tutorial          By: Kensho at 2009-05-09 05:18:57

6. This is Nice start for programmer '
Thanks

View Tutorial          By: Sagar Ikhankar at 2011-07-22 06:12:44

7. import java.io.*;
class lastindexof

View Tutorial          By: arya at 2012-11-07 08:37:59

8. Precise information in the article, however it wou
View Tutorial          By: Ketan at 2009-06-23 05:07:39

9. that's what I've been looking for!!!!!!!!!!!!!!!!!
View Tutorial          By: bibi at 2014-12-28 20:43:56

10. Please provide web.xml for the example
View Tutorial          By: Amit at 2008-12-24 02:16:59