Question: Hi I have a java programming assignment and I need help with how to make a scanner accept two values at the same time like

Hi I have a java programming assignment and I need help with how to make a scanner accept two values at the same time like the image that I have attached

(Write a Java program that prompts the user to enter a rectangle height H and width W validates the entered values are not less than 1. asks the user to enter two integers that represent a point (x, y). checks if the point falls inside the rectangle centered at (0, 0). )Hi I have a java programming assignment and I need help with

Enter the rectangle Hight and Width: 105 Enter a point with two coordinates: 22 Point (2,2) is in the rectangle Enter the rectangle Hight and Width: 105 Enter a point with two coordinates: 64 Point (6,4) is not in the rectangle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!