Java has two ways to implement multi-threading: through the Runnable interface, directly through Thread, please master these two implementations, and write a sample program.