Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions