Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions