log.java
来自「J2ME上的一个播放器,可以更换皮肤.开源软件.」· Java 代码 · 共 51 行
JAVA
51 行
package inline.sys;
import java.util.*;
public class Log
{
private static Vector history;
private static final int HISTORYMAX = 10;
//private static long sttime;
static
{
history = new Vector();
//sttime = System.currentTimeMillis();
}
public static void fire(String s)
{
System.err.println(s);
history.insertElementAt(s, 0);
history.setSize(HISTORYMAX);
}
public static Vector getHistory()
{
return history;
}
public static String getString()
{
String out = "";
for(int i=0;i<history.size();i++)
{
String el = (String)history.elementAt(i);
if (el == null) break;
out = out + el + "\n";
}
return out;
}
/* public static void dubTime(String event)
{
System.out.println("*** "+Long.toString(System.currentTimeMillis()-sttime)+": "+event);
}*/
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?