Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

char datatype in Java

 
webmaster forum
blackHawk  Offline
Activity
0%
 
New Poster
Posts: 2
Topics: 2
March 06, 2008, 10:40:36 PM


Currently I am working on a project in java where I am stuck becoz of the char datatype.

can we use input.readline() to accept char datatype OR we just need to perform some conversion before doing this?

help needed
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
April 04, 2008, 08:36:36 AM

can we use input.readline() to accept char datatype OR we just need to perform some conversion before doing this?
Depends really on what type input is - commonly (such as a bufferedreader) readLine will return a String. In order to get a char of a String just use the charAt(n) method of String

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Activity
0%
 
New Coder
Posts: 15
Topics: 0
March 09, 2011, 12:15:58 PM

This function is good work for prompt the user to enter a String value.  It prompts the user to enter several parameters from the command line.  It is read-only text from a character input stream, buffering characters so as to provide effective reading of characters, arrays, and lines.

dell coupons codes
 
webmaster forum
mak14317  Offline
Activity
0%
 
Skilled Coder
Real name: Janne
Location: california
Gender: Male
Age: 26
Posts: 108
Topics: 1
WWW
May 10, 2011, 11:42:42 PM

char datatype  bufferreader is used for readline n write line...........

herbal vaporizer
Happy vappy vaporizer
Eclipse Vape
Ivape
 
webmaster forum
Activity
0%
 
Skilled Coder
Posts: 125
Topics: 0
May 21, 2011, 03:11:14 AM

Bufferedreader  is read text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.

Network Management Service
 
webmaster forum
john14317  Offline
Activity
0%
 
Skilled Coder
Posts: 149
Topics: 0
May 25, 2011, 04:57:47 AM

there are 48 datatypes in java. . . . . . . . .
char datatype used for read and write line . . . . . .

payday loans
instant online cash advance
 
webmaster forum
Life Is Good!
Activity
0%
 
Professional Coder
Gender: Female
Posts: 242
Topics: 3
WWW
August 13, 2011, 07:51:26 AM

It gets String..

Affordable Custom Web Design Services
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page February 01, 2012, 02:24:41 PM