Creating and Writing Text  and .equals method