How to Get Input from a User in Java (with Pictures) - wikiHow
Java Scanner findInLine(String pattern) method example
Question: Print the numbers starting 1 to 2n, based on the number n that you provide an input in the form of a wave. You can see that the numbers are in