【问题标题】:java netbeans 6.5.3 shows cannot find symbol getTextjava netbeans 6.5.3 显示找不到符号 getText
【发布时间】:2016-08-11 15:49:54
【问题描述】:

大家好,我不明白为什么我会收到找不到符号 getText 的错误。 These are my classes

This is the error message.

【问题讨论】:

  • 你可能想调用这个函数。
  • bcz,如果你试图调用一个函数,你需要用括号显示你传递的参数(如果有的话)......试试这个a.getText()

标签: java compiler-errors netbeans6.5


【解决方案1】:

我想你忘记了调用方法末尾的()

试试testField.getText()testField.getText().toString()

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-07
    • 1970-01-01
    • 2015-09-20
    • 1970-01-01
    相关资源
    最近更新 更多