Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jim Dong
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Thanks.
 
Jyotsna Clarkin
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code looks fine to me
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you previously posted code like the above but without a space after the < symbol, then that usually sets the problem off.
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to use &lt; &gt; to get < and > respectively.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic