Write a subroutine called TOLOWER This takes an input argume

Write a subroutine called TOLOWER. This takes an input argument of R0 holding the address of aproperly terminated string. It will modify the string such that all uppercase characters will be lowercase.

Solution

I know subroutines in Java programming language. subroutine is set of lines of codes which do some specific work or processing. so here in the below code i have made a subroutine i.e. method(TOLOWER) which will lower case each and every chracters of the string.

For making aal the characters of string to uppercase just excahnge the line RO.toLowerCase() to RO.toUpperCase() in TOLOWER subroutine.

public class ToUpperCase {

   public static void main(String args[]) {
   String Str = new String(\"Hello World\");

   System.out.print(\"Return Value :\");
   ToUpperCase obj = new ToUpperCase();
   obj.TOLOWER(Str);
   }

void TOLOWER(String RO){
   RO = RO.toLowerCase();
   System.out.println(RO);
}
}

Write a subroutine called TOLOWER. This takes an input argument of R0 holding the address of aproperly terminated string. It will modify the string such that al

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site