Question: need answer Java8 Complete an implementation of a function solution, that should return a string describing first character of the given string: digit for a


need answer Java8
Complete an implementation of a function solution, that should return a string describing first character of the given string: "digit" for a digit, "1ower" for a lowercase letter, "upper" for an uppercase letter and "other" for other characters. You can assume the characters are ASCII. Copyright 2009-2023 by Codility Limited. All Rights Reserved. Unauthorized copying. publication or disclosure prohibited. class Solution \{ public String solution(String s) \{ char c = s.charAt(0); if \} relse if "upper"; return "lower"; \} else if return "digit"; \} else \{ return "other"; \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
