|
||||||
| Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||
|
Quote:
Do you mean the waiting after the line is read or do you mean the waiting for that line itself? In case the sleep/wait after that - just put a boolean variable and if: Code:
...
if( shouldSleepAfterRead)
Thread.sleep(...);
...
In case you need to stop the readLine() command - read about interrupt(). You can interrupt a thread: Thread (Java 2 Platform SE 5.0) Thread (Java 2 Platform SE 5.0) Thread (Java 2 Platform SE 5.0) Hope this helps ... ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| thread problem | dirkfirst | C# Programming | 9 | 01-15-2007 10:19 AM |
| Which Thread do Timers run on? | NeedHelp | C# Programming | 3 | 07-17-2006 04:22 PM |
| The UI Thread | NeedHelp | C# Programming | 1 | 07-12-2006 10:47 PM |
| The ultimate xHTML / DHTML / HTML 301 redirection thread! | Dan | HTML Programming | 5 | 07-04-2006 06:57 PM |
| The Ultimate Codefusion 301 direct/forwarding thread! | Dan | ASP, ASP.NET and Coldfusion | 0 | 06-28-2006 09:28 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |