CS notes 2

CS notes 2 - System.out.println(e.getMessage()); }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Exceptions Wednesday, January 19, 2011 3:46 PM NoSuchElementException Import java.util.NoSuchElementException Add throws NoSuchElementException after method header Public method() Throws Exception { } To execute Throw new Exception("message"); Try/Catch Try { Code } Catch (Exception e){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println(e.getMessage()); } Exception=generic System.exit(0); <- exit with no errors System.exit(1); <- exit with error Circular Linked List- CLL Pointer to rear Public void print(Node rear){ If (rear==null){...
View Full Document

This note was uploaded on 02/29/2012 for the course 198 112 taught by Professor Venugopal during the Spring '09 term at Rutgers.

Ask a homework question - tutors are online