public class TestInteger {

/**
 * Method main
 *
 *
 * @param args
 *
 */
public static void main(String[] args) {
// TODO: Add your code here
int w = new Integer(args[0]).intValue(); //问这句后面不加 intValue()这个方法。为什么打印的结果还能实现。
//int w = new Integer(args[0]).intValue();
//int h = Integer.parseInt(args[1]);
int h = Integer.valueOf(args[1]).intValue();
  // System.out.println(in.byteValue());
for(int i=0;i<h;i++)
{
StringBuffer sb = new StringBuffer();
for(int j=0;j<w;j++)
{
sb.append("*");

}
System.out.println(sb.toString());//不加toString()方法为什么也能转换成字符串打印出来?
  } }
}