M & M

12345678910
Across
  1. 2. w = “watermelon”; w.indexOf(“w”);
  2. 4. z = “Battlepass”; z.substring(6);
  3. 5. y = “baseball”; y.compareTo(w);
  4. 6. x = “lumberjack”; x.substring(0,6);
  5. 8. z = “battlepass”; z.indexOf(“t”);
  6. 10. y = “baseball”; y.substring(2,6);
Down
  1. 1. x = lumberjack; x.equals(w);
  2. 3. y = “baseball”; y.length();
  3. 7. 0 y = “baseball”; y.substring(0,5);
  4. 9. x = “lumberjack”; x.substring(6);