void main() {
List <String> logTypes = new List <String>();
logTypes.add(1);
logTypes.add("ERROR");
logTypes.add("INFO");
//iterating across list
for (String type in logTypes) {
print(type);
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266222.html