All java file classes want to see on output should contain public static void main(String[] args) and if you want to have some methods like you have on-screen you call them, but what I see more, from the picture, you are trying to call another method with just variable (user.getEmail()), my suggestion for you - In the beginning try to be very precise on what you writing, each detail is very important. With time you will figure out what you missed here