What is this mistake?
cannot find symbol, symbol: method getstring(java.lang.String) Location: class InternalFrameDemo if <!windowTitleField.getText().equals(getstring("InternalFrameDemo.frame_label")))
Java is case sensitive. Since "getstring" is not equal to "getString", the compiler considers that the getstring method does not exist in the InternalFrameDemo class and throws this error.
In Java, methods will usually have the first letter of each word after the first headword (for example, toString (), toUpperCase (), etc.), classes will use the Upper Camel Case (for example, ClassName, String, StringBuilder) and constants will be in all caps (e.g. MAX_VALUE)
, InternalFrameDemo getstring() - "getString" "S"?
Perhaps this suggests that InteranlFrameDemo does not have a getstring method that takes a String argument. Perhaps the method should be getString ("mystring")?
method names are case sensitive in java, so I assume this is
Maybe getstring () should be getString ()?
This basically suggests that the InternalFrameDemo method does not have a getstring () method.
This is simply because Java is case sensitive. Try getString () instead of getstring (). Java usually uses Camel notation.
Source: https://habr.com/ru/post/1698068/More articles:Open Source Projects with Excellent Java / C # Code - Any Suggestions? - open-sourceTo be and not to be with repeating patterns - designImplementing functionality / code directly in a database system - databaseReading input m file in main m file - matlabAn example of creating MFC Automation (to access Excel using OLE automation). Unable to compile - windowsPreinit, Init, load page - asp.netRFC Timestamp in Flash / AS3 - dateQt: difference between moc output in debug and release? - c ++How to determine the version of Adobe Acrobat installed in Firefox via JavaScript - javascriptWhat open source .Net projects or code libraries do you use? - .netAll Articles