Question: java please Write a method called method4 that accepts a string as its parameter and returns a character (last letter of the parameter). For example,
java please
Write a method called method4 that accepts a string as its parameter and returns a character (last letter of the parameter). For example, method5 ("abcd") should return 'd' method5 ("EFg") should return 'g'. If the parameter has less than 1 character, return 'X' Note that the method return type should be char
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
