aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes what is gt?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "what is gt??" Watch "what is gt??" New topic
Author

what is gt??

Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
Howdy,

Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
hmm...
> didn't get posted.

Here is another try at the code
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Hmmm, I'm not sure. In the context in which it is posted, gt (as well as i) looks like an undeclared variable.

However, I wonder if you found this on some online mock exam or some such thing. In HTML & g t ; (without spaces between them) is interpreted as a greater than sign (>) . It's possible you simply ran into an error in someone's HTML.
[ July 29, 2004: Message edited by: Corey McGlone ]

SCJP Tipline, etc.
Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
It is a modified example of Prof K's exam. I am not sure if I can post that on there. Is > some kind of escape sequence?
Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
This post is converting '>' to '>'. Is '>' an escape sequence?
Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
Here is another example:

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
You see, there are special character codes for use in HTML. If you put these characters together, without spaces between them, they'll be converted into something else:

& lt; --> <
& rt; --> >
& amp; --> &

etc. etc. etc.

There are a lot of these special codes for HTML. My guess is that you ran into a code that was poorly formed (like the one's I've written above) and, instead of seeing the character displayed, you saw the messed up sequence of characters.

I'm not certain, but that's what it looks like to me. In your original example, you had "& gt;". Well, if you take out that space, you'd get > instead.

If you can get at it, grab the HTML source for that question and post it here. Perhaps we can decipher what it's supposed to be from that.
Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
Thank Corey. I think you are correct. The code would only make sense if these were special symbols.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is gt??