All Method programs in java programming language

  1. Write a Java method to compute the average of three numbers
  2. Write a Java method to find the smallest number among three numbers
  3. Write a Java method to count all words in a string
  4. Write a Java method to count all vowels in a string
  5. Write a Java method to compute the sum of the digits in an integer
  6. Write a Java method to check whether an year entered by the user is a leap year or not
  7. Write a Java method to calculate the area of a triangle
  8. Write a Java method to find the area of a pentagon
  9. Write a Java method to find number is even number or not
  10. Write a Java method to check numbers is palindrome number or not
  11. Write a Java method to displays prime numbers between 1 to 20
  12. Write a Java method to find GCD and LCM of Two Numbers
  13. Write a Java method to find factorial using recursion in java

Leave a Comment