I need to see a value which means if jtextfiled's text is as "abcd" and jtextfield2 text as "efg" I need to see out put as in the 3rd jTextfield as "abcdefg" .
Asked
Active
Viewed 38 times
0
-
2Please show your code. – Tripp Kinetics May 15 '18 at 12:37
-
@TrippKinetics i got codes as "sum " calculates when I done research please help sir – Manu May 15 '18 at 12:39
-
I need to see your actual source code. – Tripp Kinetics May 15 '18 at 12:39
-
1Possible duplicate of [How do I concatenate two strings in Java?](https://stackoverflow.com/questions/3753869/how-do-i-concatenate-two-strings-in-java) – achAmháin May 15 '18 at 12:49
1 Answers
-1
Try something like:
if(jtextfield.getText().equals("abcd") && jtextfield2.getText().equals("efg"))
{
jtextfield3.setText("abcdefg");
}

Tripp Kinetics
- 5,178
- 2
- 23
- 37
-
1I would guess the OP actually wants `jTextField3.setText(jTextField1.getText()+jTextField2.getText())`, i.e. concatenation. – achAmháin May 15 '18 at 12:45
-