CSC300: String Literal [7/23] Previous pageContentsNext page

Try java.lang.String

String x = "Hello";
String y = "Hello";
x=Hello, y=Hello
                  x==y : true
   Objects.equals(x,y) : true
           x.equals(y) : true
eqs01

Previous pageContentsNext page