/*
   This program demonstrates that implicit conversions can
   cause problems with overloaded methods (but this kind of
   problem doesn't come up very often).
*/

public class ImplicitConversionsAndOverloadedMethods
{
   public static void main( String[] args )
   {
      // Java does not know which version of methodA should
      // be called. This is an ambiguous method call.
      methodA(1, 2);

   }//main

   private static void methodA(int a, double x)
   {
   }//methodA

   private static void methodA(double x, int a)
   {
   }//methodA

}//ImplicitConversionsAndOverloadedMethods