Question: Java netbeans Exercise#1 Write a method that takes a stack of characters as a parameter and replaces each lower case letter by its upper case
Exercise#1 Write a method that takes a stack of characters as a parameter and replaces each lower case letter by its upper case keeping the original sequence of the letters in the stack. Note that the method is not required to print the elements of the stack. Test your method by storing a string of characters into a stack, call the method to change lowercase letters into uppercase, then print the content of the stack from main ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
