When using the code below
int count = 0;
while(count != '♂'){
count++;
}
System.out.print(count);
in the interactions pane in dr java, it equals the correct unicode number (9794), but when done in the programming pane , it returns 63, using the exact same code.
Why is that ?
This is getting complicated,
when using this code in the interactions pane
import java.util.Scanner;
Scanner scan = new Scanner(System.in);
int count = 0;
String letter = scan.next();
input is ♂
while(count != letter.charAt(0)){
count++;
}
it returns 66, and same in the programming pane,