Try:
String User = Character.toString(e.getKeyChar());
for(int j = 0; j < str[no].length(); j++){
if(User == text[j])
Though I'd suspect that
String User = Character.toString(e.getKeyChar());
for(int j = 0; j < text.length(); j++){
if(User == text[j])
Would be a better idea.