def matchConstant(x:Any):String={ x match { case "a" => "hello" case false => "xixi" case 1 => "yes" case 0.0 => "no" case '+' => "Char +" case _ => "nothing" } }