Ask coding questions

← Back to all posts
Java-connect a random string
ZainabSajjad

So i want to have a bunch of strings written out and prints them out randomly in java. so something like:

string x = ksdhksh
string y = hjkhkj
string p = ugdajkghs
string w = kdhahj

System.out.print "Game Over" + random var picked by code

How do i do that?

Voters
ZainabSajjad