package com.day18.线程; public class ThreadThree { public static void main(String[] args) { new Thread() { public void run() { for(int i=0;i<1000;i++) { System.out.println("aaaaaaa"); } } }.start(); new Thread(new Runnable() { public void run() { for(int i=0;i<1000;i++) { System.out.println("bbbbbbb"); } } }).start(); } }