(15 points) Write one or more Java statements that print eac…

(15 points) Write one or more Java statements that print each integer in the range 1 through 47, inclusive, to the console, one integer per line.  Give two different versions of your solution: one using a while-loop, and the another using a using a for-loop. Be sure to declare any variables you use.