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

MARKING BRAINLIEST image attached
Ella Fitzgerald Two of her nicknames were "The First Lady of ___!" and "----_of Jazz." She was famous for improvisational ability, particularly scat singing. On
Who is Sam water is wide
where is 1/2x- y = 2 on a graph
a baker decorates 42 cupcakes in 30 minutes how many cupcake can the baker decorate per minutes?
What best describes white light as it travels through a prism? Check all that apply. The light slows down. The light bends in the prism. Light reflects off of t
lol get got shes my wife now
positive work done in your community​
Which process is related to immune cells developing from stem cells? homeopathy hematopoiesis hemostasis heterogeneity​
At a certain temperature, a saturated solution of lead chromate (PbCrO4) has 4.33 x 10-6 g dissolved in 100 mL of water, a concentration of 1.34 x 10-7 M PbCrO4