lets say i want to print out odd numbers from 1 to 10. but it will make a new line every 3rd number. How would you control the number of items you can print on each line in java console. 

Here's my code so far,

```
public static void main(String[] args) 
{
    Scanner input = new Scanner(System.in);

    int z,t;
    System.out.println("Enter two numbers: ");
    z = input.nextInt();
    t = input.nextInt();

    humbala(z,t);

}

public static void humbala ( int x, int y)
{

    for(int a; x < y; x++)
    {
        if(x % 2 !=0 )
        {
            System.out.print(x+ " ");

            for (int i=0; i<y; i++)
            {
                if(i > 3)
                {
                System.out.println();
                }
                i = 0;

            }

        }

    }

}

```

}

my for loop is a bit weird. i have a counter variable a but never really used it but it's working anyway. the thing is, if I put x , I get an error saying it's a duplicate
I'm thinking, I should make an array. so that every 3rd index, I can print out a new line
but I can't translate it to code