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;
}
>>4
Hm, is there a reference /anus/ thread enumerating all of Java's shortcomings? I'd love to give a good (re-)read.
Name:
Anonymous2010-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.