update at 2022-02-23 23:08:27 by ehlxr
This commit is contained in:
@@ -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(){
|
||||
|
Reference in New Issue
Block a user