Java pattern programs to print the star in between of the numbers

Java pattern programs to print the star in between of the numbers. This java pattern program will print the star pattern in between of the number pattern. 

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

}

}

5432*
543*1
54*21
5*321
*4321