Buffered Reader..

Ads

 
 

Share on Google+Share on Google+

SakthiPrabhu.g
Buffered Reader..
1 Answer(s)      8 years ago
Posted in : Java Beginners
Ads
View Answers

December 29, 2008 at 5:21 AM


Hi friend,


import java.lang.*;
import java.io.*;

public class CompareString{
public static void main(String[] args) throws IOException{
System.out.println("String are equal and not equals");
BufferedReader item = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter First String:");
String item1=item.readLine();
System.out.print("Enter Second String:");
String item2=item.readLine();
char c1=item1.charAt(0);
char c2=item2.charAt(0);
char c3=item1.charAt(1);
char c4=item2.charAt(1);

if( item1.equals(item2)){
System.out.println("The given string is equals.");
}
else{
System.out.println("The given String is not equals.");
}
}
}
-------------------------------------------

Visit for more information.

http://www.roseindia.net/java/java-conversion/InputstreamToBufferedreader.shtml

Thanks.

Ads









Related Tutorials/Questions & Answers:
Buffered Reader.. - Java Beginners
Buffered Reader..  Hi Friend doubt On BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); CAN u Please Explain the (Every Word) Above Statement in Detail.... BufferedReader => InputStreamReader
Java Buffered Reader
Java Buffered Reader  Here's a brief desc of what my Java code does .. I'm using BufferedReader to read lines from a text files and split each line based on a predefined size... Eg : If the 1st line of the text file
Advertisements
JSP Buffered Reader
JSP Buffered Reader          JSP Buffered Reader allows the user... an example from 'JSP Buffered Reader'. To grasp and understand the example we create
Barcode reader
Barcode reader  hi all, i wont to operation in the out put from Barcode reader. dose java support Barcode reader`s result
Java I/O Buffered Streams
Java I/O Buffered Streams In this section we will discuss the I/O Buffered... triggering of disk access, network activity and other relative operations. Buffered : In a buffered way of programming read and write operations are done through
Gobits Reader
Gobits Reader       Gobits Reader is a lightweight, web-based news reader on steroids, combined with a powerful blog creator. They are also supplying a built-in webmail that is one
PDF reader in android - JavaMail
PDF reader in android  Hi, iam trying to open and perform basic operations on PDF file in android. But i unable to get it. IS there any possibilities to solve that problem? Waiting for reply
barcode reader using jsp
barcode reader using jsp  HI ALL, I need jsp code for barcode reader.When we scan the barcode image that barcode value will be stored in one textbox automatically. please helpe me. Regards Bhanu
com.pixelmed.dicom.DicomException: No reader for jpeg-lossless available
com.pixelmed.dicom.DicomException: No reader for jpeg-lossless available   com.pixelmed.dicom.DicomException: No reader for jpeg-lossless available
Java file byte reader
Java file byte reader  I am looking for an example program in Java for reading the bytes. More specifically I need java file byte reader example code. Thanks   For complete details read the following tutorials: Java
Java IO Reader
Java IO Reader In this section we will discuss about the Reader class in Java. Reader class is an abstract class in java.io package provided for reading.... This class can not be instantiated directly. Constructor of Reader
barcode reader using java script
barcode reader using java script  Hai all, I need code for one application in java and java script my requirement is, Scanning data directly into a field is the easiest of all implementations. The cursor is placed
Version of com.graphhopper>graphhopper-reader-gtfs dependency
List of Version of com.graphhopper>graphhopper-reader-gtfs dependency
Version of com.graphhopper>graphhopper-reader-json dependency
List of Version of com.graphhopper>graphhopper-reader-json dependency
Version of com.graphhopper>graphhopper-reader-osm dependency
List of Version of com.graphhopper>graphhopper-reader-osm dependency
Version of com.graphhopper>graphhopper-reader-shp dependency
List of Version of com.graphhopper>graphhopper-reader-shp dependency
Version of com.graphhopper>graphhopper-reader-overlay-data dependency
List of Version of com.graphhopper>graphhopper-reader-overlay-data dependency
Version of com.rgi-corp>graphhopper-reader-json dependency
List of Version of com.rgi-corp>graphhopper-reader-json dependency
Version of com.rgi-corp>graphhopper-reader-osm dependency
List of Version of com.rgi-corp>graphhopper-reader-osm dependency
Version of com.rgi-corp>graphhopper-reader-shp dependency
List of Version of com.rgi-corp>graphhopper-reader-shp dependency
Maven Dependency graphhopper-reader-gtfs >> 0.9.0-RC1
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-gtfs version0.9.0-RC1 in your project
Maven Dependency graphhopper-reader-json >> 0.9.0-RC1
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-json version0.9.0-RC1 in your project
Maven Dependency graphhopper-reader-osm >> 0.8.0-RC2
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-osm version0.8.0-RC2 in your project
Maven Dependency graphhopper-reader-osm >> 0.8.2
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-osm version0.8.2 in your project
Maven Dependency graphhopper-reader-osm >> 0.8.0
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-osm version0.8.0 in your project
Maven Dependency graphhopper-reader-osm >> 0.9.0-RC1
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-osm version0.9.0-RC1 in your project
Maven Dependency graphhopper-reader-shp >> 0.9.0-RC1
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-shp version0.9.0-RC1 in your project
How to convet reader to double? - Java Beginners
How to convet reader to double?  I have this set of coding which read the input from the com1 port. I wan to ask how to convert the input (the reader.../a")) { SimpleRead reader = new SimpleRead
URL Connection Reader
URL Connection Reader       In this section, you will learn about the url connection reader. Here, first of all we are going to define class named "
Maven Dependency graphhopper-reader-overlay-data >> 0.8.0
You should include the dependency code given in this page to add Maven Dependency of com.graphhopper >> graphhopper-reader-overlay-data version0.8.0 in your project

Ads

 
Advertisement null

Ads