Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
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.
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.