File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ranch Office and the fly likes How do I post code containing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "How do I post code containing "less than" sign..." Watch "How do I post code containing "less than" sign..." New topic

How do I post code containing "less than" sign...

Jim Dong

Joined: Jul 09, 2001
Posts: 12
I am not able to put the real "less than" or "greater than" sign in the code segment I wanted to show in the message.
You may find the following code strange, but it is correctly written, but incorrectly shown!
for ( int i = 0; i < 10; i++) Sytstem.out.println(i);
If you have any clue, please help.
Jyotsna Clarkin
Ranch Hand

Joined: Jan 26, 2001
Posts: 158
code looks fine to me
Angela Poynton
Ranch Hand

Joined: Mar 02, 2000
Posts: 3143
What forum are you trying to post in!!
The < and > signs may be being interpreted as part of a HTML tag in some forums .... one thing to try would be to surround your whole code segment in [ code ] [ /code ] tags (note I deliberatly added spaces between the brackets so you can see the tags).
If that doesn't work ... let us know!

Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Also, if you previously posted code like the above but without a space after the < symbol, then that usually sets the problem off.

"I'm not back." - Bill Harding, Twister
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
You should be able to use &lt; &gt; to get < and > respectively.
I agree. Here's the link:
subject: How do I post code containing "less than" sign...
It's not a secret anymore!