• @Matty_r
    link
    113 months ago

    I think the question is fine, but we have to assume they covered this type of method prior to the exam, where .length would result in the character count of a String.