Pressbox (Press Release) - String comparison could be a common programming task, and Java provides many ways that to compare two strings in Java. The string could be a particular category in Java, ...
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).
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"); ...