Java program to print stars and number pyramid in a single pattern program

Java program to print stars and number pyramid in a single pattern program. This program will print the number and star together in a single program. It will print the number and star in a single output and also it will print a structure in the program like a pyramid for stars and numbers for outer side of the stars

public class Main
{
public static void main(String[] args)
{
int lines=6;
int i,j,k,l;
int space=0;
for(i=0;i<lines;i++)
{
for(j=1;j<=space;j++)
{
System.out.print(" ");
}
for(j=1;j<=lines;j++)
{
if(j<=(lines-i))
System.out.print(j);
else
System.out.print("*");
}
j--;
while(j>0){
if(j>lines-i)
System.out.print("*");
else
System.out.print(j);
j--;
}
if((lines-i)>10)
space=space+1;
System.out.println("");
}
}
}

123456654321
12345**54321
1234****4321
123******321
12********21
1**********1