// http://codingbat.com/prob/p191022

public boolean startHi(String str) {
  if (str.length() >= 2 && str.substring(0, 2).equals("hi")) {
    return true;
  }
  else {
    return false;
  }
}

Create startHi.java