There is a slight part of my program that is not working correctly and I just cannot work out why
String KEY = "hello"
for (int h = 0; h < message.length(); h++)
{
keyWord += KEY.charAt(h);
}
Once I run the loop the keyWord string does not hold the letters it should of hello, but if I bypass it and just use KEY in my program it will work fine.
Could someone shed some light as to what I am doing wrong please?