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 [93];
		KB={" ","@","\"","$","%","&","'",")","_","(","+",".","=","/","/","-","2","3","4","6","7","8","9","0","\"","'",">","=","?","?","#","s","n","v","f","e","g","H","h","o","k","l",";",",","m","p","[","w","t","d","t","i","b","e","c","z","x","]","\\"},"\\","&","+","1","b","n","v","f","r","g","h","j","o","k","l",";",",","m","p","[","w","t","d","y","i","b","e","c","u","x"};
//		kb={" ","@","\"","$","%","&","'",")","_","(","+",".","=","/","/","-","2","3","4","5","6","7","8","9","0","\"","'",">","=","?"}
		
	}

}

@@ -454,24 +454,8 @@
 n);%0A
-%09%09while(true)%7B%0A%09
 %09%09St
@@ -481,17 +481,16 @@
 xt();%0A%09%09
-%09
 char %5B%5D 
@@ -517,16 +517,31 @@
 rray();%0A
+%09%09while(true)%7B%0A
 %09%09%09for(i
@@ -752,40 +752,19 @@
 %7D%0A%09%09
-char %5B%5D kb = new char %5B93%5D;%0A%09%09KB
+String%5B%5D kb
 =%7B%22 
@@ -839,16 +839,20 @@
 3%22,%224%22,%22
+5%22,%22
 6%22,%227%22,%22
@@ -1003,17 +1003,16 @@
 %22%5D%22,%22%5C%5C%22
-%7D
 ,%22%5C%5C%22,%22&
@@ -1022,17 +1022,17 @@
 +%22,%221%22,%22
-b
+s
 %22,%22n%22,%22v
@@ -1131,139 +1131,114 @@
 %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%09for(int i =0 ; i%3Cdata.length ; i++)%7B%0A%09%09%09int ascll = (int)data%5Bi%5D-33;%0A%09%09%09System.out.print(kb%5Bascll%5D);%0A%09%09%7D
 %09%09%0A%09

Update hw02_103051060.java