You are given an array of chars and a boolean variable called upper. If upper is true, return the number of characters t
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
You are given an array of chars and a boolean variable called upper. If upper is true, return the number of characters t
You are given an array of chars and a boolean variable called upper. If upper is true, return the number of characters that are upper case. If upper is false, return the number of characters that are lower case. upperLower(["a", "A"], true) - 1 upperLower(["a", "A"], false) - 1 upperLower(["a", "A", "A"], true) - 2 Go ...Save, Compile, Run (ctrl-enter) public int upper Lower (String[] letters, boolean upper) {
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!