首页 > 建站教程 > dart >  Dart编程实例 - HashMap正文

Dart编程实例 - HashMap

Dart编程实例 - HashMap

import 'dart:collection';

main() {

   var accounts = new HashMap();

   accounts['dept']='HR';

   accounts['name']='Tom';

   accounts['email']='tom@xyz.com';

   print('Map after adding  entries :${accounts}');

}