题解 | #简写单词#
简写单词
http://www.nowcoder.com/practice/0cfa856bf0d649b88f6260d878f35bb4
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String[] strs = str.split(" "); StringBuilder sb = new StringBuilder(); for(int i=0; i<strs.length; i++){ sb.append(strs[i].charAt(0)+""); } System.out.println(sb.toString().toUpperCase()); } }