我的OOP类(class)项目遇到了问题。我快完成了,但仍然缺少toString方法和main方法。不太确定如何去做,希望得到任何帮助。我想要我的toString方法的作用如下:Returnsastringrepresentationofalltheitemsstoredinthelist.Astringrepresentationofanemptylistlookslikehead-->Astringrepresentationofanon-emptylistlookslike:head-->134-8421publicclassIntegerNode{privateIntegerN