Program As follows: 1:/*
2:* Member methods without return values by printing pyramid exercises
3:*/
4:Package lesson4;
5:Public Class_ 3 printjinzita {
6:/**
7:* @ Param ARGs
8:*/
9:Public Static VoidMain (string [] ARGs ){
10:// Todo auto-generated method stub
11:Printjinzita myprintjinzita =NewPrintjinzita (9 );
12:Myprintjinzita. printhalf ();
13:Myprintjinzita. Print ();
14:}
15:}
16:// Print the pyramid class
17:ClassPrintjinzita {
18:// Define the print Layers
19:Private IntN = 0;
20:PublicPrintjinzita (IntN ){
21:This. N = N;
22:}
23:// Print the right half of the pyramid
24:Public VoidPrinthalf (){
25:For(IntI = 0; I <n; I ++ ){
26:For(IntJ = 0; j <I + 1; j ++ ){
27:System.Out. Print ("*");
28:}
29:System.Out. Println ();
30:}
31:}
32:// Print the pyramid
33:Public VoidPrint (){
34:IntHalf_n = (This. N * 2-1)/2;
35:For(IntI = 0; I <n; I ++ ){
36:For(IntL = 0; L
37:System.Out. Print ("");
38:}
39:For(IntK = 0; k <I; k ++ ){
40:System.Out. Print ("*");
41:}
42:For(IntJ = 0; j <I + 1; j ++ ){
43:System.Out. Print ("*");
44:}
45:System.Out. Println ();
46:}
47:}
48:}