網頁

2015年10月6日 星期二

ex3 課表矩陣

 列印課表數字代碼矩陣,以及代碼的課名

提示:參考此連結

65 則留言:

  1. B10333070 徐承瑋2015年10月6日 下午5:34


    public class HW1 {
    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 0, 0, 0, 0},
    {1, 0, 0, 0, 9},
    {1, 0, 5, 7, 9},
    {1, 0, 5, 7, 9},
    {2, 3, 6, 0, 10},
    {2, 3, 6, 0, 10},
    {2, 4, 6 ,8, 0},
    {0, 4, 6 ,8, 0},
    {0, 4, 0 ,8, 0},
    };
    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();
    }
    }
    }
    //1=統計學概論 2=企業電子化 3=永續發展-環境與防災 4=資料結構 5=公民社會與倫理-公民德行 6=進階程式設計 7=導師 8=密碼學 9=資料庫管理系統 10=體育

    回覆刪除
  2. B10333086 陳晏堂2015年10月6日 下午5:36

    // 0=無, 1=資料結構, 2=永續發展, 3=公民社會概論, 4=英文, 5=導師, 6=統計學, 7=企業電子化, 8=資料庫管理系統 9=音樂森林 10=體育 11=密碼學 12=程設
    int[][] courses = {
    {0,6,6,6 ,7,7,7,9,9},
    {0,0,,0,0,2,2,1,1,},
    {0,0,3,3,12,12,12,12,0},
    {4,4,5,5,0,0,11,11,11},
    {8,8,8,8,10,10,0,0,0},
    };
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 7 != 0) {
    System.out.print(courses[i][j]);

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

    回覆刪除
  3. b10333083,周琬芸2015年10月6日 下午5:38

    package ye;

    public class ex2
    {

    public static void main(String[] args)
    {
    // 0:空堂,1:英文,2:公民社會與倫理-公民德行,3:密碼學,4:週會,5:企業電子化,6:資料結構,7:永續發展環境與防災,8:桌球,9:統計學,10:資料庫管理系統
    //11:音樂森林,12:程式設計
    int[][] courses=
    {
    {0 ,1 , 0 , 0, 10},
    {9 ,1 , 0 , 0, 10},
    {9 ,0 , 2 , 4, 10},
    {9 ,0 , 2 , 4, 10},
    {5 ,7 , 12, 0, 8},
    {5 ,7 , 12, 0, 8},
    {5 ,6 , 12, 3, 0},
    {11,6 , 12, 3, 0},
    {11,6 , 0 , 3, 0}};
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }
    }
    }

    回覆刪除
  4. package homework;

    public class hw {

    public static void main(String[] args) {
    int[][] courses=
    {{0, 0, 0, 8, 11},
    {1, 0, 0, 8, 11},
    {1, 3, 6, 9, 11},
    {1, 3, 6, 9, 11},
    {2, 4, 7, 0, 12},
    {2, 4, 7, 0, 12},
    {2, 5, 7, 10,12},
    {0, 5, 7, 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(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;
    case 12:System.out.print("行銷管理");
    break;
    }
    System.out.print("\t");
    }
    System.out.println("");
    }
    }
    }

    回覆刪除
  5. B10333086 陳晏堂 改12015年10月13日 下午3:26

    public class next {


    public static void main(String[] args) {

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

    //0=空堂 1=公民 2=永續發展 3=體育 4=英文 5=密碼學 6=資料結構 7=企業電子 8=導師 9=程式設計10=統計學 11=資料庫 12=音樂森林

    回覆刪除
  6. public class HW1 {
    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 0, 0, 12, 9},
    {1, 0, 0, 12, 9},
    {1, 10, 5, 7, 9},
    {1, 10, 5, 7, 9},
    {2, 3, 6, 0, 11},
    {2, 3, 6, 0, 11},
    {2, 4, 6 ,8, 11},
    {0, 4, 6 ,8, 0},
    {0, 4, 0 ,8, 0},
    };
    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();
    }
    }
    }
    //0=沒課 1=統計學 2=企業電子化 3=永續發展 4=資料結構 5=公民 6=程式設計 7=導師 8=密碼學 9=資料庫 10=體育 11=行銷管理 12=英文

    回覆刪除
  7. package p1;

    public class hw1 {

    public static void main(String[] args) {
    int[][] courses=
    {{0, 0, 0, 8, 11},
    {1, 0, 0, 8, 11},
    {1, 3, 6, 9, 11},
    {1, 3, 6, 9, 11},
    {2, 4, 7, 0, 12},
    {2, 4, 7, 0, 12},
    {2, 5, 7, 10,12},
    {0, 5, 7, 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(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;
    case 12:System.out.print("行銷管理");
    break;
    }
    System.out.print("\t");
    }
    System.out.println("");
    }
    }
    }

    回覆刪除
  8. public class HW1 {
    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 0, 0, 8, 0},
    {1, 0, 0, 8, 9},
    {1, 0, 5, 7, 9},
    {1, 0, 5, 7, 9},
    {2, 3, 6, 0, 10},
    {2, 3, 6, 0, 10},
    {2, 4, 6 ,0, 0},
    {0, 4, 6 ,0, 0},
    {0, 4, 0 ,0, 0},
    };
    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();
    }
    }
    }
    //1=統計學概論 2=企業電子化 3=永續發展-環境與防災 4=資料結構 5=公民社會與倫理-公民德行 6=進階程式設計 7=導師 8=英文 9=資料庫管理系統 10=體育

    回覆刪除
  9. package p1;
    public class ex1 {
    //1=統計學概論 2=企業電子化 3=英文 4=永續發展-環境與防災 5=資料結構 6=體育 7=公民社會與倫理-公民德行 8=進階程式設計 9=導師 10=密碼學 11=資料庫管理系統 12=社會心理學 13=海岸變遷與防災
    public static void main(String[] args) {
    int course[][]={{0,3,6,0,0},
    {1,3,6,0,11},
    {1,0,7,9,11},
    {1,0,7,9,11},
    {2,4,8,0,11},
    {2,4,8,0,12},
    {2,5,8,10,12},
    {0,5,8,10,13},
    {0,5,0,10,13}};
    for ( int i = 0; i < course.length; i++ ){
    for ( int j = 0; j < course[i].length; j++ )
    {
    System.out.print("\t"+course[i][j]);
    }
    System.out.println();
    }


    }
    }

    回覆刪除
  10. B10333070 徐承瑋 (中文字)2015年10月13日 下午3:32

    package p1;

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

    };
    String x[]={"空堂" ,"統計學概論","企業電子化","永續發展","資料結構","公民 ",
    "程式設計 ","導師","密碼學 ","資料庫管理系統","體育[桌球]"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  11. B10333107-曾詠浩-課表2015年10月13日 下午3:32

    public class 課表 {


    public static void main(String[] args) {

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

    String x[]={"空堂" ,"英文","永續發展","體育","密碼學 ",
    "資料結構 ","企業電子","導師 ","程式設計","統計學",
    "資料庫","音樂森林","公民"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  12. B10333079 葉禮魁 10/132015年10月13日 下午3:34

    package p1;


    public class hw1 {


    public static void main(String[] args) {

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

    String x[]={"空堂" ,"統計學概論","企業電子化","英文","永續發展","資料結構 ",
    "體育 ","公民","程式設計 ","導師 ","密碼學 ","資料庫","午餐"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  13. package zxcv;

    public class zxca {



    public static void main(String[] args) {
    //0=無,1=統計學,2=企業電子化,3=永續發展,4=資料結構,5=體育,6=公民與社會,7=進階程設,8=英文,9=密碼學,10=資管,11=導師
    int[][] courses=
    {{0, 0, 5, 8, 10},
    {1, 0, 5, 8, 10},
    {1, 0, 6, 11,10},
    {1, 0, 6, 11,10},
    {2, 3, 7, 0, 0},
    {2, 3, 7 ,0, 0},
    {2, 4, 7, 9, 0},
    {0, 4, 7, 9, 0},
    {0, 4, 0, 9, 0},};
    // 二維陣列的走訪
    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();
    }
    }
    }

    回覆刪除
  14. public class hw {

    public static void main(String[] args) {

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

    String x[]={"空堂" ,"企業電子化","資料庫管理系統","資料結構","統計學概論","英文",
    "永續發展","基礎日文","公民 ","進階程式","密碼學","導師"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  15. package test1;

    public class new2 {


    public static void main(String[] args) {

    int[][] courses=
    {
    {0, 3, 6, 0, 11},
    {1, 3, 6, 0, 11},
    {1, 0, 7, 9, 11},
    {1, 0, 7, 9, 11},
    {2, 4, 8, 10, 12},
    {2, 4, 8, 10, 12},
    {2, 5, 8, 10, 12},
    {0, 5, 8, 0, 0},
    {0, 5, 0, 0, 0},
    {0, 0, 0 ,0, 0}
    };
    // 二維陣列的走訪
    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();
    }
    }
    }
    //0:空堂1:統計學概論2:企業電子化3:英文4:永續發展環境與防災5:資料結構6:體育7:公民與社會理論8:進階程式設計9:班會10:生產管理11:資料庫管理12:行銷學管理

    回覆刪除
  16. B10333106 劉郁芃2015年10月13日 下午3:36

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

    for ( int i = 0; i < courses.length; i++ )
    {for ( int j = 0; j < courses[i].length; j++)
    {
    System.out.print("\t");
    }
    System.out.println("");
    }
    }
    }
    //0= 1=統計學2=企業電子化3=體育4=永續發展5=資料結構6=公民7=進階程設8=英文9=導師10=密碼學11=資料庫12=行銷管理

    回覆刪除
  17. package hw1;

    public class p14 {

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

    String x[]={"空堂" ,"統計學概論","企業電子化","體育","英文","永續發展 ",
    "資料結構 ","行銷管理","導師 ","程式設計","公民","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  18. B10333072黃玟茜_資管二乙2015年10月13日 下午3:36

    // 0=空堂, 1=資料結構, 2=永續發展, 3=公民社會與倫理, 4=英文, 5=導師, 6=統計學概論, 7=企業電子化, 8=資料庫管理系統,9=進階程式設計,10=創意生活美學,11=行銷管理
    int[][] courses = {
    {0,0,0,4,8},
    {6,0,0,4,8},
    {6,0,3,5,8},
    {6,0,3,5,8},
    {7,2,9,0,11},
    {7,2,9,0,11},
    {7,1,9,10,11},
    {7,1,9,10,0},
    {7,1,0,0,0}
    };
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 7 != 0) {
    System.out.print(courses[i][j]);

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

    回覆刪除
  19. b10333094-張之銜2015年10月13日 下午3:36

    package p1;

    public class 課表1 {
    // 主程式
    public static void main(String[] args) {

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

    String x[]={"空堂" ,"統計學","企業電子","音樂森林","英文","永續發展","資料結構 ",
    "體育 ","公民","程式設計 ","導師","密碼學","資料庫管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  20. public static void main(String[] args)
    {
    int[][] courses=
    {
    {0, 3, 0, 0, 11},
    {1, 3, 0, 0, 11},
    {1, 4, 7, 9, 11},
    {1, 4, 7, 9, 11},
    {2, 5, 8, 0, 12},
    {2, 5, 8, 0, 12},
    {2, 6, 8 ,9, 12},
    {0, 6, 8 ,9, 0},
    {0, 6, 0 ,9, 0},
    };
    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();
    }
    }
    {
    //空堂=0統計學=1企業電子化=2英文=3體育=4永續=5資料結構=6公民=7進階程式=8班會=9密碼學=10資料庫=11行銷管理=12
    }
    }

    回覆刪除
  21. B10333077 潘家銘2015年10月13日 下午3:36

    public class HW1 {
    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 3, 0, 0, 10},
    {1, 3, 0, 0, 10},
    {1, 4, 7, 9, 10},
    {1, 4, 7, 9, 10},
    {2, 5, 8, 0, 11},
    {2, 5, 8, 0, 11},
    {2, 6, 8 ,0, 11},
    {0, 6, 8 ,0, 0},
    {0, 6, 0 ,0, 0},
    };
    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();
    }
    }
    }
    //1=統計學概論 2=企業電子化 3=英文 4=音樂森林 5=永續發展-環境與防災 6=資料結構 7=公民社會與倫理-公民德行 8=進階程式設計 9=導師 10=資料庫管理系統 11=行銷管理

    回覆刪除
  22. package ff;

    public class test {


    public static void main(String[] args) {


    int[][] courses=
    {{0, 0, 0, 0, 0},
    {1, 0, 0, 0, 0},
    {1, 3, 5, 7, 11},
    {1, 3, 5, 7, 11},
    {2, 4, 9, 6, 0},
    {2, 4, 9 ,6, 0},
    {2, 8, 10 ,6, 0},
    {0, 8, 10 ,6, 0},
    {0, 8, 10 ,0, 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("");
    }
    }
    }

    回覆刪除
  23. public class hw {

    public static void main(String[] args) {

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

    String x[]={"空堂" ,"企業電子化","資料庫管理系統","資料結構","統計學概論","英文",
    "永續發展","基礎日文","公民 ","進階程式","密碼學","導師"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  24. package ff;

    public class test {


    public static void main(String[] args) {


    int[][] courses=
    {{0, 0, 0, 0, 0},
    {1, 0, 0, 0, 0},
    {1, 3, 5, 7, 11},
    {1, 3, 5, 7, 11},
    {2, 4, 9, 6, 0},
    {2, 4, 9 ,6, 0},
    {2, 8, 10 ,6, 0},
    {0, 8, 10 ,6, 0},
    {0, 8, 10 ,0, 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("");
    }
    }
    }

    回覆刪除
  25. package P1;

    public class H1 {

    public static void main(String[] args) {

    int[][] courses=
    {
    {0, 0, 5, 8, 10},
    {1, 0, 5, 8, 10},
    {1, 0, 6, 9, 10},
    {1, 0, 6, 9, 10},
    {2, 3, 7, 0, 11},
    {2, 3, 7 ,0, 11},
    {2, 4, 7 ,0, 11},
    {0, 4, 7 ,0, 0},
    {0, 4, 0 ,0, 0},
    };
    // 二維陣列的走訪
    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();
    }
    }
    }//0:空堂 1:統計學 2:企業電子化 3:永續發展-環境與災害 4:資料結構 5:體育 6:公民社會與倫理-公民德行 7:進階程式設計 8:英文 9:導師 10:資料庫管理系統 11:行銷管理

    回覆刪除
  26. public class P1 {
    // 主程式
    public static void main(String[] args) {
    // 學生功課表
    int[][] courses=
    {
    {0, 3, 6, 0, 11},
    {1, 3, 6, 0, 11},
    {1, 0, 7, 9, 11},
    {1, 0, 7, 9, 11},
    {2, 4, 8, 10, 12},
    {2, 4, 8, 10, 12},
    {2, 5, 8 ,10, 12},
    {0, 5, 8, 0, 0},
    {0, 0, 0, 0, 0},


    };
    // 二維陣列的走訪
    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();
    }
    }
    } //0:空堂 1:統計學 2:企業電子化3:英文4:環境災害5:資料庫6:桌球7:公民8:程式設計9:班會10:生產管理11:資料庫結構12:行銷管理;

    回覆刪除
  27. B10333057 楊嘉昀2015年10月13日 下午3:41

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

    for ( int i = 0; i < courses.length; i++ )
    {for ( int j = 0; j < courses[i].length; j++)
    {
    System.out.print("\t");
    }
    System.out.println("");
    }
    }
    }
    //0=無 1=統計學2=企業電子化3=永續發展4=資料結構5=公民6=程設7=英文8=導師9=生產管理 10=資料庫11=體育

    回覆刪除
  28. B10333072黃玟茜_資管二乙2015年10月13日 下午3:41

    // 0=空堂, 1=資料結構, 2=永續發展, 3=公民社會與倫理, 4=英文, 5=導師, 6=統計學概論, 7=企業電子化, 8=資料庫管理系統,9=進階程式設計,10=創意生活美學,11=行銷管理
    int[][] courses = {
    {0,0,0,4,8},
    {6,0,0,4,8},
    {6,0,3,5,8},
    {6,0,3,5,8},
    {7,2,9,0,11},
    {7,2,9,0,11},
    {7,1,9,10,11},
    {0,1,9,10,0},
    {0,1,0,0,0}
    };
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 7 != 0) {
    System.out.print(courses[i][j]);

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

    回覆刪除
  29. B10333075 曾敬堯2015年10月13日 下午3:41

    public class TEXT1 {
    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 3, 0, 0, 9},
    {1, 3, 0, 0, 9},
    {1, 0, 6, 8, 9},
    {1, 0, 6, 8, 9},
    {2, 4, 7, 0, 10},
    {2, 4, 7, 0, 10},
    {2, 5, 7 ,0, 11},
    {0, 5, 7 ,0, 11},
    {0, 5, 0 ,0, 0},
    };
    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();
    }
    }
    }
    //0=空堂 1=統計學概論 2=企業電子化 3=英文 4=永續發展-環境與防災 5=資料結構 6=公民社會與倫理-公民德行 7=進階程式設計 8=導師 9=資料庫管理系統 10=工藝與生活美學11=體育

    回覆刪除
  30. public class P1 {
    // 主程式
    public static void main(String[] args) {
    // 學生功課表
    int[][] courses=
    {
    {0, 3, 6, 0, 11},
    {1, 3, 6, 0, 11},
    {1, 0, 7, 9, 11},
    {1, 0, 7, 9, 11},
    {2, 4, 8, 10, 12},
    {2, 4, 8, 10, 12},
    {2, 5, 8 ,10, 12},
    {0, 5, 8, 0, 0},
    {0, 0, 0, 0, 0},


    };
    // 二維陣列的走訪
    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();
    }
    }
    } //0:空堂 1:統計學 2:企業電子化3:英文4:環境災害5:資料庫6:桌球7:公民8:程式設計9:班會10:生產管理11:資料庫結構12:行銷管理;

    回覆刪除
  31. public class P1 {
    // 主程式
    public static void main(String[] args) {
    // 學生功課表
    int[][] courses=
    {
    {0, 3, 6, 0, 11},
    {1, 3, 6, 0, 11},
    {1, 0, 7, 9, 11},
    {1, 0, 7, 9, 11},
    {2, 4, 8, 10, 12},
    {2, 4, 8, 10, 12},
    {2, 5, 8 ,10, 12},
    {0, 5, 8, 0, 0},
    {0, 0, 0, 0, 0},


    };
    // 二維陣列的走訪
    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();
    }
    }
    } //0:空堂 1:統計學 2:企業電子化3:英文4:環境災害5:資料庫6:桌球7:公民8:程式設計9:班會10:生產管理11:資料庫結構12:行銷管理;

    回覆刪除

  32. public class HW1 {

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

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

    String x[]={"空堂" ,"統計學","企業電子","英文","數位影像","永續發展",
    "資料結構 ","體育","公民 ","程式設計","班導","資料庫","行銷管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  33. public class HW1 {


    public static void main(String[] args) {

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

    String x[]={"空堂" ,"統計學","企業電子","永續發展","資料結構","公民社會 ",
    "進階程式","英文","導師 ","生產管理","資料庫","體育","工藝"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  34. B10333097 胡聖恩2015年10月13日 下午3:43

    public class test1 {
    // 主程式
    public static void main(String[] args) {
    // 學生功課表
    int[][] courses=
    {{0, 0, 0, 8, 11},
    {1, 3, 0, 8, 11},
    {1, 3, 6, 9, 11},
    {1, 3, 6, 9, 11},
    {2, 4, 7, 0, 0},
    {2, 4, 7 ,0, 0},
    {2, 5, 7 ,10,12},
    {0, 5, 7 ,10,12},
    {0, 5, 0 ,10, 0},
    };
    // 二維陣列的走訪
    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();
    }
    }
    }
    //1=統計學概論2=企業電子化3=勞資關係實務4=永續發展-環境與防災5=資料結構 6=公民社會與倫理-公民德行7=進階程式設計8=英文[三9=導師10=密碼學 11=資料庫管理系統12=體育[桌球]

    回覆刪除

  35. public class HW1 {

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

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

    String x[]={"空堂" ,"統計學","企業電子","英文","數位影像","永續發展",
    "資料結構 ","體育","公民 ","程式設計","班導","資料庫","行銷管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  36. B10333055 翁恩義2015年10月13日 下午3:44

    package p1;

    public class hw1 {

    public static void main(String[] args) {
    int[][] courses=
    {{0, 3, 0, 0, 9},
    {1, 3, 0, 0, 9},
    {1, 0, 6, 8, 9},
    {1, 0, 6, 8, 9},
    {2, 4, 7, 0, 10},
    {2, 4, 7 ,0, 10},
    {2, 5, 7, 0, 10},
    {0, 5, 7, 0, 4},
    {0, 5, 0 ,0, 4}};
    String x[]={"","統計學概論","企業電子化","英文","永續發展",
    "資料結構","公民社會","程式設計","導師",
    "資料庫管理","行銷管理",};
    System.out.println("\t"+"周一"+"\t"+"周二"+"\t"+"周三"+"\t"+"周四"+
    "\t"+"周五"+"\t");
    int time=1;
    for ( int i = 0; i < courses.length; i++ )
    {
    System.out.print(++(time)+"\t");
    for ( int j = 0; j < courses[i].length; j++ )
    {
    System.out.print(x[courses[i][j]]+'\t');
    }
    System.out.println();
    }

    }

    }

    回覆刪除
  37. package hw1;

    public class p14 {

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

    String x[]={"空堂" ,"統計學概論","企業電子化","體育(桌球)","英文","永續發展 ",
    "資料結構 ","行銷管理","導師 ","程式設計","公民","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  38. package P1;

    public class test1 {

    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 12, 10, 0, 9},
    {1, 12, 10, 0, 9},
    {1, 0, 5, 7, 9},
    {1, 0, 5, 7, 9},
    {2, 3, 6, 0, 11},
    {2, 3, 6, 0, 11},
    {2, 4, 6 ,8, 11},
    {0, 4, 6 ,8, 0},
    {0, 4, 0 ,8, 0},
    };
    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();
    }
    }
    }
    //1=統計學概論 2=企業電子化 3=永續發展-環境與防災 4=資料結構 5=公民社會與倫理-公民德行 6=進階程式設計 7=導師 8=生產管理 9=資料庫管理系統 10=體育11=行銷管理12=英文

    回覆刪除

  39. public class text1 {

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

    String x[]={"空堂" ,"公民","永續發展","體育","英文","美學 ",
    "資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫","生產管理","危機管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  40. B10236116 許誌文2015年10月13日 下午3:46

    public static void main(String[] args) {


    int[][] courses=
    {{0, 0, 0, 0, 0},
    {1, 0, 0, 0, 0},
    {1, 3, 5, 7, 11},
    {1, 3, 5, 7, 11},
    {2, 4, 9, 6, 0},
    {2, 4, 9 ,6, 0},
    {2, 8, 10 ,6, 0},
    {0, 8, 10 ,6, 0},
    {0, 8, 10 ,0, 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("");
    }
    }
    }

    回覆刪除
  41. package h1;

    public class hw1 {

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

    int[][] list={
    {0, 0, 5, 8, 11},//0:空堂 1:統計學 2:企業電子化
    {1, 0, 5, 8, 11},//3:永續發展 4:資料結構 5:體育
    {1, 0, 6, 9, 11},//6:公民 7:進階程式 8:英文
    {1, 0, 6, 9, 11},//9:導師 10:生產管理 11:資料庫
    {2, 3, 7, 10, 12},//13:行銷管理
    {2, 3, 7, 10, 12},
    {2, 4, 7, 10, 12},
    {0, 4, 7, 0, 0},
    {0, 4, 0, 0, 0}};

    String x[]={"空堂" ,"統計學","企業電子化","永續發展","資料結構","體育 ",
    "公民 ","進階程式","英文 ","導師","生產管理","資料庫","行銷管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }}}}}

    回覆刪除
  42. public class test01
    {

    public static void main(String[] args)
    {

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

    //1:統計學概論,2:企業電子化 ,3:英文,4:問題分析與解決,5:永續發展-環境與防災,6:資料結構
    //7:公民社會與倫理-公民德行,8:進階程式設計,9:導師 ,10:資料庫管理系統,11:工藝與生活美學
    //12:體育

    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

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

    回覆刪除
  43. public class P1 {
    // 主程式
    public static void main(String[] args) {
    // 學生功課表
    int[][] courses=
    {
    {0, 3, 6, 0, 11},
    {1, 3, 6, 0, 11},
    {1, 0, 7, 9, 11},
    {1, 0, 7, 9, 11},
    {2, 4, 8, 10, 12},
    {2, 4, 8, 10, 12},
    {2, 5, 8 ,10, 12},
    {0, 5, 8, 0, 0},
    {0, 0, 0, 0, 0},


    };
    // 二維陣列的走訪
    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();
    }
    }
    } //0:空堂 1:統計學 2:企業電子化3:英文4:環境災害5:資料庫6:桌球7:公民8:程式設計9:班會10:生產管理11:資料庫結構12:行銷管理;

    回覆刪除

  44. public class test {

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

    //1:統計學概論2:企業電子化3:英文4:問題分析與解決5:永續發展-環境與防災6:資料結構
    //7:公民社會與倫理-公民德行8:進階程式設計9:導師10:資料庫管理系統11:工藝與生活美學
    //12:體育
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }
    }
    }

    回覆刪除
  45. public static void main(String[] args) {
    // TODO Auto-generated method stub
    int[][] list={ {0, 0, 3, 4, 11},
    {1, 0, 3, 4, 11},
    {1, 0, 10, 8, 11},
    {1, 0, 10, 8, 11},
    {2, 5, 9, 0, 7},
    {2, 5, 9, 0, 7},
    {2, 6, 9, 0, 7},
    {0, 6, 9, 0, 0},
    {0, 6, 0, 0, 0}};

    String x[]={"空堂" ,"統計學概論","企業電子化","體育","英文","永續發展 ",
    "資料結構 ","行銷管理","導師 ","程式設計","公民","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  46. package h1;

    public class hw1 {

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

    int[][] list={
    {0, 0, 5, 8, 11},//0:空堂 1:統計學 2:企業電子化
    {1, 0, 5, 8, 11},//3:永續發展 4:資料結構 5:體育
    {1, 0, 6, 9, 11},//6:公民 7:進階程式 8:英文
    {1, 0, 6, 9, 11},//9:導師 10:生產管理 11:資料庫
    {2, 3, 7, 10, 12},//13:行銷管理
    {2, 3, 7, 10, 12},
    {2, 4, 7, 10, 12},
    {0, 4, 7, 0, 0},
    {0, 4, 0, 0, 0}};

    String x[]={"空堂" ,"統計學","企業電子化","永續發展","資料結構","體育 ",
    "公民 ","進階程式","英文 ","導師","生產管理","資料庫","行銷管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }}}}}

    回覆刪除
  47. package p1;

    public class hw1{



    public static void main(String[] args)
    {
    // 0:空堂,1:英文,2:公民社會與倫理-公民德行,3:生產管理,4:週會,5:企業電子化,6:資料結構,7:永續發展環境與防災,8:羽球,9:統計學,10:資料庫管理系統
    //11:問題分析與解決,12:程式設計
    int[][] courses=
    {
    {0 ,1 , 0 , 0, 10},
    {9 ,1 , 0 , 0, 10},
    {9 ,0 , 2 , 4, 10},
    {9 ,0 , 2 , 4, 10},
    {5 ,7 , 12, 0, 8},
    {5 ,7 , 12, 0, 8},
    {5 ,6 , 12, 3, 0},
    {11,6 , 12, 3, 0},
    {11,6 , 0 , 3, 0}};
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }
    }
    }

    回覆刪除
  48. package h1;

    public class hw1 {

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

    int[][] list={
    {0, 0, 5, 8, 11},//0:空堂 1:統計學 2:企業電子化
    {1, 0, 5, 8, 11},//3:永續發展 4:資料結構 5:體育
    {1, 0, 6, 9, 11},//6:公民 7:進階程式 8:英文
    {1, 0, 6, 9, 11},//9:導師 10:生產管理 11:資料庫
    {2, 3, 7, 10, 12},//13:行銷管理
    {2, 3, 7, 10, 12},
    {2, 4, 7, 10, 12},
    {0, 4, 7, 0, 0},
    {0, 4, 0, 0, 0}};

    String x[]={"空堂" ,"統計學","企業電子化","永續發展","資料結構","體育 ",
    "公民 ","進階程式","英文 ","導師","生產管理","資料庫","行銷管理"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }}}}}

    回覆刪除
  49. public class P1 {
    // 主程式
    public static void main(String[] args) {
    // 學生功課表
    int[][] courses=
    {
    {0, 3, 6, 0, 11},
    {1, 3, 6, 0, 11},
    {1, 0, 7, 9, 11},
    {1, 0, 7, 9, 11},
    {2, 4, 8, 10, 12},
    {2, 4, 8, 10, 12},
    {2, 5, 8 ,10, 12},
    {0, 5, 8, 0, 0},
    {0, 0, 0, 0, 0},


    };
    // 二維陣列的走訪
    for ( int i = 0; i &lt; courses.length; i++ ){
    for ( int j = 0; j &lt; courses[i].length; j++ )
    {
    System.out.print(&quot;\t&quot;+courses[i][j]);
    }
    System.out.println();
    }
    }
    } //0:空堂 1:統計學 2:企業電子化3:英文4:環境災害5:資料庫6:桌球7:公民8:程式設計9:班會10:生產管理11:資料庫結構12:行銷管理;

    回覆刪除
  50. package p1;

    public class hw1 {

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

    String x[]={"空堂" ,"統計學","企業電子","英文","永續發展","資料結構 ",
    "公民 ","程式設計","導師 ","生產","資料庫","體育"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  51. package b10333088;

    public class hw1
    {

    public static void main(String[] args)
    {
    // 0:空堂,1:統計學,2:企業電子化,3:英文,4:問題分析與解決,5:環境與防災,6:資料結構,7:公民德行,8:程式設計,9:導師,10:資料庫管理系統
    //11:工藝與生活美學,12:體育
    int[][] courses=
    {
    {0 ,3 , 0 , 0, 10},
    {1 ,3 , 0 , 0, 10},
    {1 ,4 , 7 , 9, 10},
    {1 ,4 , 7 , 9, 10},
    {2 ,5 , 8 , 0, 11},
    {2 ,5 , 8 , 0, 11},
    {2 ,6 , 8 , 0, 12},
    {0 ,6 , 8 , 0, 12},
    {0 ,6 , 0 , 0, 0}};
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }

    }

    }

    回覆刪除
  52. public class hw1
    {

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

    // 0:空堂,1:英文,2:公民社會與倫理-公民德行,3:密碼學,4:週會,5:企業電子化,6:資料結構,7:永續發展環境與防災,8:羽球,9:統計學,10:資料庫管理系統
    //11:問題分析與解決,12:程式設計
    int[][] courses=
    {
    {0 ,1 , 0 , 0, 10},
    {9 ,1 , 0 , 0, 10},
    {9 ,0 , 2 , 4, 10},
    {9 ,0 , 2 , 4, 10},
    {5 ,7 , 12, 0, 8},
    {5 ,7 , 12, 0, 8},
    {5 ,6 , 12, 3, 0},
    {11,6 , 12, 3, 0},
    {11,6 , 0 , 3, 0}};
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }

    }

    }

    回覆刪除
  53. package hw1;

    public class p14 {



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

    String x[]={"空堂" ,"統計學概論","企業電子化","體育","英文","永續發展 ",
    "資料結構 ","行銷管理","導師 ","程式設計","公民","資料庫管理系統"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }

    }

    回覆刪除
  54. b10333060 方際盛2015年10月13日 下午4:41

    package b10333060;

    public class p1 {

    public static void main(String[] args) {

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

    //0:空堂,1:統計,2:企業電子化,3永續發展,4資料結構,5公民,6進階程式,7英文,8導師 ,9生產管理,10資料庫,11體育


    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }
    }
    }

    回覆刪除
  55. package p1;

    public class text1 {

    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 0, 6, 9, 11},
    {1, 0, 6, 9, 11},
    {1, 3, 7, 10,11},
    {1, 3, 7, 10,11},
    {2, 4, 8, 0, 12},
    {2, 4, 8, 0, 12},
    {2, 5, 8, 0, 12},
    {0, 5, 8, 0, 0},
    {0, 5, 0, 0, 0},
    };
    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();
    }
    }
    }
    //1=統計學概論 2=企業電子化 3=數位影像藝術 4=永續發展-環境與防災5=資料結構 6=體育 7=公民社會與倫理-公民德行 8=進階程式設計9=英文10=導師11=資料庫管理系統12=行銷管理

    回覆刪除
  56. package p1;

    public class hw1 {
    public static void main(String[] args) {
    int[][] courses=
    {
    {0, 0, 0, 0, 0},
    {1, 0, 0, 0, 9},
    {1, 8, 5, 7, 9},
    {1, 8, 5, 7, 9},
    {2, 3, 6, 0, 0},
    {2, 3, 6, 0, 0},
    {2, 4, 6 ,8, 10},
    {0, 4, 6 ,8, 10},
    {0, 4, 0 ,8, 0},
    };
    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();
    }
    }
    }
    //0=空堂1=統計學概論 2=企業電子化 3=永續發展-環境與防災 4=資料結構 5=公民社會與倫理-公民德行 6=進階程式設計 7=導師 8=作業管理9=資料庫管理系統 10=體育

    回覆刪除
  57. package P1;

    public class HW1 {

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

    String x[]={"空堂" ,"統計學","企業電子","英文","永續發展","資料結構 ",
    "公民 ","程式設計","導師 ","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  58. B10333168 楊君堯2015年10月13日 下午5:35

    package P1;

    public class HW1 {

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

    String x[]={"空堂" ,"統計學","企業電子","英文","永續發展","資料結構 ",
    "公民 ","程式設計","導師 ","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  59. package P1;

    public class HW1 {

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

    String x[]={"空堂" ,"統計學","企業電子","英文","永續發展","資料結構 ",
    "公民 ","程式設計","導師 ","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  60. package P1;

    public class HW1 {

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

    String x[]={"空堂" ,"統計學","企業電子","英文","永續發展","資料結構 ",
    "公民 ","程式設計","導師 ","資料庫"};


    System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
    "\t"+"\t"+"周四"+"\t"+"\t"+"周五");
    System.out.println("=====================================================================");
    for(int i=0;i<list.length;i++){
    System.out.println("\t"+"\t");
    for(int j=0;j<list[i].length;j++){
    System.out.print(x[list[i][j]]+"\t"+"\t");
    }
    }
    }
    }

    回覆刪除
  61. B10333067 王舒瑄2015年12月22日 下午3:31

    public class next {


    public static void main(String[] args) {

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

    //0=空堂 1=公民 2=永續發展 3=體育 4=英文 5=密碼學 6=資料結構 7=企業電子 8=導師 9=程式設計10=統計學 11=資料庫 12=音樂森林

    回覆刪除
  62. package p1;

    public class hw1{



    public static void main(String[] args)
    {
    // 0:空堂,1:英文,2:公民社會與倫理-公民德行,3:生產管理,4:週會,5:企業電子化,6:資料結構,7:永續發展環境與防災,8:羽球,9:統計學,10:資料庫管理系統
    //11:問題分析與解決,12:程式設計
    int[][] courses=
    {
    {0 ,1 , 0 , 0, 10},
    {9 ,1 , 0 , 0, 10},
    {9 ,0 , 2 , 4, 10},
    {9 ,0 , 2 , 4, 10},
    {5 ,7 , 12, 0, 8},
    {5 ,7 , 12, 0, 8},
    {5 ,6 , 12, 3, 0},
    {11,6 , 12, 3, 0},
    {11,6 , 0 , 3, 0}};
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }
    }
    }

    回覆刪除
  63. 林羿君 B103331092016年1月5日 下午2:23

    package homework;



    public class hw {



    public static void main(String[] args) {

    int[][] courses=

    {{0, 0, 0, 8, 11},

    {1, 0, 0, 8, 11},

    {1, 3, 6, 9, 11},

    {1, 3, 6, 9, 11},

    {2, 4, 7, 0, 12},

    {2, 4, 7, 0, 12},

    {2, 5, 7, 10,12},

    {0, 5, 7, 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(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;

    case 12:System.out.print("行銷管理");

    break;

    }

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

    }

    System.out.println("");

    }

    }

    }

    回覆刪除
  64. B10333071廖智加2016年1月5日 下午2:25

    package p1;

    public class hw1{



    public static void main(String[] args)
    {
    // 0:空堂,1:英文,2:公民社會與倫理-公民德行,3:生產管理,4:週會,5:企業電子化,6:資料結構,7:永續發展環境與防災,8:羽球,9:統計學,10:資料庫管理系統
    //11:問題分析與解決,12:程式設計
    int[][] courses=
    {
    {0 ,1 , 0 , 0, 10},
    {9 ,1 , 0 , 0, 10},
    {9 ,0 , 2 , 4, 10},
    {9 ,0 , 2 , 4, 10},
    {5 ,7 , 12, 0, 8},
    {5 ,7 , 12, 0, 8},
    {5 ,6 , 12, 3, 0},
    {11,6 , 12, 3, 0},
    {11,6 , 0 , 3, 0}};
    for (int i = 0; i < courses.length; i += 1) {
    for (int j = 0; j < courses[i].length + 1; j += 1) {
    if ((j + 1) % 6 != 0) {
    System.out.print(courses[i][j]);

    }
    else {
    System.out.println();

    }
    }
    }
    }
    }

    回覆刪除

HTML 編輯器