Problem 2
Write code segments to print the following values in a terminal window: a. A random integer between 1 and 20 , inclusive b. A random double between 1 and 10 , inclusive
Problem 3
What is the difference between an if statement and an if-else statement?
Problem 3
Explain why we need to use the methods Integer.parseInt and Double.parseDouble when receiving numeric input from an \(\mathrm{I} / 0\) dialog box.