amayaiscool9234 amayaiscool9234
  • 09-11-2020
  • Computers and Technology
contestada

Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.

Respuesta :

barackodam barackodam
  • 10-11-2020

Answer:

Explanation:

public class RecursiveCalls {

public static void backwardsAlphabet(char currLetter) {

if (currLetter == 'a') {

System.out.println(currLetter);

}

else {

System.out.print(currLetter + " ");

backwardsAlphabet(--currLetter);

}

return;

}

public static void main (String [] args) {

char startingLetter = '-';

startingLetter = 'z';

// Your solution goes here

backwardsAlphabet(startingLetter);

return;

}

}

Answer Link

Otras preguntas

what is 699,900 rounded to the nearest thousand
"defend the importance of science literacy from someone that doesnt want to learn science""compare and contrast science with pseudosience"
Muslim scholars and theologians organized Islam's moral rules into the ____, or code of law.
Muhammad left Mecca to live in Medina because __________.
roberto says that the opposite of a certain integer is -5.cindy concludes that the opposite of an integer is always negative.explain cindy's error
How do archaeologist help to uncover secrets
Simplify The Expression.9y - 2x - 4y +11x - 3x
How do archaeologist help to uncover secrets
What other careers did Hemingway have besides being a novelist?
read each aloud as you write the equivalent measures. A. 2.7km= ___________km______m B.3.46l= __________l_________ml C.5005kg=________kg_________g D. 8ml= _____