I started to 2nd major with computer engineering in university and I have just began to learning java. My first branch is electrical and electronics engineering so I found that they will be useful together in the future. So my main question is how do I generate random word with at least 3 and at most 8 letters in java? I can generate random integer with random.nextInt() etc. But I couldn't find generate words like random.nextString() code. Do I need to write some methods to generate it and if so which codes should I use? Thanks in advance for any answer :)
Aucun commentaire:
Enregistrer un commentaire