I have tried some variations and i of course imported the class which contains the boolean method i meed in my Servlet, but it doesnt see the method anyway.
this is the method in my class logIN:
        MyCon = Database.getConnection();
        boolean result = false;
        Statement statement = null;
        ResultSet resultSet = null;
        try {
            String sql = "SELECT * FROM input_form WHERE username ='"+username+"'AND password='"+password+"'";
            statement=MyCon.createStatement();
            resultSet = statement.executeQuery(sql);
            if (resultSet.next()) {
                result=true;
            }else {
                result = false;
            }
        } catch (SQLException e) {
        }
        return result;
    }
} ```
And when i need to access that method in servlet, it doesnt see it :
 ```protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        response.setContentType("text/html/charset-UTF-8");
        out =response.getWriter();
        boolean login = processLogin(username,password);  //this is where it doesnt see it
         ```
what could i do for my servlet to see the method?
 
    