title: The method valueOf(String) in the type Integer is not applicable for the arguments (int)
body: <p>I am getting an error <em>The method valueOf(String) in the type Integer is not applicable for the arguments (int)</em> for the below line when I compile the code in jdk1.4(j2sdk1.4.1_05). If I compile the same code in jdk1.6.0_14, the code works fine. </p>
  
  <p><code>HashMap offMap = new HashMap(); 
  offMap.put("price", Integer.valueOf(offer.getPrice()));</code></p>
  
  <p>My question is why this code is giving error when compiled in jdk1.4 and not in jdk1.6. Any suggestions to get in compiled?</p>
  
  <p>Note: This is pre-written code. Need your suggestion for code change and get it compiled without errors.</p>