What do the errors mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What do the errors mean?

https://code.sololearn.com/c7AyVg08TIv2/?ref=app I was trying to see if I could make a '.' move back and forth across the screen but I keep getting these syntax errors and I don't understand what they mean. Any help would be appreciated.

31st May 2017, 1:47 PM
Sabrina Brydson
Sabrina Brydson - avatar
2 Answers
+ 2
A syntax error basically means you wrote a statement incorrectly. Ex/ string a = "Ex"; s must be capital, so this is probably a syntax error. (Though it may just say "cannot find string" in this case) Problems: Story myDot = new Story(); myDot.moveDot(); You don't have those parenthesis and therefore the compiler cannot determine which method you are referring too. When you were printing the array you also wrote this: numSpaces[0,c] +... What is the 'comma' supposed to be if it's not a multi dimensional array?
31st May 2017, 2:17 PM
Rrestoring faith
Rrestoring faith - avatar
0
Ah, thanks. That helps a lot.
31st May 2017, 2:23 PM
Sabrina Brydson
Sabrina Brydson - avatar