Results 1 to 15 of 15

Thread: [RESOLVED] Split String into Array

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2007
    Location
    England
    Posts
    61

    Resolved [RESOLVED] Split String into Array

    Hey,

    I've written this code to split the string defined in 'encodedPasswd'.

    Any idea how I would get each segment into seperrate Arrays which can be called in another part of the code?

    Code:
    String encodedPasswd = "00f1,0021,0041,0076,0007,00a7,00c7,00f1";
    String split[] = encodedPasswd.split(",");
    for (int cnt = 0; cnt < split.length; cnt++)
    {
    System.out.println(split[cnt]);	
    }
    Cheers for your help guys
    Last edited by DonCash; Jul 11th, 2007 at 06:26 AM. Reason: Resolved that mother!

Posting Permissions

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



Click Here to Expand Forum to Full Width