Well I found where to input the Java, but now I have all these errors... and I copied the code exactly?

error: Error parsing XML: not well-formed (invalid token)
R cannot be resolved
The import android.view.View.onclickListener cannot be resolved
The type dic_tut2 is already defined
The value of attribute "android:id" associated with an element type "EditText" must not contain the '<' character.