Skip to content

Instantly share code, notes, and snippets.

@sasssass
Created July 19, 2020 09:54
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 sasssass/15b1b81caf63005082b82b30efaa3e8e to your computer and use it in GitHub Desktop.
Save sasssass/15b1b81caf63005082b82b30efaa3e8e to your computer and use it in GitHub Desktop.
class Demo(){
fun doSth(){
val listOfComputers : MutableList<Computer> = ArrayList()
for (ram in 1024..2048){
listOfComputers.add(Computer(getOS(OSType.WIN),ram))
listOfComputers.add(Computer(getOS(OSType.LIN),ram))
listOfComputers.add(Computer(getOS(OSType.MAC),ram))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment