Errors in Producing Output #7350
Replies: 1 comment 1 reply
-
Code from the video:
Your code:
The first prints out the result of a reference comparison between two objects. (A comparison with == does not compare the values of the objects rather the references of the objects). So you get a different output because your code is different. A friendly heads-up for the future: posting (exclusively) screenshots of code is frowned upon (because others cannot copy it to try it out). And to include unnecessary information like the link to ticket 7342 which has nothing to do with your problem. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I need help. I am basically a newbie in CS, currently using NetBeans IDE 19. I was basically just practising my coding from this video:
https://www.youtube.com/watch?v=Af3s3KsxStY&t=2069s
on the minute of 34:24, this should be the output:
I got this for my output instead:
I think I accidentally pressed something because there were errors, but I ended up messing up but I'm not sure what it is. Can someone help me to figure out where the issue lies on? I've reset the Windows (there's an option in Netbeans) but the outcome is still the same. Please help a lost student out here. Thank you.
#java #7342
Beta Was this translation helpful? Give feedback.
All reactions