Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads

 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i create four threads and each thread calculating the cube root of a different number?
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many ways of doing it. Did you try to write some code by yourself?? Here's a structure of a program that can do it
 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya thanks....i did it this way ? now i want to search a text file on the computer which has the four numbers...how can i do it? i dont want to store the file in the root of the web dir....
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So this has become a completely different question now. If the question is about reading a file from a web application, then the SCJP forum is not the appropriate place for this question. Start a new topic in a more appropriate forum...
 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry.....its not the web directory....i dont want to store the text file in the root directory of the application.....not the web directory...how do i search the whole computer for the text file named cube.txt?
 
Henry Wong
author
Marshal
Pie
Posts: 21500
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankur Jain Kothari wrote:how do i search the whole computer for the text file named cube.txt?


Please show us what you did so far, and what problems you are having, and we can give you a hint in the right direction.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic