public static void PrintMap( Map data )
{
Iterator ii = data.keySet().iterator();
StringBuffer result = new StringBuffer();
while( ii.hasNext() )
{
String key = (String)ii.next();
result.append( key );
result.append( " : " );
result.append( data.get(key) );
result.append( "\n" );
}
System.out.println( result );
}
댓글 없음:
댓글 쓰기