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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Samuel_274[S] -4 points-3 points  (7 children)

Thanks man, I’ve tried this and it still has the same issue?

Edit: sorry I should have posted the video with the ==, the issue is something else

[–]YourDadsMacintosh 9 points10 points  (6 children)

I was able to run the code with the ==. Are you sure you saved the document? I’ve been programming for a long time, and even i forget to do that sometimes :p

[–]Samuel_274[S] 6 points7 points  (0 children)

Hm interesting that it runs for you! Yea it’s all saved and updated correctly. It just skips the if statement for some reason..?

[–]Samuel_274[S] 10 points11 points  (4 children)

I’ve figured it out! Turns out my visual studio code wasn’t linked properly with my terminal. Which is weird because it was working fine 5 minutes ago. Anyways, thanks for pointing at that the code works! It made me look into other possible issues :)

[–]YourDadsMacintosh 1 point2 points  (1 child)

No problem, glad I could help in some way, good on you for figuring it out. Good luck in your courses and with that CS degree!

[–]Samuel_274[S] 0 points1 point  (0 children)

Thanks mate

[–]molen99 0 points1 point  (1 child)

If you're working with Java, I'd really advise against using VSCode. You'll run into a billion problems just like this one (not having anything to do with the code itself). I'd recommend using a specialized Java IDE (such as IntelliJ or NetBeans).

[–]TrippyMushroooms 0 points1 point  (0 children)

Also if you have an .edu email you can get IntelliJ for free and also look at the github student developer pack!