Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java
(view source)
Revision as of 04:25, 26 March 2015
165 bytes added
,
04:25, 26 March 2015
→User Input
Line 81:
Line 81:
String line = myInput.nextLine();
String line = myInput.nextLine();
System.out.println("You entered: " + line);
System.out.println("You entered: " + line);
+
+
System.out.println("Enter a number: ");
+
int value = myInput.nextInt();
+
System.out.println("You entered: " + value);
}
}
}</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