Article View: borland.public.jbuilder.java.language
Article #8624Re: JDK 1.3 Long
From: Daniel Ray
Date: Mon, 12 Mar 2001 16:16
Date: Mon, 12 Mar 2001 16:16
48 lines
3015 bytes
3015 bytes
Fair enough. In all likely hood, the whitespace has always been there. I'll
spend some time checking on that, but now we are back to my original post.
The code worked fine with JBuilder 3.5 JDK 1.2.2 Only after I upgraded to
JBuilder4 JDK 1.3 did this happen. Why did 1.3 catch this and 1.2.2 let it
pass? Remember, I'm not complaining. I am in awe at what JBuilder can do. I
am more impressed with C++ Builder, but that's another story. All in all,
Borland is my choice for IDE's.
Thanks for your help.
ps - I'm waiting on an XML IDE from Borland as well!
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.1513a37dd819b03798a048@forums.borland.com...
> On Fri, 9 Mar 2001 15:23:03 -0600, Daniel Ray wrote:
>
> > java.util.Hashtable h = (java.util.Hashtable) v.firstElement();
> > java.util.Enumeration e = h.keys();
> > java.util.Collection c = h.values();
> > java.util.Iterator i = c.iterator();
> > String iString = i.next().toString();
> > // So I won't skip an iteration while degugging.. copy per se
> > writeLogEvent("iString is = to " + iString, ERROR); //
Just
> > a log file so I can view what's going on
> > writeLogEvent("iString length is " + iString.length(), ERROR); //
Walla !!
> > This returns my Id of '0' + 5 whitespaces -- length = 6
> > myFunctionId(new Long(iString.trim()));
//
> > Use trim() to get rid of whitespaces and continue
> >
> > I don't understand where the whitespace is coming from.
>
> The string with the "extra" whitespace is coming from the values that
> are in the HashTable. Since you do not show the code that puts the
> values in the HashTable, it is not possible to tell where the extra
> whitespace comes from.
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
> http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3aacf653$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!sunqbc.risq.qc.ca!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!63.64.121.199References:
<3aa722bf$1_1@dnews> <3aa72d40$1_2@dnews> <3aa949b9$1_1@dnews> <MPG.1513a37dd819b03798a048@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f15c1a8a3e4b754d X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-12 08:22:25 PST Reply-To: "Daniel Ray" <dray@inphact.com> From: "Daniel Ray" <dray@inphact.com> Newsgroups: borland.public.jbuilder.java.language References: <3aa722bf$1_1@dnews> <3aa72d40$1_2@dnews> <3aa949b9$1_1@dnews> <MPG.1513a37dd819b03798a048@forums.borland.com> Subject: Re: JDK 1.3 Long Date: Mon, 12 Mar 2001 10:16:19 -0600 Lines: 50 Organization: Inphact X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 63.64.121.199 Message-ID: <3aacf653$1_1@dnews> X-Trace: 12 Mar 2001 08:16:19 -0800, 63.64.121.199 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!sunqbc.risq.qc.ca!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!63.64.121.199