Solved

char[ ] to String conversion

Posted on 1998-11-12
2
200 Views
Last Modified: 2012-05-04
What is the best way for me to convert a character array to a String???  A quick answer would sure be appreciated.
0
Comment
Question by:2djohn
2 Comments
 
LVL 6

Accepted Solution

by:
gadio earned 50 total points
ID: 1227276
try this:

char a[] = new char[10];



String str = new String(a);
0
 

Author Comment

by:2djohn
ID: 1227277
Great- I figured it would be something simple... I hate string manipulation in any language.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is there a simpler dropbox system? 10 34
Fast way to search item into Java Array (Rhino compatible) 2 31
hashmap order 17 37
passing enum to a method 4 23
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question