0% found this document useful (0 votes)
6 views

oop with java lab programs 2.1 to 2.8

The document outlines several Java programming examples, each with a specific aim such as finding the largest and smallest numbers in an array, performing linear search, implementing bubble sort, and matrix operations. Each program is intended to demonstrate different programming concepts and techniques using arrays and strings. Outputs for each program are indicated but not provided in the document.

Uploaded by

o190479
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

oop with java lab programs 2.1 to 2.8

The document outlines several Java programming examples, each with a specific aim such as finding the largest and smallest numbers in an array, performing linear search, implementing bubble sort, and matrix operations. Each program is intended to demonstrate different programming concepts and techniques using arrays and strings. Outputs for each program are indicated but not provided in the document.

Uploaded by

o190479
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

PROGRAMMING EXAMPLES

PROGRAM 2.1

Aim: Write a java program to find largest and smallest number in an array.

Program:

Output:
PROGRAM 2.2

Aim: Write a java program for linear search using arrays.

Program:

Output:
PROGRAM 2.3

Aim: Write a java program to Bubble sort using arrays

Program:

Output:
PROGRAM 2.4

Aim: Write a java program to add two matrices

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

Aim: Write a java program on Alphabetical ordering of strings

Program:

Output:
PROGRAM 2.7

Aim: Write a java program to perform various String Operations

Program:

Output:
PROGRAM 2.8

Aim: Write a java program for use of wrapper class methods.

Program:
Output:

You might also like