Java
Second Largest/Smallest Number in Array in C/C++, Java and Python
In an earlier tutorial, we have seen how to find the smallest or largest number from the integer array. In this tutorial, we are going to find the second smallest number in an...
Find the Smallest and Largest Number in Array in C/C++, Java and Python
Here is the program to find the smallest and largest number in the array in C/C++, Java and Python. I have also added the comment explaining each line of the code. So the code...
Reverse a Linked List In JAVA [Complete Code]
Problem statement: You have given a pointer to the head node of a linked list, the task is to reverse the linked list. Example: 1->2->3->4->5->nullOutput:...
Java Regex Example Explained | Regular Expression
This tutorial aims to explain regular expressions in Java, why and how you can efficiently use them. I will explain Java regex example along with the code. What are Regular...
[Solved] Program to Find Pairs that have Desired Sum in Java
Problem Statement: Consider an array of integers that may contain both positive and negative integers, called numbers. Write a program that finds all the pairs of integers whose...
[Solved] Find Lexicographically Smallest and Largest Substring
Problem Statement: You are given a string (says 's'), and an integer ( says 'k'). Write a program to find the lexicographically smallest and largest substring from given...
5 Java Web Framework and Design Technology would Rule
Web apps are a fundamental part of people’s daily needs. The internet is full of these applications. So there is no surprise if it is one of the best IT career skills. Web...
[Code] Java JDBC Connection MySQL Example | JDBC API Properties
In this tutorial, you are going to learn JDBC connection in Java with MySQL. Before that, lets check some basics of JDBC so that you will understand the code properly. The...
7 Basic Difference between throw and throws in Java | Example
We have seen earlier how exception handling work in Java. Exception handling in Java assures that the flow of the program does not break when an error/exception occurs. As a...