Diamond/DaimondNumeric/java/DaimondNumeric.java
<gh_stars>0//JAVA PROGRAM TO PRINT THE FOLLOWING DAIMOND NUMERIC PATTERN
 /*
         1
        212
       32123
      4321234
       32123
        212
         1

  */

import java.util.Scanner;

public class DaimondNumeric
{
    public static void main(String[] args) {
        for (int i = 1; i <= 4; i++)
        {
            int n = 4;

            for (int j = 1; j<= n - i; j++) { System.out.print(" "); } for (int k = i; k >= 1; k--)
        {
            System.out.print(k);
        }
            for (int l = 2; l <= i; l++) { System.out.print(l); } System.out.println(); } for (int i = 3; i >= 1; i--)
        {
            int n = 3;

            for (int j = 0; j<= n - i; j++) { System.out.print(" "); } for (int k = i; k >= 1; k--)
        {
            System.out.print(k);
        }
            for (int l = 2; l <= i; l++)
            {
                System.out.print(l);
            }

            System.out.println();
        }

    }
}