Home Tutorialhelp Comment I am lil bit confused at the usage of BufferedRe

 
 

Comment

karthik
I am lil bit confused at the usage of BufferedRe,
February 26, 2007 at 2:11 PM

I am lil bit confused at the usage of
BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in))

is there any other possibility with out using this?
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

i am confused here on what to write can some 1 help out here - Java Beginners
i am confused here on what to write can some 1 help out here  i don't quite understand how to code it so can some one help out 

JSP Servlet Questions

Bit torrent technology code example - JSP-Servlet
Bit torrent technology code example   Hello everyone This is my 3rd Question on roseindia.net I just wanted to know about the bittorrent protocol because i know how exactly the technoloyg works but i am confused how 

JDBC Questions

Confused in driver - JDBC
Confused in driver  I am confused about the concept Driver in JDBC. Although i know jdbc very well(in respect... mean to say theoretically it is not cleared please explain me the type of driver... of some picture i want o know 

Java Beginners

Java Bit
Java Bit  Complete the Solver constructor so that a call to solveAll...() { List<Double> list=solveAll(25); for(int i=0;i<list.size();i++){ System.out.println(list.get(i)); } } public List<Double> solveAll(double x 

Swing AWT

cpu usage spike for javaw.exe
. High CPU usage problem does not occur when I run other single java programs. I...cpu usage spike for javaw.exe  I have made a software/project... it runnable by double click. Problem is when I run the project,javaw.exe 

Java Beginners

Am i convetrting the code right ? - Java Beginners
Am i convetrting the code right ?  C# private void button...; sp.WriteLine("Hello World!"); sp.Close();} Java Enumeration pList... (IOException ex) { }// i also tried the code below// try 

Java Beginners

Hi ..I am Sakthi.. - Java Beginners
Hi ..I am Sakthi..  can u tell me Some of the packages n Sub... that is available in java and also starts with javax. package HEMAL RAJYAGURU  ... tabbedPane = new JTabbedPane(); Component panel1 = makeTextPanel("Java 

Java Server Faces Questions

confused about writing to /resources directory - Java Server Faces Questions
confused about writing to /resources directory  hello I am confused about writing to /resources directory how can I put an image which resides... with java code ? regards  Hi friend, Plz specify in details. Where 

JavaMail Questions

JavaMail API usage - JavaMail
JavaMail API usage  Hello sir, i wrote a program to send a message from one mail account to another mail account,for that i uses JAVA and JSP two.... Thanks in advance.................   Hi friend, I am sending you 

Java Beginners

Standalone Product should support 64 bit java.
Standalone Product should support 64 bit java.  I am working on a project and I am freshers. Today my Team lead told me to update our product and make it suitable for 64 bit java. Can you please answere me what I have to do 

Java Beginners

Thread Memory Usage in java - Java Beginners
++ program's memeory usage? In other words,i want to compute a C++_program's memory usage in java, Can I do...://www.roseindia.net/java/thread/thread-creation.shtml   but,if I use 

Java Server Faces Questions

JSF Datatable usage - Java Server Faces Questions
JSF Datatable usage  Hi, I am new to JSF. I need to display a Java List into a table with 4 columns.The List contains "String" values. Am using Datatable for the same, but am not able to figure out the solution. Can you 

Java Server Faces Questions

JSF Datatable usage - Java Server Faces Questions
JSF Datatable usage  Hi, I am new to JSF. I need to display a Java List into a table with 4 columns.The List contains "String" values. Am using Datatable for the same, but am not able to figure out the solution. Can you 

Java Beginners

java bit
java bit  what is java bit 

General

Bitwise and Bit Shift Operators
Bitwise and Bit Shift Operators       In Java the bitwise and bit shift operators are used..., if the value of the sign bit is 1. Now lets understand these operators in brief.  I 

WebSevices Questions

I am from .net background, I want to learn SOA.
I am from .net background, I want to learn SOA.  Hi I am from .net background, I want to learn SOA. Could it possible for me to learn SOA, I suppose SOA includes Java. I dont have knowledge of java. Please help Thanks   

General

Simple java program
Simple java program Hi this is the thing we got to do and i am totally confused on how to write this program it would be a great help i could be helped. For the part 1 i got it but the second part how do you start writing 

Java Beginners

barcode scanner device usage in database application
barcode scanner device usage in database application  Am trying to design a supermarket inventory desktop database application however I can't seem to know how to use a barcode scanner device on my application can anyone put me 

Servlet Interview Questions

Usage of Session Id in servlet - Servlet Interview Questions
Usage of Session Id in servlet   Hi friends, I am...,edit,delete. I saw Session id is loaded for edit and delete action not for add .so am asking this  Of course u can perform any operation without 

Java Server Faces Questions

64 bit dll
64 bit dll  how can we use 32 bit dll in 64 bit OS..i getting the error Exception in thread "main" java.lang.UnsatisfiedLinkError: no dsn in java.libra y.path at java.lang.ClassLoader.loadLibrary(Unknown Source 

Hibernate Questions

I am getting this exception
I am getting this exception   Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java 

RMI Questions

using spring rmi+maven but i am getting this exception
using spring rmi+maven but i am getting this exception  D:\Nexustool\integrationengine\trunk>mvn exec:java [INFO] Scanning for projects... [INFO...-plugin:1.1:java (default-cli) @ engine >>> [INFO] [INFO] <<< 

Applet Questions

I am new to java applets. When i run this code on applet viewer status is displayed that applet not initialized
I am new to java applets. When i run this code on applet viewer status is displayed that applet not initialized  import java.awt.*; import java.awt.event.*; import java.applet.*; public class Textfields extends Applet implements 

Java Server Faces Questions

confused about an error in my web application deploying to Tomcat - Java Server Faces Questions
confused about an error in my web application deploying to Tomcat  ... with it: http://www.roseindia.net/jsf/richfaces/RichLRApplication.zip I deploy... in production environments was not found on the java.library.path: C:\Program Files\Java 

RMI Questions

:( I am not getting Problem (RMI)
I am not getting Problem (RMI)  When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception   

Hibernate Questions

usage of hints in hibernate - Hibernate
usage of hints in hibernate  i, how to use oracle hints in hibernate. and also pls tell me the different scenarios we can use oracle hints in hibernate.can i use hints using named queries in hibernate.if u gave any 

SQL Question

why it is very slow when I am using the backend as microsoft access file for running the java webapplication - SQL
why it is very slow when I am using the backend as microsoft access file for running the java webapplication  I am using the backend as microsoft access file for running the java webapplication.it is very slow when twoor mor 

Struts Questions

how to store multiple values from drop down in database where i am using java struts 1.3
how to store multiple values from drop down in database where i am using java struts 1.3  hii, i am coding a form where i need a keyskills attribute... is displaying.. i need code in java so that it takes multiple values 

Spring Framework Questions

Spring Usage - Spring
Spring Usage  Hi This is Chandra Mohan, I want to work with Spring. SO, i want to working with spring, what are the API's required i.e. how to set the classpath,jar files and Structure of the Spring project. Please 

Java Tips and Examples

Java Array Usage
Java Array Usage      ... in an array for (int i = 0; i < months.length; i++ ) { System.out.println("month: " + month[i]); Here, we have taken 

General

Java Get Memory Usage
Java Get Memory Usage     ... that in the given example code output.     Java Code to Get Memory Usage... Code For more details on memory usage, see the article on Memory Usage in Java 

JavaMail Questions

when sending the mail from java I am getting the below error - JavaMail
when sending the mail from java I am getting the below error   when sending the mail from java I am getting the below error : Exception in thread "main" java.lang.NoClassDefFoundError: javax.mail.internet.MimeMessage 

Java Beginners

java - Java Beginners
java  im comfortable with c and c++ language concept. i also know core java little bit but now i m confused as i don't know from where shud i start... SHOULD I WALK?". If ur comfortable with C++(core java) then its too easy 

Java Interview Questions

How to ensure the same output by java code on 32 bit m/c and 64 bit m/c
How to ensure the same output by java code on 32 bit m/c and 64 bit m/c  How to ensure the same output by java code on 32 bit m/c and 64 bit m/c 

JDBC Questions

Usage of setDate() in prepared Statement - JDBC
Usage of setDate in prepared Statement  Hi, I have created a jsp...() of prepared statement,the following error is displayed: setDate() not available in prepared statement. Basically, I need to accept the date dynamically 

Struts Questions

i am Getting Some errors in Struts - Struts
i am Getting Some errors in Struts   I am Learning Struts Basics,I am Trying examples do in this Site Examples.i am getting lot of errors.Please Help me 

JSP Servlet Questions

i am getting multiple values in listbox
i am getting multiple values in listbox   hi sir, i am using... table group by stuname) order by a.name in a subquery multiple recdates i am getting its working fine, but in main query also i am getting multiple name 

Java Beginners

i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter 

Java Beginners

i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter 

Java Beginners

Java Syntax - Java Beginners
Java Syntax  Hi! I need a bit of help on this... Can anyone tell... have read about arrayList but i am trying to see if i could implement something...://www.roseindia.net/java/beginners/array_list_demo.shtml Thanks 

Java Beginners

I wonder - Java Beginners
I wonder  Write two separate Java?s class definition where the first one is a class Health Convertor which has at least four main members: i. Attribute weight ii. Attribute height iii. A method to determine number 

Java Interview Questions

Usage of Hash Code - Java Interview Questions
Usage of Hash Code  Dear sir, What is Hashcode in Java and What is its usage? Thanks and Regards M.KehtraBalan  Hi Friend, A hashCode is a way of computing a small (32-bit) numeric key from a long 

Java Beginners

Not sure what I am missing ? Any ideas?
Not sure what I am missing ? Any ideas?  import java.util.*; public...) { if(str.length()==0) return false; for(int i=0;i<str.length();i++) if (c==str.charAt(i)); return true 

Java Interview Questions

Beginners in Java
Beginners in Java  Hi, I am beginners in Java, can someone help me... tutorials for beginners in Java with example? Thanks.   Hi, want to be command over Java, you should go on the link and follow the various beginners 

Java Beginners

Inheritance Overloading - Java Beginners
(); } } But the output is: 1 2 7 Can anyone tell me, why the output is this. I am...://www.roseindia.net/java/beginners/constructoroverloading.shtml...Inheritance Overloading  The problem is: I have this program 

Struts Questions

i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
i am getting the problem when i am downloading the pdf file from oracle 10g database  if i created the pdf file from pdf machine,it is storing into datbase and download the pdf file from database. but when i created the pdf file 

Java Beginners

Java I/O - Java Beginners
Creating Directory Java I/O  Hi, I wanted to know how to create a directory in Java I/O?  Hi, Creating directory with the help of Java Program is not that difficult, go through the given link for Java Example Codehttp 

Java Beginners

doubt in inheritance program - Java Beginners
doubt in inheritance program  how will we get the result 6 2 5 in the inheritance program in the given example i got 6 &2 but i am confused about 5 

JDBC Questions

I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect 

Java Beginners

I am new to programming and I am not sure what to do next? Any ideas?
I am new to programming and I am not sure what to do next? Any ideas? ...()==0) return false; for(int i=0;i<=str.length();i++) if (c==str.charAt(i)); return true; } // If userInputs 

Java Beginners

java i/o - Java Beginners
java i/o  thnx alot sir that this code helped me much in my program... so that i could write it line by line such as- Hello Java in roseindia Hello... Java in roseindia Hello Java in roseindia Hello Java in roseindia Hello Java 

Java Beginners

java i/o - Java Beginners
java i/o  Dear sir, i wrote a program where program asks "Enter your... gets closed. when i open the program again and enter text in this case previous texts get replaced with new text. i tried my best but got failed plz tell me 

General

Get Usage Memory Example
Get Usage Memory Example     ... in understanding Get Usage Memory. The class Memory Usage include the main method... ( )  -  This method return you the total amount of memory that your java 

JavaScript Questions

javascript time with am pm
javascript time with am pm  How can I display current time with AM... in am and pm</title> <script type="text/javascript"> var todayDate=new... seconds=todayDate.getSeconds(); var format ="AM"; if(hours>11) {format="PM 

Java Beginners

Java for beginners
Java for beginners  Java for beginners Which is the best resource... through examples? As a newbie Java developer, I just learned C++ and HTML. Now I am looking for the easy to learn Java tutorials. If you can suggest me the best 

Java Beginners

Java Syntax - Java Beginners
Java Syntax  Hi! I need a bit of help on this... Can anyone tell... have read about arrayList but i am trying to see if i could implement something.../java/beginners/array_list_demo.shtml Thanks 

Java Beginners

file i/o - Java Beginners
file i/o  hiii, i have to read some integers from a text file and store them in link list.. so please can i have source code for it.?? thanks 

Java Beginners

File I/O - Java Beginners
File I/O  Suppose a text file has 10 lines.How do I retrieve the first word of each line in java? abc fd ds 10 fg yy6 uf ui . . . . . . yt oi oiu 25 ewr ytro 9+ po I want to retrieve 'abc' 'fg' .... 'yt' 'ewr 

Java Beginners

File I/O - Java Beginners
File I/O  How to search for a specific word in a text file in java?  Hi Arnab, Please check the following code. ===================== import java.io.File; import java.io.BufferedReader; import 

Java Beginners

Java - Java Beginners
Java  public void run (IAction action) { //I need code here ...using Eclipse IDE } 1.Note if I am clicking Button i want to open Excel Report 2.Excel Report Location : C:\RSVR2\Audit\output\usage report 20081024 

Java Beginners

This is what i need - Java Beginners
This is what i need  Implement a standalone procedure to read in a file containing words and white space and produce a compressed version of the file.... for this question i need just : one function can read string like (I like 

SQL Question

prablems on oracle ee installation in windows7 ultimate(32 bit).
prablems on oracle ee installation in windows7 ultimate(32 bit).  Hai i have face several prablems when ever i m install oracle ee in my system(32 bit)windows7 ultimate.it is not installed in my system.can any body help me how 

Hibernate Questions

I am having problem with configuring Hibernate sessionfactory. Please Help
I am having problem with configuring Hibernate sessionfactory. Please Help  Sir, I am having problem with configuring Hibernate sessionfactory.. I was using the old version of Hibernate before now I am using Hibernate 4 

Java Beginners

Good tutorials for beginners in Java
Good tutorials for beginners in Java   Hi, I am beginners in Java... in details about good tutorials for beginners in Java with example? Thanks.   ... the various beginners tutorials related to Java http://www.roseindia.net/java/beginners 

Java Beginners

what is bit
what is bit  what is bit 

Swing AWT

i am getting an error in adding a menu item to a menu.
i am getting an error in adding a menu item to a menu.   i am not able to execute the menu program. i am getting an error at menu.add(menuitem); it says add method is undefined for type menu. but as far as i know that is only way 

Java Beginners

Connection pooling - Java Beginners
an application and I am now trying to implement the same through connection pooling. I... the application, I am getting the following error: Package pack does not exist... am very much confused.. Plz provide me the solution asap.... Regards 

Struts Questions

Hi i am new to J2ee Technology and struts - Struts
Hi i am new to J2ee Technology and struts  what exatly will happen when we hit the Login button? Once we enter in to the application, what will happen. How the UserID and Password validations will done. Can any one help 

Design concepts & design patterns Questions

I am trying to create domains for column attributes of my data dictionary?
I am trying to create domains for column attributes of my data dictionary?  Please provide me with the best possible solution. I already have the fields and there data types in a table and then the field values in another table 

PHP Questions

I am not able to display the selected value of my combobox
I am not able to display the selected value of my combobox   <... units order by unitcode"; $rsrcResult = mysql_query($strQuery); $i=1..._assoc($rsrcResult)) { $strA = $arrayRow[$i]; $strB = $arrayRow 

Java Beginners

can i know the error in this code... am unable to run this code
can i know the error in this code... am unable to run this code  ...}; int n=arr.lenght; System.out.println("length of array:"+n); for(int i=0;i System.out.println(arr[i]); } }   You have used incorrect symbol in your 

JSP Servlet Questions

I am getting Undefined in Text Box Very Urgent - JSP-Servlet
I am getting Undefined in Text Box Very Urgent  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I got the coding. But I find... and clicking select button, The pop up window gets closes. But, i am getting 

Java Beginners

I am writing a program which converts a string to a timestamp and add days to it
I am writing a program which converts a string to a timestamp and add days to it  java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf("2012-01-11 12:34:39"); long l=ts2.getTime() +(100060602424);//add 24 days Date d=new Date(l 

Java Beginners

Begineer Help Help Please Thanks A million ) I am using Jcreator
Begineer Help Help Please Thanks A million ) I am using Jcreator  System.out.println(" Income Statement...: $ 1.00 Retained Earnings: $ 2.00 I don't know how to sort the array 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path not absolute path   hi my first page......... Image Enter your name..."); } catch(Exception e) { System.out.println(e); } %> when i compiled it i 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path not absolute path   hi my first page......... Image Enter your name..."); } catch(Exception e) { System.out.println(e); } %> when i compiled it i 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path not absolute path   hi my first page......... <html> <head>...) { System.out.println(e); } %> </body> </html> when i compiled it i 

JavaScript Questions

this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail 

Java Beginners

how to validate javascriptcode n i am attaching file give validations
how to validate javascriptcode n i am attaching file give validations  <%@page import="java.sql.SQLException"%> <%@page import="com.rajsoft.CAF.util.DBconnection"%> <%@page import="java.sql.Statement"%> < 

Java Beginners

how to validate javascriptcode n i am attaching file give validations
how to validate javascriptcode n i am attaching file give validations ...!=null) { int i=0; if(i<...=(RoleVO) v1.get(i); System.out.println("CAFHUB IS====> 

Java Beginners

how to validate javascriptcode n i am attaching file give validations
how to validate javascriptcode n i am attaching file give validations ...!=null) { int i=0; if(i<...=(RoleVO) v1.get(i); System.out.println("CAFHUB IS====> 

Java Beginners

how to validate javascriptcode n i am attaching file give validations
how to validate javascriptcode n i am attaching file give validations ...!=null) { int i=0; if(i<...=(RoleVO) v1.get(i); System.out.println("CAFHUB IS====> 

Java Beginners

how to validate javascriptcode n i am attaching file give validations
how to validate javascriptcode n i am attaching file give validations ...!=null) { int i=0; if(i<...=(RoleVO) v1.get(i); System.out.println("CAFHUB IS====> 

Java Beginners

how to validate javascriptcode n i am attaching file give validations
how to validate javascriptcode n i am attaching file give validations ...!=null) { int i=0; if(i<...=(RoleVO) v1.get(i); System.out.println("CAFHUB IS====> 

Java Beginners

Java program - Java Beginners
Java program  Dear maam/Sir, I am a 2nd year Computer... Sign is: Virgo Your Element is: Earth Your Chinese Zodiac is: RAM I am just confused on what commands should I use and at the same time, I am 

Java Beginners

java downloads - Java Beginners
java downloads  hi friends, i would like to download java1.5 .so..., I am sending you a link. This like will help you. Please visit for more information. http://www.roseindia.net/java/beginners/download_jdk.shtml 

JDBC Questions

How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.
How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.  I am using postgresql-8.4.4-1... netbeans-6.1-ml-windows.How can I set up connection to database? Please help me 

Java Beginners

using java for cross platform application development - Java Beginners
java.But i am confused, java with which platform i have to use?Linux or windows?and anybody have idea how am i going to start writing the code? please help me...using java for cross platform application development  hi, i am 

Java Beginners

Tutorial For Java beginners
Tutorial For Java beginners  I am beginners in Java. Is there any good tutorial and example for beginners in Java? I want to learn Java before Jan... of December 2013. Check the Java Beginners Java Tutorial section for tutorials 

Java Beginners

I/O Java
System.out.println(" Error in Concat:"+e); } } }   I am not really sure why...I/O Java  import java.io.File; import java.io.FileNotFoundException...(File file) { //if the file extension is .txt or .java return true, else 

Java Beginners

Parameter month I Report - Java Beginners
Parameter month I Report  hy, I want to ask about how to make parameter in I Report, parameter is month from date. How to view data from i report... like Java/JSP/Servlet/JSF/Struts etc ... Thanks 

Java Beginners

what should i do next?? - Java Beginners
what should i do next??  I know java basics.actully i passed the SCJP exam.Then now i have no idea about what should i do next.I like to come to the web development.I want to know which one i should study first.JSP or servlet 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  Hello, i am getting an error while running simple core java program on command prompt.java is installed on my pc. the error is: javac:file not found usage:javac Regards, jyoti prakash  

Java Beginners

I need your help - Java Beginners
I need your help  What is the purpose of garbage collection in Java, and when is it used?  Hi check out this url : http://www.artima.com/insidejvm/ed2/gc.html http://java.sun.com/javase/technologies/hotspot 

Java Beginners

java beginners - Java Beginners
java beginners  thanks for the suggestion so I am sending the patteren in place of dots i want blank space aaaaaaaaaaaaaaaa...{ public static void main(String[] args){ for(int i=1;i<=8;i 

Java Beginners

Parameter month I Report - Java Beginners
Parameter month I Report  ok, my problem now is in Report in java with I report. I want to give parameter month/year to my design in I Report... to I Report design. Thank's   Hi friend, Code to help in solving 

Java Beginners

odject value - Java Beginners
odject value  hello friends i have one doubt on my coding.am posting my code here. i want to print the value of object.But am confused...); System.out.println(a.toString()); } } i got one output like: test@3e25a5.what 

Java Beginners

how can i close a frame. - Java Beginners
how can i close a frame.  Hi, My question is how can we close...............my target is when i click on that button, a new frame is coming and updated table... frames as i go on clicking button...........can we have like when i click on button 

Java Beginners

recursions - Java Beginners
recursions  Can somebody help me with these four questions. Please. i am learning recursions in Java. Question1. Trying to find the value...(6,8)? and little bit of working for me to understand question3. i need 

Java Beginners

This is what i need in this Question - Java Beginners
This is what i need in this Question  You are to choose between two... explaination with out coding In my understanding I choose the non-empty array... array. so i need your help to know is it correct or wrong Thank you 

Advertisements Advertisements
 

 

 

DMCA.com