How I Print pyramid reverse : my code print this 
       1
      123
     12345
    1234567

                    int a = 1;
                    int b = 4;
                    for (int i = 1 ; i <= 4 ; i++){
                        for (int c = 1 ; c <= b - 1 ; c++){
                            text.append("  ");
                        }
                        for (int k = 1 ; k <= a ; k++){
                            String result = String.valueOf(k);
                            text.append(result);
                        }
                        a = a + 2;
                        b--;
                        text.append("\n");
                    }




but i have to print this type of number
     1234567
      12345
       123
        1

please advice