How to take user input of one form and assign it to a variable in another form in java?

Shammikit

Honorable
Nov 30, 2013
35
0
10,580
i have a textfield to get user input in my form 1.i want to get the text user inputs into that textfield from that form and assign it to a variable in form2. is this possible?
 
This is (at least) the second time you've posted a homework question. Talk to your teacher, look in the book, do some research on your own. We're not going to do your classwork for you.