[solved]-Given String Front First Four Characters String Converted Lowercase String Length Less Fou Q39093805
Given a string, the “front” is the first four characters of thestring, converted to lowercase. If the string length is less thanfour, the front is whatever is there(converted to lowercase).
Write a method called front4, which, when given a string as aparameter, will return a new string which is four copies of thefront of the parameter string.
( NOT ALLOWED TO USE IF-STATEMENTS)
For instance:
front4(“Java”) will return javajavajavajava
front4(“Program”) will return progprogprogprog
front4(“abc”) will return abcabcabcabc
front4(“ABCDE”) will return abcdabcdabcd
Expert Answer
Answer to Given a string, the “front” is the first four characters of the string, converted to lowercase. If the string length i… . . .
OR

