Practice Programs
Practice Programs

49. Write a Java program to accept a float value of number and return a rounded float value

48. Add all the digits of a given positive integer until the result has a single digit

47. Write a java Program to check given matrix is null matrix

46. Write a java program to add two matrix

45. Write a java Program to print odd and even numbers from an array

44. Write a Program to remove duplicate element in an array

43. Write a java program to Find the index of the smallest number in an array

42. Write a java program to find the index of the largest number in an array

41. Write a Java Program to find largest and second largest in an array

40. Write a Program to Find largest and smallest number in an array in java

39. Write a Program to find second largest number in an array

38. Write a Java Program to find largest number in an array

37. Write a java Program to print N prime numbers and find sum and average

36. Write a java Program to print palindrome number upto N numbers

35. Write a java Program to check the given number is Palindrome or not

34. Write a java Program to Print given number in words

33. Write a java Program to print Armstrong number between 1 to 1000

32. Write a Java Program to find Armstrong number

31. Write a Java Program to Calculate electricity bill

30. Write a Java Program to Find the sum of the digits of a number

29. Write a Java Program to Check if a Number is Positive, Negative or Zero.

28. Write a Java program to convert Celsius to Fahrenheit.

27. Write a Java program to convert kilometers to miles.

26. Write a Java program to find the area of a triangle.

25. Write a Java program to add two numbers without using any arithmetic operators

24. Write a Java program to check if a positive number is a palindrome or not

23. Write a Java program to compute the square root of an given integer

22. Write a Java program to count the number of even and odd elements in a given array

21. Write a Java program to swap the first and last elements of an array and create a new array

20. Write a Java program to compute the sum of the first 100 prime numbers

19. Write a Java program to convert seconds to hour, minute and seconds

18. Write a Java program to convert a string to an integer

17. Write a Java program to print the even numbers from 1 to 20

16. Write a Java program to print the odd numbers from 1 to 20

15. Write a Java program to display the system time

14. Write a Java program that accepts an integer (n) and computes the value of n+nn+nnn

13. Write a Java program to print the ascii value of a given character

12. Write a Java program to count the letters, spaces, numbers and other characters of an input string

11. Write a Java program to compare two numbers

10. Write a Java program and compute the sum of the digits of an integer

9. Write a Java program to check whether Java is installed on your computer or not

8. Write a Java program to convert a binary number to decimal number

7. Write a Java program to convert a decimal number to binary numbers

6. Write a Java program to swap two variables

5. Write a Java program that takes five numbers as input to calculate and print the average of the numbers

4. Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers

3. Write a Java program that takes two numbers and display the product of two numbers

2. Write a Java program to print the sum of two numbers

1. Write a Java program to print ‘Hello World!’ on screen

For latest job updates join Telegram Channel: https://t.me/sateeshm

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs