Please post your code in code tags, not screenshots. Also please make you title more descriptive of what problem you have. Everyone who comes to this forum invariably needs help, but you are not giving us a short summary of what you need help with. Additionally, in your description, you need to tell us more than just "Help me, pls", and "After writing method it must be like this."
More often than not, if a person is unable to describe their problem in detail, it's the first sign that the person has not actually thought through the problem and just started slapping code on screen hoping something would work.