Search:

Type: Posts; User: surfbumb

Search: Search took 0.14 seconds.

  1. Replies
    2
    Views
    1,883

    Re: converting int to char

    I'm not going to throw my code up here...but I am re-initializing the same char variable multiple times.

    The first time......e = Character.forDigit(z,10);....gets executed.....e is what it should...
  2. Replies
    2
    Views
    1,883

    converting int to char

    I just want to convert an integer...say 8....to a char...which will be '8'.


    int z = 5;
    char e;

    e = Character.forDigit(z,10);

    //e should become '5'
Results 1 to 2 of 2