× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ok, I think I got it...let me know if I'm doing something stupid...

Long Tiatim = new Long(tiatim);
Long Indt = new Long(indt);
Long Ondt = new Long(ondt);
int rtnCode = 0;
rtnCode = Tiatim.compareTo(Indt);
if (rtnCode >= 0) {
   rtnCode = Tiatim.compareTo(Ondt);
   if (rtnCode <= 0) {
      System.out.println("tiatim = " + Long.toString(tiatim));
      //further processing...
   }
}

Shane Cessna  
iSeries Programmer
iSeries WAS Administrator
North American Lighting, Inc.
(618) 662-4483 x2776
shane_cessna@xxxxxxx 



MWalter@xxxxxxxxxxxxxxx 
Sent by: java400-l-bounces@xxxxxxxxxxxx
06/21/2005 02:44 PM
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
cc

Subject
Re: probably a stupid question...






Yea, version 8 I think. Yuck.

Thanks,

Mark

Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com


 
             Shane_Cessna@nal. 
             com 
             Sent by:                                                   To 

             java400-l-bounces         Java Programming on and around the 
             @midrange.com             iSeries / AS400 
                                       <java400-l@xxxxxxxxxxxx> 
                                                                        cc 

             06/21/2005 03:07 
             PM                                                    Subject 

                                       Re: probably a stupid question... 
 
             Please respond to 
             Java Programming 
             on and around the 
              iSeries / AS400 
             <java400-l@midran 
                  ge.com> 
 
 




Mark,

yeah, all types are long...

so, you must be "blessed" with Kronos as well...

Shane Cessna
iSeries Programmer
iSeries WAS Administrator
North American Lighting, Inc.
(618) 662-4483 x2776
shane_cessna@xxxxxxx



MWalter@xxxxxxxxxxxxxxx
Sent by: java400-l-bounces@xxxxxxxxxxxx
06/21/2005 02:00 PM
Please respond to
Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>
cc

Subject
Re: probably a stupid question...






Ahh, Kronos and Java. What a combination. Are you sure that all of your
variables are long types?

Thanks,

Mark

Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com



             Shane_Cessna@nal.
             com
             Sent by:                                                   To

             java400-l-bounces         java400-l@xxxxxxxxxxxx
             @midrange.com                                              cc


                                                                   Subject

             06/21/2005 02:50          probably a stupid question...
             PM


             Please respond to
             Java Programming
             on and around the
              iSeries / AS400
             <java400-l@midran
                  ge.com>






I'm having some real trouble comparing 2 long variables in a
method...here's my code:

if (tiatim >= indt1 && tiatim <= ondt) {
   System.out.println("tiatim = " + Long.toString(tiatim));
}

I've verified that in some cases tiatim does fit this condition, however,
I'm never getting the System.out.println to work...

How do you guys compare long values?...

Again, sorry if this is a dumb question...rookies tend to do that...

Shane Cessna
iSeries Programmer
iSeries WAS Administrator
North American Lighting, Inc.
(618) 662-4483 x2776
shane_cessna@xxxxxxxxx
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.