My solutions to: https://codingbat.com/java/Recursion-1
If you have any suggestions or questions about my code, please feel free to contact me:)
When you come into String, notice that:
- The result of
"hello".substring(0,2)
is"he"
, not"hel"
- If you want to judge whether two Strings are equal, you should use
str1.equal(str2)
, not==