[Go to site: main page, start]

0% found this document useful (0 votes)
2 views1 page

Java Programs for Beginners: Examples

The document outlines a series of simple Java programming exercises divided into three parts. Part A includes basic programs such as finding the largest of three numbers and checking if a number is positive or negative. Parts B and C focus on array manipulation and matrix operations, respectively, with tasks like reversing an array and adding two matrices.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Java Programs for Beginners: Examples

The document outlines a series of simple Java programming exercises divided into three parts. Part A includes basic programs such as finding the largest of three numbers and checking if a number is positive or negative. Parts B and C focus on array manipulation and matrix operations, respectively, with tasks like reversing an array and adding two matrices.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Simple Java programs

PART A
1. Java Program to Find Largest of Three Numbers.
2. Java Program to Display Odd Numbers from 1 to 100.
3. Java Program to Find Sum of Natural Number.
4. Java Program to check if a Number is Positive or Negative.

PART B
1. Program to print the elements of an array in reverse order.
2. Program to print the elements of an array present on even
position.
3. Java Program to sort the elements of an array in descending
order.
4. Program to copy all elements of one array into another array.
5. Program to Print the Duplicate Elements of an Array | Find
Duplicate Elements in an Array in Java.

PART C
1. Java Program to add two matrices.
2. Java Program to find the transpose of a given matrix.
3. Java Program to find the sum of each row and each column of
a matrix.
4. Java Program to count the total number of characters in a
string.
5. Java Program to determine whether a given string is
palindrome.

You might also like