来自:http://hi.baidu.com/kmallow/blog/item/1dc8e0cd834d56510fb34593.html
Java – comparing strings
Use == for primitive data types like int
If (mystring == null)
Use the equals() method to compare objects
Use .equals for strings : if (a.equals(“cat”))
Java - Converting int to string
String myString = Integer.toString(my int value)
...Read More »