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

GE4 Lab Important Questions

Lab

Uploaded by

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

GE4 Lab Important Questions

Lab

Uploaded by

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

Important Java Programs

1. Write a java program to swap two numbers.

2. Write a program in java to count number of vowels and consonants in a given string.

3. Write a java program to check if a given year is leap year or not.

4. Write a java program to find roots of a quadratic equation.

5. Write a program in java to find factorial of a given number.

6. Write a java program to find GCD and LCM of two numbers.

7. Write a java program to print all prime numbers from 1 to 100.

8. Write a java program to find sum of n natural numbers using recursion.

9. Write a java program to find transpose of a matrix.

10. Find Maximum of Three Numbers

11. Check Even or Odd Number

12. Calculate Compound Interest in Java

13. Java Program to Calculate Simple Interest

14. Java Program to Find Duplicate Characters in a String

15. Java Program to Check Palindrome String.

16. Java Program to Sort Strings in Alphabetical Order.

17. Java Program to Reverse Words in a String.

18. Java Program to perform bubble sort on Strings.

19. Java Program to Calculate average of numbers using Array.

20. Java Program to Add the elements of an Array.

21. Java Program to reverse an array.

22. Java Program to sort an array in ascending order.

23. Write a java program to concatenate two arrays.

24. Write a java program to display Armstrong numbers between intervals using function.

You might also like