There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.
Sorry but we don't give away codes here the rule states Do provide evidence of having done some work yourself if posting questions from school or work assignments.
We can help you if you have specific questions on your code or if you need advice on what to do next
Anyway these are simple tasks where you only need to use the charAt method from the string class at the first index of your first application and a simple math equation for the second