What does the main method have to do? Make a list of the steps it needs to do and then try writing the code to do those steps. Which step(s) are you having trouble with?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Which of the steps that the main is to do are you having problems. Work on them one at a time. What's the first one?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Pick one and do that first. When that is done move on to the next one.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
First of all, I find it annoying how you didnt put any effort at all into posting your question. I had a hard time figuring out why you asked about something, and then gave a bunch of instructions. I will help you out, but next time you really should do a better job on the original post.
First of all. On line 11, you are comparing strings. == does not work for strings. Rewrite that line.
Now for main().
You should call on your (misspelled) palindromeCheck() class. Assign the result to a boolean variable. Then make a if/else statement in main. If your variable is true, print that, or if it's not, print that. If you still are stuck, rewrite your original post and then answer under here with what exactly you need, and I will gladly help you more. Good luck.
joankim
Junior Poster in Training
59 posts since Dec 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0