System.out.println("Do you want to restart the program? Enter the letter Y to restart:"); System.out.println("Enter the Letter E to Exit"); ...
It returns true if the invoking string and the string passed in the equals function contains the same characters otherwise it returns false. Both strings must be in same case( Case-sensitive).