These days, one of the Chinese Portal - Sina’s knowledge base search engine IAsk debut.
I am really interested in this new launched program. Their rules is very simple and straight forward. People can raise any kind of question here, and give some mark to that question to award the person who give the right(or […]
Archive for the 'Tech' Category
These days, when I’m reading some other guy’s code, I encounter some problem. In these code, I can read following codes:
JButton button = new JButton("OK");
button.setActionCommand("OK");
button.addActionListener(this);
……
actionPerformed(e) {
String s = e.getActionCommand();
if(s=="OK")
……
}
Look, it use “==” but not “equals” here. “Oh, it must be a bug!”, I told myself. […]
