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
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:
- How to replace a string inside of a Word Document?Best solution by Stack Overflow
- How can I convert a string number to a number in Perl?Best solution by Stack Overflow
- How can I evaluate an equation within a String?Best solution by stackoverflow.com
- How to convert a DC locomotive to a DCC locomotive?Best solution by Yahoo! Answers
- How to convert a .DMG file into a .EXE?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.