Categories

Web DevelopmentProgrammingDatabaseWindowsLinuxNetworkingMobile DevicesRaspberry PiPythonCJavaOtherSponsored

JAVA Articles

Implementing Generic Queues in Java using Linked List

How to implement a generic Queue data structure in Java using linked lists. A queue is a linear data structure that manages data using FIFO pattern.

Sorting collections of user-defined objects in Java

How to sort collections of user defined class objects in Java using Comparable and Comparator interfaces.

Binary search to find the occurrences of an element in a array

Using binary search algorithm to find the first occurrence, last occurrence and the count of an element in a sorted array with duplicate elements.

Java program to search an array using binary search algorithm

Explains how binary search works and a Java program to search an array using binary search algorithm.

Program to find the sum of diagonal elements of a 2D array

Java program to calculate the sum of diagonal elements of a 2-D array. Explains how to find the diagonal elements of an array.

Implementing Bubble Sort algorithm in Java

Bubble sort is a simple algorithm to sort elements of an array. In this post, I will explain bubble sort and how to implement it in Java programming language.

Java program to print N Fibonacci numbers using recursion

Java program to print the first N Fibonacci numbers using the recurssive method. This is a popular question for Java and C programming interviews

Reverse a string using recursion in Java

Java program to reverse a string using recursion method. This is one of the frequently asked question for Java and C programming interviews

Threads in Java : Create, start and run with examples

Two different ways of creating threads in Java - Subclass method and Runnable Interface method with examples

Read and write to files with buffered streams in Java

Reading and writing files in Java using buffered stream classes BufferedInputStream, BufferedOutputStream, BufferedReader and BufferedWriter.