Chat simulation

Hello, I am working on a Java project and need some help. I want to code a Chat conversation where two people talk to eachother, I want person A to represent the person "playing" the code and Person B to be like a robot answering. I want the Player to have to input any text which then turns into the pre programmed text in the chat box and Person B's text to just appear. So far I have created the chat and made it so that when you type gibberish and press enter the correct text gets displayed, but right now you have to type and enter to make the text of both people appear aswell as the end of conversation text how would I fix this?
4 Replies
JavaBot
JavaBot19h ago
This post has been reserved for your question.
Hey @_tureino! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st17h ago
What are you using as a text box?
JavaBot
JavaBot12h ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Phil Chen
Phil Chen5h ago
That sounds very interesting! Could u like discussing with me to achieve your goal?

Did you find this page helpful?