Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java
(view source)
Revision as of 04:27, 26 March 2015
173 bytes added
,
04:27, 26 March 2015
→User Input
Line 85:
Line 85:
int value = myInput.nextInt();
int value = myInput.nextInt();
System.out.println("You entered: " + value);
System.out.println("You entered: " + value);
+
+
System.out.println("Enter a number: ");
+
double dvalue = myInput.nextDouble();
+
System.out.println("You entered: " + dvalue);
}
}
}</source>
}</source>
*Note: Ctrl + Shift + O in eclipse adds all the imports you need.
*Note: Ctrl + Shift + O in eclipse adds all the imports you need.
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version