herrDeng網內搜尋

自訂搜尋

Ads

2015年10月6日 星期二

ex3 課表矩陣

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

提示:參考此連結

65 則留言:

匿名 提到...

try proxy

B10333070 徐承瑋 提到...


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=體育

B10333086 陳晏堂 提到...

// 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();
}
}
}

b10333083,周琬芸 提到...

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();

}
}
}
}
}

B10333106 提到...

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("");
}
}
}

B10333086 陳晏堂 改1 提到...

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=音樂森林

B10333064 提到...

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("");
}
}
}

B10333101游承浩 提到...

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=體育

b10333080王育文 提到...

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();
}


}
}

B10333070 徐承瑋 (中文字) 提到...

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");
}
}
}
}

B10333107-曾詠浩-課表 提到...

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");
}
}
}
}

B10333079 葉禮魁 10/13 提到...

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");
}
}
}
}

b10333063羅胤銓 提到...

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();
}
}
}

B10333085 提到...

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");
}
}
}
}

B10333058 提到...

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:行銷學管理

B10333106 劉郁芃 提到...

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=行銷管理

B10333089游智翔 提到...

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");
}
}
}

}

B10333072黃玟茜_資管二乙 提到...

// 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();
}
}
}

b10333094-張之銜 提到...

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");
}
}
}
}

b10333102 提到...

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
}
}

B10333077 潘家銘 提到...

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=行銷管理

B10236116 提到...

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("");
}
}
}

B10333085 提到...

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");
}
}
}
}

B10236116許誌文 提到...

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("");
}
}
}

B10333066周政霆 提到...

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:行銷管理

B10333081曹正諭 提到...

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:行銷管理;

B10333057 楊嘉昀 提到...

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=體育

B10333072黃玟茜_資管二乙 提到...

// 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();
}
}
}

B10333075 曾敬堯 提到...

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=體育

B10333081曹正諭 提到...

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:行銷管理;

B10333081曹正諭 提到...

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:行銷管理;

B10333078 提到...


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");
}
}
}

}

B10333108莊祐瑋 提到...

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");
}
}
}
}

B10333097 胡聖恩 提到...

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=體育[桌球]

B10333078紀虹汝 提到...


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");
}
}
}

}

B10333055 翁恩義 提到...

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();
}

}

}

B10333090廖偉翔 提到...

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");
}
}
}

}

B10333073湯宇謙 提到...

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=英文

B10333068劉育宗 提到...


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");
}
}
}

}

B10236116 許誌文 提到...

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("");
}
}
}

B10333076葉至倫 提到...

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");
}}}}}

B10333104 提到...

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();
}
}
}
}
}

B10333081曹正諭 提到...

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:行銷管理;

B10333103 提到...


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");
}
}
}

}

B10333076葉至倫 提到...

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");
}}}}}

B10333059吳紹松 提到...

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();

}
}
}
}
}

B10333076葉至倫 提到...

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");
}}}}}

B10333082吳樹凱 提到...

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


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

B10333062邱鐠生 提到...

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");
}
}
}
}

b10333088 提到...

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();

}
}
}

}

}

B10333069 提到...

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();

}
}
}

}

}

B10333074陳威佐 提到...

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");
}
}
}

}

b10333060 方際盛 提到...

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();

}
}
}
}
}

黃星維B10333092 提到...

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=行銷管理

b10333093徐子軒 提到...

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=體育

B10333168 提到...

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");
}
}
}
}

B10333168 楊君堯 提到...

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");
}
}
}
}

B10333061陳柏諺 提到...

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");
}
}
}
}

B10333061陳柏諺 提到...

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");
}
}
}
}

B10333067 王舒瑄 提到...

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=音樂森林

B10333098蔡紹威 提到...

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();

}
}
}
}
}

林羿君 B10333109 提到...

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("");

}

}

}

B10333071廖智加 提到...

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();

}
}
}
}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章