Update Palindrome.java

This commit is contained in:
Loredana Crusoveanu 2018-02-10 18:48:41 +02:00 committed by GitHub
parent 4c044fcaee
commit 7c6a4b0b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -58,4 +58,5 @@ public class Palindrome {
return IntStream.range(0, temp.length() / 2)
.noneMatch(i -> temp.charAt(i) != temp.charAt(temp.length() - i - 1));
}
}