I am trying to create a pattern using java which looks something like picture below. can someone please correct tell me whats the wrong with my code : 

 [enter image description here][1]

    package welcome;
    
    import java.util.Scanner;
     
    public class Welcome
    {
        public static void main(String args[])
        {
    Scanner sc= new Scanner(System.in);
    
    System.out.println("enter the rows");
    int rows= sc.nextInt();
    System.out.println("here is the pattern");
    int i, j, k=1;
            
            for(i=1; i<=rows; i++)
            {
                for(j=1; j<=k; j++)
                {
                    System.out.print("* " +j);
                }
                k = k + 2;
                System.out.println();
            }
        }
    }


  [1]: https://i.stack.imgur.com/SSlzW.jpg
results are something like this
here is the pattern
* 1
* 1* 2* 3
* 1* 2* 3* 4* 5
* 1* 2* 3* 4* 5* 6* 7
* 1* 2* 3* 4* 5* 6* 7* 8* 9
