Java Mutability Pop Quiz

#java #mutability #quiz

Can Java strings actually be mutable? I will award 10 points for the first person to give me an implementation of robotocize that makes the println on line 2 of the main method print “Jonathan Kelly is a robot!” instead of “Jonathan Kelly is a human.”.

class WantToBet {  
    static public void main(String[] args) throws Exception {  
        robotocize();  
        System.out.println("Jonathan Kelly is a human.");  
    }

    public static void robotocize() throws Exception {  
        ...  
    }  
}