Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AbstractStringBuilder is not visible

 
sreejith panampilly
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when compiling the following code i am getting a compiler error "The type AbstractStringBuilder is not visible"

StringBuffer sb=new StringBuffer();
sb.append("one").append("two");
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15435
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is not caused by those two lines of code directly. Please show us some more of your code. The compiler tells you exactly in which line of code the error occurs - have a good look at that line of code in your source file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic