# Java Programming Code Examples

## Java > Other Code Examples

### Reading message properties

Counts Occurrences of Character in String -
Program count all occurrences of a character in string using Loop. Input a string, store it in some variable "str". Input character to search occurrences and store it in some variable say

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...

Simple Program for Inline Functions Using -
An "Inline Function" is a function upon which the compiler has been requested to perform inline expansion. programmer has requested that the compiler insert the complete body of

C++ Find Closest Pair of Points in an Array -
Sort array of points according to X coordinate and Y coordinate. Find the distance between two points. And return the 'smallest distance' between 2 points. Find the 'distance' beween

C++ language Program to Implement Trie -
Program demonstrates the implementation of Trie. Trie node base declaration. Trie node declaration. Trie class declaration. Insert trie node. Destroy trie. Trie traversal. Clustering

C++ Program to Implement LeftList Heap -
In this, Merge rhs into the priority queue. rhs becomes empty. rhs must be different from this and Internal method to merge two roots. Deals with "deviant cases" and calls recursive

C Programming Codes Creating a PHP File -
Please enter the name of the file you wish to create. in the format myfile.php. Now enter a name for the counter file. Please enter the starting count. Create counterfile with the...

Converts Decimal to Hexadecimal Number -
C program input decimal number and convert to Hexadecimal number system. The Decimal number system is a base 10 number system. Decimal number system uses 10 symbols to...