package com.ups;

import static spark.Spark.*;

public class DemoApplicationexample {
    public static void main(String[] args) {
        //get("/hello", (req, res) -> "Hello World");
        System.out.println("Hello World");
    }
}

package com.ups;

import static spark.Spark.*;

public class DemoApplicationexample {
    public static void main(String[] args) {
        get("/hello", (req, res) -> "Hello World");
        System.out.println("Hello World");
    }
}

Update DemoApplicationexample.java