Results 1 to 4 of 4

Thread: Get a char from a string?

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Get a char from a string?

    Well using String.substring() I thought maybe would return a char if you only used one letter, and casting (char) to it did not work either. Is there a way I can convert it? Or is there some type of String.charAt(0) to get one letter in char format?

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Get a char from a string?

    http://java.sun.com/j2se/1.4.2/docs/...tml#charAt(int) ?

    What am i missing? Or did you answer your own question already?


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Get a char from a string?

    Oh I thought charAt was a vb.net function, well i guess thanks :S)

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Get a char from a string?

    Well, not exclusively apparently


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width