How to convert Char Array to String in java

There are multiple ways to convert Char Array to String in java.

Some of them are:

  • Using String class’s constructor (By passing Char array to contructor)
  • Using String class’s valueOf method
  • Using iterating char array

Example:

When you run above program, you will get below output

Other String Programs are :

Was this post helpful?

Leave a Reply

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