public class Main { public static void main(String[] args) { String s1 = "hello"; String s2 = s1; // TODO: print s1 and s2 // TODO: print s1.equals(s2) } }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion