update at 2022-02-23 23:08:27 by ehlxr

This commit is contained in:
2022-02-23 23:08:27 +08:00
parent 53521e036f
commit 21b0ed000d
2 changed files with 9 additions and 7 deletions

View File

@@ -39,16 +39,14 @@ class HelloWorld {
HelloWorld hw = new HelloWorld();
// hw.setNameStr("fsdfs");
hw.setNameStr("fsdfs");
System.out.println(HelloWorld.fetchNameStr(hw));
}
private String nameStr;
public void setNameStr(String nameStr){
System.out.println(nameStr);
// this.nameStr=nameStr;
this.nameStr=nameStr;
}
public String getNameStr(){