Mac computer won't use java.lang.Thread.sleep command

9 visualizaciones (últimos 30 días)
Chris Wreden
Chris Wreden el 10 de En. de 2017
Comentada: Chris Wreden el 10 de En. de 2017
When I use the command "java.lang.thread.sleep" on my iMac I get "No method 'sleep' with matching signature found for class 'java.lang.Thread'."
  1 comentario
Jan
Jan el 10 de En. de 2017
Please provide the code exactly as you have typed it. Currently we have to guess, which argument you pass to this command.

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 10 de En. de 2017
Editada: Jan el 10 de En. de 2017
You can call this command like this:
java.lang.Thread.sleep(duration*1000)
Did you include the time?
  1 comentario
Chris Wreden
Chris Wreden el 10 de En. de 2017
The problem is I kept "duration" in the command without assigning it. Exceedingly stupid mistake that is now for public viewing. I got the idea to use this command from a previous post of yours. Thanks for everything.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by