Checking SyntaxHighlighter
public class CheckNulls {
//~ Methods -------------------------------------------
public static void main(String[] args) {
String s = null;
String t = null;
System.out.println(s == t);
try {
System.out.println(s.equals(t));
} catch (Exception e) {
// TODO: handle exception
}
}
}

0 Comments: