Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-406

Code Pad should display String and char values consistently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.9
    • Component/s: CodePad

      Description

      If I enter a char value at the Code Pad prompt, like this:

      'a'

      it responds with the value and its type, like this:

      a (char)

      If I enter a String value at the Code Pad prompt, like this:

      "asterix"

      It responds with a funny double-quoted thing and the type, like this:

      "asterix" (String)

      I wish it responded with the value, like this:

      asterix (String)

      just as it does with the char value.

      I know that char is a primitive and String isn't, but I've struggled for years with students who are convinced that the double quotes are actually part of the string's value and the way most interpreters (and Code Pad) display strings doesn't help.

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              external External via trac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: