javapants
Sunday, March 18, 2012
System.out.print(String)
DOWNLOAD THE CODE:
PrintToConsolePkg
We can use a
System.out.print(String)
to display a prompt
such as
"Input a number : "
If we want to make sure that the line is terminated we can use:
System.out.println(String)
Screen shot:
and the output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment