javapants
Showing posts with label
System.out.println()
.
Show all posts
Showing posts with label
System.out.println()
.
Show all posts
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:
Older Posts
Home
Subscribe to:
Posts (Atom)