dimanche 21 janvier 2018

How to fill an object with random number of the same characters? [duplicate]

I'm just starting with java and I've been stuck with one issue for my bootcamp's tasks.

I need to generate ArrayDeque of 50 objects which are filled with random number (from a 0-50 range) of 'a' char, i.e. object1 = "aaa", object2 = "aaaaaaaaaaa", etc.

I could not find any answer to this specific problem so I ask for your help guys. Please note that I won't use any "high-level" answers due to my lack of knowledge and experience. Please keep it simple :)

Thanks.




Aucun commentaire:

Enregistrer un commentaire