列印課表數字代碼矩陣,以及代碼的課名
提示:參考此連結
herrDeng網內搜尋
自訂搜尋
Ads
2015年10月6日 星期二
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
你會用C的算子sizeof?
-
XOR prefixsum CPP python解Leetcode 1829 Maximum XOR for Each Query 其實這裡考慮的是元素個數為2^maximumBit的交換群,運算子為XOR。 [Python code請進]
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
65 則留言:
try proxy
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=體育
// 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();
}
}
}
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();
}
}
}
}
}
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("");
}
}
}
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=音樂森林
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=英文
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("");
}
}
}
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=體育
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();
}
}
}
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");
}
}
}
}
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");
}
}
}
}
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");
}
}
}
}
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();
}
}
}
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");
}
}
}
}
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:行銷學管理
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=行銷管理
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");
}
}
}
}
// 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();
}
}
}
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");
}
}
}
}
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
}
}
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=行銷管理
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("");
}
}
}
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");
}
}
}
}
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("");
}
}
}
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:行銷管理
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:行銷管理;
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=體育
// 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();
}
}
}
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=體育
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:行銷管理;
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:行銷管理;
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");
}
}
}
}
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");
}
}
}
}
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=體育[桌球]
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");
}
}
}
}
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();
}
}
}
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");
}
}
}
}
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=英文
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");
}
}
}
}
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("");
}
}
}
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");
}}}}}
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();
}
}
}
}
}
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:行銷管理;
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();
}
}
}
}
}
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");
}
}
}
}
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");
}}}}}
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();
}
}
}
}
}
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");
}}}}}
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:行銷管理;
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");
}
}
}
}
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();
}
}
}
}
}
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();
}
}
}
}
}
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");
}
}
}
}
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();
}
}
}
}
}
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=行銷管理
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=體育
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");
}
}
}
}
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");
}
}
}
}
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");
}
}
}
}
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");
}
}
}
}
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=音樂森林
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();
}
}
}
}
}
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("");
}
}
}
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();
}
}
}
}
}
張貼留言