Java Reference
In-Depth Information
15. During debugging, compare the actual contents of variables against the values
you know they should have.
FURTHER READING
1. E. W. Dijkstra, "Goto Statements Considered Harmful", Communications
of the ACM, vol. 11, no. 3 (March 1968), pp. 147ȋ148.
2. Peter van der Linden, Expert C Programming, Prentice-Hall, 1994.
3. Jon Bentley, Programming Pearls, Chapter 4, "Writing Correct
Programs", Addison-Wesley, 1986.
4. http://eclipse.org The Eclipse Foundation web site.
5. http://www.bluemarsh.com/java/jswat The JSwat Graphical Java
Debugger web page.
6. Kai Lai Chung, Elementary Probability Theory with Stochastic Processes,
Undergraduate Texts in Mathematics, Springer-Verlag, 1974.
7. Rudolf Flesch, How to Write Plain English, Barnes & Noble Books, 1979.
CLASSES, OBJECTS, AND METHODS INTRODUCED IN THIS
CHAPTER
java.util.Random
nextDouble
nextInt
REVIEW EXERCISES
΢΢ Exercise R6.1. Which loop statements does Java support? Give simple
rules when to use each loop type.
΢΢ Exercise R6.2. What does the following code print?
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
System.out.print(i * j % 10);
System.out.println();
}
276
Search WWH ::




Custom Search