public Node getHead()

            throws IllegalStateException {

        /*

        * Function input: Nothing

        *

        * Job:

        *  Return the head node.

        *

        *  If there is no head, raise an IllegalStateException.

        *  You do not have to specify its message.

        */

        return null;

    }


이중 연결 리스트에서 헤드를 리턴하는 메서드고, 저게 교수가 준 양식임

헤드가 있을 땐 헤드를 리턴하고 없을 땐 예외를 발생시켜야 한다는 건 알겠는데

예외를 어케 발생시키는 거?