Author: codebun

Write a java program to validate a string

Write a java program to validate a string. Write a program to read two strings and check whether or not they have dashes in the same places. Print “Yes” if the condition satisfies, else print “No”. The return type (Integer) should return 1 if all dashes are placed correctly, else return 2. Note: The strings must