System.out.println("Length of the last word of the above string: "+length_Of_last_word(str1)); public static int length_Of_last_word(String str1) { ...
#Write a function responsible for reversing a string.