subject

JAVA...Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter. CODE BELOW
public class RecursiveCalls {
public static void backwardsAlphabet(char currLetter) {
if (currLetter == 'a') {
System. out. println(currLetter);
}
else {
System. out. print(currLetter + " ");
backwardsAlphabet(--currLetter);
}
}
public static void main (String [] args) {
char startingLetter;
startingLetter = 'z';
/* Your solution goes here */
}
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
question
Computers and Technology, 25.06.2019 20:40
Write a java program named charsindex to get the index of all the characters of the alphabet. ask user to input a string.the sample output was produced by this string: "the quick brown fox jumps over the lazy dog." sample output:
Answers: 3
question
Computers and Technology, 25.06.2019 22:20
Lenny wants to use his coworker's computer system. when he arrives at his coworker's workstation, the screen is blank. what could the issue be? the computer is not turned on. there is no internet connection. the keyboard is not functioning. the computer is in sleep mode.
Answers: 2
question
Computers and Technology, 26.06.2019 06:00
What are the three influences on the selection process
Answers: 1
You know the right answer?
JAVA...Write a statement that calls the recursive method backwardsAlphabet() with parameter starting...
Questions
question
Mathematics, 08.03.2021 19:30
question
Mathematics, 08.03.2021 19:30
question
Mathematics, 08.03.2021 19:30
question
Chemistry, 08.03.2021 19:30
Questions on the website: 13722360