Accumulate

From Progzoo
Jump to: navigation, search

You might want to examine the following before attempting this tutorial:

  • <a href="/tut.cgi/java/ht05IO/300TextFile.xml">Reading from a text file.</a>
  • <a href="/tut.cgi/java/ht05IO/320TDF.xml">Reading a tab delimited file.</a>

Print the countries of Africa.


The default program prints the name for the countries with a population of more than 200000000.

Change the code so that it prints the name for each country in Africa.



[Font] [Default] [Show] [Resize] [History] [Profile]

Large countries in Asia.


Print the name, the region and the area for each of the countries of Asia that has an area of more than 1000000.

Use 25 characters for the name, 10 characters for the region and 9 characters for the area.



[Font] [Default] [Show] [Resize] [History] [Profile]