Java: Passing a Map as a function parameter.
I'm new to Java, and need to know how to pass an associative array (Map) as a single parameter in a function.

Here's what I'm wanting to do in Java, shown in PHP.

    <?php
    public class exampleClass {
     public function exampleFunction($exampleParam){
      if(isset($exampleParam['exampleKey'])){
       return true;
      }
      else {
       return false;
      }
     }
    }
    $ourMap = array(
     'exampleKey' => "yes, it is set"
    );
    $ourClass = new exampleClass();
    $ourResult = $ourClass->exampleFunction($ourMap);
    if(!$ourResult){
     echo "In Map";
    }
    else {
     echo "Not in Map";
    }
    ?>
Java: Passing a Map as a function parameter.
===

I'm new to Java, and need to know how to pass an associative array (Map) as a single parameter in a function.

Here's what I'm wanting to do in Java, shown in PHP.

    <?php
    public class exampleClass {
     public function exampleFunction($exampleParam){
      if(isset($exampleParam['exampleKey'])){
       return true;
      }
      else {
       return false;
      }
     }
    }
    $ourMap = array(
     'exampleKey' => "yes, it is set"
    );
    $ourClass = new exampleClass();
    $ourResult = $ourClass->exampleFunction($ourMap);
    if(!$ourResult){
     echo "In Map";
    }
    else {
     echo "Not in Map";
    }
    ?>