Matrix

java program