Originally Posted by
lawksalih
It was my fault for not paying attention. But your help is greatly appreciated.
Best,
Lawk
It's cool man, just from now on, see if you can understand error messages, and if not, just post em here and ask what they mean and how to resolve them. Just a few that i think are common: (not word for word)
ExampleClass e = new ExampleClass();
Error:
ExampleClass cannot be resolved to a type:
This means one of two things:
1) You didn't import ExampleClass
2) ExampleClass does not exist
-----------Error 2----------------
ExampleClass e = new ExampleClass(5);
Error:
Cannot find symbol constructor ExampleClass(int a)
This means that you are using a constructor that does not exist
In this case, the constructor ExampleClass(int a) does not exist in the
ExampleClass class.
(The same holds true for methods)
----------Error 3-----------------
if(a == b))
//do something
Error:
Syntax error on token ')', delete this token
This obviously means that you have an extra parenthesis.
There are many many more you will come across, but these are 3 syntax errors. Eventually, you'll get to the point where you never worry about compile time errors, because you understand the error messages immediately and can fix them. It's logic errors you're gonna hate.