Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.HashMap;

public class Main {
    private static HashMap<String, String> fractions;

    public static String clearFractions(String __text) {
        // Removes all fraction characters from a string
        for (String key : fractions.keySet()) {
            __text = __text.replace(fractions.get(key), "");
        }
        return __text;
    }
}