Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...
Text Comments (1)

0 answers

Post by Victor Niu on September 8, 2012

When I did the divide by 0 program, it finished successfully, and returned Infinity. Is this a new feature of Java?

Input, Output, & Errors

  • The Scanner class provides a convenient way to get user input
  • Use System.out.print and System.out.println to produce text output
  • There are three escape sequences you need to know: (newline character), \” (double quote character), and \ (backslash character)
  • Exceptions provide a way of gracefully dealing with unexpected conditions
  • There are six types of exceptions you need to know about

Input, Output, & Errors

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

AP Computer Science: Introduction to Java