tags:

views:

177

answers:

5
+2  Q: 

Newbie in Java

+2  A: 

it means that the class InternalFrameDemo has no getstring() method - shouldn't that be "getString" with an uppercase "S"?

Draemon
+1  A: 

Maybe it's saying that there isn't a method in InteranlFrameDemo called getstring that takes a String argument. Possibly is the method supposed to be getString("mystring")?

method names are case-sensitive in java, which is why I'm guessing this

Eric Tuttleman
A: 

Perhaps getstring() should be getString()?

Basically it is saying InternalFrameDemo has no getstring() method.

Abarax
+11  A: 

Java is case-sensitive. Because "getstring" is not equal to "getString", the compiler thinks the "getstring" method does not exist in the InternalFrameDemo class and throws back that error.

In Java, methods will generally have the first letter of each word after the first word capitalized (e.g. toString(), toUpperCase(), etc.), classes will use Upper Camel Case (e.g. ClassName, String, StringBuilder) and constants will be in all caps (e.g. MAX_VALUE)

CD Sanchez
A: 

It's just because Java is case sensitive. Try getString() instead of getstring(). Java generally uses Camel notation.

Glitch