Top Posters
Since Sunday
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
r
4
New Topic  
Kaevyn04 Kaevyn04
wrote...
Posts: 480
3 years ago
The following code fragment reads in two numbers:

Scanner input = new Scanner(System.in);
int i = input.nextInt();
double d = input.nextDouble();

What are the correct ways to enter these two numbers?

▸ Enter a numeric value with a decimal point, a space, an integer, and then the Enter key.

▸ Enter an integer, two spaces, a double value, and then the Enter key.

▸ Enter an integer, an Enter key, a double value, and then the Enter key.

▸ Enter an integer, a space, a double value, and then the Enter key.
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 48 times
1 Reply
Replies
Answer verified by a subject expert
Kailz1218Kailz1218
wrote...
Posts: 416
3 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

Kaevyn04 Author
wrote...

3 years ago
This calls for a celebration Person Raising Both Hands in Celebration
wrote...

Yesterday
Thank you, thank you, thank you!
wrote...

2 hours ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1208 People Browsing
Related Images
  
 708
  
 1005
  
 392
Your Opinion
What's your favorite funny biology word?
Votes: 328