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 get this error:
Can someone please help m

View Tutorial          By: Carlos at 2010-06-14 02:42:53

2. Hello,

I was able to rectify port/

View Tutorial          By: Harsh at 2011-10-09 16:54:06

3. Thanks, it worked.
View Tutorial          By: Deepak Varier at 2009-08-19 03:38:07

4. I like ASP.net b'cs it is very easy to understand
View Tutorial          By: prachi at 2010-06-02 06:04:50

5. while run program i got this error
The serv

View Tutorial          By: jai at 2009-09-04 04:38:39

6. Good tutorial.
View Tutorial          By: Pinky at 2010-03-11 10:42:49

7. thanks nice article , but there is bug as already
View Tutorial          By: YZ at 2011-08-05 13:10:49

8. Yes Left shift result is wrong its like
5

View Tutorial          By: Ragunath k at 2010-05-10 04:45:33

9. simple but accurate
View Tutorial          By: Githin Zacharia at 2011-08-10 06:08:32

10. Very nice article. Really liked the way it took me
View Tutorial          By: Sandeep at 2010-01-10 09:58:25