From the course: Nail Your Java Interview
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Developing a palindrome checker - Java Tutorial
From the course: Nail Your Java Interview
Challenge: Developing a palindrome checker
(upbeat music) - [Narrator] In this chapter, we built up your toolkit on strings. We reviewed the definition of a string as well as some basic string instance methods, such as isEmpty, charAT, and substring. We also looked at some advanced functions, like split, that allow you to parse through your data more easily. With this experience in mind, here's your challenge. In this challenge, you will create a palindrome checker. A palindrome is a word or phrase which reads the same backwards as it does forwards. Civic and racecar are both palindromes. Words like swims, mad, and wifi are not palindromes because they do not read the same backwards and forwards. Your palindrome checker function will take in one input, a string, and it will output true or false depending on whether the string is a palindrome or not. Any other punctuation or symbols must also follow the palindrome rules. The main exception is for lowercase and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.