当前位置: 技术问答>java相关
简单java 包制作,请帮忙找错在那!!!!
来源: 互联网 发布时间:2015-07-31
本文导语: package TestBean; import java.io.*; public class TestBean{ String Name="book!"; public TestBean(){ } public String getName(){ return this.Name; } public void setName(String Value){ this.Name=value; (此句错????为什么,没找到错?...
package TestBean;
import java.io.*;
public class TestBean{
String Name="book!";
public TestBean(){
}
public String getName(){
return this.Name;
}
public void setName(String Value){
this.Name=value; (此句错????为什么,没找到错???)
}
}
"TestBean.java": Error #: 300 : variable value not found in class TestBean.TestBean at line 14, column 11
import java.io.*;
public class TestBean{
String Name="book!";
public TestBean(){
}
public String getName(){
return this.Name;
}
public void setName(String Value){
this.Name=value; (此句错????为什么,没找到错???)
}
}
"TestBean.java": Error #: 300 : variable value not found in class TestBean.TestBean at line 14, column 11
|
this.Name=value;
应写成
this.Name=Value;
应写成
this.Name=Value;