Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2003, 08:46 PM   PM User | #1
Aymen++
Regular Coder

 
Join Date: Nov 2002
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
Aymen++ is an unknown quantity at this point
question about java

what is meaning of using:
\f or form feed
and:
\r or carriage return?
Aymen++ is offline   Reply With Quote
Old 03-10-2003, 11:36 PM   PM User | #2
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
I don't know if you would need them in code but they can be used for comparison with user input.


Jason
Jason is offline   Reply With Quote
Old 03-11-2003, 10:26 AM   PM User | #3
Aymen++
Regular Coder

 
Join Date: Nov 2002
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
Aymen++ is an unknown quantity at this point
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?
Aymen++ is offline   Reply With Quote
Old 03-11-2003, 03:32 PM   PM User | #4
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
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.
Roy Sinclair is offline   Reply With Quote
Old 03-11-2003, 03:48 PM   PM User | #5
Aymen++
Regular Coder

 
Join Date: Nov 2002
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
Aymen++ is an unknown quantity at this point
Quote:
If you're writing to a printer then \f should exject the current page
i didn't understand the meaning of exject?
Aymen++ is offline   Reply With Quote
Old 03-11-2003, 04:25 PM   PM User | #6
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Typo, exject should be eject. That is it stops printing on the current piece of paper and feeds in the next page.
Roy Sinclair is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:35 AM.


Advertisement
Log in to turn off these ads.