Inserting 20 random treasures into a 10 x 10 grid in Java

前端 未结 0 861
梦谈多话
梦谈多话 2020-11-30 09:47

I created a GUI that will be 10 x 10 and have 100 buttons. I had to insert 20 treasures and have the other 80 be empty. This is the code I used. Sometimes I get 17 treasures

相关标签:
回答
  • 消灭零回复
提交回复
热议问题