how to handle multiple key press in numeric keys
I have used the code from eta . Code is somethg like tis
lastKeyPress = System.currentTimeMillis();
.
..
.
protected void keyPressed(int keyCode){
boolean keyRepeated = false;
if(System.currentTimeMillis() - lastKeyPress < 1000 &&
lastKey == keyCode) {
keyRepeated = true;
lastKey = keyCode;
}
lastKeyPress = System.currentTimeMillis();
switch(keyCode) {
case KEY_NUM0 :
case KEY_NUM1 :
case KEY_NUM2 :
case KEY_NUM3 :
case KEY_NUM4 :
case KEY_NUM5 :
case KEY_NUM6 :
case KEY_NUM7 :
case KEY_NUM8 :
case KEY_NUM9 :
case KEY_POUND :
System.out.println(keyCode);
System.out.println(keyRepeated + "Repeat");
But the 'keyRepeated ' always returning false. It doesnt satisfies the 'if' condition. So i m unable to differentiate btween 'a' ,'b' and 'c'. Pls any one take me to the correct solution

