Menu
Question Index
...

Write a program to convert all letters in a character array to lower case

Input(char Array) Output(char Array)
{'E', 'N', 'G', 'I', 'N', 'E', 'E', 'R', 'I', 'N', 'G'} {'e', 'n', 'g', 'i', 'n', 'e', 'e', 'r', 'i', 'n', 'g'}
{'H', 'y', 'd', 'E', 'R', 'a', 'B', 'A', 'D'} {'h', 'y', 'd', 'e', 'r', 'a', 'b', 'a', 'd'}
{'r', 'o', 's', 'e'} {'r', 'o', 's', 'e'}



class ConvertToLowerCase
{
    public static void main(String s[])
    {
        char[] inputArray = {'G', 'O', 'O', 'D', 'M', 'O', 'R', 'N', 'I', 'N', 'G'};
        char[] outputArray = convertToLowerCase(inputArray);
        System.out.print("The character array is " );
        for(int i = 0; i < outputArray.length; i++ )
        {
            System.out.print(outputArray[i] + ", ");
        }

    }


    public static char[] convertToLowerCase(char[] input)
    {
    }  

}

Doubts

Problems

Topic: Learn Arrays And Loops

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App