try
07-20-2007, 03:46 PM
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
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