Char Array Java

Char Array Java


Two arrays are mostly used in programming – String array and Char array. Following program shows the initialization of a character array and also shows how to create an empty array.
Example on Char Array


Char Array
Output screen on Char Array Java

To print the elements new for loop of Java 5 is used.

Know also int array declaration, assignment and initialization.

Leave a Reply

Your email address will not be published. Required fields are marked *