January 2014
Intermediate to advanced
736 pages
70h 43m
English
Figure 3.9 shows the package statement and import statements in MainActivity.java. The package statement in line 3 was inserted when you created the project. When you open a Java file in the IDE, the import statements are collapsed—one is displayed with a
to its left. You can click the
to see the complete list of import statements.
Lines 5–14 import the classes and interfaces the app uses:
• Class NumberFormat of package java.text (line 5) provides numeric formatting capabilities, such as locale-specific currency ...
Read now
Unlock full access