This short program demonstrates,how to accept integer inputs from the user
and store them in a variable.
Since for taking input from the user,we need to scan the keyboard, we've included
the scanner class which has the methods which handle this task for us.
We simply need to use these as shown in the code example below.

Random number generation in java.
This program shows, the method of generation of random numbers
in java.
To be able to use the random function,we need to import the random class.
The random numbers generated are stored in the array and printed out to the
terminal.

Matrix addition in java.
This program shows an implementation of matrix addition in java.

The program takes input for the 2D matrix from the user. There is no limit on
the matrix size.The user can take any number of rows and columns.
The program then checks,if the addition is possible and performs addition if
it is valid and prints out the resultant matrix.If the matrix addition is not valid,
the program gives an error message.

Matrix subtraction in java.
This program shows an implementation of matrix subtraction in java.

The program takes input for the 2D matrix from the user. There is no limit on
the matrix size.The user can take any number of rows and columns.
The program then checks,if the subtraction is possible and performs subtraction if
it is valid and prints out the resultant matrix.If the matrix subtraction is not valid,
the program gives an error message.