get certain length of list scala code example Example: get length of list scala mylist.length //or mylist1.size