CS173: Intro to Computer Science - Strings (3 pts)
Explorer
GitHub
Connect to GitHub to push and pull your project files to a repository.
On the page that opens, create a token with repo scope, copy it, then paste it below.
Paste the personal access token you created on GitHub with repo scope.
Click Refresh to load commit history
Exercise Info
Goals
To iterate over String variables.
Instructions
Write a function that checks if two Strings are equal, by checking them character by character. Loop over all characters up to the length of the string, and obtain each character using the str1.charAt(i) or the str1.substring(i, i+1) method (and str2.charAt(i) or the str2.substring(i, i+1), for the other string, as well).