Java Programming Code Examples
Java > Java AWT Code Examples
Demonstrating mouse events
Code Convert a Number Decimal to Binary -
Find a Binary equivalent of a decimal number entered by the user, using recursion. The user has to enter a 'decimal' which has a base 10 & this program evaluates the binary equivalent
Finding The Transpose of Martix in Sparse -
C Programming code finding the transpose of a martix in sparse form. Printing for testing sparse input. Calling function for evaluation of transpose. Printing the transposed matrix.
Prints the Sum of all Odd Numbers in C++ -
The digit sum of a given integer is the sum of all its digits (digit sum of '84001' is calculated as 8+4+0+0+1 = 13). Odd number is an integer which is not a multiple of two. If it is "divided"
C++ Programming Finds Length of Strings -
To find the length of the string in 'C++', ask to enter the string and then Find the Length the that string using function "strlen()" of string.h library and display the length value of a string
Code Sum of two One-Dimensional Arrays -
Computes the sum of two one-dimensional arrays using malloc. The program allocates 2 one-dimentional arrays using malloc() call and then does the addition and stores the...
Code print the address of array elements -
For loop to print value and address of each element of array. Just to demonstrate that the array elements are stored in contiguous locations, I am displaying the addresses in...
C++ Sample Passing Pointers to Functions -
"In C++", each 'parameter' was followed by an "ampersand sign" (&). (&) will pass an address of the original variable instead of by value. In Passed by reference, the original variable and
Finds Strongly Connected Components in -
This is a C++ program "Displays the Nodes" which are strongly connected to each other. Strongly connected subgraphs are those in which a path is available from any node of