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. I like ASP.net b'cs it is very easy to understand
View Tutorial          By: prachi at 2010-06-02 06:04:50

2. this is good, but i need a simple program about sh
View Tutorial          By: ramalakshmi at 2011-01-05 03:38:26

3. hi,
my problem is.......
i use vb.ne

View Tutorial          By: Anirban at 2009-10-25 10:15:13

4. Nice Explanation.....
View Tutorial          By: Vinoth at 2012-06-20 09:37:21

5. Does not work.
View Tutorial          By: Hallo at 2012-10-25 09:50:05

6. I was able to modify this to work perfectly.

View Tutorial          By: _Jon at 2012-04-01 23:04:49

7. wow , really good java sample , and i suggest to s
View Tutorial          By: kiemtheng at 2011-08-31 13:31:32

8. Really The Best Start for mE
View Tutorial          By: neeraj at 2012-01-26 13:27:31

9. really nice explanation
View Tutorial          By: kuldeep at 2012-08-23 13:04:30

10. you example does not run it errors can you pls fix
View Tutorial          By: dionesia at 2009-08-24 05:27:37