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); //加粗的是我的代码
木容锋
一条小咸鱼
rookie2maven
相关分类