?? debug.java
字號:
// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov Date: 2003-6-23 11:10:14
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Debug.java
package com.struts2.framework.util;
import java.io.PrintStream;
import java.util.*;
public class Debug
{
public static void print(String str)
{
System.err.print(str);
}
public static void print(Object str)
{
if(str instanceof Object[])
{
Object objs[] = (Object[])str;
int n = objs.length;
System.err.print("[");
int i;
for(i = 0; i < n - 1; i++)
{
System.err.print(objs[i]);
System.err.print(",");
}
System.err.print(objs[i]);
System.err.println("]");
} else
{
System.err.print(str);
}
}
public static void println(String str)
{
System.err.println(str);
}
public static void print(Hashtable prop)
{
System.err.println(toString(prop));
}
public static void print(Map map)
{
print(toString(map));
}
public static String toString(Map map)
{
StringBuffer sb = new StringBuffer();
sb.append("{\n");
Object obj;
for(Iterator it = map.keySet().iterator(); it.hasNext(); sb.append(" \"" + obj + "\"=>\"" + map.get(obj) + "\",\n"))
obj = it.next();
sb.append("}\n");
return sb.toString();
}
public static String toString(Hashtable prop)
{
if(prop == null)
return "null";
StringBuffer sb = new StringBuffer();
sb.append("{\n");
Object obj;
for(Enumeration enu = prop.keys(); enu.hasMoreElements(); sb.append(" \"" + obj + "\"=>\"" + prop.get(obj) + "\",\n"))
obj = enu.nextElement();
sb.append("}\n");
return sb.toString();
}
public Debug()
{
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -