Is there anyway I could send you the full project? I have checked everything my brain can check and still don't find it. I believe the problem could be from the getOperands method before passing it...
Type: Posts; User: help_desk
Is there anyway I could send you the full project? I have checked everything my brain can check and still don't find it. I believe the problem could be from the getOperands method before passing it...
steps:
1. user enters the following on request:
"isPalindrome evitative"
2. this string is passed into the commands interprete method
3. In the interprete method, the string is split into...
I have tested it and even explained to coopeg countless times that there is virtually nothing else except the mystery remains. I passed in a string into the isPalindrome() method and wrote a couple...
What I have done is a bit lengthy. it's a project where a user has to enter the command to be executed at the command line and then the instruction is read and interpreted by getting the operator...
Everything displays as yours except the if() condition being false. This is what I want to know. I have called it just like you called. Pass in a string and then reverse it in the method and compare...
I did add some System.out.println() for the reversed and word strings. the reversed string was "evitative" while the word string was also "evitative" but when I checked their equality using the...
I stated clearly that the statement in the if() condition was NEVER executed. That means the if() condition translated/interpreted to false. Otherwise, it would have gone into the next line of
s =...
Hi, still not getting the if() condition to be true.
public String isPalindrome(String word) {
StringBuilder builder = new StringBuilder(word);
String reversed =...
Sorry, the parameters is a typo but why is the if() condition false? you mean you got it to be true?
I have a simple code to test palindrome. I have the word "civic" and I got this code:
public String isPalindrome(String word) {
StringBuilder builder = new StringBuilder(word);
String...