00:01
Hello students, here is the java class called as hw2 that contains the required methods as here that contains several methods for processing, manipulating and this string.
00:15
So as the blank words this method takes an input string returns a new string where any word in the input string has all but the first and the last letters replaced by the underscore.
00:29
They are replaced by the underscore character.
00:32
So as it iterates through the input string identifying the words based on the consecutive letters and replace the internal character with the dash.
00:42
So as the truncate after this method takes a desired length and input string.
00:51
So it truncates the input string at the first legal spot that ensures the output string has at least desired length.
01:00
So the truncation can occurs at the spaces or the hyphens.
01:04
So if the truncation occurs at the space, the space is not indicated in the output.
01:09
So if they are as you can see as the truncation occurs at the hyphens.
01:17
So the hyphen is indicated in output...