Java Programming Code Examples
Java > Learning Code Examples
Arrays of arrays
C++ language Parameterized Constructor -
'Constructors with parameters' are known as "Parameterized Constructors". So these type of constructor allows us to "pass arguments" while object creation. Lets see how they look:
C++ Program Calculate GCD of 2 Integers -
Examples on different ways to calculate GCD of two integers (for both Positive & Negative integers) using "Loops and Decision" making statements. The "Largest integer" which can
Find Sum of Opposite Diagonal Elements -
C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user
C++ Program Finds Transpose of a Matrix -
First we have to clear about what is transpose of a matrix. Its to replace the number of rows with number of colums, vice versa to make a new matrix. So for example if a matrix 'A' has
Program code to search for a Palindrome -
C Programming language code to search for a palindrome. Please enter a word, phrase or sentence below(type END to exit the program). String is a palindrome or it is not...
C Collect Stats Speed Touch ADSL Modem -
This is a quick hack not a program. Connect & setup write descrip. Skipping the first [telnet] connection block.. W're not event driven.. Issue commands, set up alarm, interrupted...
C++ Solving The Dominating Set Problem -
Problem takes 'E edges' as input and outputs dominant set of the graph, implementing the following heuristic. Dominant set of a graph's to find, a set of vertices S, such that for every
C++ Checking if a Given Graph is Bipartite -
Bipartite Graph is a graph in which the set of 'vertices' can be divided into 2 sets such that all vertex should be present in either set 1 or set 2 but not both, and there should no edge