Results 1 to 2 of 2
  1. #1
    trill is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Char to String in java

    Hi, can someone help me convert a char array to a string?
    Thanks.

  2. #2
    shanePreater is offline Member
    Join Date
    Jul 2007
    Location
    England, Bath
    Posts
    47
    Rep Power
    0

    Default

    Umm I think I maybe missing something here so if this is not what you meant please provide a bit more info but to convert char[] -> String you would do:
    Java Code:
    char[] chars = "onevision";
    String covertedChars = new String(chars);

Similar Threads

  1. How can i insert a char into a string
    By Jamie in forum New To Java
    Replies: 8
    Last Post: 02-17-2011, 09:59 PM
  2. Replies: 2
    Last Post: 09-18-2008, 08:30 AM
  3. Cannot convert from char to String error
    By sondratheloser in forum New To Java
    Replies: 1
    Last Post: 12-13-2007, 10:28 PM
  4. Replies: 0
    Last Post: 11-20-2007, 05:59 PM
  5. Help with, String, Char
    By lenny in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •