Error in sling Servlet
I tried using java datetimeformatter for some date manipulation in a sling servlet and ended up with the following error. I think the import statement is also correct. [import java.time.format.DateTimeFormatter;]
Error :
Only a type can be imported. java.time.format.DateTimeFormatter resolves to a package
Request your suggestions. Thanks in advance. :)