Long description
The lines read as follows. Line 1. forward slash forward slash Fig period J period 12 colon Print Task period java. Line 2. forward slash forward slash Print Task class sleeps for a random time from 0 to 5 seconds. Line 3. import java period u t i l period Random semicolon. Line 4. Blank. Line 5. public class Print Task implements Runnable. Line 6. left brace. Line 7, indented once. private final i n t sleep Time semicolon forward slash forward slash random sleep time for thread. Line 8, indented once. private final String task Name semicolon forward slash forward slash name of task. Line 9, indented once. private final static Random generator equals new Random left parenthesis right parenthesis semicolon. Line 10. Blank. Line ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.