Hi All,
Sorry if this question sounds naive.
Recently I saw a piece of code something like this
-----------------------------------------
/**
*
Test if the current position is a valid position in the list.
* @return true if the current position is valid.
*/
public boolean isValid( ) {
return current != null;
}
ListNode current;
------------------------------------------
the statement (return current != null) is something I did not get convincingly. How does this statement evaluate & work.
-Uday