char와int 비교/치환

public class MyString {
  public static void main(String[] args) {
    char[] data = {'a', 'b', 'c'};
    String str = new String(data);
    char c = str.charAt(0);
    int i = c;
		
    println("c= " + c);
    println("i= " + i);
    println("(0+c)= " + (0 + c));
    println("(int)c= " + (int) c);
    println("(char)i= " + (char) i);

    if (i == c) println("i==c? true");		
    if (c == i) println("c==i? true");
    if (c == 97) println("c==97? true");
    if (i == 97) println("i==97? true");
  }

  static void println(String _msg) {
    System.out.println(_msg);
  }
}

output?
char와int 비교/치환 더보기