Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > No Math.min(Integer, Integer)?

Reply
Thread Tools

No Math.min(Integer, Integer)?

 
 
=?ISO-8859-1?Q?Thomas_Gagn=E9?=
Guest
Posts: n/a
 
      07-29-2003
// if the following compiles

Math.min(5, 10);

// why wouldn't the following?

Math.min(new Integer(5), new Integer(10);

I suspect the answer might be because Math doesn't implement min(Integer,
Integer) but then I would have suspected Integer might have..

Integer result;

result = new Integer(5).min(new Integer(10));

--
..tom
remove dashes in email for replies
opensource middleware at <http://isectd.sourceforge.net>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments