⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show.java

📁 电子商店
💻 JAVA
字号:
/**
 * 
 */
package product;
/**
 * @author 韦建艺 0658025
 * @2008.11.04
 * @
 */
public class Show {//KO!!!
	// show all product's information
	public void Display(String arr0[][], double arr1[][], int arr2[][]) {
		// ID, Str, Double, Int
		System.out.println("All product's information are as follows:");
		for (int i = 0; i < arr0.length; i++) {
			if (arr0[i][0] == null) {
				break;}
			else {
			for (int j = 0; j < arr0[i].length; j++) {
				 
					if (j == 0) {
						System.out.println("category : "
								+ arr0[i][0]);
						System.out.println("respace :"
								+ arr2[i][0]);
						System.out.println("price :" + arr1[i][0]);
					} else if (j == 1) {
						System.out.println("name :" + arr0[i][1]);
						System.out.println("speaker :"
								+ arr2[i][1]);
						System.out.println("ProcessorSpeed : "
								+ arr1[i][1]);
					}

					else if (j == 2) {
						System.out.println("description : "
								+ arr0[i][2]);
						System.out.println("watts : " + arr2[i][2]);
						System.out.println("thickness : "
								+ arr1[i][2]);
					}

					else if (j == 3) {
						System.out.println("os :" + arr0[i][3]);
						System.out
								.println("memory :" + arr2[i][3]);
						System.out.println("weight :" + arr1[i][3]);
					}

					else if (j == 4) {
						System.out.println("softtype :"
								+ arr0[i][4]);
						System.out.println("MonitorSize :"
								+ arr2[i][4]);
					}

					else if (j == 5) {
						System.out.println("ProcessorName :"
								+ arr0[i][5]);
						System.out.println("channel :"
								+ arr2[i][5]);
					}

					else {
						System.out.println("removable :"
								+ arr0[i][6]);
						System.out.println("ID :" + arr2[i][6]);
					}
					System.out.println();
				}

			}
			
		}
		System.out.println();

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -