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

Java Programming Tasks and Patterns

The document lists a series of programming tasks and challenges, including operations on numbers, strings, and arrays. Tasks range from calculating sums of even and odd numbers to checking for palindromes and Armstrong numbers, as well as generating various patterns. It also includes matrix operations and character counting in strings.

Uploaded by

sriramfan709
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Programming Tasks and Patterns

The document lists a series of programming tasks and challenges, including operations on numbers, strings, and arrays. Tasks range from calculating sums of even and odd numbers to checking for palindromes and Armstrong numbers, as well as generating various patterns. It also includes matrix operations and character counting in strings.

Uploaded by

sriramfan709
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

1)print even sum from 1 to 20

2)print odd sum from 1 to 20


3)check the number whether it is armstrong or not
4)check the number whether it is palindrome or not
5)swap two number with third variable
6)print prime numbers from 1 to 20
7)write a program for reverse the string value
8)check the string value whether it is palindrome or not
9)arrange the array values in ascending order
10)arrange the array values in descending order
11)find maximum number in array
12)find minimum number in array
13)remove duplicates from array
14)print number of words in string
15)print vowels and consonant count in string
16)count of all caps,small,numbers,special characters in string and also print that
characters
17)print start pattern below
*
**
***
****
*****
18)print number pattern below
1
12
123
1234
12345
19)print the pattern below
1
1 1
1 1 1
1 1 1 1
20)print the pattern below
*
* *
* * *
* * * *
* * * * *
21)print sum of first 10 natural numbers
22)find the largest number among 3 numbers
23)check the number whether it is negative or postive or zero
24)find the power of a number ex, 2^3=8
25)print even and odd numbers from an array
26)program to add two matrices
27)print ascii value in java
28)print the elements of an array in reverse order
29)print the elements of an array present on even position
30)print duplicates in array

You might also like