Write a method called printAcronym that accepts a String as its parameter and prints the first letter of each word of the string as an acronym. For example, the call of printAcronym("Breath of the Wild") should print "BotW". You may assume that the string contains at least one word and does not have any surrounding whitespace at its start or end.
This is a method problem. Write a Java method as described. Do not write a complete program or class; just the method(s) above.
IN JAVA PLEASE!
JAVA CODE : import java.util.*; public class Main {     public static void printAcronym(String str)     {         System.out.print("Acronym : ");         String str1[] = str.split(" "); // split the function with spaces         for(String str2 : str1)         {             System.out.print(str2.charAt(0) + ""); // printing first character of the each string in string array         }     } &# ... See the full answer