I am working with StringBuffer. Using NetBeans 8.1 IDE.
Code I wrote:
package stringbuffer;
import java.lang.*;
public class StringBuffer {
public static void main(String[] args) {
StringBuffer sb=new StringBuffer("hello");
}
}
But this is showing error like this:
What's my problem?

StringBufferis an actual Java class, and your IDE is confused. Change the name of your class to something else.