通过实现Runnable接口,编写程序来创建线程, *并创建两个线程对象,以计算奇数和偶数的总和 (奇数和偶数)1到50岁之间的分别,在屏幕上打印结果。
WriteaprogramtocreateathreadbyimplementsRunnableInterface,andcreatetwothreadobjects,tocalculatethesumoftheoddandevenbetween1and50,respectively,andprinttheresultsonthescreen.packageweek15;/*Writeaprogr