Results 1 to 2 of 2

Thread: Converting single character to string

  1. #1
    Geek_Guest
    Guest

    Converting single character to string

    As we know, input in java is always in string format. If we take a single character from the user as an input from the command line, how will we convert it into string...

    Type casting will not work as string is not a data type...

    for ex in a simple case...

    to enter a character from the command line and check whether its a vowel or not... we'll use witch case in it... but how will be convert that string to a character so as to compare it with other characters.

    Questiona asked by visitor Suvidha


  2. #2
    Junior Member
    Join Date
    Aug 2007
    Answers
    1

    Thumbs up Hi

    Hi I'm new to this forum


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact