for (Map.Entry<?, ?> entry : beans.entrySet())
{
String key = (String) entry.getKey();
String value = (String) entry.getValue().getClass().getName();
System.out.println("key: "+ key +" value: " +value);
{
String key = (String) entry.getKey();
String value = (String) entry.getValue().getClass().getName();
System.out.println("key: "+ key +" value: " +value);
}
打印InputStream的内容:
InputStream in =
byte b[]=new byte[2048]; //创建合适文件大小的数组
in.read(b); //读取文件中的内容到b[]数组
in.close();
System.out.println(new String(b));