herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (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"
-
XOR prefixsum CPP python解Leetcode 1829 Maximum XOR for Each Query 其實這裡考慮的是元素個數為2^maximumBit的交換群,運算子為XOR。 [Python code請進]
-
你會用C的算子sizeof?
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
Colab上安裝中文字型修改股市爬蟲pyplot顯圖 使用python套件: numpy, requests. pyplot, matplotlib.font_manager, matplotlib.mpl
-
2 pointer Python C++解Leetcode 3163 String Compression III [codes on Leetcode] https://leetcode.com/problems/string-compression-iii/solution...
52 則留言:
public class a01 {
public static void main(String[] args) {
int x[][]={{1,3,0,0,9},
{1,3,6,0,9},
{0,0,6,10,9},
{0,0,6,10,9},
{2,4,7,0,0},
{2,4,7,0,0},
{2,5,8,0,0},
{2,5,8,0,0},
{0,5,8,0,0}};
int i,y;
for(i=0;i<=8;i++){
for(y=0;y<=4;y++){
System.out.print(x[i][y]+" ");
}
System.out.println();
}
}
}
1 3 0 0 9
1 3 6 0 9
0 0 6 10 9
0 0 6 10 9
2 4 7 0 0
2 4 7 0 0
2 5 8 0 0
2 5 8 0 0
0 5 8 0 0
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,2,0,0,8},
{0,2,5,0,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=1;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class ex9
{
public static void main(String[] args)
{
int a[][] = {{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,6,9,10},
{2,4,7,0,0 },
{2,4,7,0,0 },
{2,5,7,0,0 },
{2,5,8,0,0 },
{2,5,8,0,0}};
int i,y;
for(i=0;i<9;i++){
for(y=0;y<=4;y++){
System.out.print(a[i][y]+" ");
}
System.out.println();
}
System.out.println("沒課(0)\t體育(1)\t進階程式設計(2)\n英文(3)\t公民(4)\t統計學(5)\t資料結構(6)\n企業電子化(7)\t永續發展(8)\n班會(9)\t資料庫系統(10)\t");
}
}
課表如下 :
1 3 0 0 10
1 3 6 0 10
0 0 6 9 10
0 0 6 9 10
2 4 7 0 0
2 4 7 0 0
2 5 7 0 0
2 5 8 0 0
2 5 8 0 0
沒課(0)體育(1)進階程式設計(2)
英文(3)公民(4)統計學(5)資料結構(6)
企業電子化(7)永續發展(8)
班會(9)資料庫系統(10)
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,2,0,0,8},
{0,2,5,0,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
package b10433037;
public class ex1 {
public static void main(String[] args){
int list[][]=
{{0,3,0,0,11},
{0,3,7,0,11},
{1,4,7,10,11},
{1,4,7,10,11},
{2,5,8,0,0},
{2,5,8,0,0},
{2,6,8,0,0},
{2,6,9,0,0},
{0,6,9,0,0},
};
String x[]={"","體育","程式設計","英文","日文","公民","統計學 ","資料結構","企業電子化","永續發展"," 導師 ","資料庫管理系統"};
System.out.println("\t"+" 週一 "+"\t"+" 週二 "+"\t"+" 週三 "+"\t"+" 週四 "+"\t"+" 週五 ");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class ex01 {
public static void main(String[] args) {
String name[]=new String[9];
int arr[][]={{0,0,0,7,9},
{0,0,4,7,9},
{0,0,4,8,9},
{0,0,4,8,9},
{1,2,5,0,0},
{1,2,5,0,0},
{1,3,5,0,0},
{1,3,6,0,0},
{0,3,6,0,0}
};
for(int i = 0; i < arr.length; i++) {
for(int j = 0; j < arr[0].length; j++)
System.out.print(arr[i][j] + " ");
System.out.println("");
}
}
}
public class ex1 {
public static void main(String[] args) {
int [][] courses=
{{0,0,0,8,10},
{0,0,5,8,10},
{0,2,5,9,10},
{0,2,5,9,10},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0} };
String name[]={"","進階程式設計","基礎日文","公民","統計學","資料結構", "企業電子化","永續發展","英文","班會","資料庫"};
for(int i=0;i<courses.length;i++){
for(int j=0;j<courses[i].length;j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
public class Ex09 {
public static void main(String[] args){
int list[][]=
{{0,0,0,0,0},
{1,3,4,0,10},
{1,3,4,7,10},
{1,3,4,7,10},
{2,0,5,8,0},
{2,0,5,8,0},
{2,0,6,8,0},
{0,0,6,8,0},
{0,0,0,0,0},
};
String x[]={"","Linux系統建置與管理","資訊安全導論","電子化化學習","資料結構","資訊管理講座","音樂森林","導師","企業資源規劃","財務管理","行動裝置程式設計"};
System.out.print("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五"+"\t"+"週六");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.print();
}
}
}
週一 週二 週三 週四 週五 週六
1
2 Linux系統建置與管理 電子化化學習 資料結構 行動裝置程式設計
3 Linux系統建置與管理 電子化化學習 資料結構 導師 行動裝置程式設計
4 Linux系統建置與管理 電子化化學習 資料結構 導師 行動裝置程式設計
5 資訊安全導論 資訊管理講座 企業資源規劃
6 資訊安全導論 資訊管理講座 企業資源規劃
7 資訊安全導論 音樂森林 企業資源規劃
8 音樂森林 企業資源規劃
9
package fsdff;
public class ex9 {
public static void main(String[] args) {
int [][] courses=
{{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,7,9,10},
{2,4,7,0,0}};
String name[]={"____","桌球","進階程式","英文","公民","資料結構","企業電子化","導師","資料庫"};
for(int i=0;i<4;i++){
for(int j=0; j<4;j++){
System.out.printf("%8d",courses[i][j]);
}
System.out.println();
}
}
}
package fsdff;
public class ex9 {
public static void main(String[] args) {
int [][] courses=
{{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,7,9,10},
{2,4,7,0,0}};
String name[]={"____","桌球","進階程式","英文","公民","資料結構","企業電子化","導師","資料庫"};
for(int i=0;i<4;i++){
for(int j=0; j<4;j++){
System.out.printf("%8d",courses[i][j]);
}
System.out.println();
}
}
}
public class aa {
public static void main(String[] args) {
int [][] courses=
{{0, 0, 0, 0, 7},
{0, 0, 4, 0, 7},
{0, 0, 4, 0, 7},
{0, 0, 4, 0, 7},
{1, 2, 5, 0, 0},
{1, 2, 5, 0, 0},
{1, 3, 5, 0, 0},
{1, 3, 6, 0, 0},
{0, 3, 6, 0, 0} };
String name[]={"_____","進階程式設計","公民","統計學","資料結構","企業電子化","資料庫系統"};
for(int i =0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%8S" ,courses[i][j]);
}
System.out.println();
}
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
package fsdff;
public class ex9 {
public static void main(String[] args) {
int [][] courses=
{{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,7,9,10},
{2,4,7,0,0}};
String name[]={"____","桌球","進階程式","公民","資料結構","企業電子化","英文","導師","資料庫"};
for(int i=0;i<4;i++){
for(int j=0; j<4;j++){
System.out.printf("%8d",courses[i][j]);
}
System.out.println();
}
}
}
public class Ex09 {
public static void main(String[] args){
int list[][]=
{{0,0,0,0,0},
{1,3,4,0,9},
{1,3,4,7,9},
{1,3,4,7,9},
{2,0,5,8,10},
{2,0,5,8,10},
{2,4,6,8,10},
{0,4,6,8,0},
{0,0,0,0,0},
};
String x[]={"英文","","資訊安全導論","電子化化學習","西洋近代史","資料結構","資訊講座","易經應用","導師","企業支援規劃","財務管理"," 資訊倫理法規"};
System.out.print("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五"+"\t"+"週六");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.print();
}
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
public class ex01 {
public static void main(String[] args)
{
int a[][]=
{{0,2,0,0,9},
{0,2,5,0,9 },
{0,0,5,8,9 },
{0,0,5,8,9 },
{1,3,6,0,10},
{1,3,6,0,10},
{1,4,6,0,0 },
{1,4,7,0,0 },
{0,4,7,0,0}};
int i,y;
for(i=0;i<9;i++)
{
for(y=0;y<=4;y++)
{
System.out.print(a[i][y]+"|");
}
System.out.println();
}
System.out.println("空堂(0)\t進階程式設計(1)\t英文(2)\t公民與社會(3)\n統計學(4)\t資料結構(5)\t企業電子化(6)\n永續發展(7)\t導師(8)\t資料庫管理(9)\t體育(10)\t");
}
}
public class ex09 {
public static void main(String[] args) {
int [][] courses= {
{0, 2, 0, 0, 11},
{0, 2, 6, 0, 11},
{0, 3, 6, 9, 11},
{0, 3, 6, 9, 11},
{1, 4, 7, 10, 0},
{1, 4, 7, 10, 0},
{1, 5, 7, 10,12},
{1, 5, 8, 0,12},
{0, 5, 8, 0,0,}};
String name[]={"________","_程式設計","大二英文","旅行文學","公民倫理","__統計學","_資料結構","_企業電子","_永續發展","____導師","_生產管理","___資料庫","____體育","沒課"};
for(int i=0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
public class ex09 {
public static void main(String[] args) {
int [][] courses= {
{0, 2, 0, 0, 11},
{0, 2, 6, 0, 11},
{0, 3, 6, 9, 11},
{0, 3, 6, 9, 11},
{1, 4, 7, 10,12},
{1, 4, 7, 10,12},
{1, 5, 7, 10, 0},
{1, 5, 8, 0, 0},
{0, 5, 8, 0,0,}};
String name[]={"________","_程式設計","大二英文","旅行文學","公民倫理","__統計學","_資料結構",
"_企業電子","_永續發展","____導師","_生產管理","___資料庫","____體育","沒課"};
for(int i=0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
public class ex09 {
public static void main(String[] args) {
int [][] courses= {
{0, 2, 0, 0, 11},
{0, 2, 6, 0, 11},
{0, 3, 6, 9, 11},
{0, 3, 6, 9, 11},
{1, 4, 7, 10, 0},
{1, 4, 7, 10, 0},
{1, 5, 7, 10,12},
{1, 5, 8, 0,12},
{0, 5, 8, 0,0,}};
String name[]={"________","_程式設計","大二英文","旅行文學","公民倫理","__統計學","_資料結構",
"_企業電子","_永續發展","____導師","_生產管理","___資料庫","____體育","沒課"};
for(int i=0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
ex02 {
public static void main(String[] args) {
int [][] courses= {
{0, 2, 0, 0, 11},
{0, 2, 6, 0, 11},
{0, 3, 6, 9, 11},
{0, 3, 6, 9, 11},
{1, 4, 7, 10, 0},
{1, 4, 7, 10, 0},
{1, 5, 7, 10,12},
{1, 5, 8, 0,12},
{0, 5, 8, 0,0,}};
String name[]={"_________","_ 程式設計","大二英文","旅行文學","公民倫理","__統計學","_資料結構",
"_企業電子","_永續發展","_____ 導師","_ 生產管理","___ 資料庫","____ 體育","沒課"};
for(int i=0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
public class ex9 {
public static void main(String[] args) {
String name[]=new String[12];
int A[][]={{0,1,0,0,2},
{3,1,4,0,2},
{3,0,4,5,2},
{3,0,4,5,2},
{6,7,8,9,0},
{6,7,8,9,0},
{6,10,8,9,11},
{6,10,12,0,11},
{0,10,12,0,0}};
for(int i=0; i<A.length; i++){
for(int j=0; j<A[0].length; j++)
System.out.printf("%-8d|", A[i][j]);
System.out.println();
}
}
}
public class EX2 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX4 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class ex09 {
public static void main(String[] args) {
int [][] courses= {
{0, 2, 0, 0, 11},
{0, 2, 6, 0, 11},
{0, 3, 6, 9, 11},
{0, 3, 6, 9, 11},
{1, 4, 7, 10, 0},
{1, 4, 7, 10, 0},
{1, 5, 7, 10,12},
{1, 5, 8, 0,12},
{0, 5, 8, 0,0,}};
String name[]={"________","_程式設計","大二英文","旅行文學","公民倫理","__統計學","_資料結構","_企業電子","_永續發展","____導師","_生產管理","___資料庫","____體育","沒課"};
for(int i=0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class ex09 {
public static void main(String[] args) {
int [][] courses= {
{0, 2, 0, 0, 11},
{0, 2, 6, 0, 11},
{0, 3, 6, 9, 11},
{0, 3, 6, 9, 11},
{1, 4, 7, 10, 0},
{1, 4, 7, 10, 0},
{1, 5, 7, 10,12},
{1, 5, 8, 0,12},
{0, 5, 8, 0,0,}};
String name[]={"________","_程式設計","大二英文","旅行文學","公民倫理","__統計學","_資料結構","_企業電子","_永續發展","____導師","_生產管理","___資料庫","____體育","沒課"};
for(int i=0; i<courses.length; i++){
for(int j=0; j<courses[i].length; j++){
System.out.printf("%-8s|",name[courses[i][j]]);
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,2,0,0,8},
{0,2,5,0,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=1;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
package fsdff;
public class ex9 {
public static void main(String[] args) {
int [][] courses=
{{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,7,9,10},
{2,4,7,0,0}};
String name[]={"____","桌球","進階程式","公民","資料結構","企業電子化","英文","導師","資料庫"};
for(int i=0;i<4;i++){
for(int j=0; j<4;j++){
System.out.printf("%8d",courses[i][j]);
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
package fsdff;
public class ex9 {
public static void main(String[] args) {
int [][] courses=
{{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,7,9,10},
{2,4,7,0,0}};
String name[]={"____","桌球","進階程式","公民","資料結構","企業電子化","英文","導師","資料庫"};
for(int i=0;i<4;i++){
for(int j=0; j<4;j++){
System.out.printf("%8d",courses[i][j]);
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
public class EX1 {
public static void main(String[] args){
int list[][]=
{{0,0,0,2,8},
{0,0,5,2,8},
{0,0,5,9,8},
{0,0,5,9,8},
{1,3,6,0,0},
{1,3,6,0,0},
{1,4,6,0,0},
{1,4,7,0,0},
{0,4,7,0,0},
};
String x[]={"","程式設計","英文","公民社會","統計學","資料結構","企業電子化","地球環境","資料庫管理","導師"};
System.out.println("\t"+"週一"+"\t"+"週二"+"\t"+"週三"+"\t"+"週四"+"\t"+"週五");
int time=0;
for (int i=0;i<list.length; i++)
{
System.out.print(++(time)+"\t");
for(int j=0; j<list[i].length;j++)
{
System.out.print(x[list[i][j]]+"\t");
}
System.out.println();
}
}
}
package fsdff;
public class ex9 {
public static void main(String[] args) {
int [][] courses=
{{1,3,0,0,10},
{1,3,6,0,10},
{0,0,6,9,10},
{0,0,7,9,10},
{2,4,7,0,0}};
String name[]={"____","桌球","進階程式","公民","資料結構","企業電子化","英文","導師","資料庫"};
for(int i=0;i<4;i++){
for(int j=0; j<4;j++){
System.out.printf("%8d",courses[i][j]);
}
System.out.println();
}
}
}
張貼留言