The following method takes a string as parameter and return the expected output. Pretty Simple
private String getAcronym(String input) {
String[] splits = input.split(" ");
String result = "";
for(int i=0;i<splits.length;i++){>
result += splits[i].substring(0, 1);
}
return result;
}