Thursday, September 17, 2020

Day 4: Redrum



public String elainasThoughts (boolean understandsClassMaterial) { 

boolean understandsClassMaterials = false; 
String elainasThoughts = ""; 
 
if (understandsClassMaterial == true) {
return elainasThoughts = "Food!";} 

else if (understandsClassMaterial == false) {
return elainasThoughts = "redrum redrum redrum"; } 
 
return elainasThoughts;

}

I'd include a loop in there, but understandsClassMaterial = false.


1 comment:

  1. Ouch! understandsElaiasPain == false
    but thankfully there is always ice cream... :)

    ReplyDelete