• Post Reply Bookmark Topic Watch Topic
  • New Topic

I have a problem  RSS feed

 
jeyakanth yogaratnam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this code compiles and runs perfectively in java 5 , but in jdk 1.4 it gives me a compilation error. Can anyone tell me wht is the problem with this code. plz explain it to me.


regards
jeyakanth
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In 1.5, a Double can be autounboxed into a double.

There is not a constructor in Double.java that accepts a Double, but there is one that accepts a double.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!