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. Java Program to Check Whether a Number is Palindrome or Not
  42. Convert a Given Decimal Number to Binary in Java
  43. Nested for loop  to print the pyramid and pattern in java
  44. Java Program to Display Factors of a Number
  45. Display Fibonacci Series in Java
  46. Generate Multiplication Table in Java
  47. Calculate the Power of a Number in Java

  48. Advanced Examples

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

  64. Object-Oriented Programming

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

Post a Comment

Thank you for vising