Help with MIT App Error: String Method Issue

0
7
Asked By CuriousCoder92 On

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

Answered By TechSavvy123 On

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!

CuriousCoder92 -

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

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.