[Netbeans 6.9] Java MethodOverloading error with double values
- by Nimitips
Here is a part of my code I'm having trouble with:
===Class Overload===
public class Overload
{
public void testOverLoadeds()
{
System.out.printf("Square of integer 7 is %d\n",square(7));
System.out.printf("Square of double 7.5 is %d\n",square(7.5));
}//..end testOverloadeds
public int square(int intValue)
{
…