Write a Java program that prompts the user to enter 3 strings, and displays the largest common prefix of the three strings.If there is a common prefix display the percentage the common prefix is of the longest string. For example if the largest string is 20 letters and the common prefix is 5 letters then the common prefix is 25% of the longest string. Do not include spaces in that determination.Display a message if there are no common prefixes.Must be in .java format.
Write a Java program that prompts the user to enter 3 string
Tags:Homework Help