I guys and girls - im a MrScruff and found your forums when searching for some java problems. It looked like a nice place so i decided to join up! Heres my first java question which has had me perplexed for 2 days considering im sure it should be simple.
All i want to do is convert an array of ints - into one long string with spaces between each int (so i can tokenize this in a decryption method im making):
for(int h = 0;h<emptyArray.length;)
{
textArray[h] = emptyArray[h];
System.out.println("Char"+h+"]: "+textArray[h]);
h++;
}
//char[] cArray = .toCharArray();
//encryption = cArray.toString();
encryption = new String(tempArray);
System.out.println(encryption);
return encryption;
This code is a bit messed up as i was wondering if i should convert it to a char Array first. But anyway Encryption is the string i want to return, emptyArray is the array of ints.
Any ideas and thanksfor any help - and i hope i posted ok :)