how to print instance variable in methods in java?

后端 未结 0 1564
旧巷少年郎
旧巷少年郎 2021-01-11 14:27

I am trying to print the variable in show() method. But in every time it is showing default value like for string NULL and for integer 0. I took a parameterize constructor.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题