List of Java Programs

Here is the list of all Java programs available in this blog. You can find basic level programs as well as advanced level programs. All of these programs have been categorised below. Click on the buttons inside the tabbed menu to explore those categories.


    Basic

  1. Hello, World! Program
  2. Addition, subtraction, multiplication and division
  3. Convert a character to ASCII value
  4. Convert ASCII value to a character
  5. Compute Quotient and Remainder
  6. Swap two numbers without third variable
  7. Swap two numbers using third variable
  8. Swap two numbers using X-OR
  9. Fahrenheit to Celsius conversion
  10. Centigrade to Fahrenheit conversion
  11. Simple interest
  12. Calculate percentage of a number
  13. Conversion between Kilograms and Grams
  14. Decision making

  15. Check vowel or consonant
  16. Check if a character is a digit
  17. Conversion between uppercase and lowercase letter
  18. Check if a number is positive or negative
  19. Check if a number is even or odd
  20. Find largest among three numbers
  21. Check if a number is a perfect square
  22. Check leap year
  23. Simple calculator
  24. Calculate profit and loss
  25. Roots of quadratic equation
  26. Find the letter grade of a student
  27. Find the age group
  28. Calculate income tax
  29. Display month according to input number
  30. Conversion between 12-hour and 24-hour time format
  31. Loop & Recursion

  32. Print natural numbers from 1 to N
  33. Print natural numbers using recursion
  34. Sum of first N natural numbers / Sum of series 1 + 2 + 3 + .. + N
  35. Print all numbers in a range
  36. Compound interest
  37. Display letters from A to Z
  38. Factorial of a number
  39. Count no of digits
  40. Power of a number
  41. Sum of the digits of a number
  42. Check amstrong number
  43. Find amstrong numbers between interval
  44. Reverse of a number
  45. Find sum and average of N numbers
  46. Display N th fibonacci number
  47. Display fibonacci sequence
  48. Display fibonacci sequence upto N
  49. Check a number is a palindrome or not
  50. Count palindrome between intervals
  51. Check a number is a prime or not
  52. Display all prime numbers upto N
  53. Display first N prime numbers
  54. Display prime numbers between interval
  55. Find the value of permutation and combination
  56. Find the frequency of a digit in a number
  57. Find the average and sum until 0 is entered
  58. Find minimum number of currency notes to make an amount N
  59. Display multiplication table
  60. Check perfect number
  61. Pattern

  62. Square pattern
  63. Rectangle pattern
  64. Rhombus pattern
  65. Half diamond pattern
  66. Diamond pattern
  67. Right triangle, Half pyramid pattern
  68. Full pyramid pattern
  69. Inverted full pyramid pattern
  70. Snake number pattern
  71. Spiral pattern
  72. Hollow rectangle pattern
  73. Hollow rhombus pattern
  74. Hollow diamond pattern
  75. Hollow pyramid pattern
  76. Floyd's triangle pattern
  77. Pascal's triangle pattern
  78. Array

  79. Find largest element
  80. Find smallest element
  81. Find sum and average of N numbers
  82. Display array in reverse
  83. Rotate an array
  84. Bitwise operation

  85. Check if a number is even or odd
  86. Matrix

  87. Check equality of two matrices
  88. Matrix addition
  89. Matrix subtraction
  90. Matrix multiplication
  91. Check lower triangular matrix
  92. Check upper triangular matrix
  93. Geometry

  94. Calculate the Area, Perimeter and Diagonal of a square
  95. Calculate Area, Perimeter and Diagonal of a Rectangle
  96. Calculate Diameter, Area and Perimeter of a Circle
  97. Games

  98. Rock paper scissors random approach
  99. Miscellaneous

  100. Multiply large numbers

Case

Function & Pointer

Strings

Structure and Union

File Input/Output

Miscellaneous

  1. Multiply large numbers