I am using singly-linked-list to manage my in-out transactions but singly-linked-list is not provided hasPrevious() method.
Why I need hasPrevious() method ?
In some conditions I want to iterate linked list twice in same method signature check here
So I moved to smart-list which is provided hasPrevious() but I could not make this work. See example
Can anyone please suggest me how to use hasNext() and hasPrevious() in smart-list or any other solution?