Difference between java == and Equals

zhaozj2021-02-16  51

Public class testequal {

Public static void main (string [] args)

{

String s = "0";

System.out.Println ("s == '0'" s == "0");

System.out.println ("S.Equals ('0') S. Equals (" 0 "));

}

}

转载请注明原文地址:https://www.9cbs.com/read-18901.html

New Post(0)