Menu
Question Index
...


Write a program to make alternate case as upper and lower in the character array.

Input(char Array) Output(char Array)
{'s', 'u', 'n', 'f', 'l', 'o', 'w', 'e', 'r'} {'S', 'u', 'N', 'f', 'L', 'o', 'W', 'e', 'R'}
{'A', 'E', 'R', 'O', 'P', 'L', 'A', 'N', 'E'} {'A', 'e', 'R', 'o', 'P', 'l', 'A', 'n', 'E'}
{'N', 'E', 'w', 'S', 'p', 'A', 'p', 'E', 'R'} {'N', 'e', 'W','s', 'P', 'a', 'P', 'e', 'R'}

class AlternateCase

{    public static void main(String s[])
    {
        char inputArray[] = {'s', 'u', 'n', 'f', 'l', 'o', 'w', 'e', 'r'};
        char outputArray[] = alternateCase(inputArray);
        System.out.print("The output will be: ");
        for (char element : outputArray)
        {
            System.out.print(element + ",");
        }

    }


public static char[] alternateCase(char[] input)
{
//Write a program to make alternate case as upper and lower in character array and return it.
}
}

Doubts

Problems

Topic: Unknown

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App