HI All,
I have written a sample program which I cannot compile, please help:
Line 1 and 2 throw compile time errors:
For Line 1 I get: "Multiple markers at this line
- The operator + is undefined for the argument type(s)
String, void
- The static method x() from the type B should be accessed in a static way"
For Line 2, i get:
"The operator + is undefined for the argument type(s) String, void" I thought that even though method doesn't return anything
you can still call a method from the system out if it prints to screen?? Seems like a very basic issue I am missing, please demystify for me!
Please let me know: How I can call the static methods and run this program? Thanks.