Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.27 seconds.

  1. Replies
    7
    Views
    1,003

    Re: How to handle string with characters

    Yes, but it sounds like he manually copied and pasted the String into the code. If he did do that, the internal quotes will be a problem.
  2. Replies
    7
    Views
    1,003

    Re: How to handle string with characters

    You need to escape special characters, like the "
    Use: \" to add a single " to a String
    For example:
    String str = "1234\"567"
    Is equal to:
    1234"567
  3. Replies
    7
    Views
    1,003

    Re: How to handle string with characters

    Are you able to put it into a char array?
    char[] chars = str.toCharArray();
Results 1 to 3 of 3