import java.util.Scanner;
class Test {
x09public static void main(String[] args) {
x09x09System.out.print("请输入正方形的边长(整数):");
x09x09int a = 0;
x09x09try {
x09x09x09a = new Scanner(System.in).nextInt();
x09x09x09System.out.println("周长:" + (4 * a));
x09x09x09System.out.println("面积:" + (a * a));
x09x09} catch(Exception ex) {
x09x09x09System.out.println("您输入的不是整数,程序退出");
x09x09}
x09}
}