herrDeng網內搜尋

自訂搜尋

Ads

2011年9月29日 星期四

輸出你的課表

輸出你的課表 含Java code以及結果



hint:

public class Eg2_1_4 {
// 主程式
public static void main(String[] args) {
// 學生功課表
int[][] courses=
  {{1, 0, 0, 0, 0},
   {1, 0, 0, 5, 0},
   {1, 0, 0, 5, 0},
   {0, 0, 2, 3, 4},
   {0, 0, 2, 3, 4},
   {0, 0, 2 ,3, 4} };
// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ ){
  for ( int j = 0; j < courses[i].length; j++ )
  {
    System.out.print("\t"+courses[i][j]);
   }
   System.out.println();
  }
 }
}

63 則留言:

b9933009 提到...

int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("統計學 ");
break;
case 5:System.out.print("英文 ");
break;
case 6:System.out.print("導師 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動與地球環境變遷");
break;
case 9:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

b9911126 提到...

import java.io.*;
public class a7 {

public static void main(String[] args)
throws Exception {

int[][] courses={ {0, 2, 0, 5, 0},
{1, 4, 0, 5, 0},
{1, 0, 0, 0, 0},
{1, 0, 4, 3, 0},
{2, 0, 4, 3, 0},
{2, 0, 4, 3, 0} };
int week_no;
int num;
int code;

BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
System.out.print("請輸入星期(1 到 5)==> ");
System.out.flush();

week_no = Integer.parseInt(in.readLine());
System.out.print("請輸入第幾節課(1 到 6)==> ");
System.out.flush();

num = Integer.parseInt(in.readLine());

code = courses[num-1][week_no-1];
System.out.println("課程代碼: " + code);

switch ( code ) {
case 0: System.out.println("沒課!");
break;
case 1: System.out.println("企業電子化 ");
break;
case 2: System.out.println("資料庫管理系統 ");
break;
case 3: System.out.println("資料結構");
break;
case 4: System.out.println("管理學");
break;
case 5: System.out.println("英文");
break;
}
in.close();
}
}

b9933034 提到...

int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("統計學 ");
break;
case 5:System.out.print("英文 ");
break;
case 6:System.out.print("導師 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動與地球環境變遷");
break;
case 9:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

b9933033 提到...

int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("統計學 ");
break;
case 5:System.out.print("英文 ");
break;
case 6:System.out.print("導師 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動與地球環境變遷");
break;
case 9:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

b9933039 提到...

int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("統計學 ");
break;
case 5:System.out.print("英文 ");
break;
case 6:System.out.print("導師 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動與地球環境變遷");
break;
case 9:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

b9933018 提到...

int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("統計學 ");
break;
case 5:System.out.print("英文 ");
break;
case 6:System.out.print("導師 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動與地球環境變遷");
break;
case 9:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

B9933023 提到...

package P1;

public class PP {

public static void main(String[] args) {

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 10},
{1, 3, 5, 7, 10},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 4, 0 ,8, 11},
{0, 0, 0 ,9, 11},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("英文");
break;
case 2:System.out.print("企業電子化 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}
}
}

B9933020 提到...

package A1;

public class A2 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub



int[][] courses= {{0, 0, 0, 6, 0}, {1, 0, 5, 6, 10}, {1, 3, 5, 7, 10}, {1, 3, 5, 7, 10}, {2, 4, 0, 8, 0}, {2, 4, 0 ,8, 0}, {2, 4, 0 ,8, 11}, {0, 0, 0 ,9, 11}, {0, 0, 0 ,9, 0}}; int day; int num; int code = 0; for ( int i = 0; i < courses.length; i++ ) {for ( int j = 0; j < courses[i].length; j++) { day=i; num=j; code=courses[i][j]; switch(code) { case 0:System.out.print("沒課~ ");break; case 1:System.out.print("企業電子化 ");break; case 2:System.out.print("資料庫管理系統 ");break; case 3:System.out.print("公民社會概論 ");break; case 4:System.out.print("SOL語言設計 ");break; case 5:System.out.print("統計學 ");break; case 6:System.out.print("英文 ");break; case 7:System.out.print("導師 ");break; case 8:System.out.print("資料結構 ");break; case 9:System.out.print("人類活動與地球環境變遷");break; case 10:System.out.print("物件導向技術 ");break; case 11:System.out.print("體育 ");break; } System.out.print("\t"); } System.out.println(""); }






}

}

b9933014 提到...

public class b9933014 {

public static void main(String[] args) {




int[][] courses=
{{0, 0, 0, 5, 9},
{1, 0, 4, 5, 9},
{1, 3, 4, 6, 0},
{1, 3, 4, 6, 0},
{2, 0, 0, 7, 0},
{2, 0, 0, 7, 0},
{2, 0, 0, 7, 0},
{0, 0, 0, 8, 0},
{0, 0, 0 ,8, 0} };

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
switch (courses[i][j]){
case 0:System.out.print("\t"+"沒課 ");
break;
case 1:System.out.print("\t"+" 企業 ");
break;
case 2:System.out.print("\t"+" 資料 ");
break;
case 3:System.out.print("\t"+" 公民 ");
break;
case 4:System.out.print("\t"+" 統計 ");
break;
case 5:System.out.print("\t"+" 英文 ");
break;
case 6:System.out.print("\t"+" 導師 ");
break;
case 7:System.out.print("\t"+" 資料 ");
break;
case 8:System.out.print("\t"+" 人類 ");
break;
case 9:System.out.print("\t"+" 體育 ");
break;
}

System.out.println(" ");

}
}

}

B9933041 提到...

package P1;
public class B1 {

public static void main(String[] args) {

int[][] courses={{0,3,0,0,9},
{1,3,5,0,9},
{1,4,5,6,0},
{1,4,5,6,0},
{2,0,0,7,0},
{2,0,0,7,0},
{2,0,0,7,0},
{0,0,0,8,0},
{0,0,0,8,0}};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ ){
switch(courses[i][j]){

case 0:System.out.print("\t"+"無");
break;
case 1:System.out.print("\t"+"企業");
break;
case 2:System.out.print("\t"+"資料庫");
break;
case 3:System.out.print("\t"+"英文");
break;
case 4:System.out.print("\t"+"公民");
break;
case 5:System.out.print("\t"+"統計");
break;
case 6:System.out.print("\t"+"導師");
break;
case 7:System.out.print("\t"+"資料");
break;
case 8:System.out.print("\t"+"人類");
break;
case 9:System.out.print("\t"+"體育");
break;
}
}System.out.println("");

}}
}

B9933045 提到...

public static void main(String[] args)
{
int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 10},
{1, 3, 5, 7, 10},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 4, 0 ,8, 11},
{0, 0, 0 ,9, 11},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;
System.out.println("星期一 星期二 星期三 星期四 星期五");
System.out.println();
for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}
}

b9933005豐智偉 提到...

package P1;

public class A {

public static void main(String[] args) {
int[][] courses= {{0, 0, 0, 7, 0},
{1, 0, 5, 7, 0},
{1, 3, 5, 0, 0},
{1, 3, 5, 0, 0},
{2, 0, 6, 8, 0},
{2, 0, 6 ,8, 0},
{2, 4, 6 ,8, 0},
{0, 4, 0 ,9, 0},
{0, 0, 0 ,9, 0}};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ ){

switch(courses[i][j]){

case 0:System.out.print("\t"+"無");
break;
case 1:System.out.print("\t"+"企業");
break;
case 2:System.out.print("\t"+"資料");
break;
case 3:System.out.print("\t"+"公民");
break;
case 4:System.out.print("\t"+"音樂");
break;
case 5:System.out.print("\t"+"統計學");
break;
case 6:System.out.print("\t"+"資訊");
break;
case 7:System.out.print("\t"+"英文");
break;
case 8:System.out.print("\t"+"資料");
break;
case 9:System.out.print("\t"+"人類");
break;
}

}
System.out.println("");
}

}
}

B9933054 提到...

package pack1;

public class A1 {

public static void main(String[] args) {

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 10},
{1, 3, 5, 7, 10},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 4, 0 ,8, 11},
{0, 0, 0 ,9, 11},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}

}

}

B9933049 提到...

package P1;

public class A1 {

public static void main(String[] args)
{


// 學生功課表
int[][] courses=
{{0, 0, 0, 5, 0},
{1, 0, 4, 5, 9},
{1, 3, 4, 6, 9},
{1, 3, 4, 6, 9},
{2, 0, 0, 7, 0},
{2, 0, 0 ,7, 0},
{2, 0, 0 ,7, 10},
{0, 0, 0 ,8, 10},
{0, 0, 0 ,8, 0}};

int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("統計學 ");
break;
case 5:System.out.print("英文 ");
break;
case 6:System.out.print("導師 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動與地球環境變遷 ");
break;
case 9:System.out.print("物件導向技術");
break;
case 10:System.out.print("體育");
break;

}
System.out.print("\t");
}
System.out.println("");
}
}

}

b9933024 提到...

package pack1;

public class b2 {

public static void main(String[] args) {

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 10, 8, 0},
{2, 4, 10 ,8, 0},
{2, 0, 10 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("英文");
break;
case 2:System.out.print("企業電子化 ");
break;
case 3:System.out.print("公民概論 ");
break;
case 4:System.out.print("羽毛球 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("資訊專業");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}
}
}

B9933015 提到...

public class Page1 {


public static void main(String[] args) {

int[][] courses=
{{0, 0, 0, 6, 10},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 11},
{1, 3, 5, 7, 11},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課 ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("沒課 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("地球變遷環境 ");
break;
case 10:System.out.print("體育 ");
break;
case 11:System.out.print("舞蹈身體文化 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}


}
}

B9933055 提到...

public class V4444 {
// 主程式
public static void main(String[] args) {
// 學生功課表

int[][] courses=
{{0, 6, 0, 0, 0},
{1, 6, 5, 0, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 11, 8, 0},
{2, 4, 11 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

B9933044 提到...

package PP1;

public class pdpdp12
{


public static void main(String[] args)
{
int[][] courses=
{{0, 0, 0, 5, 0},
{1, 0, 4, 5, 9},
{1, 3, 4, 6, 9},
{1, 3, 4, 6, 9},
{2, 0, 0, 7, 0},
{2, 0, 0 ,7, 0},
{2, 0, 0, 7, 0},
{0, 0, 0, 8, 0},
{0, 0, 0, 8, 0}};

int day;
int num;
int code=0;
for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++ )
{

day=i;
num=j;
code=courses[i][j];

switch(code)
{

case 0 :System.out.print("沒課! ");
break;

case 1 :System.out.print("企業電子化 ");
break;

case 2 :System.out.print("資料庫管理系統 ");
break;

case 3 :System.out.print("公民社會概論 ");
break;

case 4 :System.out.print("統計學 ");
break;

case 5 :System.out.print("英文 ");
break;

case 6 :System.out.print("導師 ");
break;

case 7 :System.out.print("資料結構 ");
break;

case 8 :System.out.print("人類活動與地球環境變遷 ");
break;

case 9 :System.out.print("物件導向技術 ");
break;

}
System.out.print("\t");
}
}
System.out.println("");
}

}

B9933052 提到...

package P1;

public class B9933052A {


public static void main(String[] args) {

int[][] courses=
{
{0, 0, 0, 7, 0},
{1, 0, 6, 7, 11},
{1, 3, 6, 8, 11},
{1, 3, 6, 8, 11},
{2, 4, 0, 9, 0},
{2, 4, 0, 9, 0},
{2, 5, 0 ,9, 0} ,
{0, 5, 0 ,10 ,0},
{0, 5, 0 ,10, 0} ,
};


for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
switch(courses[i][j]){
case 0:System.out.print("\t"+"沒課 ");
break;
case 1:System.out.print("\t"+"企業 ");
break;
case 2:System.out.print("\t"+"資料 ");
break;
case 3:System.out.print("\t"+"公民 ");
break;
case 4:System.out.print("\t"+"體育");
break;
case 5:System.out.print("\t"+"生產管理 ");
break;
case 6:System.out.print("\t"+"統計學");
break;
case 7:System.out.print("\t"+"英文 ");
break;
case 8:System.out.print("\t"+"導師 ");
break;
case 9:System.out.print("\t"+"資料 ");
break;
case 10:System.out.print("\t"+"人類 ");
break;
case 11:System.out.print("\t"+"物件");
break;

}
System.out.println(" ");
}
}
}

B9933036 提到...

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 10},
{1, 3, 5, 7, 10},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 4, 0 ,8, 11},
{0, 0, 0 ,9, 11},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}

B9933042 提到...

public class B1 {
public static void main(String[] args) {
int[][] courses=

{{0, 3, 0, 0 , 0},
{1, 3, 7, 0 , 0},
{1, 4, 7, 0 , 0},
{1, 4, 7, 0 , 0},
{2, 5, 8, 9 , 0},
{2, 5, 8, 9 , 0},
{2, 6, 8, 9 , 0},
{0, 6, 0, 10, 0},
{0, 6, 0, 10, 0}, };
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
switch(courses[i][j]){
case 0:System.out.print("            ");
break;
case 1:System.out.print("企業電子化       ");
break;
case 2:System.out.print("資料庫管理系統     ");
break;
case 3:System.out.print("英文          ");
break;
case 4:System.out.print("公民社會概論      ");
break;
case 5:System.out.print("體育          ");
break;
case 6:System.out.print("生產管理        ");
break;
case 7:System.out.print("統計學         ");
break;
case 8:System.out.print("資訊專業人員認證    ");
break;
case 9:System.out.print("資料結構        ");
break;
case 10:System.out.print("人類活動與地球環境變遷");
break;
}
System.out.println("");
}
}
}

B9933010 提到...

package pack1;
import java.io.*;
public class A1 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 0, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
for ( int i = 0; i < courses.length; i++ ) {
for ( int j = 0; j < courses[i].length; j++ )

switch (courses[i][j]) {
case 0: System.out.println("沒課!");
break;
case 1: System.out.println("企業電子化");
break;
case 2: System.out.println("資料庫管理");
break;
case 3: System.out.println("公民社會概論");
break;
case 4: System.out.println("體育");
break;
case 5: System.out.println("統計學");
break;
case 6: System.out.println("英文");
break;
case 7: System.out.println("週會");
break;
case 8: System.out.println("資料結構化");
break;
case 9: System.out.println("人類活動與地球環境變遷");
break;
}
System.out.println("");
}
}
}

B9933040 提到...

package pack;

public class b1 {


public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 10},
{1, 3, 5, 7, 10},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 4, 0 ,8, 11},
{0, 0, 0 ,9, 11},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");
}
}

}

B9933026 提到...

package pack1;
import java.io.*;
public class A1 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 0, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
for ( int i = 0; i < courses.length; i++ ) {
for ( int j = 0; j < courses[i].length; j++ )

switch (courses[i][j]) {
case 0: System.out.println("沒課!");
break;
case 1: System.out.println("企業電子化");
break;
case 2: System.out.println("資料庫管理");
break;
case 3: System.out.println("公民社會概論");
break;
case 4: System.out.println("體育");
break;
case 5: System.out.println("統計學");
break;
case 6: System.out.println("英文");
break;
case 7: System.out.println("週會");
break;
case 8: System.out.println("資料結構化");
break;
case 9: System.out.println("人類活動與地球環境變遷");
break;
}
System.out.println("");
}
}
}

B9933031 提到...

import java.io.*;
public class co7 {

public static void main(String[] args)
throws Exception {

int[][] courses={ {0, 2, 0, 5, 0},
{1, 4, 0, 5, 0},
{1, 0, 0, 0, 0},
{1, 0, 4, 3, 0},
{2, 0, 4, 3, 0},
{2, 0, 4, 3, 0} };
int week_no;
int num;
int code;

BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
System.out.print("請輸入星期(1 到 5)==> ");
System.out.flush();

week_no = Integer.parseInt(in.readLine());
System.out.print("請輸入第幾節課(1 到 6)==> ");
System.out.flush();

num = Integer.parseInt(in.readLine());

code = courses[num-1][week_no-1];
System.out.println("課程代碼: " + code);

switch ( code ) {
case 0: System.out.println("沒課!");
break;
case 1: System.out.println("企業電子化 ");
break;
case 2: System.out.println("資料庫管理系統 ");
break;
case 3: System.out.println("資料結構");
break;
case 4: System.out.println("資訊專業");
break;
case 5: System.out.println("英文");
break;
}
in.close();
}
}

B9933047 提到...

package pack1;
import java.io.*;
public class A1 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 0, 8, 0},
{2, 4, 0 ,8, 0},
{2, 0, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
for ( int i = 0; i < courses.length; i++ ) {
for ( int j = 0; j < courses[i].length; j++ )

switch (courses[i][j]) {
case 0: System.out.println("沒課!");
break;
case 1: System.out.println("企業電子化");
break;
case 2: System.out.println("資料庫管理");
break;
case 3: System.out.println("公民社會概論");
break;
case 4: System.out.println("體育");
break;
case 5: System.out.println("統計學");
break;
case 6: System.out.println("英文");
break;
case 7: System.out.println("週會");
break;
case 8: System.out.println("資料結構化");
break;
case 9: System.out.println("人類活動與地球環境變遷");
break;
}
System.out.println("");
}
}
}

B9933050 提到...

package pack1;

public class A1 {

public static void main(String[] args) {

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 0, 0, 8, 0},
{2, 0, 0, 8, 0},
{2, 4, 0, 8, 0},
{0, 4, 0, 9, 0},
{0, 0, 0 ,9, 0} };

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{


switch ( courses[i][j] ) {
case 0: System.out.print("\t"+"沒課!");
break;
case 1: System.out.print("\t"+"企業");
break;
case 2: System.out.print("\t"+"資料");
break;
case 3: System.out.print("\t"+"公民");
break;
case 4: System.out.print("\t"+"體育");
break;
case 5: System.out.print("\t"+"統計學");
break;
case 6: System.out.print("\t"+"英文");
break;
case 7: System.out.print("\t"+"導師");
break;
case 8: System.out.print("\t"+"資料");
break;
case 9: System.out.print("\t"+"人類");
break;

}
System.out.println(" ");
}

{

}
}
}
}

b9933057 提到...

int[][] courses= {{0, 0, 0, 6, 0}, {1, 0, 5, 6, 10}, {1, 3, 5, 7, 10}, {1, 3, 5, 7, 10}, {2, 4, 0, 8, 0}, {2, 4, 0 ,8, 0}, {2, 4, 0 ,8, 11}, {0, 0, 0 ,9, 11}, {0, 0, 0 ,9, 0}}; int day; int num; int code = 0; for ( int i = 0; i < courses.length; i++ ) {for ( int j = 0; j < courses[i].length; j++) { day=i; num=j; code=courses[i][j]; switch(code) { case 0:System.out.print("沒課~ ");break; case 1:System.out.print("企業電子化 ");break; case 2:System.out.print("資料庫管理系統 ");break; case 3:System.out.print("公民社會概論 ");break; case 4:System.out.print("SOL語言設計 ");break; case 5:System.out.print("統計學 ");break; case 6:System.out.print("英文 ");break; case 7:System.out.print("導師 ");break; case 8:System.out.print("資料結構 ");break; case 9:System.out.print("人類活動與地球環境變遷");break; case 10:System.out.print("物件導向技術 ");break; case 11:System.out.print("體育 ");break; } System.out.print("\t"); } System.out.println(""); }

b9933025 提到...

package pack1;

public class t1 {


public static void main(String[] args) {
int[][] courses=
{{0, 3, 0, 0, 9},
{1, 3, 5, 0, 9},
{1, 4, 5, 6, 0},
{1, 4, 5, 6, 0},
{2, 0, 0, 7, 0},
{2, 0, 0, 7, 0},
{2, 0, 0, 7, 0},
{0, 0, 0, 8, 0},
{0, 0, 0 ,8, 0} };
// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
{
switch(courses[i][j]){
case 0:System.out.print("沒課!");
break;

case 1:System.out.print("企業墊子化!");
break;

case 2:System.out.print("資料庫管理!");
break;

case 3:System.out.print("英文!");
break;

case 4:System.out.print("公民社會概論!");
break;

case 5:System.out.print("統計學!");
break;

case 6:System.out.print("週會!");
break;

case 7:System.out.print("資料結構!");
break;

case 8:System.out.print("人類活動與地球環境變遷!");
break;

case 9:System.out.print("體育!");
break;
}
System.out.println("");

b9933004 提到...

public class V4444 {
// 主程式
public static void main(String[] args) {
// 學生功課表

int[][] courses=
{{0, 6, 0, 0, 0},
{1, 6, 5, 0, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 11, 8, 0},
{2, 4, 11 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變​遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

B9933012 提到...

package pack1;

public class b1 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub



// 主程式

// 學生功課表
int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 0, 0, 8, 0},
{2, 0, 0, 8, 0},
{2, 4, 0, 8, 0},
{0, 4, 0, 9, 0},
{0, 0, 0 ,9, 0} };
// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{

switch (courses[i][j]){
case 0: System.out.print("\t"+"沒課");
break;
case 1: System.out.print("\t"+"企業");
break;
case 2: System.out.print("\t"+"資料");
break;
case 3: System.out.print("\t"+"公民");
break;
case 4: System.out.print("\t"+"體育");
break;
case 5: System.out.print("\t"+"統計");
break;
case 6: System.out.print("\t"+"英文");
break;
case 7: System.out.print("\t"+"導師");
break;
case 8: System.out.print("\t"+"資料");
break;
case 9: System.out.print("\t"+"人類");
break;
}
System.out.println(" ");
}
}
}
}

b9933046 提到...

public class V4444 {
// 主程式
public static void main(String[] args) {
// 學生功課表

int[][] courses=
{{0, 6, 0, 0, 0},
{1, 6, 5, 0, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 11, 8, 0},
{2, 4, 11 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變​遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

B9933003 提到...

package pack;

public class pack {


public static void main(String[] args) {


int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 0},
{2, 4, 7, 10, 0},
{2, 5, 7, 10, 0},
{0, 5, 0, 10, 0},
{0, 0, 0, 11, 0},
{0, 0, 0, 11, 0} };

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ ){



switch(courses[i][j]){
case 0:System.out.print("\t"+"沒課");
break;
case 1:System.out.print("\t"+"企業電子");
break;
case 2:System.out.print("\t"+"資料庫");
break;
case 3:System.out.print("\t"+"公民社會");
break;
case 4:System.out.print("\t"+"數位影像");
break;
case 5:System.out.print("\t"+"體育");
break;
case 6:System.out.print("\t"+"統計學");
break;
case 7:System.out.print("\t"+"資訊專業");
break;
case 8:System.out.print("\t"+"英文");
break;
case 9:System.out.print("\t"+"導師");
break;
case 10:System.out.print("\t"+"資料結構");
break;
case 11:System.out.print("\t"+"人類");
break;
}




}System.out.println(" ");
}}

}

B9933013 提到...

package pack1;
import java.io.*;
public class B1 {


public static void main(String[] args) {
// TODO Auto-generated method stub

int[][] courses=
{{0, 3, 0, 0, 0},
{1, 3, 6, 0, 0},
{1, 4, 6, 8, 0},
{1, 4, 6, 8, 0},
{2, 5, 7, 9, 0},
{2, 5, 7, 9, 0},
{2, 0, 7, 9, 0},
{0, 0, 0, 10, 0},
{0, 0, 0 ,10, 0}};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch (courses[i][j])
{
case 0:System.out.print("\t"+"     ");
break;
case 1:System.out.print("\t"+"企業電子化");
break;
case 2:System.out.print("\t"+"資料庫管理");
break;
case 3:System.out.print("\t"+" 英 文 ");
break;
case 4:System.out.print("\t"+"公民 社會");
break;
case 5:System.out.print("\t"+"體   育");
break;
case 6:System.out.print("\t"+"統 計 學");
break;
case 7:System.out.println("\t"+"資訊專業人");
break;
case 8:System.out.print("\t"+"導   師");
break;
case 9:System.out.print("\t"+"資料 結構");
break;
case 10:System.out.print("\t"+"人類 地球");
break;
}
}
System.out.println();



}

}
}

B9933007 提到...

package book;

public class book {
public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 4, 6, 0},
{1, 3, 4, 7, 10},
{1, 3, 4, 7, 10},
{2, 0, 5, 8, 0},
{2, 0, 5, 8, 0},
{2, 0, 0, 8, 0},
{0, 0, 0, 9, 0},
{0, 0, 0 ,9, 0} };

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{


switch (courses[i][j]) {
case 0:System.out.print("  空堂");
break;
case 1 :System.out.print(" 企業電子化");
break;
case 2 :System.out.print(" 資料庫管理");
break;
case 3 :System.out.print(" 公民社會");
break;
case 4 :System.out.print("  統計學");
break;
case 5 :System.out.print(" 體育游泳");
break;
case 6 :System.out.print("  英文");
break;
case 7 :System.out.print("  導師");
break;
case 8 :System.out.print(" 資料結構");
break;
case 9 :System.out.print(" 人類活動");
break;
case 10 :System.out.print(" 基礎日文");
break;
}
System.out.print("\t"+courses[i][j]);
}
System.out.println();
}
}

}

B9933001 提到...

import java.io.*;
public class CC {


public static void main(String[] args) {

int[][] courses={{1, 3, 6, 8, 0},
{1, 3, 6, 8, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 9, 0},
{2, 4, 7, 10,12},
{2, 5, 7 ,10,12},
{0, 5, 0, 10,12},
{0, 0, 0, 11,0},
{0 ,0 ,0 ,11,0}};

int code;
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{


switch(courses[i][j]){
case 0:
System.out.printf("沒課");
break;
case 1:
System.out.printf("企業電子化");
break;
case 2:
System.out.printf("資料庫管理");
break;
case 3:
System.out.printf("公民社會概論");
break;
case 4:
System.out.printf("數位影像藝術");
break;
case 5:
System.out.printf("體育");
break;
case 6:
System.out.printf("統計學");
break;
case 7:
System.out.printf("資訊科技服務管理");
break;
case 8:
System.out.printf("英文");
break;
case 9:
System.out.printf("導師");
break;
case 10:
System.out.printf("資料結構");
break;
case 11:
System.out.printf("人類活動與地球環境變遷");
break;
case 12:
System.out.printf("FLASH畫設計");
break;
}
System.out.println();
}
}
}}

b9933007 提到...

package book;

public class book {
public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 4, 6, 0},
{1, 3, 4, 7, 10},
{1, 3, 4, 7, 10},
{2, 0, 5, 8, 0},
{2, 0, 5, 8, 0},
{2, 0, 0, 8, 0},
{0, 0, 0, 9, 0},
{0, 0, 0 ,9, 0} };

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{


switch (courses[i][j]) {
case 0:System.out.print("  空堂");
break;
case 1 :System.out.print(" 企業電子化");
break;
case 2 :System.out.print(" 資料庫管理");
break;
case 3 :System.out.print(" 公民社會");
break;
case 4 :System.out.print("  統計學");
break;
case 5 :System.out.print(" 體育游泳");
break;
case 6 :System.out.print("  英文");
break;
case 7 :System.out.print("  導師");
break;
case 8 :System.out.print(" 資料結構");
break;
case 9 :System.out.print(" 人類活動");
break;
case 10 :System.out.print(" 基礎日文");
break;
}
System.out.print("\t"+courses[i][j]);
}
System.out.println();
}
}

}

b9933021 提到...

package p1;

public class b9933021
{

public static void main(String[] args)
{

int[][] courses=
{
{0, 0, 0, 7, 0},
{1, 0, 5, 7, 0},
{1, 3, 5, 8, 0},
{1, 3, 5, 8, 0},
{2, 4, 6, 9, 11},
{2, 4, 6, 9, 11},
{2, 0, 6 ,9, 11},
{0, 0, 0, 10, 0},
{0, 0, 0, 10, 0}


};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j])
{
case 0 :System.out.print("\t"+"");
break;
case 1 :System.out.print("\t"+"企業電子化");
break;
case 2:System.out.print("\t"+"資料庫管理");
break;
case 3 :System.out.print("\t"+"公民社會");
break;
case 4 :System.out.print("\t"+"體育");
break;
case 5 :System.out.print("\t"+"統計學");
break;
case 6 :System.out.print("\t"+"資訊專業");
break;
case 7 :System.out.print("\t"+"英文");
break;
case 8 :System.out.print("\t"+"導師");
break;
case 9 :System.out.print("\t"+"資料結構");
break;
case 10 :System.out.print("\t"+"人類與地茄");
break;
case 11 :System.out.print("\t"+"3D繪圖");
break;



}
}
System.out.println();



}
}
}

B9933043 提到...

int[][] courses=
{{0, 3, 0, 0, 0},
{1, 3, 6, 0, 0},
{1, 4, 6, 7, 0},
{1, 4, 6, 7, 0},
{2, 0, 0, 8, 0},
{2, 0, 0 ,8, 0},
{2, 5, 0 ,8, 0},
{0, 5, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{

switch(courses[i][j]){

case 0:System.out.print("\t"+"沒課");
break;
case 1:System.out.print("\t"+"企業電子化 ");
break;
case 2:System.out.print("\t"+"資料庫管理 ");
break;
case 3:System.out.print("\t"+"英文");
break;
case 4:System.out.print("\t"+"公民 ");
break;
case 5:System.out.print("\t"+"體育");
break;
case 6:System.out.print("\t"+"統計學");
break;
case 7:System.out.print("\t"+"週會 ");
break;
case 8:System.out.print("\t"+"資料結構 ");
break;
case 9:System.out.print("\t"+"人類活動");
break;

}

}
System.out.println("");

}
}
}

B9933019 提到...

package p1;

public class N1 {
public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 12},
{2, 4, 7, 10, 12},
{2, 5, 7, 10, 12},
{0, 5, 0, 11, 0},
{0, 0, 0, 11, 0},};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0:System.out.print("\t"+" ");
break;

case 1:System.out.print("\t"+"企業電子化");
break;

case 2:System.out.print("\t"+"資料庫管理系統");
break;

case 3:System.out.print("\t"+"公民社會概論");
break;

case 4:System.out.print("\t"+"體育");
break;

case 5:System.out.print("\t"+"數位影像藝術");
break;

case 6:System.out.print("\t"+"統計學");
break;

case 7:System.out.print("\t"+"資訊專業人員認證");
break;

case 8:System.out.print("\t"+"英文");
break;

case 9:System.out.print("\t"+"導師");
break;

case 10:System.out.print("\t"+"資料結構");
break;

case 11:System.out.print("\t"+"人類活動與地球環境變遷");
break;

case 12:System.out.print("\t"+"電腦3D繪圖與動畫概論");
break;
}

}
System.out.println(" ");



}

}
}

b9933053 提到...

package p1;

public class b1 {



/**
* @param args
*/
public static void main(String[] args)
{
// TODO Auto-generated method stub





int[][] courses=
{{0, 3, 0, 0, 0},
{1, 3, 6, 0, 0},
{1, 4, 6, 8, 0},
{1, 4, 6, 8, 0},
{2, 0, 7, 9, 11},
{2, 0, 7, 9, 11},
{2, 5, 7, 9, 11},
{0, 5, 0, 10, 0},
{0, 0, 0 ,10, 0} };


// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0 : System.out.print("\t"+"沒課~");
break;
case 2 : System.out.print("\t"+"企業電子化");
break;
case 3 : System.out.print("\t"+"資料庫管理系統 ");
break;
case 4 : System.out.print("\t"+"英文 ");
break;
case 5 : System.out.print("\t"+"公民社會 ");
break;
case 6 : System.out.print("\t"+"體育(籃球)");
break;
case 7 : System.out.print("\t"+"統計學 ");
break;
case 8 : System.out.print("\t"+"人員認證");
break;
case 9 : System.out.print("\t"+"資料結構 ");
break;
case 10 : System.out.print("\t"+"人類活動 ");
break;
case 11 : System.out.print("\t"+"電腦3D繪圖");
break;


}

System.out.println();

}
}
}
}

b9933053 提到...

package p1;

public class b1 {



/**
* @param args
*/
public static void main(String[] args)
{
// TODO Auto-generated method stub





int[][] courses=
{{0, 3, 0, 0, 0},
{1, 3, 6, 0, 0},
{1, 4, 6, 8, 0},
{1, 4, 6, 8, 0},
{2, 0, 7, 9, 11},
{2, 0, 7, 9, 11},
{2, 5, 7, 9, 11},
{0, 5, 0, 10, 0},
{0, 0, 0 ,10, 0} };


// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0 : System.out.print("\t"+"沒課~");
break;
case 2 : System.out.print("\t"+"企業電子化");
break;
case 3 : System.out.print("\t"+"資料庫管理系統 ");
break;
case 4 : System.out.print("\t"+"英文 ");
break;
case 5 : System.out.print("\t"+"公民社會 ");
break;
case 6 : System.out.print("\t"+"體育(籃球)");
break;
case 7 : System.out.print("\t"+"統計學 ");
break;
case 8 : System.out.print("\t"+"人員認證");
break;
case 9 : System.out.print("\t"+"資料結構 ");
break;
case 10 : System.out.print("\t"+"人類活動 ");
break;
case 11 : System.out.print("\t"+"電腦3D繪圖");
break;


}

System.out.println();

}
}
}
}

B9933038 提到...

package p3;

public class Z1 {


public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 5, 0},
{7, 0, 2, 5, 10},
{7, 6, 2, 9, 10},
{7, 6, 2, 9, 10},
{1, 0, 8, 3, 4},
{1, 0, 8 ,3, 4},
{1, 0, 8, 3, 0},
{0 ,0, 0, 11,0},
{0, 0, 0, 11,0}};
String code;
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0:System.out.print("\t"+" ");
break;
case 1:System.out.print("\t"+" 資料庫管理系統");
break;
case 2:System.out.print("\t"+" 統計學");
break;
case 3:System.out.print("\t"+" 資料結構");
break;
case 4:System.out.print("\t"+" 體育");
break;
case 5:System.out.print("\t"+" 英文");
break;
case 6:System.out.print("\t"+" 公民社會");
break;
case 7:System.out.print("\t"+" 企業電子化");
break;
case 8:System.out.print("\t"+" 專業人員認證");
break;
case 9:System.out.print("\t"+" 導師");
break;
case 10:System.out.print("\t"+" 物件導向");
break;
case 11:System.out.print("\t"+" 人類活動與地砯環境變遷");
break;
}
}
System.out.println();


}

}}

b9733054 提到...

import javax.swing.*;
public class b9733054 {


public static void main(String[] args) {

int[][] courses=
{{0, 0, 0, 0, 7},
{1, 0, 3, 5, 7},
{1, 0, 3, 5, 7},
{2, 0, 4, 6, 8},
{2, 0, 4, 6, 8},
{0, 0, 0 ,6, 8} };


for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{



switch(courses[i][j]) {
case 0: System.out.printf("%8s","沒課");
break;
case 1: System.out.printf("%8s","基礎日文");
break;
case 2: System.out.printf("%8s","觀光日語");
break;
case 3: System.out.printf("%8s","現代小說與愛情心理學");
break;
case 4: System.out.printf("%8s","資訊管理講座");
break;
case 5: System.out.printf("%8s","導師");
break;
case 6: System.out.printf("%8s","資料結構");
break;
case 7: System.out.printf("%8s","物件導向技術");
break;
case 8: System.out.printf("%8s","FLASH動畫設計");
break;}

}
System.out.println();
}

}

}

B9933048 提到...

package book;
class book{
public static void main(String[] args) {

int[][] courses=
{{0, 3, 0, 7, 0},
{1, 3, 6, 7, 0},
{1, 4, 6, 8, 0},
{1, 4, 6, 8, 0},
{2, 0, 0, 9, 0},
{2, 0, 0 ,9, 0},
{2, 5, 0, 9, 0},
{0, 5, 0, 10, 0},
{0, 0, 0, 10, 0}};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{

switch (courses[i][j]) {
case 0: System.out.print(" "+"沒課!");
break;
case 1: System.out.print(" "+"企業電子化");
break;
case 2: System.out.print(" "+"資料庫管理");
break;
case 3: System.out.print(" "+"軍訓[上]");
break;
case 4: System.out.print(" "+"公民社會");
break;
case 5: System.out.print(" "+"體育(桌球)");
break;
case 6: System.out.print(" "+"統計學[一]");
break;
case 7: System.out.print(" "+"英文[三]");
break;
case 8: System.out.print(" "+"導師");
break;
case 9: System.out.print(" "+"資料結構");
break;
case 10: System.out.print(" "+"人類活動");
break;
}

}
System.out.println();
}
}
}

B9733100 提到...

import java.io.*;
public class fff {

public static void main(String[] args) throws Exception {
int[][] courses={{0,0,0,0,0},
{0,0,4,0,0},
{0,2,4,5,0},
{0,2,4,5,0},
{0,0,0,6,7},
{0,0,0,6,7},
{1,3,0,6,7},
{1,3,0,0,0},
{0,3,0,0,0}};

for(int i=0;i<courses.length;i++){

for(int j=0;j<courses[i].length;j++)
{
switch(courses[i][j]){
case 0:
System.out.printf("%8s\t","空堂");break;
case 1:
System.out.printf("%8s\t","異文化交流");break;
case 2:
System.out.printf("%8s\t","大陸經濟");break;
case 3:
System.out.printf("%8s\t","財務");break;
case 4:
System.out.printf("%8s\t","統計學");break;
case 5:
System.out.printf("%8s\t","扳倒");break;
case 6:
System.out.printf("%8s\t","資料結構");break;
case 7:
System.out.printf("%8s\t","專案管理");break;
}

}

System.out.println();
}
}
}

B9733099 提到...

import java.io.*;
public class bbb {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[][] courses=
{{0, 0, 0, 0, 0},
{0, 2, 0, 0, 8},
{1, 2, 0, 6, 8},
{1, 2, 0, 6, 8},
{0, 3, 5, 7, 9},
{0, 3, 5 ,7, 9},
{0, 4, 0, 7, 0},
{0, 4, 0, 0, 0},
{0, 4, 0, 0, 0} };

// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ )
{

for ( int j = 0; j < courses[i].length; j++ )

{
switch(courses[i][j]){
case 0:
System.out.printf("%8s\t","沒課");break;
case 1:
System.out.printf("%8s\t","體育");break;
case 2:
System.out.printf("%8s\t","電子化");break;
case 3:
System.out.printf("%8s\t","國際關係");break;
case 4:
System.out.printf("%8s\t","生產管理");break;
case 5:
System.out.printf("%8s\t","講座");break;
case 6:
System.out.printf("%8s\t","班會");break;
case 7:
System.out.printf("%8s\t","資料結構");break;
case 8:
System.out.printf("%8s\t","金融服務與管理");break;
case 9:
System.out.printf("%8s\t","倫理學");break;
}



}
System.out.println();
}
}
}

B9733088 提到...

import java.io.*;
public class jo {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[][] courses=
{{0, 0, 0, 0, 0},
{0, 1, 0, 0, 0},
{0, 1, 0, 4, 0},
{0, 1, 0, 4, 0},
{0, 0, 3, 5, 0},
{0, 0, 3 ,5, 0},
{0, 2, 0, 5, 0},
{0, 2, 0, 0, 0},
{0, 2, 0, 0, 0}};

// 二維陣列的走訪
for ( int i = 0; i < courses.length; i++ )
{

for ( int j = 0; j < courses[i].length; j++ )

{
switch(courses[i][j]){
case 0:
System.out.printf("%8s\t","沒課");break;
case 1:
System.out.printf("%8s\t","電子化學習");break;
case 2:
System.out.printf("%8s\t","生產管理 ");break;
case 3:
System.out.printf("%8s\t","資管講座");break;
case 4:
System.out.printf("%8s\t","導師");break;
case 5:
System.out.printf("%8s\t","資料結構 ");break;

}



}
System.out.println();
}
}
}

b9933056 提到...

public class a2 {
// 主程式
public static void main(String[] args) {
// 學生功課表

int[][] courses=
{{0, 0, 0, 6, 10},
{1, 0, 5, 6, 10},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 0, 0, 8, 0},
{2, 0, 0 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 4, 0 ,9, 0},
{0, 4, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("沒課~ ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("生產管理 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

B9933048(更新) 提到...

package book;
class book{
public static void main(String[] args) {

int[][] courses=
{{11, 12, 13, 14, 15},
{0, 3, 0, 7, 0},
{1, 3, 6, 7, 0},
{1, 4, 6, 8, 0},
{1, 4, 6, 8, 0},
{2, 0, 0, 9, 0},
{2, 0, 0 ,9, 0},
{2, 5, 0, 9, 0},
{0, 5, 0, 10, 0},
{0, 0, 0, 10, 0}};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{

switch (courses[i][j]) {
case 0: System.out.printf(""+"空堂 ");
break;
case 1: System.out.printf(""+"企業電子化 ");
break;
case 2: System.out.printf(""+"資料庫 ");
break;
case 3: System.out.printf(""+"軍訓[上] ");
break;
case 4: System.out.printf(""+"公民社會 ");
break;
case 5: System.out.printf(""+"體育(桌球) ");
break;
case 6: System.out.printf(""+"統計學[一] ");
break;
case 7: System.out.printf(""+"英文[三] ");
break;
case 8: System.out.printf(""+"導師 ");
break;
case 9: System.out.printf(""+"資料結構 ");
break;
case 10:System.out.printf(""+"人類活動 ");
break;
case 11:System.out.printf(""+"星期一 ");
break;
case 12:System.out.printf(""+"星期二 ");
break;
case 13:System.out.printf(""+"星期三 ");
break;
case 14:System.out.printf(""+"星期四 ");
break;
case 15:System.out.printf(""+"星期五 ");
break;
}

}

System.out.println();

}
}
}

b9933016 提到...

package B9;
import java.io.*;
public class b9933016
{


public static void main(String[] args) throws Exception
{
int[][] courses=
{{0, 0, 0, 7, 0},
{1, 0, 6, 7, 0},
{1, 3, 6, 8, 0},
{1, 3, 6, 8, 0},
{2, 4, 0, 9, 11},
{2, 4, 0, 9, 11},
{2, 5, 0, 9, 11},
{0, 5, 0, 10, 0},
{0, 5, 0, 10, 0}};
int day;
int num;
int code = 0;
for ( int i = 0; i < courses.length; i++ )
{
for ( int j = 0; j < courses[i].length; j++ )
{
day=i;
num=j;
code=courses[i][j];

switch ( courses[i][j] )
{
case 0:System.out.printf("%8s\t","沒課");
break;
case 1:System.out.printf("%8s\t","企業電子化 ");
break;
case 2:System.out.printf("%8s\t","資料庫管理系統");
break;
case 3:System.out.printf("%8s\t","公民社會概論");
break;
case 4:System.out.printf("%8s\t","體育");
break;
case 5:System.out.printf("%8s\t","多媒體網頁設計");
break;
case 6:System.out.printf("%8s\t","統計學");
break;
case 7:System.out.printf("%8s\t","英文");
break;
case 8:System.out.printf("%8s\t","導師");
break;
case 9:System.out.printf("%8s\t","資料結構");
break;
case 10:System.out.printf("%8s\t","人類活動與地球環境");
break;
case 11:System.out.printf("%8s\t","電鬧3D繪圖與動畫概論");
break;
}
}
}
System.out.println();
}
}

b9933016 提到...

package B9;
import java.io.*;
public class b9933016
{


public static void main(String[] args) throws Exception
{
int[][] courses=
{{0, 0, 0, 7, 0},
{1, 0, 6, 7, 0},
{1, 3, 6, 8, 0},
{1, 3, 6, 8, 0},
{2, 4, 0, 9, 11},
{2, 4, 0, 9, 11},
{2, 5, 0, 9, 11},
{0, 5, 0, 10, 0},
{0, 5, 0, 10, 0}};
int day;
int num;
int code = 0;
for ( int i = 0; i < courses.length; i++ )
{
for ( int j = 0; j < courses[i].length; j++ )
{
day=i;
num=j;
code=courses[i][j];

switch ( courses[i][j] )
{
case 0:System.out.printf("%8s\t","沒課");
break;
case 1:System.out.printf("%8s\t","企業電子化 ");
break;
case 2:System.out.printf("%8s\t","資料庫管理系統");
break;
case 3:System.out.printf("%8s\t","公民社會概論");
break;
case 4:System.out.printf("%8s\t","體育");
break;
case 5:System.out.printf("%8s\t","多媒體網頁設計");
break;
case 6:System.out.printf("%8s\t","統計學");
break;
case 7:System.out.printf("%8s\t","英文");
break;
case 8:System.out.printf("%8s\t","導師");
break;
case 9:System.out.printf("%8s\t","資料結構");
break;
case 10:System.out.printf("%8s\t","人類活動與地球環境");
break;
case 11:System.out.printf("%8s\t","電鬧3D繪圖與動畫概論");
break;
}
}
}
System.out.println();
}
}

B9933051 提到...

public class Ch2_1_3 {
// 主程式
public static void main(String[] args) {
// 學生功課表

int[][] courses=
{{0, 0, 0, 6, 0},
{1, 0, 5, 6, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 0, 0, 8, 0},
{2, 0, 0, 8, 0},
{2, 4, 0, 8, 0},
{0, 4, 0, 9, 0},
{0, 0, 0, 9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{
for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];

switch(code)
{
case 0:System.out.print("沒課! ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("體育 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;

}
System.out.print("\t");
}
System.out.println("");

}
}
}

B9933002 提到...

package pack;

public class pack {


public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 12},
{2, 4, 7, 10, 12},
{2, 5, 7, 10, 12},
{0, 5, 0, 11, 0},
{0, 0, 0 ,11, 0} };
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ ){

switch(courses[i][j]){
case 0:System.out.print("\t"+"沒課");
break;
case 1:System.out.print("\t"+"企業電子化");
break;
case 2:System.out.print("\t"+"資料庫");
break;
case 3:System.out.print("\t"+"公民概論");
break;
case 4:System.out.print("\t"+"數位影像");
break;
case 5:System.out.print("\t"+"體育(籃球)");
break;
case 6:System.out.print("\t"+"統計學");
break;
case 7:System.out.print("\t"+"資訊科技");
break;
case 8:System.out.print("\t"+"英文");
break;
case 9:System.out.print("\t"+"導師");
break;
case 10:System.out.print("\t"+"資料結構");
break;
case 11:System.out.print("\t"+"人類活動");
break;
case 12:System.out.print("\t"+"Flash動畫設計");
break;
}




}System.out.println(" ");
}


}

}

B9933001 提到...

package pack;

public class pack {


public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 12},
{2, 4, 7, 10, 12},
{2, 5, 7, 10, 12},
{0, 5, 0, 11, 0},
{0, 0, 0 ,11, 0} };
for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ ){

switch(courses[i][j]){
case 0:System.out.print("\t"+"沒課");
break;
case 1:System.out.print("\t"+"企業電子化");
break;
case 2:System.out.print("\t"+"資料庫");
break;
case 3:System.out.print("\t"+"公民概論");
break;
case 4:System.out.print("\t"+"數位影像");
break;
case 5:System.out.print("\t"+"體育");
break;
case 6:System.out.print("\t"+"統計學");
break;
case 7:System.out.print("\t"+"資訊科技");
break;
case 8:System.out.print("\t"+"英文");
break;
case 9:System.out.print("\t"+"導師");
break;
case 10:System.out.print("\t"+"資料結構");
break;
case 11:System.out.print("\t"+"人類活動");
break;
case 12:System.out.print("\t"+"Flash");
break;
}




}System.out.println(" ");
}


}

}

b9933028 提到...

public class V4444 {
public static void main(String[] args) {

int[][] courses=
{{0, 6, 0, 0, 0},
{1, 6, 5, 0, 10},
{1, 3, 5, 7, 10},
{1, 3, 5, 7, 10},
{2, 0, 0, 8, 11},
{2, 0, 0 ,8, 11},
{2, 4, 0 ,8, 0},
{0, 4, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print("空堂");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("音樂森林");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變遷");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

b9733089 提到...

public class N1 {
public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 12},
{2, 4, 7, 10, 12},
{2, 5, 7, 10, 12},
{0, 5, 0, 11, 0},
{0, 0, 0, 11, 0},};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0:System.out.print("沒課");
break;

case 1:System.out.print("沒課");
break;

case 2:System.out.print("JAVA認證");
break;

case 3:System.out.print("網路科技與社會[科技]");
break;

case 4:System.out.print("兩性關係[一般]");
break;

case 5:System.out.print("電子化學習");
break;

case 6:System.out.print("沒課");
break;

case 7:System.out.print("資訊專業人員認證");
break;

case 8:System.out.print("沒課");
break;

case 9:System.out.print("導師");
break;

case 10:System.out.print("資料結構");
break;

case 11:System.out.print("沒課");
break;

case 12:System.out.print("沒課");
break;
}

}
System.out.println("");



}

B9933008 提到...

package a1;

public class a1 {

public static void main(String[] args) {
int[][] courses=
{{0, 3, 0, 0, 0},
{1, 3, 6, 0, 0},
{1, 4, 6, 9, 0},
{1, 4, 6, 9, 0},
{2, 5, 0, 7, 0},
{2, 5, 0, 7, 0},
{2, 0, 0 ,7, 0},
{0, 0, 0 ,8, 0},
{0, 0, 0 ,8, 0}};
int day;
int num;
int code = 0;

for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
day=i;
num=j;
code=courses[i][j];
switch(code)
{
case 0:System.out.print(" ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("英文 ");
break;
case 4:System.out.print("公民社會 ");
break;
case 5:System.out.print("體育 ");
break;
case 6:System.out.print("統計學 ");
break;
case 7:System.out.print("資料結構 ");
break;
case 8:System.out.print("人類活動 ");
break;
case 9:System.out.print("週會");
break;
case 10:System.out.print("物件導向技術 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

B9933006 提到...

package pack;

public class A1
{
public static void main(String[] args)
{
int [][]courses= { { 0, 0, 0, 5, 0 },
{ 1, 0, 4, 5, 0 },
{ 1, 3, 4, 6, 0 },
{ 1, 3, 4, 6, 0 },
{ 2, 0, 11, 7, 0 },
{ 2, 0, 11, 7, 9 },
{ 2, 0, 0, 7, 9 },
{ 0, 0, 0, 8, 10 },
{ 0, 0, 0, 8, 10 }, };

for(int i=0; i<courses.length; i++)
{
for(int j=0; j<courses[i].length; j++)
{
switch (courses[i][j])
{
case 0: System.out.printf("\t"+" 無 ");
break;

case 1: System.out.print("\t"+"電 子 化 ");//企業電子化
break;

case 2: System.out.print("\t"+"資 料 庫 ");//資料庫管理系統
break;

case 3: System.out.print("\t"+"公民社會");//公民社會概論
break;

case 4: System.out.print("\t"+"統 計 學 ");
break;

case 5: System.out.print("\t"+"英  文");
break;

case 6: System.out.print("\t"+"導  師");
break;

case 7: System.out.print("\t"+"資料結構");
break;

case 8: System.out.print("\t"+"必修通識");//人類活動與地球環境變遷
break;

case 9: System.out.print("\t"+"一般通識");//危機管理
break;

case 10: System.out.print("\t"+"體  育");
break;

case 11: System.out.print("\t"+"英衝刺班");//多益衝刺班
break;
}
}
System.out.println();
}
}
}

B9733115 提到...

public class N1 {
public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 12},
{2, 4, 7, 10, 12},
{2, 5, 7, 10, 12},
{0, 5, 0, 11, 0},
{0, 0, 0, 11, 0},};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0:System.out.print("沒課");
break;

case 1:System.out.print("沒課");
break;

case 2:System.out.print("JAVA認證");
break;

case 3:System.out.print("網路科技與社會[科技]");
break;

case 4:System.out.print("國際關係[一般]");
break;

case 5:System.out.print("電子化學習");
break;

case 6:System.out.print("沒課");
break;

case 7:System.out.print("FLASH教學");
break;

case 8:System.out.print("沒課");
break;

case 9:System.out.print("導師");
break;

case 10:System.out.print("資料結構");
break;

case 11:System.out.print("沒課");
break;

case 12:System.out.print("沒課");
break;
}

}
System.out.println("");



}

B9733114 提到...

public class N1 {
public static void main(String[] args) {
int[][] courses=
{{0, 0, 0, 8, 0},
{1, 0, 6, 8, 0},
{1, 3, 6, 9, 0},
{1, 3, 6, 9, 0},
{2, 4, 7, 10, 12},
{2, 4, 7, 10, 12},
{2, 5, 7, 10, 12},
{0, 5, 0, 11, 0},
{0, 0, 0, 11, 0},};

for ( int i = 0; i < courses.length; i++ ){
for ( int j = 0; j < courses[i].length; j++ )
{
switch(courses[i][j]){
case 0:System.out.print("沒課");
break;

case 1:System.out.print("沒課");
break;

case 2:System.out.print("JAVA認證");
break;

case 3:System.out.print("網路科技與社會[科技]");
break;

case 4:System.out.print("國際關係[一般]");
break;

case 5:System.out.print("認識大陸經濟");
break;

case 6:System.out.print("沒課");
break;

case 7:System.out.print("資訊專業人員認證");
break;

case 8:System.out.print("沒課");
break;

case 9:System.out.print("導師");
break;

case 10:System.out.print("資料結構");
break;

case 11:System.out.print("沒課");
break;

case 12:System.out.print("沒課");
break;
}

}
System.out.println("");



}

b9933011 提到...

public class b9933011 {


public static void main(String[] args) {

int[][] courses=
{{0, 6, 0, 0, 0},
{1, 6, 5, 0, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 11, 8, 0},
{2, 4, 11 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int code = 0;
for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
code=courses[i][j];
switch(code)
{
case 0:System.out.print("無 ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變​遷");
break;
case 10:System.out.print("無 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

b9933011 提到...

public class b9933011 {


public static void main(String[] args) {

int[][] courses=
{{0, 6, 0, 0, 0},
{1, 6, 5, 0, 0},
{1, 3, 5, 7, 0},
{1, 3, 5, 7, 0},
{2, 4, 11, 8, 0},
{2, 4, 11 ,8, 0},
{2, 4, 0 ,8, 0},
{0, 0, 0 ,9, 0},
{0, 0, 0 ,9, 0}};
int code = 0;
for ( int i = 0; i < courses.length; i++ )
{for ( int j = 0; j < courses[i].length; j++)
{
code=courses[i][j];
switch(code)
{
case 0:System.out.print("無 ");
break;
case 1:System.out.print("企業電子化 ");
break;
case 2:System.out.print("資料庫管理系統 ");
break;
case 3:System.out.print("公民社會概論 ");
break;
case 4:System.out.print("SOL語言設計 ");
break;
case 5:System.out.print("統計學 ");
break;
case 6:System.out.print("英文 ");
break;
case 7:System.out.print("導師 ");
break;
case 8:System.out.print("資料結構 ");
break;
case 9:System.out.print("人類活動與地球環境變​遷");
break;
case 10:System.out.print("無 ");
break;
case 11:System.out.print("體育 ");
break;
}
System.out.print("\t");
}
System.out.println("");

}
}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章