oop with java lab programs 2.1 to 2.8
oop with java lab programs 2.1 to 2.8
PROGRAM 2.1
Aim: Write a java program to find largest and smallest number in an array.
Program:
Output:
PROGRAM 2.2
Program:
Output:
PROGRAM 2.3
Program:
Output:
PROGRAM 2.4
Program:
Output:
PROGRAM 2.5
Aim: Write a java program to multiply two matrices. Before multiplication matrices are
checked whether they can be multiplied or not.
Program:
Output:
PROGRAM 2.6
Program:
Output:
PROGRAM 2.7
Program:
Output:
PROGRAM 2.8
Program:
Output: