first time asking, need a little help here on java loop : Can anyone please tell me which part output the number in front of the * signs?
is it the methods or the output?

import java.util.*;

public class PrintTriangle3 {
	public static void main(String [] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println("enter number");

		int number = sc.nextInt();

		int i = 1;
		while( i <= number)
		{

		System.out.println(printLine(number));
		number--;
		}
		i++;

	}

	public static int printLine(int number)
		{
		for(int j = 1; j <= number; j++)
			{
				System.out.print("*");

			}
			return number;
		}



}