When using the code below, I am a beginner testing what String methods do. Though, whenever using hello and using a char i to represent 0, why is it not printing out h and instead 104. And if there is a reason why it is printing 104, why?
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
String hello = "hello";
char i = hello.charAt(0);
System.out.println(+i);
}
}