How to return reference to object as parameter in Java
In this case, java programmers would commonly create a class with 2 members: head
and tail
. That would be the return type for the getHeadTail(List list)
method.
In this case, java programmers would commonly create a class with 2 members: head
and tail
. That would be the return type for the getHeadTail(List list)
method.