# Java Programming Code Examples

## Java > Core Java Code Examples

### Linear Search of an Array

C++ Sample How to Use If Else Statement -
In Programming, The "if statement" by itself will execute a single statement, or a group of statements, when the expression following if evaluates to "true". It does nothing when the

C Program Insertion Sort implementations -
'Insertion Sort Algorithm' picks elements one by one & places it to the right position where it belongs in the "Sorted List of Elements". In C program we have "implemented the same"

Using the Bellman-Ford Algorithm to Find -
Using the bellman-ford algorithm to find the shortest path between two vertices assuming that negative size edges exist in the graph. A Program to find the 'shortest path' algorithm

Compares two Integers in The C Language -
Comparing two integer variables is one of the simplest c program you can write at ease. In this program, you can either take input from user using scanf() function or statically define

C++ Calculate Area & Perimeter of Square -
C++ program ask to the user to enter the side length of a square to calculate and displaying the "area and perimeter" of the square. Enter length of a side of square and "calculate area"

C++ Program to Remove All nodes which -
C++ Program demonstrates the Removal of All the nodes which don't lie in any Path with Sum greater than or equal to K. Create a new 'Binary Tree node' with given data. Truncates

C Programming code Array Concatenation -
To concate two arrays, we need at least three array variables. We shall take two arrays and then based on some constraint, will copy their content into one single array. We shall

Convert from degree Celsius to Fahrenheit -
Input temperature in Centigrade and convert to Fahrenheit. How to convert temperature from degree centigrade to degree Fahrenheit in C programming. The logic of temperature