Already answered,
code removed for privacy reasons.
Thanks!
Instead of
if(isPalindrome = false)
Change it to
if(isPalindrome == false)
because "=" means you assign the value to the variable while "==" means comparing the value with the variable. However You could do
if(!isPalindrome)
because it is a boolean and you could use it right away as "true" or "false" (or !false is true and vice versa)...
PS: You may have argument mismatch exception in your retrieveInput() method if a user enter something which is not all digit number...
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.