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. In the above example..where you make the GC1 objec
View Tutorial          By: prasad at 2014-12-11 11:12:28

2. precisely the drawbacks I am trying to address in
View Tutorial          By: ernest at 2011-02-05 02:16:13

3. Hi guys... I try to run the program and I got this
View Tutorial          By: Glatiuden at 2015-01-31 02:42:37

4. Hi wei long, did you download all the five program
View Tutorial          By: Ramlak at 2008-06-23 03:26:31

5. can u give a gud example on command line arguments
View Tutorial          By: shravan at 2010-04-09 23:11:18

6. i am getting this error how to erase it please tel
View Tutorial          By: laxmibvsn at 2012-10-16 15:45:05

7. Best Explanation & gud example by finnaz......
View Tutorial          By: Umair Shuja at 2012-11-28 10:53:35

8. hi,
thier is an error coming with me when i

View Tutorial          By: Tarun at 2013-02-17 03:13:21

9. very nice
View Tutorial          By: subbu at 2011-12-03 13:49:32

10. thank you.
View Tutorial          By: lluulnw at 2014-11-22 12:39:35