我有一个这样的字符串:
String programList = "List of programs: explorer.exe, conhost.exe, java.exe, something.exe..";
我想为自己的字符串创建每个具有“.exe”的单词,如下所示:
String program1 = "explorer.exe";
String program2 = "conhost.exe";
String program3 = "java.ex";
String program4 = "something.exe";