...

question about java

Aymen++
03-07-2003, 08:46 PM
what is meaning of using:
\f or form feed
and:
\r or carriage return?

Jason
03-10-2003, 11:36 PM
I don't know if you would need them in code but they can be used for comparison with user input.


Jason

Aymen++
03-11-2003, 10:26 AM
we know that we can use special characters with the strings for many purpose like \n for new line, my question was: what for we use \f and \r?

Roy Sinclair
03-11-2003, 03:32 PM
If you're writing to a printer then \f should exject the current page and \r allows overtyping. They were a lot more important in the past when much output was designed for paper and printers weren't graphic so to get underlined text you had to type the text, and then go back and type the underline separately.

Aymen++
03-11-2003, 03:48 PM
If you're writing to a printer then \f should exject the current page
i didn't understand the meaning of exject?

Roy Sinclair
03-11-2003, 04:25 PM
Typo, exject should be eject. That is it stops printing on the current piece of paper and feeds in the next page.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum