Update Main.java

Javadoc is added; if input text doesn't contain matches, programm will print it