I need to put in something so that when the computer asks the minimum and maximum of my values, it actually puts in those values. Unfortunately, I've gotten stuck and am unsure of what to do. Sorry, I am new to java and trying to learn it on my own.

Right now, the pattern only starts from 1 and ends at 10. However, I would like it to be so that when you type in "3 30," it starts at 3 and ends at 30.

This is what I have so far.

```
    public static void main(String[] args) {
        char operator;

        Scanner s= new Scanner(System.in);
        System.out.print("Enter initial value and maximum number: ");
        operator= s.next().charAt(0); 

        int i=1;
        while(i<=10){
            System.out.println(i);
            i++;
        }

        System.out.println();

        //do-while example
        int j=1;
        do{
            System.out.println(j);
            j++;
        }while(j<=10); 
    }

}

```