輸出你的課表 含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();
}
}
}
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
你會用C的算子sizeof?
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
-
Python CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
63 則留言:
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("");
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();
}
}
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("");
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("");
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("");
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("");
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("");
}
}
}
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(""); }
}
}
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(" ");
}
}
}
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("");
}}
}
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("");
}
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
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(" ");
}
}
}
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("");
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
}
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("");
}
}
}
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();
}
}
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("");
}
}
}
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(" ");
}
{
}
}
}
}
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(""); }
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("");
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("");
}
}
}
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(" ");
}
}
}
}
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("");
}
}
}
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(" ");
}}
}
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();
}
}
}
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();
}
}
}
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();
}
}
}}
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();
}
}
}
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();
}
}
}
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("");
}
}
}
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(" ");
}
}
}
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();
}
}
}
}
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();
}
}
}
}
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();
}
}}
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();
}
}
}
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();
}
}
}
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();
}
}
}
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();
}
}
}
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();
}
}
}
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("");
}
}
}
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();
}
}
}
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();
}
}
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();
}
}
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("");
}
}
}
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(" ");
}
}
}
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(" ");
}
}
}
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("");
}
}
}
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("");
}
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("");
}
}
}
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();
}
}
}
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("");
}
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("");
}
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("");
}
}
}
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("");
}
}
}
張貼留言