Skip to content

Instantly share code, notes, and snippets.

@bbarker
Created December 12, 2021 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbarker/71fb1d6eb918b11d31373d09241696e4 to your computer and use it in GitHub Desktop.
Save bbarker/71fb1d6eb918b11d31373d09241696e4 to your computer and use it in GitHub Desktop.
do something with its members
println(beanList3.map(_.getTheA))
beanList3.foreach{bean =>
bean.setTheA(bean.getTheA+1)
}
println(beanList3.map(_.getTheA))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment