Typographical Conventions

To make this book easier to read, certain items appear in certain fonts. Variables, constants, and types appear in a fixed-width font. Class names, interface names, and method names appear in a bold, fixed-width font.

All code and XML listings are in a fixed-width font. Code or XML that you need to type in is always bold. Code or XML that should be deleted is struck through. For example, in the following method implementation, you are deleting the call to makeText(…) and adding the call to checkAnswer(true).

@​O​v​e​r​r​i​d​e​
p​u​b​l​i​c​ ​v​o​i​d​ ​o​n​C​l​i​c​k​(​V​i​e​w​ ​v​)​ ​{​
 ​ ​ ​ ​T​o​a​s​t​.​m​a​k​e​T​e​x​t​(​Q​u​i​z​A​c​t​i​v​i​t​y​.​t​h​i​s​,​ ​R​.​s​t​r​i​n​g​.​i​n​c​o​r​r​e​c​t​_​t​o​a​s​t​,​
 ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​T​o​a​s​t​.​L​E​N​G​T​H​_​S​H​O​R​T​)​.​s​h​o​w​(​)​;​
 ​ ​ ​ ​c​h​e​c​k​A​n​s​w​e​r​(​t​r​u​e​)​;​
}​

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.34.87