StringBuilder method is not working in my eclipse

package String;
import java.lang.StringBuilder;
import java.util.Scanner;

public class StringBuilder {

public static void main(String[] args) {
	// TODO Auto-generated method stub
	Scanner sc = new Scanner(System.in);
	
	
	
	StringBuilder sb=new StringBuilder();  
	sb.append("Java");//now original string is changed  
	System.out.println(sb);//prints Java  
	
	
}

}

@Jai_hind hi make the class name something else, you cannot use Java keywords as it is in custom classes.

thank you ma’am thank you so much…

1 Like

Please mark your doubt as resolved :slight_smile:

I have marked…

1 Like