- 1
Can you solve this in Java
Consider the equation p= sinx + cosy+ tanz , Create 3 threads with each one computing sinx, cosy, tanz . Obtain the sum of 3 terms and display.
4 Answers
+ 4
Yes, one can solve this in Java.
If you need help, please LINK your code. Sololearn is a self-learning platform, not a code writing service.
+ 4
You have a link to your code if you have attempted to write one.
Go to Code section, click +, select the programming language, insert your code, save.
Come back to this thread, click +, Insert Code, sort for My Code Bits, select your code.
0
It's a question from my textbook , i don't have a link .
0
You have first to understand threads. Java lesson about threads in sololearn app explains it well. If you create one thread that calculates one of them for example sinx, then it is easy to solve your problem by calculating the others (cosy, tanz) in the same way.