Sunday, January 7, 2024

Java Programs

String

  1. Count Number of Words in a String Java Program
  2. Count Number of Times Each Character Appears in a String Java Program
  3. Check if Given String or Number is a Palindrome Java Program
  4. Java Program to Find The Longest Palindrome in a Given String
  5. How to Reverse a String in Java
  6. Reverse Each Word in a String Java Program
  7. Check Given Strings Anagram or Not Java Program
  8. Add Double Quotes to a String Java Program
  9. Split a String Java Program
  10. Find All Permutations of a Given String Java Program
  11. If Given String Sub-Sequence of Another String in Java
  12. Java Program to Find First Non-Repeated Character in a Given String
  13. Find The First Repeated Character in a String Java Program
  14. Find Duplicate Characters in a String With Repetition Count Java Program
  15. Convert String to int in Java
  16. Convert String to Byte Array Java Program
  17. Convert String to float in Java
  18. Convert String to double in Java
  19. Convert Char to String And String to Char in Java
  20. Convert String to Char Array in Java
  21. Removing Spaces Between Words in a String Java Program

Numbers

  1. Armstrong Number or Not Java Program
  2. Java Program to Reverse a Number
  3. Swap or Exchange Two Numbers Without Using Any Temporary Variable Java Program
  4. Java Program to Check Prime Number
  5. Java Program to Display Prime Numbers
  6. Factorial Program in Java
  7. Fibonacci Series Program in Java
  8. Arrange Non-Negative Integers to Form Largest Number - Java Program
  9. How to Display Pyramid Patterns in Java - Part1
  10. How to Display Pyramid Patterns in Java - Part2
  11. Convert int to String in Java
  12. Convert float to String in Java
  13. Convert double to String in Java
  14. Convert float to int in Java
  15. Convert double to int in Java
  16. Convert Numbers to Words Java Program

Java - Array

  1. Find Duplicate Elements in an Array Java Program
  2. Remove Duplicate Elements From an Array in Java
  3. How to Remove Elements From an Array Java Program
  4. How to How to Find Common Elements Between Two Arrays Java Program
  5. Find Largest and Second Largest Number in Given Array Java Program
  6. Find Largest And Smallest Number in a Given Array Java Program
  7. Array Rotation Java Program
  8. Matrix Multiplication Java Program
  9. Matrix Addition Java Program
  10. Matrix Subtraction Java Program
  11. Find Maximum And Minimum Numbers in a Given Matrix Java Program
  12. Find The Maximum Element in Each Row of a Matrix Java Program

Java Date&Time

  1. Format Date in Java Using SimpleDateFormat
  2. How to Convert Date to String in Java
  3. How to Convert String to Date in Java
  4. How to Convert Date And Time Between Different Time-Zones in Java
  5. How to Display Time in AM-PM Format in Java
  6. Display Time in 24 Hours Format in Java
  7. Difference Between Two Dates in Java
  8. Compare Dates in Java
  9. Create Date Object in Java With Date and Time Values
  10. Java Program to Get Current Date and Time

Java - Collections

  1. How to Iterate a HashMap of ArrayLists of String in Java
  2. How to Sort Elements in Different Order in Java TreeSet

Lambda Expression

  1. Java Lambda Expression Runnable Example
  2. Java Lambda Expression Comparator Example
  3. Java Lambda Expression Callable Example

Java Internals

  1. How to Compile Java Program at Runtime
  2. How to Run javap Programmatically From Java Program
  3. Running Dos/Windows Commands From Java Program
  4. How to Run a Shell Script From Java Program

Data Structures in Java

  1. Linked List Implementation Java Program
  2. Stack Implementation in Java Using Array
  3. Stack Implementation in Java Using Linked List
  4. Queue Implementation in Java Using Array
  5. Queue Implementation in Java Using Linked List
  6. Java Program to Detect And Remove Loop in a Linked List
  7. How to Reverse a Linked List in Java
  8. Sorted Linked List In Java
  9. Doubly Linked List Implementation Java Program
  10. Deque Implementation in Java Using Doubly Linked List
  11. How to Reverse a Doubly Linked List in Java
  12. Binary Tree Implementation in Java - Insertion, Traversal And Search
  13. Java Program to Delete a Node From Binary Search Tree (BST)
  14. Find Minimum and Maximum Value Nodes in Binary Search Tree - Java Program
  15. Binary Tree Traversal Using Breadth First Search Java Program
  16. Binary Tree Traversal Using Depth First Search Java Program

Java I/O

  1. Reading File in Java Using BufferedReader
  2. Reading File in Java Using Scanner
  3. Reading Delimited File in Java Using Scanner
  4. Reading File in Java Using Files.lines And Files.newBufferedReader
  5. How to Read File From The Last Line in Java
  6. How to Read Properties File in Java
  7. How to Read Input From Console in Java
  8. Read File Asynchronously Java Program
  9. Write to a File in Java
  10. Writing a File Asynchronously Java Program
  11. How to Append to a File in Java
  12. Read or List All Files in a Folder in Java
  13. Java Program to Delete File And Directory Recursively
  14. How to Find Last Modified Date of a File in Java
  15. How to Count Lines in a File in Java
  16. Java Program to Print Line Numbers With Lines in Java
  17. Java Program to Convert a File to Byte Array
  18. How to Read Excel File in Java Using Apache POI
  19. How to Write Excel File in Java Using Apache POI
  20. Creating Temporary File in Java

Compressing & Decompressing Files

  1. Zipping Files And Folders in Java
  2. Unzip File in Java
  3. How to Create Password Protected Zip File in Java
  4. Compress And Decompress File Using GZIP Format in Java
  5. Creating Tar File And GZipping Multiple Files in Java
  6. How to Untar a File in Java

Java Multi-Threading

  1. Print Odd-Even Numbers Using Threads And wait-notify Java Program
  2. Print Odd-Even Numbers Using Threads And Semaphore Java Program
  3. Producer-Consumer Java Program Using wait notify
  4. Producer-Consumer Java Program Using ArrayBlockingQueue
  5. Producer-Consumer Java Program Using volatile
  6. How to Run Threads in Sequence in Java
  7. Printing Numbers in Sequence Using Threads Java Program
  8. How to Create Deadlock in Java
  9. Setting And Getting Thread Name And Thread ID in Java
  10. Java Program to Create Your Own BlockingQueue

Java XML

  1. How to Create PDF From XML Using Apache FOP

PDF Generation in Java

  1. Creating PDF in Java Using iText
  2. How to Create PDF in Java Using OpenPDF
  3. Creating PDF in Java Using Apache PDFBox
  4. HTML to PDF in Java + Flying Saucer and OpenPDF
  5. Convert HTML to PDF in Java + Openhtmltopdf and PDFBox

Enum

  1. Comparing Enum to String in Java
  2. Converting String to Enum Type in Java
  3. Converting Enum to String in Java

Java Reflection

  1. Generating Getters And Setters Using Reflection in Java
  2. Invoking Getters And Setters Using Reflection in Java

JDBC Programs

  1. Connection Pooling Using Apache DBCP in Java
  2. Connection Pooling Using C3P0 in Java
  3. Java Program to Get All DB Schemas
  4. Java Program to Get All The Tables in a DB Schema

Sorting Algorithms in Java

  1. What is In-place Algorithm
  2. Bubble Sort Program in Java
  3. Selection Sort Program in Java
  4. Insertion Sort Program in Java
  5. Shell Sort Program in Java
  6. Merge Sort Program in Java
  7. Quick Sort Program in Java
  8. Heap Sort Program in Java
  9. Tree Sort in Java Using Binary Search Tree
  10. Counting Sort Program in Java
  11. Bucket Sort Program in Java
  12. Radix Sort Program in Java

Searching Algorithms in Java

  1. Linear Search (Sequential Search) Java Program
  2. Binary Search Program in Java
  3. Ternary Search Program in Java
  4. Interpolation Search Program in Java
  5. Exponential Search Program in Java