Question: whats the output? import java.util.Scanner; public class StringInputStream { public static void main ( String [ ] args ) { String item 1 Info =
whats the output? import java.util.Scanner;
public class StringInputStream
public static void mainString args
String itemInfo "Pencil ;
String itemInfo "Notebook ;
String itemInfo "Headphones ;
Scanner itemISS new ScanneritemInfo;
String item;
int quantity;
int price;
item itemISS.next;
quantity itemISS.nextInt;
price itemISS.nextInt;
System.out.printlnitem x quantity;
System.out.printPrice: price;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
