+ 8
private static String[] names = { "hi", "go","happy ", "coding" }; name = names[(int) (Math.random() * names.length)]; System.out.println(name); you can do like this may this can help you
9th Dec 2017, 2:17 AM
GAWEN STEASY
GAWEN STEASY - avatar