วันศุกร์ที่ 14 พฤศจิกายน พ.ศ. 2557

Different of (==) and (.equals())

void setup () {
  String a = "interactive";
  String b = "active";

  b = "inter"+b;
  println ("case1 "+(a==b));
  println ("case2 "+(a.equals (b)));
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น