I'm new to programming and I'm working on an app for my capstone project. I keep getting this error: 'Attempt to invoke virtual method boolean java.lang.String.equals(java.lang.Object)'. I'm not sure what's causing it and if I can share an image of the block I made for better understanding.
1 Answer
This error usually means you're trying to use a method that works with strings on something that's not actually a string. It could be due to a mismatch in data types or it could be that the variable is null. Double-check your blocks to make sure everything's set up correctly!

Can I show you the diagram and point out what is wrong?