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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. Nice example of System.arraycopy()function. Thank
View Tutorial By: Rahul Raj at 2015-08-17 03:11:44
2. how does struts work in netbeans 6.9.1?what are th
View Tutorial By: gunavathi at 2014-05-14 08:00:56
3. thank you sir
View Tutorial By: sivaranjani at 2015-01-30 01:15:40
4. This tutorial is very much useful for me to develo
View Tutorial By: R. Lawrance at 2009-07-26 22:03:15
5. i got really nice help from the code. Thanks.
View Tutorial By: Amit at 2009-04-10 08:18:40
6. I tried this code,but is showing this error
View Tutorial By: anju at 2009-05-22 07:42:11
7. The code is really helpfull...
reading or w
View Tutorial By: sharda at 2010-03-11 03:28:02
8. Hi, I have one problem in spinner items. I want to
View Tutorial By: soodi at 2011-10-18 18:15:58
9. Can you explain when the user input through the ab
View Tutorial By: mujmil at 2008-02-11 18:46:00
10. To 15:
Sometimes it is useful to return the
View Tutorial By: Anderson Goulart at 2010-08-24 19:15:14