Converts some important chars (int) to the corresponding html string

   Converts some important chars (int) to the corresponding html string
  
    static String conv2Html(int i) {
        if (i == '&') return "&";
        else if (i == '<') return "<";
        else if (i == '>') return ">";
        else if (i == '"') return """;
        else return "" + (char) i;
    }

Popular posts from this blog

What is NBioBSP Java Library?

Draw arrow line example

Capture image from webcam java code, examples