![](https://lstatic.shangxueba.com/jiandati/h5/images/m_q_title.png)
根据题目要求将程序补充完整,提交补好的整个程序(每空...
根据题目要求将程序补充完整,提交补好的整个程序(每空2分,共8分) 题目要求: 将一批单词存入一个字符串数组中,例如: {"work","want","you","kind","hint","int","with","win"} (1) 统计单词中含“in”字符串的单词个数。 (2) 统计以字母'w'开头的单词个数。 public class Test2{ public static void main(String args[]) { String x[]={"work","want","you","kind","hint","int","with","win"}; int count1= 【1】 ; int count2 = 0; for (int k=0; k < x. 【2】 ;k++) { if (x[k].indexOf("in") != 【3】 ) count1++; if (x[k]. 【4】 ) count2++; } System.out.println("含串in的单词个数="+count1); System.out.println("以字母w开头单词个数="+count2); } }