String s=String.format("%d*%d=%2d",i+1,j+1,ad[i][j]); /*在eclipse中format出现错误,错误提示是The method format(String, Object[]) in the type String is not applicable for the arguments (String, int, int, String) */ ad[i][j]=s; System.out.print(s); //加粗的是我的代码
添加回答
举报
0/150
提交
取消