KnpCode
Java, Spring, BigData, Web development tutorials with examples
 
Skip to content
  • Ubuntu
  • Big Data
    • Hadoop Tutorials
  • Java
    • Core Java Tutorials – Beginner
    • Core Java Tutorials – Advanced
    • Java Programs
  • spring
    • Spring Framework
Home Posts tagged "java-programs"

Tag: java-programs

Java Program to Convert Numbers to Words

UshaK January 4, 2021 January 26, 2021java-programs java-programs 0

This post shows how you can write a Java program to convert numbers to words. For example– If you enter number 123 output should be One hundred twenty three in words. In the post conversion of number to words is done for both international system and Indian system. Java program…

Continue reading

Convert HTML to PDF in Java Using Openhtmltopdf, PDFBox

UshaK November 30, 2020 November 30, 2020java-programs java-programs 0

In the post Convert HTML to PDF in Java Using Flying Saucer, OpenPDF we saw one way to convert HTML to PDF, in this tutorial you’ll see how to convert HTML to PDF in Java using Openhtmltopdf, PDFBox and jsoup. To know more about PDFBox check this post- Generating PDF…

Continue reading

Convert HTML to PDF in Java Using Flying Saucer, OpenPDF

UshaK November 30, 2020 January 6, 2021java-programs java-programs 0

In this tutorial you’ll see how to convert HTML to PDF in Java using Flying Saucer, OpenPDF and jsoup. For converting HTML to PDF using PDFBox check this post- Convert HTML to PDF in Java Using Openhtmltopdf, PDFBox Convert HTML to PDF using Flying Saucer – How it works Flying…

Continue reading

Heap Sort Java Program

UshaK November 29, 2020 January 11, 2021java-programs java-programs 0

This tutorial shows how to write Heap sort program in Java which is an in-place sorting algorithm. Heap sort uses heap data structure for sorting the elements so the obvious question is what is heap? Table of contents Heap data structure Heap sort algorithm How to create heap from array…

Continue reading

Tree Sort Java Program

UshaK November 29, 2020 January 11, 2021java-programs java-programs 0

This tutorial shows how to write Tree sort program in Java. Tree sort uses a Binary Search Tree (BST) for sorting the elements. What is a Binary Search Tree Binary Search Tree (BST) is a special kind of binary tree where node’s left child has a value less than its…

Continue reading

Radix Sort Java Program

UshaK November 29, 2020 January 11, 2021java-programs java-programs 0

This tutorial shows how to write Radix sort program in Java. Radix sort is also one of the linear sort algorithm which runs in O(n) time like Counting sort and Bucket sort making Radix sort faster than Quick sort or Merge sort which run in O(n*logn) time. Radix sort algorithm…

Continue reading

Bucket Sort Java Program

UshaK November 28, 2020 January 8, 2021java-programs java-programs 0

This tutorial shows how to write Bucket sort program in Java. Bucket sort is also one of the linear sort algorithm which runs in O(n) time like Radix sort and Counting sort making it faster than Quick sort or Merge sort  both of which run in O(n*logn) time. Bucket sort…

Continue reading

Counting Sort Java Program

UshaK November 28, 2020 January 8, 2021java-programs java-programs 0

This tutorial shows how to write Counting sort program in Java. Counting sort is an integer sort algorithm. It is different from other comparison based algorithms like merge sort, selection sort as it doesn’t sort by comparing values. In counting sort, frequency of each element is counted and using it…

Continue reading

Quick Sort Java Program

UshaK November 28, 2020 January 8, 2021java-programs java-programs 0

This tutorial shows how to write Quick sort program in Java. Quick sort is also a “divide and conquer algorithm” like Merge sort. Quick Sort Algorithm Quick sort works as follows- Chose an element as pivot and then partition all the elements around that pivot. All the elements having value…

Continue reading

Shell Sort Java Program

UshaK November 27, 2020 January 7, 2021java-programs java-programs 0

This tutorial shows how to write Shell sort program in Java. Shell sort is also an in place sorting algorithm like Bubble sort, Selection sort but it is faster than these algorithms. Shell sort algorithm Shell sort is based on Insertion sort and it improves on it to make sorting…

Continue reading

123›»
  • String Programs
    Count Number of Words in a String

    Check Given String Palindrome or Not

    Check if The Given Strings Are Anagram or Not

    How to Reverse a String in Java

    Given String Subsequence of Another String in Java
    Number Programs
    Given Number Palindrome or Not

    Java Program to Check Whether Number Prime or Not

    How to Reverse a Number in Java

    Java Program to Display Armstrong Numbers

    Java Program to Find Factorial

    Fibonacci Series Java Program
    Array Programs
    Matrix Multiplication Java Program

    Matrix Addition Java Program

    Matrix Subtraction Java Program

    Remove Element From an Array in Java

    Reverse an Array In-place Java Program
    Java I/O Programs
    How to Read File in Java

    How to Append to a File in Java

    How to Read Delimited File in Java

    How to Read Input From Console in Java

    How to Zip Files in Java

    Creating Password Protected Zip File in Java
    Generate PDF Using Java
    Creating PDF From XML Using Apache FOP

    Generating PDF in Java Using iText

    PDF in Java Using OpenPDF

    Generating PDF in Java Using PDFBox Tutorial

    Convert HTML to PDF in Java Using Openhtmltopdf, PDFBox
    Sorting Programs
    Bubble Sort Java Program

    Selection Sort Java Program

    Insertion Sort Java Program

    Merge Sort Java Program

    Quick Sort Java Program

    Counting Sort Java Program

    Tree Sort Java Program

    Heap Sort Java Program
    Java Date & Time
    Convert Date to String in Java

    Convert String to Date in Java

    Getting Current Date and Time in Java

    Java Date Difference Program
Privacy Policy | Disclaimer
Powered by Nirvana & WordPress.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy Policy