package ee;
import lombok.Builder;
@Builder
public class BuilderExample {
public String foo;
public String ha;
}
package ee;
import ee.BuilderExample ;
public class Main{
public static void main(String a[]){
BuilderExample b=BuilderExample.builder().foo("hi").ha("anything").build();
}}
In this code it shows an error The method builder() is undefined for the type BuilderExample Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method builder() is undefined for the type BuilderExample showing an error like this why?