Exception in thread “main” java.lang.Error: Unresolved compilation problem:
The method setCharAt(int, char) in the type AbstractStringBuilder is not applicable for the arguments (int, String)
at StringNStringBuilder.StringBuilderDemo.main(StringBuilderDemo.java:10)
when i run line given below
System.out.println(sb.setCharAt(2,“W”));
the error is coming which is stated above