public class Tester { public static void main(String[] args) { String str = "java"; StringBuffer sb = new StringBuffer("javachamp"); sb.insert(9, ".com"); str.concat("champ"); if (sb.length() < 6 || str.equals("javachamp")) { System.out.print(sb); } sb.delete(2, 7); System.out.print(sb); } }
public static void main(String[] args) {
String str = "java";
StringBuffer sb = new StringBuffer("javachamp");
sb.insert(9, ".com");
str.concat("champ");
if (sb.length() < 6 || str.equals("javachamp")) {
System.out.print(sb);
}
sb.delete(2, 7);
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.