Input and OutPut

i have two text field, textfield1 and textfield2, and a button…

textfield 1 = inputtext
textfield2 = the output.

when i click the button it will save the text in textfield1 into the textfield2.

how could i do this?

help me plss. thanks!