hi i'm trying to print a simple "hello world" with Javalin in my local host but i keep getting this error "Cannot resolve method 'result(java.lang.String)'"and i don't know how to fix it and this is my code with i copied it from Javalin doc page.
import io.javalin.Javalin;
public class HelloWorld {
public static void main(String[] args) {
var app = Javalin.create(/*config*/)
.get("/", ctx -> ctx.result("Hello World"))
.start(7080);
}
}
i have tried importing different libraries but none of them worked.