I want to wait 5 seconds before starting another public void method. The thread sleep was not working for me. If there is a way of wait() without using Threads I wo
wait()
what I prefer is
(new Handler()).postDelayed(this::here is your method,2000);