Java string returns as null

前端 未结 4 1035
梦如初夏
梦如初夏 2021-01-28 01:46

I am attempting to get one class to return a string from another class, though the return I get is null. I have a set method that works in setting the string in the original cla

4条回答
  •  清酒与你
    2021-01-28 02:30

    You never call flavour.setFlavour(), so it's no surprise flavour.getFlavour() returns null.

提交回复
热议问题