private String getWhoozitYs(){ StringBuffer sb = new StringBuffer(); boolean stop = generator.nextBoolean(); if(stop = true) { sb.append(\"y\
The problem here is
if (stop = true) is an assignation not a comparision.
(stop = true)
Try if (stop == true)
if (stop == true)
Also take a look to the Top Ten Errors Java Programmers Make.