Java Programming Code Examples
Java > Learning Code Examples
Pre and post increment operators
Program to Find the Biggest of 3 Numbers -
This program takes the 3 numbers & finds the biggest among all. Take the three numbers as input and Check the First number if it Greater than other two. Repeat the step 2 for other 2
Implement Prims algorithm using greedy -
C Program code implement prims algorithm using greedy method. For first smallest edge. We have fist smallest edge in graph. We have to find min dis of each vertex from either...
Calculate the Sum of the Elements of each -
Program code take the MxN matrix as input. Define two functions separately for row sum and column sum. Use for loops to calculate the sum of the elements of each row and...
Define and use Global variables in C code -
C program code example to Define and use Global variables. Declare a global variable. Function prototypes. Hiding the global count. Function t1 using global variable. Function...
Searchs Specified File Specified Character -
C programming language code to search specified file for specified character. See if correct number of command line arguments. Opening file for input and look for character.
C++ Programming Copy Strings & Display -
To copy string in C++ language, enter a string to "make copy" to another variable say str2 of same type using Function strcpy() and display the copied string on the screen as shown here
Find Frequency of Each Character in String -
C Program code to 'Count Frequency' of each character in a string Using Loop. There are so many algorithms to Count Frequency of each character. Here I'm explaining the easiest one
C++ Performing Edge Coloring of a Graph -
In graph theory, an "edge coloring" of a graph is an assignment of colors to the edges of the graph so that no two adjacent edges have the same color. Any "2 edges" connected to same