Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.15 seconds.

  1. Replies
    9
    Views
    1,385

    [SOLVED] Re: How print " in output?

    I'm not sure exactly what you mean, but yeah, anytime you have a quotation mark inside a String, you need to escape it. Doesn't matter if the String is split up into multiple String primitives or...
  2. Replies
    9
    Views
    1,385

    [SOLVED] Re: How print " in output?

    You have to remember that "\"" is a String, so you do String concatenation exactly like you do with any other String. For example, consider this:


    String chr = "Y";
    "Purple" + chr + "."...
  3. Replies
    9
    Views
    1,385

    [SOLVED] Re: How print " in output?

    Use an escape character. Like this: "\"Purple\""

    Recommended reading: Characters (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)
Results 1 to 3 of 3