Java Programming Code Examples
Java > JDBC Code Examples
Use The KMP Pattern Searching Algorithm -
Program performs a Pattern Searching using "KMP" 'Pattern Searching Algorithm'. Pattern searching is used for Finding the Existence of a Substring in a String. The pattern searching
Construct a Random Graph by the Method -
Generates a undirected random graph for the given number "edges and vertexes". The time complexity of this algorithm is O(v*e). Takes the input of the number of vertexes & edges
Code Checks a String is Palindrome or Not -
C Program to check Whether a given string is palindrome or not 'using recursion'. Program, with recursion, determines the entered string is a 'palindrome' or not. Palindrome is a word,
Find last Occurrence of Character in String -
C program to input any String from user and find the Last occurrence of a given character in the string. Input String from user, 'Store it' in some variable say 'str'. Declare a index =-1
C Language Passing Pointer to a Function -
Passing a Pointer to a Function in C language. When pass a Pointer as an Argument instead of a variable then the address of the variable is passed instead of the value. So any change
Demonstrate Working of Friend Functions -
A function or an entire class may be declared to be a friend of another class or function. A friend function can also be used for function overloading. Friend function declaration can
Implement Dijkstra's Algorithm Using Set -
This is a C++ Program to find "shortest path". Dijkstra's algorithm is very similar to Prim's algorithm for minimum spanning tree. Like "Prim's MST", we generate a SPT with given
Convert the Content of File to UpperCase -
If the status returned is 0 then the coversion of file content was completed successfully. If the status returnes is -1 then the conversion of file content was not done. Convert the file