Photo by Denis Cherkashin on Unsplash


Photo by Rod Long on Unsplash




public static void main(String[] args){
int umur…




6. remove()

mahasiswa1.remove('nim');

7. removeWhere()

mahasiswa1.removeWhere((key,value)=> key == "nim");

8. clear()

mahasiswa1.clear()

9. update()

mahasiswa1.update("nim",(String value) => value = 'C030316022');

9. Map.from()

var mahasiswa3 = Map.from(mahasiswa1);


1. addAll()

void main(){ var mahasiswa1 = {
"nim" : "C030316024",
"nama" : "Muhammad Sulthan Al Ihsan"
};
var mahasiswa2 = {};
mahasiswa2.addAll(mahasiswa1);
print(mahasiswa2);


M. Sulthan Al Ihsan

IDN Academy 2019

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store