Home > Net >  StringBuilder insert in Java compile issues
StringBuilder insert in Java compile issues

Time:02-10

I am trying to take the following String below and change it to "Jill and Jack went up the hill."

I am getting the error:

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

Here is my code:

StringBuilder sb1 = new StringBuilder("Jack and Jill went up the hill.");    
sb1.insert(0, "Jill and ");

CodePudding user response:

  •  Tags:  
  • Related