so i ran this code
        String line = worldRead.readLine();
        String[] aLine = line.split("");
        for (int i = 0; i < aLine.length; i++){
            System.out.println(aLine[i]);
            if(aLine[i] == "0"){
                System.out.println("Its an 0");
            }
        }
and it prints the first line of the file as it should one character by one, but the if statement isn't working, I looked at the de bugger and it says the the value of aLine[i] at that time was "0". I don't understand this strange behavior. Why is this ?
 
     
     
     
     
    