Skip to content

Commit

Permalink
Update PalindromeChecker.java
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkkim authored Jan 30, 2025
1 parent 568b686 commit e750cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/PalindromeChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public boolean palindrome(String word) {
}
return false;
}
public String reverse(String str) {
public String reverse_word(String word) {
String sNew = new String();
for(int i = word.length(); i > 0; i--) {
sNew += word.substring(i-1, i);
Expand Down

0 comments on commit e750cc3

Please sign in to comment.