打印任意边长的空心菱形
public class Diamond02 {
public static void main(String[] args) {
printDiamond02(4);
printDiamond02(3);
printDiamond02(2);
}
private static void printDiamond02(int num) {
for (int i = 1; i <= num; i++) {
for (int j = 1; j <= num - i; j++) {
System.out.print(" ");
}
for (int k = 1; k <=