Matrix-Map
// Selection stage challenge 2
This program should returns the number of different countries to which the areas of the map.
The map can be described by a zero-indexed matrix A consisting of i rows and j columns of integers. The color of each area is described by the corresponding element of the matrix. Two areas have the same color if and only if their corresponding matrix elements have the same value.
In order to use this program
1st compiling:
javac Ex2.java
then, running it:
java Ex2