1. Consider two friends Herbert and Schildt are chatting and discussing about next day exam preparation. Create a class
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Consider two friends Herbert and Schildt are chatting and discussing about next day exam preparation. Create a class
1. Consider two friends Herbert and Schildt are chatting and discussing about next day exam preparation. Create a class chat with two methods Ask and Reply to perform this. Create two threads Herbert and Schidit using Runnable Interface. Implement inter thread communication for the scenario and exchange the following messages Herbert : Hi Schildt: Hello Herbert: Tomorrow do you have exam Schildt : yes Herbert: have you prepared? Schildt: ya i am preparing Herbert : All the best! Schildt : Thank you 2. Design a calculator to perform the operation (+-":) on both integer and float values.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!