Java tutorial
//package com.java2s; import java.util.HashMap; public class Main { private static HashMap<String, String> fractions; public static boolean containsShortFractions(String __text) { for (String key : fractions.keySet()) { if (__text.indexOf(fractions.get(key)) > -1) return true; } return false; } }