Groups
Groups
Sign in
Groups
Groups
EnJoyJava
Conversations
About
Send feedback
Help
for - 程式設計【建立類別物件並傳入引數】
1 view
Skip to first unread message
Message has been deleted
q738...@yahoo.com.tw
unread,
Dec 29, 2010, 2:16:18 AM
12/29/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to EnJoyJava
class car extends Thread {
public car (String name) {
this.setName(name);
}
public void run () {
for (int i=1; i <= 5; i++)
System.out.printf("正在進行「%s」車的處理。\n",getName());
}
}
public class example {
public static void main (String[] ymc) {
car car1 = new car("1");
car car2 = new car("2");
car1.start();
car2.start();
}
}
Reply all
Reply to author
Forward
0 new messages