我正在构建一个待办事项应用程序,我在单独的 java 文件中声明了方法,当我想在另一个 java 文件中访问它们时,他们说“无法解析该方法”
您可以在https://github.com/RamcharanS/MyTODO_Be_Productive查看整个项目
请帮我解决这个问题,如果可能的话,请检查并对我的代码进行一些小的审查
方法的Java文件
package com.example.mytodo;
public class my_todo {
String titledoes;
String datedoes;
String descdoes;
String keydoes;
public my_todo() {
}
public my_todo(String titledoes, String datedoes, String descdoes, String keydoes) {
this.titledoes = titledoes;
this.datedoes = datedoes;
this.descdoes = descdoes;
this.keydoes = keydoes;
}
public String getKeydoes() {
return keydoes;
}
public void setKeydoes(String keydoes) {
this.keydoes = keydoes;
}
public String getTitledoes() {
return titledoes;
}
public void setTitledoes(String titledoes) {
this.titledoes = titledoes;
}
public String getDatedoes() {
return datedoes;
}
public void setDatedoes(String datedoes) {
this.datedoes = datedoes;
}
public String getDescdoes() {
return descdoes;
}
public void setDescdoes(String descdoes) {
this.descdoes = descdoes;
}
}
这是 Java 文件给我错误方法:getTitledoes() getDescdoes() getDatedoes()
海绵宝宝撒
MYYA
哈士奇WWW
相关分类