All of those look right to me. Why do you think they're wrong?

1. The only things that could be wrong here are your use of "bool" and "string" (in Java, these might be "Boolean" and "String", so...