Search:

Type: Posts; User: helloworld922

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    13,830

    Re: Convert CHAR to STRING

    It technically compiles and does what you want it too. However, I suppose it's something you should probably avoid.
  2. Replies
    11
    Views
    13,830

    Re: Convert CHAR to STRING

    Use Java's implicit casting:


    gender = "" + sex;

    I believe you can also explicitly cast to string, but i'm not sure about this one:

    gender = (String) sex;
Results 1 to 2 of 2