public static void main(String[] args) { StringBuffer buffer1 = new StringBuffer("javachamp"); StringBuffer buffer2 = new StringBuffer(buffer1); if (buffer1.equals(buffer2)) System.out.println("true"); else System.out.println("false"); }
StringBuffer buffer1 = new StringBuffer("javachamp");
StringBuffer buffer2 = new StringBuffer(buffer1);
if (buffer1.equals(buffer2))
System.out.println("true");
else
System.out.println("false");
}
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.