Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

about scan any value

This is a discussion on about scan any value within the Java forums, part of the Software Development category; hello..everyone.. I just want to know that is their any short step to read any numbers or characters easily in java...... without buffer reader or any such big size coding....

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2009
Junior Member
 
Join Date: Apr 2009
Location: kolkata
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ritwik3r is on a distinguished road
Question about scan any value

hello..everyone..
I just want to know that is their any short step to
read any numbers or characters easily in java......
without buffer reader or any such big size coding.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-29-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 983
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: about scan any value

Hi Ritwik,

That's ony shortrcut to read characters & numbers.

It will be a complicated one ,If u use scanner class to read characters & numbers

To read a String, you use in.nextLine();

Then convert the string to character by giving

char nameOfCharacter = nameOfString.charAt(0);

Thanks,
Riju.
Reply With Quote
  #3 (permalink)  
Old 07-01-2009
Junior Member
 
Join Date: May 2008
Location: Mumbai
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
yrus.exe is on a distinguished road
Re: about scan any value

char whatEver = System.in.read();
also works for scaning a char at a time.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
URL scan e.kumar Testing Issues 5 09-16-2008 01:25 PM
Scanitto - scan software application JobHelper Geeks Lounge 0 10-26-2007 11:30 AM
I want to join (scan) 1000 tables ddkdhar Oracle 1 10-15-2007 06:35 AM


All times are GMT -4. The time now is 06:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved