Beruflich Dokumente
Kultur Dokumente
5/20/11 11:15 AM
APPENDIX D:
This appendix summarizes the most commonly-used Java language features in the textbook. Here are the APIs of the most common libraries. Hello, World.
INTRO
TO
PROGRAMMING
INTRO
TO
CS
0. Prologue 5. A Computing Machine 6. Building a Computer 7. Theory of Computation 8. Systems 9. Scientific Computation
WEB RESOURCES
FAQ Data Code Errata Appendices Lecture Slides Programming Assignments
Search booksite...
http://introcs.cs.princeton.edu/11cheatsheet/
Page 1 of 18
5/20/11 11:15 AM
Integers.
Floating-point numbers.
Booleans.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 2 of 18
5/20/11 11:15 AM
Comparison operators.
Math library.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 3 of 18
5/20/11 11:15 AM
http://introcs.cs.princeton.edu/11cheatsheet/
Page 4 of 18
5/20/11 11:15 AM
http://introcs.cs.princeton.edu/11cheatsheet/
Page 5 of 18
5/20/11 11:15 AM
Break statement.
Do-while loop.
Switch statement.
Arrays.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 6 of 18
5/20/11 11:15 AM
Compile-time initialization.
Two-dimensional arrays.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 7 of 18
5/20/11 11:15 AM
Compile-time initialization.
Ragged arrays.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 8 of 18
5/20/11 11:15 AM
http://introcs.cs.princeton.edu/11cheatsheet/
Page 9 of 18
5/20/11 11:15 AM
http://introcs.cs.princeton.edu/11cheatsheet/
Page 10 of 18
5/20/11 11:15 AM
Functions.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 11 of 18
5/20/11 11:15 AM
Libraries of functions.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 12 of 18
5/20/11 11:15 AM
Using an object.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 13 of 18
5/20/11 11:15 AM
Constructors.
Instance methods.
Classes.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 14 of 18
5/20/11 11:15 AM
Object-oriented libraries.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 15 of 18
5/20/11 11:15 AM
http://introcs.cs.princeton.edu/11cheatsheet/
Page 16 of 18
5/20/11 11:15 AM
http://introcs.cs.princeton.edu/11cheatsheet/
Page 17 of 18
5/20/11 11:15 AM
The full Picture API. Compile-time and run-time errors. Here's a list of errors compiled by Mordechai Ben-Ari. It includes a list of common error message and typical mistakes that give rise to them.
Copyright 20002011 by Robert Sedgewick and Kevin Wayne. All rights reserved.
http://introcs.cs.princeton.edu/11cheatsheet/
Page 18 of 18