加%s
你都知道输出a的时候,前面加%f输出s1的时候,怎么不知道加个%s
System.out.printf("employee name:%s\n",s1);
想要输出字符串要加占位符%s,即:
没有占位符,要%s