我需要Java代碼。請幫幫我。例如:當我在ASCII輸入號碼如何以我輸入的ASCII碼顯示所需的值?
0 the output will be nul
1 for soh
2 for stx until it reaches the max number of ASCII.
考慮以下代碼。它輸出一個ASCII碼。我怎樣才能扭轉它?
String test = "ABCD";
for (int i = 0; i < test.length(); ++i) {
char c = test.charAt(i);
int j = (int) c;
System.out.println(j);
}
缺少的功課標籤 – Ishtar 2010-10-05 13:11:29