Java Programming Code Examples
Java > Learning Code Examples
Pie Maker
Insert Element in Array at certain position -
Enter array size, array elements, element to be insert, enter the index where to insert the desired element in the array, so this program insert the desired element and displaying the
C++ Program Reverse an Integer Number -
This takes an integer input from the user and stores it in 'variable n'. Then the while loop is iterated until n != 0 is false. In each iteration, the remainder when the value of n is divided
Reads an Array and Search for an Element -
C program accept an array of N elements and a key to search. Search is successful, displays the message "Successful Search". Otherwise, the message "Unsuccessful Search" is display.
C Language Interview Questions example -
For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value represented
C++ Program to Implements the B+ Tree -
A B+ tree is an n-ary tree with a variable but often large number of "children per node". A B+ tree consists of a root, internal nodes and leaves. The root may be either a leaf or node
C programming code right rotate an array -
C code to right rotate an array by n position. How to right rotate an array n times in C. Logic to rotate an array to right by n position in C program. Read elements in an array say
C++ Codings Rules of Declaring Variables -
A variable name can consist of Capital letters A-Z, lowercase letters a-z, digits 0-9, and the underscore character. First character must be a "letter or underscore". Blank spaces cannot
Inputs Few Numbers Performs Merge Sort -
C program, using recursion, 'Performs Merge' sort. A Merge Sort is a sorting algorithm with 'Complexity of O(nlogn)'. It is used for sorting numbers, structure, files. Perform Merge Sort