package hw;
/*
 * 輸入一段文字 ( 限制為 ASCII 表中，編號 32 至 125 之字元 ) ，將它們每個字元 依照鍵盤的位置，印出它們右邊的字元，若右邊按鍵有兩層字元 ( 如 : 和 ; 位於同 一按鍵上 ) ，則輸出下層字元，即 ”;” ，若該按鍵為上層字元 ( 如 !) 則輸出其右 邊按鍵之上層字元 ( 如 @) ，若輸入的字元右邊的鍵為不可視按鍵，如 shift, enter,backspace 或右邊已無按鍵，如不做更動，照樣輸出。
* Date: 2016/12/26
* Author: 103051060 黃雅鈴
*/
import java.util.Scanner;
public class hw02_103051060 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		while(true){
			String input = scn.next();
			char [] data = input.toCharArray();
			for(int i =0; i<data.length ; i++){
				if (data[i]<32||data[i]>125){
					System.out.println("Input error!");
					continue;
				}
				if(data[i]>='A'&&data[i]<='Z'){
					data[i]+=32;
				}
			}
			break;
		}
		char [][] kb = new char[4][14];
		kb={{'`','1','2','3','4','5','6','7','8','9','0','-','=',' '},
				{'q','w','e','r','t','y','u','i','o','p','[',']','\'},
		
	}

}

@@ -757,18 +757,16 @@
 %09char %5B%5D
-%5B%5D
  kb = ne
@@ -775,140 +775,514 @@
 char
-%5B4%5D%5B14%5D;%0A%09%09kb=%7B%7B'%60','1','2','3','4','5','6','7','8','9','0','-','=',' '%7D,%0A%09%09%09%09%7B'q','w','e','r','t','y','u','i','o','p','%5B','%5D','%5C'%7D,
+ %5B93%5D;%0A%09%09KB=%7B%22 %22,%22@%22,%22%5C%22%22,%22$%22,%22%25%22,%22&%22,%22'%22,%22)%22,%22_%22,%22(%22,%22+%22,%22.%22,%22=%22,%22/%22,%22/%22,%22-%22,%222%22,%223%22,%224%22,%226%22,%227%22,%228%22,%229%22,%220%22,%22%5C%22%22,%22'%22,%22%3E%22,%22=%22,%22?%22,%22?%22,%22#%22,%22s%22,%22n%22,%22v%22,%22f%22,%22e%22,%22g%22,%22H%22,%22h%22,%22o%22,%22k%22,%22l%22,%22;%22,%22,%22,%22m%22,%22p%22,%22%5B%22,%22w%22,%22t%22,%22d%22,%22t%22,%22i%22,%22b%22,%22e%22,%22c%22,%22z%22,%22x%22,%22%5D%22,%22%5C%5C%22%7D,%22%5C%5C%22,%22&%22,%22+%22,%221%22,%22b%22,%22n%22,%22v%22,%22f%22,%22r%22,%22g%22,%22h%22,%22j%22,%22o%22,%22k%22,%22l%22,%22;%22,%22,%22,%22m%22,%22p%22,%22%5B%22,%22w%22,%22t%22,%22d%22,%22y%22,%22i%22,%22b%22,%22e%22,%22c%22,%22u%22,%22x%22%7D;%0A//%09%09kb=%7B%22 %22,%22@%22,%22%5C%22%22,%22$%22,%22%25%22,%22&%22,%22'%22,%22)%22,%22_%22,%22(%22,%22+%22,%22.%22,%22=%22,%22/%22,%22/%22,%22-%22,%222%22,%223%22,%224%22,%225%22,%226%22,%227%22,%228%22,%229%22,%220%22,%22%5C%22%22,%22'%22,%22%3E%22,%22=%22,%22?%22%7D
 %0A%09%09%0A

Update hw02_103051060.java