Top Posters
Since Sunday
1
New Topic  
Kaevyn04 Kaevyn04
wrote...
Posts: 480
5 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 110 times
1 Reply
Replies
Answer verified by a subject expert
Kailz1218Kailz1218
wrote...
Posts: 416
5 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...

5 years ago
This helped my grade so much Perfect
wrote...

Yesterday
Thanks
wrote...

2 hours ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  2115 People Browsing
(21:14:13) (527183): e[b][/b]
(21:14:17) (527183): e[b][/b]
(21:14:23) (527183): e[b][/b]
(21:14:29) (527183): e[b][/b]
(21:15:20) (527183): e[b][/b]
(21:15:25) (527183): e[b][/b]
(21:15:36) (527183): e[b][/b]
(21:17:21) (527183): -1' OR 3*2<(0+5+55​9-559) or 'BmwHjP30'='
(21:17:22) (527183): -1" OR 2+820-820-1​=0+0+0+1 --
(21:18:24) (527183): 1'"
Show Emoticons
:):(;):P:D:|:O:?:nerd:8o:glasses::-):-(:-*O:-D>:-D:o):idea::important::help::error::warning::favorite:
Related Images
  
 872
  
 453
  
 483
Your Opinion
Do you believe in global warming?
Votes: 782