Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

java is broken

Name: Anonymous 2010-09-19 19:51

So i'm messing around with the keyListener for java and here's my method:

    public void keyPressed(KeyEvent x)
    {
        System.out.println(x.getKeyChar());
        System.out.println((int)x.getKeyChar());
        System.out.println(x.getKeyCode());
        System.out.println((char)x.getKeyCode());
        keys[(int)x.getKeyChar()]=1;
    }


my output

a
97
65
A




Is java really this broken?

Name: Anonymous 2010-09-19 20:24

Java is broken, but not for this reason. The fact that you're incapable of reading documentation isn't a problem with the language you're using.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List