How to make a java program, user input letter and the programs have to determines first character and last character are number or letter?

The output should be :

Input: Ecommercei4

First : Letter

Last : Number

The first Character are E so the first character can determine as Letter. The last Character are 4 so the last Character can determine as Numbers.

The code i use is there's 4 errors, the || is one of the errors, how you fix it? thank you and the others in Else statement, how the Else format if this programs just have two answer for each Question (first and last character) that is Number and Letter? Please Help thank you

.