±Û¾´ÀÌ :Áö³ª´ø ³ª±×³× 2000³â 1¿ù 27ÀÏ 14:52:18
In Reply to: [Áú¹®] int ÇüÀ» charÇüÀ¸·Î º¯È¯ÇÏ´Â ¹ý (type castingÀÌ ¾ÈµË´Ï´Ù) posted by ¹ÚÀçÇü on 2000³â 1¿ù 27ÀÏ 10:33:16:
import java.awt.* ;
public class Test {
public static void main(String args[]) {
int count = 3;
char key = '0';
key = (char)(count - 1);
System.out.println("key =" + (int) key);
}
}