Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Fix html currency symbols to the unicode equivalent
     * 
     * @param string
     * @return
     */
    public static String currencyFix(final String string) {
        return string.replaceAll("£", "\u00A3").replaceAll("€", "\u20AC");
    }
}