Skip to main content
gamedev.net
🔒 Locked

[java] Input stream manipulation?

Started by bah Dec 26, 2004 at 1:00 AM 1 replies 550+ views
Original Post
bah
bah
Good morning, In C the following code printf("> "); scanf("%d", &n); would have the following effect > 2 How can I accomplish the same thing in Java? Every call to "println" seems to place a new-line character at the end of the line. Thanks
cozman
cozman
Use print instead of println to avoid the newline being created.
bah
bah
Problem solved.

Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.