cihm / javaGuidelines

javaGuidelines
0 stars 1 forks source link

String compare #1

Open cihm opened 9 years ago

cihm commented 9 years ago

String test; if(test.equals("targer") ) X if("target" .equals(tset) ) O recommend //if test = null , line 1 will nullPointerError,
//Never happened before because declare well