<HTML><HEAD>
<META charset=US-ASCII http-equiv=Content-Type content="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ffffff">
<DIV>Hello all,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; I recently began learning Java and was wondering what the generally best-thought-of java mailing list was. On the other hand, if anyone on this list has some knowledge of Java, please keep reading.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to write a program to convert numbers (floating and negative, too) from the given base to base 10. As this is part of a larger project, what i have already written will no doubt appear as overkill, but the code in question can be found at <A href="http://rafb.net/paste/results/YDpaXH25.html">http://rafb.net/paste/results/YDpaXH25.html</A>&nbsp;(the relevant section&nbsp;is bounded by 5 lines of asterisk comments on top and bottom). In any case, though the current code has no syntax errors, a runtime error does occur when i try to call it like so;</DIV>
<DIV>&nbsp;</DIV>
<DIV>// java code</DIV>
<DIV>public class BasemathInterface {</DIV>
<DIV>&nbsp;&nbsp;&nbsp; public static void main(String[] args) {</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Basemath a = new Basemath();</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; a.convertBase(10, 23.4, false);</DIV>
<DIV>&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>}</DIV>
<DIV>//end java code</DIV>
<DIV>&nbsp;</DIV>
<DIV>a StackOverflowError:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Exception in thread "main" java.lang.StackOverflowError</DIV>
<DIV>Press any key to continue . . .</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I suspect this has something to do with line 88, where the second "half" of floating-point numbers are handled,&nbsp;since I've heard StackOverflowErrors are&nbsp;often caused&nbsp;by infinite loops,&nbsp;though i'm not sure how the current code&nbsp;would set up such a loop. Any help would be appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance,</DIV>
<DIV>Orri</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT lang=0 face=Arial size=2 FAMILY="SANSSERIF" PTSIZE="10">Email: dragonfirebane@aol.com<BR>AIM: singingxduck<BR>Programming Python for the fun of it.</FONT></DIV></BODY></HTML>