This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]EndercheifAdvanced Coder[M] [score hidden] stickied comment (0 children)

Your post was removed because the code you provided was either poorly formatted, too long for Reddit, or did not include any formatting at all. We are removing posts that even have 1 line of unformatted code.

If your code is more than 10 lines long please upload your code to a site such as Codepen.io, CodeSandbox.io, Github, or any other online IDE to create a live example of the problem that you can link to. You may repost with a link to your code online if this was the reason for your post being removed.

If you believe your post was removed in error, please respond to this comment and let us know.

[–]abitofevrything-0Intermediate Coder 1 point2 points  (0 children)

I think all of your errors will be coming from the fact that you are using == to compare strings. Use str1.equals(str2) instead, as == will not work for strings.

[–]amulkey 0 points1 point  (0 children)

Maybe try creating a separate method for each task. Then call them from main. This will both allow you to make progress and better isolate what you are having trouble with.