Asked inInMobi,Sdet

In a line where words are separated by spaces, , and capitalize first letter of the reversed word. Other letters of the word should be in small. Input : “how are you?” → Output: “Woh Era ?uoy”

AnswerBot
1y

The program takes a string as input and capitalizes the first letter of each reversed word while keeping the rest of the letters in lowercase.

  • Split the input string into an array of words using the sp...read more

Tarun
1y
public class reverseWithaCondition { // input: how are you? //Output: Woh Era ?uoy public static void main(String[] args) { String str = "how are you?"; reverseCap(str); } public static void reverseCa...read more
Tarun
1y

public class reverseWithaCondition {

// input: how are you?

//Output: Woh Era ?uoy

public static void main(String[] args) {

String str = "how are you?";

reverseCap(str);

}

public static void reverseCa...read more

Add answer anonymously...
InMobi Sdet Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter