Java - Custom Exceptions
Find the problem in this Java code snippet:
public class Example {
public static void main(String[] args) {
String text = "Hello";
if (text == "Hello") {
System.out.println("Greeting detected");
}
}
}