+91-85006-22255
Write a program to print the reverse of the each word of the sentence
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; } }
Topic: Additional String Methods in Java
Read this topic Take test on this topic
Open In App