# Java Programming Code Examples

## Java > Sound Code Examples

Calculating Addition of 2 Numbers in C++ -
Program has 'three functions' which receives 2 pointers reference. Three functions returns int, float and double sum of numbers. So this c++ tutorial use the following concepts. Write

Generate All Possible Combinations of List -
Algorithm takes the input of 'n' data element and prints all 'possible combination'. For that, it maintains a boolean 'Array of Length' "n". If the corresponding boolean value is true, then

C Program code to Illustrate Pass by value -
Take two numbers as input and store it in the variables j1 and j2 respectively. Call function swap and pass the variables j1 and j2 as parameters to the function swap. In function

Finds Path Between Two Nodes in a Graph -
A C++ Program to "check and find" if the path between two nodes exists. By running "DFS" on given graph we can find out whether path exists between two nodes. Class represents a

C code format Time and Date into a string -
Abbreviated weekday name, Full weekday name, Abbreviated month name, Full month name, Standard date and time string, Last two digits of year, Day of month as a decimal

C Find Prime Numbers Between the Range -
The program takes the range and finds all the 'Prime Numbers' between the range & prints. Lets first take the range of numbers between which you have to find the prime numbers as

In C++ Graph Coloring on Bipartite Graph -
The problem takes a bipartite graph as input and outputs colours of the each vertex after 'coloring the vertices'. The "Bipartite Graph" is a graph in which the set of vertices can be

C Program Check If a String is Palindrome -
Check if string is a 'Palindrome' without using the "Built-In function". "Take a string" as input & store it in the array 'string[]'. Then store the same string into the another array 'reverse_s'