Toggle navigation
Code Exercises
Interview Planner
Interview Guide
Practice Now
Blog
About
Easy
Moderate
Challenging
Fizz Buzz
Prime Number
Fibonacci Number
Palindrome Check
Even Fibonacci Sum
Greatest Common Divisor
Package Rice Bags
Filter Strings (Java 8 Lambdas and Streams)
Comma Separated (Java 8 Lambdas and Streams)
Ceasar Cipher
Strict Binary Tree Check
Two Sum (Pair with a Given Sum)
Palindrome Check
A palindrome is a word which reads the same backward or forward. 'abcba' is a palindrome.
Write a method that detects if a string is a palindrome.
Tip: Use word.charAt(i) to get the character at position i.
public boolean isPalindrome(String word) {
}
Submit
Clear
Solution