[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed Dec 1 10:32:22 2004 -->
- <!--x-from-r13: ivafba.yvfgf ng punegre.arg (Xnfba Hvafba) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Introduction -->
- <li><em>date</em>: Wed Dec 1 10:32:22 2004</li>
- <li><em>from</em>: vinson.lists at charter.net (Jason Vinson)</li>
- <li><em>in-reply-to</em>: <<a href="msg00033.html">[email protected]</a>></li>
- <li><em>references</em>: <[email protected]> <[email protected]> <<a href="msg00016.html">[email protected]</a>> <<a href="msg00033.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Introduction</li>
- Hash: SHA1
Geoffrey wrote:
| Jason Vinson wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
|>
|> Geoffrey wrote:
|>
|> | ... The dream job! You're confused though, it's the Java that
|> is | annoying you. I mean come on, try subtracting a character
|> from a | character in order to get the numeric difference. C ?
|> yes, Java, I | don't think so.. | Maybe i'm misunderstanding the
|> problem, but are you saying that this is annoying:
|>
|> Character.getNumericValue('z')-Character.getNumericValue('a')
|>
|> Lengthy yes... but doable (and not that hard!)
|
|
| No, character - character = numeric:
|
| intval = '5' - '2';
|
| You cheated, and did the conversion first as well as twice. :)
|
You mentioned "Java, I don't think so...", so I just thought i'd share
a *possible* solution.
Personally, I rarely have to do character value arithmetic, so I don't
see it as that big of a problem.
To each his own though,
Jason
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - <a rel="nofollow" href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a>
iD8DBQFBreJrAQ71cZOfvEQRAkMlAJoC3XQGzeLBZ/39R+hzkyU9ocFA8ACdFkCQ
YrNChrwq+CW2mbOpuga1JcA=
=kB3h
-----END PGP SIGNATURE-----
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00040" href="msg00040.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00016" href="msg00016.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> vinson.lists at charter.net (Jason Vinson)</li></ul></li>
<li><strong><a name="00033" href="msg00033.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00035.html">[ale] Issue with sub name and XML::Parser</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00037.html">[ale] custome init levels</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00033.html">[ale] Introduction</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00040.html">[ale] Introduction</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00036"><strong>Date</strong></a></li>
<li><a href="threads.html#00036"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>