• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stop() and start() ??

 
Robin Richardson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been able to use a start method to start three different programs, have had to set up a separate stop() class for each program. Is there a way to start each one up without a separate stop class for each one?
Also, have not been able to use the stop() class. It just starts the program, but doesn't stop it. What might I have done wrong? I put:
public void start() {}
public void stop() {}
should I possibly reverse the order?
Thanks
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't seem to have anything to do with Java I/O (Input/Output), so I'm moving this to Java in General (Beginner).
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about threads here? Or starting a program using a process and Runtime?
Also, you surely mean start and stop methods, not classes (I hope).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic