Question: String inputWord and integer furnitureNumber are read from input. Write a loop that iterates while furnitureNumber is between 7 0 and 9 5 , both

String inputWord and integer furnitureNumber are read from input. Write a loop that iterates while furnitureNumber is between 70 and 95, both exclusive. In each iteration of the loop:
Read string inputWord from input.
Read integer furnitureNumber from input.
Click here for example
import java.util.Scanner;
public class PairedDataProcessing {
public static void main(String[] args){
Scanner scnr = new Scanner(System.in);
String inputWord;
int furnitureNumber;
inputWord = scnr.next();
furnitureNumber = scnr.nextInt();
System.out.println(inputWord +": needs attention!");
}
}

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!