How to convert a char array into an int in C++?

How to convert a char array to a string?

  • Answer:

    What language? Whatever language it is, just google "how to convert a char array to a string in x language"

Shahid Z at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

I'll assume Java (based on the fact you mentioned "JPasswordField"). If you have a char array and you want to convert that into a String, you can simply use the String constructor, for example: char[] myChars = { 'a', 'b', 'c' }; String myCharsAsAString = new String(myChars); If you're going the other way around, use the toCharArray method of the String class: myCharsAsAString.toCharArray(); // returns a character array of the string

J

I'll assume Java (based on the fact you mentioned "JPasswordField"). If you have a char array and you want to convert that into a String, you can simply use the String constructor, for example: char[] myChars = { 'a', 'b', 'c' }; String myCharsAsAString = new String(myChars); If you're going the other way around, use the toCharArray method of the String class: myCharsAsAString.toCharArray(); // returns a character array of the string

J

What language? Whatever language it is, just google "how to convert a char array to a string in x language"

Igotrepo...

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.