Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by pdonato

  1. pdonato

    Question about Interger.MAX_VALUE

    Actually the widening conversion does not take place. Since MAX_VALUE (7FFFFFFF) multiplied by 2 make the int a negative number the condition will always fail for a positive lNum. Try forcing the widening like this: if(lNum <= (Integer.MAX_VALUE*2L)) { // Do something; }

Part and Inventory Search

Back
Top