Here you can find the source of isMoney(String[] Moneys, String key)
Parameter | Description |
---|---|
Moneys | a parameter |
key | a parameter |
public static boolean isMoney(String[] Moneys, String key)
//package com.java2s; //License from project: Open Source License public class Main { /**// ww w .ja va 2 s. c o m * @param Moneys * @param key * @return */ public static boolean isMoney(String[] Moneys, String key) { if (Moneys.length == 0) return false; for (String moneyKey : Moneys) { if (moneyKey.equals(key)) { return true; } } return false; } }