Question: Java program. Please help me to solve this problem. Thanks. Question1: Programming Fundamentals: Problem Statement: Description: Consider an input string array, inStrArr (String[i] containing dates

 Java program. Please help me to solve this problem. Thanks. Question1:

Java program. Please help me to solve this problem. Thanks.

Question1: Programming Fundamentals: Problem Statement: Description: Consider an input string array, inStrArr (String[i] containing dates in the format "dd/mm/yyyy/ as its input values. Write a Java method which takes inStrArr as input parameter and returns an outStrArr (String[]) as per logic given below: - For every element in the inStrArr. - Make a nejv string. str 1 by concatenating " dd " and " mm " of the date. - If "yyyy" can be obtained upon any circular rotation of str T, add the year to the outStrArr - Otherwise, add " X " (uppercase) to the outStrArr Example: inStrArr1: ("03/11/1103,"24/02/1991,"31/01/1031,"20/02/2002) Explanation: Now, the outStrArr will be {1103} Now, the outStrArr will be {1103,"X} Now, the outStrArr will be {1103,"X,XX} Now, the outStrArr will be ["1103", "X", "X", "2002"] Assumption: - inStrArr would not be empty Note: - No need to validate assumption

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!