Menu
Question Index
...

Write a program to print the reverse of the each word of the sentence

Input String Output String
sun rises in the east nus sesir ni eht tsae
I am a handsome person I ma a emosdnah nosrep
{} EMPTY STRING null
null - NULL STRING null



class PrintReverseOfTheWordInSentence
{
    public static void main(String s[])
    {
        String inputString = "sun rises in the east";
        String result = printReverseOfTheWordInSentence(inputString);
        System.out.println("The output should be : "+ result);

    }


        public static String printReverseOfTheWordInSentence(String inputString)
        {
            String result = null;
            return result;
        }

}

Doubts

Problems

Topic: Additional String Methods in Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App