Here you can find the source of LOG(String msg, PrintWriter writer)
public static void LOG(String msg, PrintWriter writer)
//package com.java2s; //License from project: Open Source License import java.io.PrintWriter; public class Main { public static void LOG(String msg, PrintWriter writer) { String content = "<script language=\"JavaScript\">" + "console.log('" + msg + "');" + "</script>\n"; writer.append(content);/*from w w w .j a va2 s . co m*/ //writer.flush(); //writer.close(); //writer = null; } }