Java Examples

    Basic Examples

  1. Java Hello World Program and Programming Style
  2. Primitive Data Types and Operations in Java
  3. Java Program to Print an Integer (Entered by the User)
  4. Java Program to Add Two Integers
  5. Java Program to Swap Two Numbers
  6. Java Program to Compute Quotient and Remainder
  7.  Java Program to Calculate Surface Area of a Regular Tetrahedron
  8. Find the Largest Among Three Numbers in Java
  9. Declaring an Array in Java
  10. Generate a Random Array of Integers in Java
  11. Java  in Program to Find the Largest Number in an Array in Java
  12. Java Program to Calculate Sum & Average of an Array
  13. Java Program to Search Key Elements in an Array
  14. Matrix  in Java
  15. Convert Two Dimensional Array into One Dimensional Array in Java

  16. Selection

  17. Java if, if...else Statement
  18. Java if, if...else Statement Examples
  19. Java Program to Check Whether a Given Number is Even or Odd
  20. Check Whether a Number is Positive or Negative in Java

  21. Data Structures Examples

  22. Java Program to Implement Insertion Sort 
  23. Java Program to Implement Selection Sort
  24. Merge Sort in Java using Divide and Conquer
  25. Quick Sort in Java using Divide and Conquer
  26. Binary Search (Recursive and Iterative) in Java
  27. The n-queens Problem in Java
  28. Infix to Postfix Conversion using Stack in Java
  29. Implementing Linked List in Java using Array
  30. Find Maximum and Minimum Element in Array using Divide and Conquer in Java
  31. Array implementation of Queue in Java
  32. Implement a Stack Using an Array in Java
  33. Convert a Decimal Number to Binary Number using Stacks in Java
  34. Java Program to Solve Knapsack Problem
  35. Convert Decimal to Octal  Using Stack in Java
  36. Convert Decimal to Hexadecimal using Stack in Java

  37. Iteration

  38. Java Program to Display Square Numbers
  39. Find Factorial of a Number in Java
  40. Check Whether a Number is Prime or Not in Java
  41. Convert a Given Decimal Number to Binary in Java
  42. Nested for loop  to print the pyramid and pattern in java
  43. Display Fibonacci Series in Java
  44. Generate Multiplication Table in Java
  45. Calculate the Power of a Number in Java

  46. Advanced Examples

  47. Bubble Sorting in Java
  48. Java Program to Find the Data of Birth of Given (New/Old) National Identity Card(NIC) Number 
  49. Java program to check whether a string is a Palindrome using stack and queue
  50. Java Program to Implement the Dynamic Programming-Rod Cutting
  51. Simple Calculator in Java
  52. Calculate Yesterday and Tomorrow Date without using Calendar in Java
  53. Add Two Matrix Using Multi-dimensional Arrays in Java
  54. Subtract Two Matrix Using Multi-dimensional Arrays in Java
  55. Sparse Matrix Operations in Java
  56. Java Program to Find All Anagrams of  Word
  57. MD5 Hash Value of a String in Java
  58. Bloom Filter to Test whether a Given Word is in a Set Java using MD5 Hashing
  59. Convert Roman Numerals to Integer/Decimal Numbers in Java
  60. Java Program to Find Day of the Week for a Given Date
  61. Java Program to Calculate Age from Date of Birth

  62. Object-Oriented Programming

  63. Generic Type in Java
  64. Find Factorial of a Number Factorial in Java
  65. Java Program to Check if a given Number is Perfect Number
  66. Java Program to Find the Perimeter of a Circle, Rectangle and Triangle

Post a Comment

Thank you for vising