/**
* Sample Monday submission of Java file:
*
* - all methods present
*
* - methods do nothing, just have:
* - return; OR
* - return false; OR
* - return null; as appropriate to compile
*
* (ok if methods have partial code for Monday; only needs to compile)
*/
import java.util.NoSuchElementException;
public class SLinkedList<E>
{
////
// the Node class goes here
////
////
// the list data members go here
////
////
// all methods and inner classes follow:
// all methods have Javadoc-style comments and only a return
// no need for Javadoc for inner classes
////
/**
* Must have complete documentation in Javadoc style.
*/
public SLinkedList()
{
return;
}
/**
* Must have complete documentation in Javadoc style.
*/
public boolean isEmpty()
{
return false;
}
/**
* Must have complete documentation in Javadoc style.
*/
public void addFirst(E data)
{
return;
}
/**
* Must have complete documentation in Javadoc style.
*/
public E getFirst()
{
return null;
}
}