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 23:19

Something i hate about java? The ternary operator... Why the fuck would they make it only be allowed if you were returning a value to a variable. Why couldn't they of made it so you can use it for shot if+else statements with no return.

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