Java 程式設計基礎班(1) - 網路資料庫實驗室
Java 程式設計基礎班(1) - 網路資料庫實驗室
Java 程式設計基礎班(1) - 網路資料庫實驗室
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
程式的編輯區<br />
Class 1<br />
撰寫你的第一個<strong>Java</strong>程式<br />
/*<br />
* 將1加到100,印出結果<br />
*/<br />
package javacourse1;<br />
public class exercise1_1 {<br />
//建構子<br />
public exercise1_1() {<br />
<br />
}<br />
//程式進入點<br />
public static void main(String[] args) {<br />
int sum = 0; //變數sum的初始化<br />
for (int i = 1; i