Search:

Type: Posts; User: Bill_H

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    13,822

    Re: Convert CHAR to STRING

    Oh I'm sorry, I forgot the class.


    gender = Character.toString(sex);

    Now it should work.
  2. Replies
    11
    Views
    13,822

    Re: Convert CHAR to STRING

    You're in luck. Being that a string is of the String class and not a primitive variable, it has it's own methods, one of them being the toString() method. Just input the char as the parameter and it...
Results 1 to 2 of 2